blob: 00f49dff8459ff52cee98631fac0d150715e4d49 [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 +0000739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747POD2HTML
748POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000766COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767USE_UDIS86
768USE_OPROFILE
769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000800CXX
801CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000802CCC
803CPP'
John Criswell0157f502010-03-19 21:31:39 +0000804ac_subdirs_all='projects/llvm-gcc
805projects/test-suite
806projects/llvm-test
807projects/poolalloc
808projects/llvm-poolalloc
809projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000811projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-java
814projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000815projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000816projects/llvm-kernel
817tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001319\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001385 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001392 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001393 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001406 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001409 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001415 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001416 --enable-timestamps Enable embedding timestamp information in build
1417 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001420 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1421 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001422 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001426 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001427 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001428
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001432 --with-optimize-option Select the compiler options to use for optimized
1433 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001434 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001435 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001438 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1441 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001442 --with-c-include-dirs Colon separated list of directories clang will
1443 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001444 --with-gcc-toolchain Directory where gcc is installed.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001447 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001448 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001449 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001450 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001451 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001454
1455Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001456 CC C compiler command
1457 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1459 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001461 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CXX C++ compiler command
1463 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001464 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466Use these variables to override the choices made by `configure' or to help
1467it to find libraries and programs with nonstandard names/locations.
1468
Eric Christopherf33ab862011-12-21 00:52:44 +00001469Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001470_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001471ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001477 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001478 ac_builddir=.
1479
Reid Spencera773bd52006-08-04 18:18:08 +00001480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001484 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001495
1496case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001497 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001498 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001509esac
Reid Spencera773bd52006-08-04 18:18:08 +00001510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001511
Reid Spencera773bd52006-08-04 18:18:08 +00001512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001520 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001521 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001524 done
1525fi
1526
Reid Spencera773bd52006-08-04 18:18:08 +00001527test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001528if $ac_init_version; then
1529 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001530LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001531generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15342002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001535This configure script is free software; the Free Software Foundation
1536gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001537
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001538Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001539_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001540 exit
John Criswell7a73b802003-06-30 21:59:07 +00001541fi
Reid Spencera773bd52006-08-04 18:18:08 +00001542cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001543This file contains any messages produced by compilers while
1544running configure, to aid debugging if configure makes a mistake.
1545
Eric Christopherf33ab862011-12-21 00:52:44 +00001546It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001548
1549 $ $0 $@
1550
1551_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001552exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001553{
1554cat <<_ASUNAME
1555## --------- ##
1556## Platform. ##
1557## --------- ##
1558
1559hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564
1565/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1567
1568/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1569/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1570/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001571/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001572/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1573/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1574/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1575
1576_ASUNAME
1577
1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001583 echo "PATH: $as_dir"
1584done
Reid Spencera773bd52006-08-04 18:18:08 +00001585IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001586
1587} >&5
1588
1589cat >&5 <<_ACEOF
1590
1591
1592## ----------- ##
1593## Core tests. ##
1594## ----------- ##
1595
1596_ACEOF
1597
1598
1599# Keep a trace of the command line.
1600# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001601# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001602# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001603# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001604ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001605ac_configure_args0=
1606ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001607ac_must_keep_next=false
1608for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001609do
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 for ac_arg
1611 do
1612 case $ac_arg in
1613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1616 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001617 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001618 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 esac
1620 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001621 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001625 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001627 case $ac_arg in
1628 *=* | --config-cache | -C | -disable-* | --disable-* \
1629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631 | -with-* | --with-* | -without-* | --without-* | --x)
1632 case "$ac_configure_args0 " in
1633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1634 esac
1635 ;;
1636 -* ) ac_must_keep_next=true ;;
1637 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001639 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ;;
1641 esac
1642 done
John Criswell7a73b802003-06-30 21:59:07 +00001643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1645$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 +00001646
1647# When interrupted or exit'd, cleanup temporary files, and complete
1648# config.log. We remove comments because anyway the quotes in there
1649# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001650# WARNING: Use '\'' to represent an apostrophe within the trap.
1651# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001652trap 'exit_status=$?
1653 # Save into config.log some information that might help in debugging.
1654 {
1655 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001656
John Criswell7a73b802003-06-30 21:59:07 +00001657 cat <<\_ASBOX
1658## ---------------- ##
1659## Cache variables. ##
1660## ---------------- ##
1661_ASBOX
1662 echo
1663 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001664(
1665 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1666 eval ac_val=\$$ac_var
1667 case $ac_val in #(
1668 *${as_nl}*)
1669 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1671echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001672 esac
1673 case $ac_var in #(
1674 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001675 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 esac ;;
1677 esac
1678 done
John Criswell7a73b802003-06-30 21:59:07 +00001679 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1681 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001682 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001683 "s/'\''/'\''\\\\'\'''\''/g;
1684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1685 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001686 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001689 esac |
1690 sort
1691)
John Criswell7a73b802003-06-30 21:59:07 +00001692 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001693
1694 cat <<\_ASBOX
1695## ----------------- ##
1696## Output variables. ##
1697## ----------------- ##
1698_ASBOX
1699 echo
1700 for ac_var in $ac_subst_vars
1701 do
Reid Spencera773bd52006-08-04 18:18:08 +00001702 eval ac_val=\$$ac_var
1703 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001705 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001706 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 done | sort
1708 echo
1709
1710 if test -n "$ac_subst_files"; then
1711 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001712## ------------------- ##
1713## File substitutions. ##
1714## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001715_ASBOX
1716 echo
1717 for ac_var in $ac_subst_files
1718 do
Reid Spencera773bd52006-08-04 18:18:08 +00001719 eval ac_val=\$$ac_var
1720 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001722 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 done | sort
1725 echo
1726 fi
1727
John Criswell7a73b802003-06-30 21:59:07 +00001728 if test -s confdefs.h; then
1729 cat <<\_ASBOX
1730## ----------- ##
1731## confdefs.h. ##
1732## ----------- ##
1733_ASBOX
1734 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001735 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001736 echo
1737 fi
1738 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001739 echo "$as_me: caught signal $ac_signal"
1740 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001741 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001742 rm -f core *.core core.conftest.* &&
1743 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001744 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001745' 0
John Criswell7a73b802003-06-30 21:59:07 +00001746for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001748done
1749ac_signal=0
1750
1751# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001752rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001753
1754# Predefined preprocessor variables.
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_NAME "$PACKAGE_NAME"
1758_ACEOF
1759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760
John Criswell7a73b802003-06-30 21:59:07 +00001761cat >>confdefs.h <<_ACEOF
1762#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1763_ACEOF
1764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765
John Criswell7a73b802003-06-30 21:59:07 +00001766cat >>confdefs.h <<_ACEOF
1767#define PACKAGE_VERSION "$PACKAGE_VERSION"
1768_ACEOF
1769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001770
John Criswell7a73b802003-06-30 21:59:07 +00001771cat >>confdefs.h <<_ACEOF
1772#define PACKAGE_STRING "$PACKAGE_STRING"
1773_ACEOF
1774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1778_ACEOF
1779
1780
1781# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001783if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001785elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$ac_default_prefix/share/config.site" \
1789 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001790fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791shift
1792for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001793do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 if test -r "$ac_site_file"; then
1795 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1796echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001797 sed 's/^/| /' "$ac_site_file" >&5
1798 . "$ac_site_file"
1799 fi
1800done
1801
1802if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803 # Some versions of bash will fail to source /dev/null (special
1804 # files actually), so we avoid doing that.
1805 if test -f "$cache_file"; then
1806 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1807echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001808 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1810 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001811 esac
1812 fi
1813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1815echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001816 >$cache_file
1817fi
1818
1819# Check that the precious variables saved in the cache have kept the same
1820# value.
1821ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001822for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001827 case $ac_old_set,$ac_new_set in
1828 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001831 ac_cache_corrupted=: ;;
1832 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 ac_cache_corrupted=: ;;
1836 ,);;
1837 *)
1838 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1842echo "$as_me: former value: $ac_old_val" >&2;}
1843 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1844echo "$as_me: current value: $ac_new_val" >&2;}
1845 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001846 fi;;
1847 esac
1848 # Pass precious variables to config.status.
1849 if test "$ac_new_set" = set; then
1850 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001851 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001852 *) ac_arg=$ac_var=$ac_new_val ;;
1853 esac
1854 case " $ac_configure_args " in
1855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001856 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001857 esac
1858 fi
1859done
1860if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001866fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
Reid Spencera773bd52006-08-04 18:18:08 +00001891
John Criswell7a73b802003-06-30 21:59:07 +00001892ac_ext=c
1893ac_cpp='$CPP $CPPFLAGS'
1894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897
1898
1899
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001900cat >>confdefs.h <<\_ACEOF
1901#define LLVM_VERSION_MAJOR 3
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<\_ACEOF
1906#define LLVM_VERSION_MINOR 1
1907_ACEOF
1908
1909
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001910LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001911
1912
1913
1914
1915
1916
1917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001919for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001920 if test -f "$ac_dir/install-sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install-sh -c"
1923 break
1924 elif test -f "$ac_dir/install.sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install.sh -c"
1927 break
1928 elif test -f "$ac_dir/shtool"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/shtool install -c"
1931 break
1932 fi
John Criswell7a73b802003-06-30 21:59:07 +00001933done
1934if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001935 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1936echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1937 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001938fi
Reid Spencera773bd52006-08-04 18:18:08 +00001939
1940# These three variables are undocumented and unsupported,
1941# and are intended to be withdrawn in a future Autoconf release.
1942# They can cause serious problems if a builder's source tree is in a directory
1943# whose full name contains unusual characters.
1944ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1945ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1946ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947
John Criswell7a73b802003-06-30 21:59:07 +00001948
John Criswell392aaa32003-07-22 19:18:09 +00001949
Reid Spencer2706f8c2004-09-19 23:53:36 +00001950if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001952 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1953echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1954 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955 fi
John Criswell93e1c722003-09-15 17:04:06 +00001956fi
1957
Nick Lewycky83fc4472009-09-29 05:48:51 +00001958ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001959ac_cpp='$CPP $CPPFLAGS'
1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001963if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001964 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001965 do
1966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001972else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 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 +00001983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001985 break 2
1986 fi
1987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988done
Reid Spencera773bd52006-08-04 18:18:08 +00001989IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001990
1991fi
1992fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001993CC=$ac_cv_prog_CC
1994if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995 { echo "$as_me:$LINENO: result: $CC" >&5
1996echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 { echo "$as_me:$LINENO: result: no" >&5
1999echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002000fi
2001
Reid Spencera773bd52006-08-04 18:18:08 +00002002
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002004 done
2005fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002006if test -z "$CC"; then
2007 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002008 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002009do
2010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2011set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002016else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002019else
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 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 +00002027 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002029 break 2
2030 fi
2031done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032done
Reid Spencera773bd52006-08-04 18:18:08 +00002033IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002034
2035fi
2036fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002042 { echo "$as_me:$LINENO: result: no" >&5
2043echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002044fi
2045
Reid Spencera773bd52006-08-04 18:18:08 +00002046
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002047 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002048done
John Criswell7a73b802003-06-30 21:59:07 +00002049
Reid Spencera773bd52006-08-04 18:18:08 +00002050 if test "x$ac_ct_CC" = x; then
2051 CC=""
2052 else
2053 case $cross_compiling:$ac_tool_warned in
2054yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2056whose name does not start with the host triplet. If you think this
2057configuration is useful to you, please write to autoconf@gnu.org." >&5
2058echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2059whose name does not start with the host triplet. If you think this
2060configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002061ac_tool_warned=yes ;;
2062esac
2063 CC=$ac_ct_CC
2064 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065fi
2066
John Criswell7a73b802003-06-30 21:59:07 +00002067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069See \`config.log' for more details." >&5
2070echo "$as_me: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073
John Criswell7a73b802003-06-30 21:59:07 +00002074# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075echo "$as_me:$LINENO: checking for C compiler version" >&5
2076ac_compiler=`set X $ac_compile; echo $2`
2077{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002078case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2083 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002084 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087{ (ac_try="$ac_compiler -v >&5"
2088case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091esac
2092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093 (eval "$ac_compiler -v >&5") 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097{ (ac_try="$ac_compiler -V >&5"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103 (eval "$ac_compiler -V >&5") 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002114
John Criswell7a73b802003-06-30 21:59:07 +00002115int
2116main ()
2117{
2118
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002125# Try to create an executable without -o first, disregard a.out.
2126# It will help us diagnose broken compilers, and finding out an intuition
2127# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002128{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2129echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2130ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2131#
2132# List of possible output files, starting from the most likely.
2133# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2134# only as a last resort. b.out is created by i960 compilers.
2135ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2136#
2137# The IRIX 6 linker writes into existing files which may not be
2138# executable, retaining their permissions. Remove them first so a
2139# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002140ac_rmfiles=
2141for ac_file in $ac_files
2142do
2143 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146 esac
2147done
2148rm -f $ac_rmfiles
2149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002150if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002156 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002157 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2161# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2162# in a Makefile. We should not override ac_cv_exeext if it was cached,
2163# so that the user can short-circuit this test for compilers unknown to
2164# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002166do
2167 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002168 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002170 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002171 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002172 # We found the default executable, but exeext='' is most
2173 # certainly right.
2174 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002175 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002177 then :; else
2178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179 fi
2180 # We set ac_cv_exeext here because the later test for it is not
2181 # safe: cross compilers may not add the suffix if given an `-o'
2182 # argument, so we may need to know it at that point already.
2183 # Even if this section looks crufty: it has the advantage of
2184 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002188 esac
2189done
Reid Spencera773bd52006-08-04 18:18:08 +00002190test "$ac_cv_exeext" = no && ac_cv_exeext=
2191
John Criswell7a73b802003-06-30 21:59:07 +00002192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002193 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002194sed 's/^/| /' conftest.$ac_ext >&5
2195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002196{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: C compiler cannot create executables
2199See \`config.log' for more details." >&2;}
2200 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002201fi
John Criswell7a73b802003-06-30 21:59:07 +00002202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002203ac_exeext=$ac_cv_exeext
2204{ echo "$as_me:$LINENO: result: $ac_file" >&5
2205echo "${ECHO_T}$ac_file" >&6; }
2206
2207# Check that the compiler produces executables we can run. If not, either
2208# the compiler is broken, or we cross compile.
2209{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2211# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212# If not cross compiling, check that we can run a simple program.
2213if test "$cross_compiling" != yes; then
2214 if { ac_try='./$ac_file'
2215 { (case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218esac
2219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2220 (eval "$ac_try") 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 cross_compiling=no
2225 else
2226 if test "$cross_compiling" = maybe; then
2227 cross_compiling=yes
2228 else
2229 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230If you meant to cross compile, use \`--host'.
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: cannot run C compiled programs.
2233If you meant to cross compile, use \`--host'.
2234See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2236 fi
2237 fi
2238fi
2239{ echo "$as_me:$LINENO: result: yes" >&5
2240echo "${ECHO_T}yes" >&6; }
2241
2242rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002243ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002244# Check that the compiler produces executables we can run. If not, either
2245# the compiler is broken, or we cross compile.
2246{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2248{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249echo "${ECHO_T}$cross_compiling" >&6; }
2250
2251{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2253if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002254case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002259 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002260 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265# work properly (i.e., refer to `conftest.exe'), while it won't with
2266# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002267for ac_file in conftest.exe conftest conftest.*; do
2268 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002269 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002272 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002273 * ) break;;
2274 esac
2275done
2276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002277 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283
2284rm -f conftest$ac_cv_exeext
2285{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002287
2288rm -f conftest.$ac_ext
2289EXEEXT=$ac_cv_exeext
2290ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002291{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2293if test "${ac_cv_objext+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002296 cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h. */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002302
John Criswell7a73b802003-06-30 21:59:07 +00002303int
2304main ()
2305{
2306
2307 ;
2308 return 0;
2309}
2310_ACEOF
2311rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002313case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002318 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002319 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002322 for ac_file in conftest.o conftest.obj conftest.*; do
2323 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002324 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 break;;
2328 esac
2329done
2330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002332sed 's/^/| /' conftest.$ac_ext >&5
2333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340
John Criswell7a73b802003-06-30 21:59:07 +00002341rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002345OBJEXT=$ac_cv_objext
2346ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2349if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352 cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002358
John Criswell7a73b802003-06-30 21:59:07 +00002359int
2360main ()
2361{
2362#ifndef __GNUC__
2363 choke me
2364#endif
2365
2366 ;
2367 return 0;
2368}
2369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002370rm -f conftest.$ac_objext
2371if { (ac_try="$ac_compile"
2372case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375esac
2376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377 (eval "$ac_compile") 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2385 { (case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388esac
2389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_try") 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398esac
2399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_try") 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002404 ac_compiler_gnu=yes
2405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411
Reid Spencera773bd52006-08-04 18:18:08 +00002412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002414
2415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2418GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419ac_test_CFLAGS=${CFLAGS+set}
2420ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2422echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2423if test "${ac_cv_prog_cc_g+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002425else
Reid Spencera773bd52006-08-04 18:18:08 +00002426 ac_save_c_werror_flag=$ac_c_werror_flag
2427 ac_c_werror_flag=yes
2428 ac_cv_prog_cc_g=no
2429 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002436
John Criswell7a73b802003-06-30 21:59:07 +00002437int
2438main ()
2439{
2440
2441 ;
2442 return 0;
2443}
2444_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002445rm -f conftest.$ac_objext
2446if { (ac_try="$ac_compile"
2447case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450esac
2451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_compile") 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2460 { (case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463esac
2464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_try") 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473esac
2474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_try") 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002481 echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 CFLAGS=""
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002490/* end confdefs.h. */
2491
2492int
2493main ()
2494{
2495
2496 ;
2497 return 0;
2498}
2499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500rm -f conftest.$ac_objext
2501if { (ac_try="$ac_compile"
2502case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505esac
2506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_try") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 :
Torok Edwin871384f2010-01-26 08:50:50 +00002535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002536 echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002540 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541 cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h. */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002546/* end confdefs.h. */
2547
2548int
2549main ()
2550{
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556rm -f conftest.$ac_objext
2557if { (ac_try="$ac_compile"
2558case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561esac
2562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_compile") 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_try") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002590 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591else
2592 echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595
John Criswell7a73b802003-06-30 21:59:07 +00002596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002597
Reid Spencera773bd52006-08-04 18:18:08 +00002598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600
Reid Spencera773bd52006-08-04 18:18:08 +00002601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603
Reid Spencera773bd52006-08-04 18:18:08 +00002604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 ac_c_werror_flag=$ac_save_c_werror_flag
2606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609if test "$ac_test_CFLAGS" = set; then
2610 CFLAGS=$ac_save_CFLAGS
2611elif test $ac_cv_prog_cc_g = yes; then
2612 if test "$GCC" = yes; then
2613 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002614 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002616 fi
2617else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618 if test "$GCC" = yes; then
2619 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002620 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002622 fi
2623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2625echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2626if test "${ac_cv_prog_cc_c89+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628else
Reid Spencera773bd52006-08-04 18:18:08 +00002629 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002631cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h. */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636/* end confdefs.h. */
2637#include <stdarg.h>
2638#include <stdio.h>
2639#include <sys/types.h>
2640#include <sys/stat.h>
2641/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2642struct buf { int x; };
2643FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644static char *e (p, i)
2645 char **p;
2646 int i;
2647{
2648 return p[i];
2649}
2650static char *f (char * (*g) (char **, int), char **p, ...)
2651{
2652 char *s;
2653 va_list v;
2654 va_start (v,p);
2655 s = g (p, va_arg (v,int));
2656 va_end (v);
2657 return s;
2658}
2659
2660/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2661 function prototypes and stuff, but not '\xHH' hex character constants.
2662 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002663 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2665 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002666 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2668
Reid Spencera773bd52006-08-04 18:18:08 +00002669/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670 inside strings and character constants. */
2671#define FOO(x) 'x'
2672int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674int test (int i, double x);
2675struct s1 {int (*f) (int a);};
2676struct s2 {int (*f) (double a);};
2677int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2678int argc;
2679char **argv;
2680int
2681main ()
2682{
2683return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 ;
2685 return 0;
2686}
2687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002688for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690do
2691 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002692 rm -f conftest.$ac_objext
2693if { (ac_try="$ac_compile"
2694case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697esac
2698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2707 { (case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_try") 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002726 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002727else
2728 echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733
Reid Spencera773bd52006-08-04 18:18:08 +00002734rm -f core conftest.err conftest.$ac_objext
2735 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736done
Reid Spencera773bd52006-08-04 18:18:08 +00002737rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738CC=$ac_save_CC
2739
2740fi
Reid Spencera773bd52006-08-04 18:18:08 +00002741# AC_CACHE_VAL
2742case "x$ac_cv_prog_cc_c89" in
2743 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744 { echo "$as_me:$LINENO: result: none needed" >&5
2745echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002746 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: unsupported" >&5
2748echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002750 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2752echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753esac
2754
John Criswell0c38eaf2003-09-10 15:17:25 +00002755
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
Eric Christopherffee5722011-09-16 20:36:25 +00002762ac_ext=cpp
2763ac_cpp='$CXXCPP $CPPFLAGS'
2764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2767if test -z "$CXX"; then
2768 if test -n "$CCC"; then
2769 CXX=$CCC
2770 else
2771 if test -n "$ac_tool_prefix"; then
2772 for ac_prog in clang++ llvm-g++ g++
2773 do
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778if test "${ac_cv_prog_CXX+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780else
2781 if test -n "$CXX"; then
2782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801CXX=$ac_cv_prog_CXX
2802if test -n "$CXX"; then
2803 { echo "$as_me:$LINENO: result: $CXX" >&5
2804echo "${ECHO_T}$CXX" >&6; }
2805else
2806 { echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6; }
2808fi
2809
2810
2811 test -n "$CXX" && break
2812 done
2813fi
2814if test -z "$CXX"; then
2815 ac_ct_CXX=$CXX
2816 for ac_prog in clang++ llvm-g++ g++
2817do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
2820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2822if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 if test -n "$ac_ct_CXX"; then
2826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_ac_ct_CXX="$ac_prog"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2846if test -n "$ac_ct_CXX"; then
2847 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2848echo "${ECHO_T}$ac_ct_CXX" >&6; }
2849else
2850 { echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6; }
2852fi
2853
2854
2855 test -n "$ac_ct_CXX" && break
2856done
2857
2858 if test "x$ac_ct_CXX" = x; then
2859 CXX="g++"
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
2863{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2864whose name does not start with the host triplet. If you think this
2865configuration is useful to you, please write to autoconf@gnu.org." >&5
2866echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2867whose name does not start with the host triplet. If you think this
2868configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869ac_tool_warned=yes ;;
2870esac
2871 CXX=$ac_ct_CXX
2872 fi
2873fi
2874
2875 fi
2876fi
2877# Provide some information about the compiler.
2878echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2879ac_compiler=`set X $ac_compile; echo $2`
2880{ (ac_try="$ac_compiler --version >&5"
2881case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884esac
2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compiler --version >&5") 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }
2890{ (ac_try="$ac_compiler -v >&5"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compiler -v >&5") 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900{ (ac_try="$ac_compiler -V >&5"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compiler -V >&5") 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910
2911{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2912echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2913if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916 cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
2922
2923int
2924main ()
2925{
2926#ifndef __GNUC__
2927 choke me
2928#endif
2929
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext
2935if { (ac_try="$ac_compile"
2936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_try") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_try") 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 ac_compiler_gnu=yes
2969else
2970 echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 ac_compiler_gnu=no
2974fi
2975
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2978
2979fi
2980{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2981echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2982GXX=`test $ac_compiler_gnu = yes && echo yes`
2983ac_test_CXXFLAGS=${CXXFLAGS+set}
2984ac_save_CXXFLAGS=$CXXFLAGS
2985{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2986echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2987if test "${ac_cv_prog_cxx_g+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2991 ac_cxx_werror_flag=yes
2992 ac_cv_prog_cxx_g=no
2993 CXXFLAGS="-g"
2994 cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000
3001int
3002main ()
3003{
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009rm -f conftest.$ac_objext
3010if { (ac_try="$ac_compile"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
3023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 ac_cv_prog_cxx_g=yes
3044else
3045 echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 CXXFLAGS=""
3049 cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
3055
3056int
3057main ()
3058{
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext
3065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 :
3099else
3100 echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3104 CXXFLAGS="-g"
3105 cat >conftest.$ac_ext <<_ACEOF
3106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
3111
3112int
3113main ()
3114{
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120rm -f conftest.$ac_objext
3121if { (ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_cv_prog_cxx_g=yes
3155else
3156 echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159
3160fi
3161
3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163fi
3164
3165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166fi
3167
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3170fi
3171{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3172echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3173if test "$ac_test_CXXFLAGS" = set; then
3174 CXXFLAGS=$ac_save_CXXFLAGS
3175elif test $ac_cv_prog_cxx_g = yes; then
3176 if test "$GXX" = yes; then
3177 CXXFLAGS="-g -O2"
3178 else
3179 CXXFLAGS="-g"
3180 fi
3181else
3182 if test "$GXX" = yes; then
3183 CXXFLAGS="-O2"
3184 else
3185 CXXFLAGS=
3186 fi
3187fi
3188ac_ext=c
3189ac_cpp='$CPP $CPPFLAGS'
3190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003193
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3200echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201# On Suns, sometimes $CPP names a directory.
3202if test -n "$CPP" && test -d "$CPP"; then
3203 CPP=
3204fi
3205if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003206 if test "${ac_cv_prog_CPP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208else
3209 # Double quotes because CPP needs to be expanded
3210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3211 do
3212 ac_preproc_ok=false
3213for ac_c_preproc_warn_flag in '' yes
3214do
3215 # Use a header file that comes with gcc, so configuring glibc
3216 # with a fresh cross-compiler works.
3217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3218 # <limits.h> exists even on freestanding compilers.
3219 # On the NeXT, cc -E runs the code through the compiler's parser,
3220 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221 cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226/* end confdefs.h. */
3227#ifdef __STDC__
3228# include <limits.h>
3229#else
3230# include <assert.h>
3231#endif
3232 Syntax error
3233_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003234if { (ac_try="$ac_cpp conftest.$ac_ext"
3235case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238esac
3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3252 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254 ac_cpp_err=yes
3255fi
3256if test -z "$ac_cpp_err"; then
3257 :
3258else
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 # Broken: fails on valid input.
3263continue
3264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266rm -f conftest.err conftest.$ac_ext
3267
Reid Spencera773bd52006-08-04 18:18:08 +00003268 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270 cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275/* end confdefs.h. */
3276#include <ac_nonexistent.h>
3277_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003278if { (ac_try="$ac_cpp conftest.$ac_ext"
3279case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282esac
3283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } >/dev/null; then
3291 if test -s conftest.err; then
3292 ac_cpp_err=$ac_c_preproc_warn_flag
3293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294 else
3295 ac_cpp_err=
3296 fi
3297else
3298 ac_cpp_err=yes
3299fi
3300if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301 # Broken: success on invalid input.
3302continue
3303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003304 echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307 # Passes both tests.
3308ac_preproc_ok=:
3309break
3310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003311
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312rm -f conftest.err conftest.$ac_ext
3313
3314done
3315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318 break
3319fi
3320
3321 done
3322 ac_cv_prog_CPP=$CPP
3323
3324fi
3325 CPP=$ac_cv_prog_CPP
3326else
3327 ac_cv_prog_CPP=$CPP
3328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003329{ echo "$as_me:$LINENO: result: $CPP" >&5
3330echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331ac_preproc_ok=false
3332for ac_c_preproc_warn_flag in '' yes
3333do
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345/* end confdefs.h. */
3346#ifdef __STDC__
3347# include <limits.h>
3348#else
3349# include <assert.h>
3350#endif
3351 Syntax error
3352_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003353if { (ac_try="$ac_cpp conftest.$ac_ext"
3354case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357esac
3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369 else
3370 ac_cpp_err=
3371 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003373 ac_cpp_err=yes
3374fi
3375if test -z "$ac_cpp_err"; then
3376 :
3377else
3378 echo "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381 # Broken: fails on valid input.
3382continue
3383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385rm -f conftest.err conftest.$ac_ext
3386
Reid Spencera773bd52006-08-04 18:18:08 +00003387 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389 cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394/* end confdefs.h. */
3395#include <ac_nonexistent.h>
3396_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397if { (ac_try="$ac_cpp conftest.$ac_ext"
3398case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401esac
3402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 else
3414 ac_cpp_err=
3415 fi
3416else
3417 ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420 # Broken: success on invalid input.
3421continue
3422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426 # Passes both tests.
3427ac_preproc_ok=:
3428break
3429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003430
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431rm -f conftest.err conftest.$ac_ext
3432
3433done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436if $ac_preproc_ok; then
3437 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003439 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3440See \`config.log' for more details." >&5
3441echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&2;}
3443 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444fi
3445
John Criswell7a73b802003-06-30 21:59:07 +00003446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
John Criswell7a73b802003-06-30 21:59:07 +00003452
Eric Christopherffee5722011-09-16 20:36:25 +00003453
3454
3455if test -d ${srcdir}/projects/llvm-gcc ; then
3456 subdirs="$subdirs projects/llvm-gcc"
3457
3458fi
3459
3460if test -d ${srcdir}/projects/test-suite ; then
3461 subdirs="$subdirs projects/test-suite"
3462
3463fi
3464
3465if test -d ${srcdir}/projects/llvm-test ; then
3466 subdirs="$subdirs projects/llvm-test"
3467
3468fi
3469
3470if test -d ${srcdir}/projects/poolalloc ; then
3471 subdirs="$subdirs projects/poolalloc"
3472
3473fi
3474
3475if test -d ${srcdir}/projects/llvm-poolalloc ; then
3476 subdirs="$subdirs projects/llvm-poolalloc"
3477
3478fi
3479
3480for i in `ls ${srcdir}/projects`
3481do
3482 if test -d ${srcdir}/projects/${i} ; then
3483 case ${i} in
3484 sample) subdirs="$subdirs projects/sample"
3485 ;;
3486 privbracket) subdirs="$subdirs projects/privbracket"
3487 ;;
3488 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3489 ;;
3490 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3491;;
3492 llvm-java) subdirs="$subdirs projects/llvm-java"
3493 ;;
3494 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3495 ;;
3496 safecode) subdirs="$subdirs projects/safecode"
3497 ;;
3498 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3499 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003500 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003501 llvm-gcc) ;;
3502 test-suite) ;;
3503 llvm-test) ;;
3504 poolalloc) ;;
3505 llvm-poolalloc) ;;
3506 *)
3507 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3508echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3509 ;;
3510 esac
3511 fi
3512done
3513
3514# Check whether --enable-polly was given.
3515if test "${enable_polly+set}" = set; then
3516 enableval=$enable_polly;
3517else
3518 enableval=default
3519fi
3520
3521case "$enableval" in
3522 yes) ENABLE_POLLY=1
3523 ;;
3524 no) ENABLE_POLLY=0
3525 ;;
3526 default) ENABLE_POLLY=1
3527 ;;
3528 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3529echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3530 { (exit 1); exit 1; }; } ;;
3531esac
3532
3533
3534if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3535 LLVM_HAS_POLLY=1
3536
3537 subdirs="$subdirs tools/polly"
3538
3539fi
3540
3541
3542# Make sure we can run config.sub.
3543$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3545echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3546 { (exit 1); exit 1; }; }
3547
3548{ echo "$as_me:$LINENO: checking build system type" >&5
3549echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3550if test "${ac_cv_build+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 ac_build_alias=$build_alias
3554test "x$ac_build_alias" = x &&
3555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556test "x$ac_build_alias" = x &&
3557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559 { (exit 1); exit 1; }; }
3560ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3561 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3562echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3563 { (exit 1); exit 1; }; }
3564
3565fi
3566{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567echo "${ECHO_T}$ac_cv_build" >&6; }
3568case $ac_cv_build in
3569*-*-*) ;;
3570*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3571echo "$as_me: error: invalid value of canonical build" >&2;}
3572 { (exit 1); exit 1; }; };;
3573esac
3574build=$ac_cv_build
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_build
3577shift
3578build_cpu=$1
3579build_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583build_os=$*
3584IFS=$ac_save_IFS
3585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
3588{ echo "$as_me:$LINENO: checking host system type" >&5
3589echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3590if test "${ac_cv_host+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592else
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3595else
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3598echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3599 { (exit 1); exit 1; }; }
3600fi
3601
3602fi
3603{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3604echo "${ECHO_T}$ac_cv_host" >&6; }
3605case $ac_cv_host in
3606*-*-*) ;;
3607*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3608echo "$as_me: error: invalid value of canonical host" >&2;}
3609 { (exit 1); exit 1; }; };;
3610esac
3611host=$ac_cv_host
3612ac_save_IFS=$IFS; IFS='-'
3613set x $ac_cv_host
3614shift
3615host_cpu=$1
3616host_vendor=$2
3617shift; shift
3618# Remember, the first character of IFS is used to create $*,
3619# except with old shells:
3620host_os=$*
3621IFS=$ac_save_IFS
3622case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
3625{ echo "$as_me:$LINENO: checking target system type" >&5
3626echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3627if test "${ac_cv_target+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 if test "x$target_alias" = x; then
3631 ac_cv_target=$ac_cv_host
3632else
3633 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3634 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3635echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3636 { (exit 1); exit 1; }; }
3637fi
3638
3639fi
3640{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3641echo "${ECHO_T}$ac_cv_target" >&6; }
3642case $ac_cv_target in
3643*-*-*) ;;
3644*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3645echo "$as_me: error: invalid value of canonical target" >&2;}
3646 { (exit 1); exit 1; }; };;
3647esac
3648target=$ac_cv_target
3649ac_save_IFS=$IFS; IFS='-'
3650set x $ac_cv_target
3651shift
3652target_cpu=$1
3653target_vendor=$2
3654shift; shift
3655# Remember, the first character of IFS is used to create $*,
3656# except with old shells:
3657target_os=$*
3658IFS=$ac_save_IFS
3659case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3660
3661
3662# The aliases save the names the user supplied, while $host etc.
3663# will get canonicalized.
3664test -n "$target_alias" &&
3665 test "$program_prefix$program_suffix$program_transform_name" = \
3666 NONENONEs,x,x, &&
3667 program_prefix=${target_alias}-
3668
3669{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3670echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3671if test "${llvm_cv_os_type+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 case $host in
3675 *-*-aix*)
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="AIX"
3679 llvm_cv_platform_type="Unix" ;;
3680 *-*-irix*)
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="IRIX"
3684 llvm_cv_platform_type="Unix" ;;
3685 *-*-cygwin*)
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="Cygwin"
3689 llvm_cv_platform_type="Unix" ;;
3690 *-*-darwin*)
3691 llvm_cv_link_all_option="-Wl,-all_load"
3692 llvm_cv_no_link_all_option="-Wl,-noall_load"
3693 llvm_cv_os_type="Darwin"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-minix*)
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Minix"
3699 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003700 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="FreeBSD"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-openbsd*)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="OpenBSD"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-*-netbsd*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="NetBSD"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-*-dragonfly*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="DragonFly"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-*-hpux*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="HP-UX"
3724 llvm_cv_platform_type="Unix" ;;
3725 *-*-interix*)
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Interix"
3729 llvm_cv_platform_type="Unix" ;;
3730 *-*-linux*)
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Linux"
3734 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003735 *-*-gnu*)
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="GNU"
3739 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003740 *-*-solaris*)
3741 llvm_cv_link_all_option="-Wl,-z,allextract"
3742 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3743 llvm_cv_os_type="SunOS"
3744 llvm_cv_platform_type="Unix" ;;
3745 *-*-auroraux*)
3746 llvm_cv_link_all_option="-Wl,-z,allextract"
3747 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3748 llvm_cv_os_type="AuroraUX"
3749 llvm_cv_platform_type="Unix" ;;
3750 *-*-win32*)
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="Win32"
3754 llvm_cv_platform_type="Win32" ;;
3755 *-*-mingw*)
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="MingW"
3759 llvm_cv_platform_type="Win32" ;;
3760 *-*-haiku*)
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="Haiku"
3764 llvm_cv_platform_type="Unix" ;;
3765 *-unknown-eabi*)
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Freestanding"
3769 llvm_cv_platform_type="Unix" ;;
3770 *-unknown-elf*)
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="Freestanding"
3774 llvm_cv_platform_type="Unix" ;;
3775 *)
3776 llvm_cv_link_all_option=""
3777 llvm_cv_no_link_all_option=""
3778 llvm_cv_os_type="Unknown"
3779 llvm_cv_platform_type="Unknown" ;;
3780esac
3781fi
3782{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3783echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3784
3785{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3786echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3787if test "${llvm_cv_target_os_type+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 case $target in
3791 *-*-aix*)
3792 llvm_cv_target_os_type="AIX" ;;
3793 *-*-irix*)
3794 llvm_cv_target_os_type="IRIX" ;;
3795 *-*-cygwin*)
3796 llvm_cv_target_os_type="Cygwin" ;;
3797 *-*-darwin*)
3798 llvm_cv_target_os_type="Darwin" ;;
3799 *-*-minix*)
3800 llvm_cv_target_os_type="Minix" ;;
3801 *-*-freebsd*)
3802 llvm_cv_target_os_type="FreeBSD" ;;
3803 *-*-openbsd*)
3804 llvm_cv_target_os_type="OpenBSD" ;;
3805 *-*-netbsd*)
3806 llvm_cv_target_os_type="NetBSD" ;;
3807 *-*-dragonfly*)
3808 llvm_cv_target_os_type="DragonFly" ;;
3809 *-*-hpux*)
3810 llvm_cv_target_os_type="HP-UX" ;;
3811 *-*-interix*)
3812 llvm_cv_target_os_type="Interix" ;;
3813 *-*-linux*)
3814 llvm_cv_target_os_type="Linux" ;;
3815 *-*-solaris*)
3816 llvm_cv_target_os_type="SunOS" ;;
3817 *-*-auroraux*)
3818 llvm_cv_target_os_type="AuroraUX" ;;
3819 *-*-win32*)
3820 llvm_cv_target_os_type="Win32" ;;
3821 *-*-mingw*)
3822 llvm_cv_target_os_type="MingW" ;;
3823 *-*-haiku*)
3824 llvm_cv_target_os_type="Haiku" ;;
3825 *-*-rtems*)
3826 llvm_cv_target_os_type="RTEMS" ;;
3827 *-*-nacl*)
3828 llvm_cv_target_os_type="NativeClient" ;;
3829 *-unknown-eabi*)
3830 llvm_cv_target_os_type="Freestanding" ;;
3831 *)
3832 llvm_cv_target_os_type="Unknown" ;;
3833esac
3834fi
3835{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3836echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3837
3838if test "$llvm_cv_os_type" = "Unknown" ; then
3839 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3840echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3841 { (exit 1); exit 1; }; }
3842fi
3843
3844OS=$llvm_cv_os_type
3845
3846HOST_OS=$llvm_cv_os_type
3847
3848TARGET_OS=$llvm_cv_target_os_type
3849
3850
3851LINKALL=$llvm_cv_link_all_option
3852
3853NOLINKALL=$llvm_cv_no_link_all_option
3854
3855
3856case $llvm_cv_platform_type in
3857 Unix)
3858
3859cat >>confdefs.h <<\_ACEOF
3860#define LLVM_ON_UNIX 1
3861_ACEOF
3862
3863 LLVM_ON_UNIX=1
3864
3865 LLVM_ON_WIN32=0
3866
3867 ;;
3868 Win32)
3869
3870cat >>confdefs.h <<\_ACEOF
3871#define LLVM_ON_WIN32 1
3872_ACEOF
3873
3874 LLVM_ON_UNIX=0
3875
3876 LLVM_ON_WIN32=1
3877
3878 ;;
3879esac
3880
3881{ echo "$as_me:$LINENO: checking target architecture" >&5
3882echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3883if test "${llvm_cv_target_arch+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886 case $target in
3887 i?86-*) llvm_cv_target_arch="x86" ;;
3888 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3889 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3890 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003891 arm*-*) llvm_cv_target_arch="ARM" ;;
3892 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003893 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003894 xcore-*) llvm_cv_target_arch="XCore" ;;
3895 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003896 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003897 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3898 ptx-*) llvm_cv_target_arch="PTX" ;;
3899 *) llvm_cv_target_arch="Unknown" ;;
3900esac
3901fi
3902{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3903echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3904
3905if test "$llvm_cv_target_arch" = "Unknown" ; then
3906 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3907echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3908fi
3909
Eric Christopherffee5722011-09-16 20:36:25 +00003910case "$llvm_cv_target_arch" in
3911 x86) LLVM_NATIVE_ARCH="X86" ;;
3912 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3913 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3914esac
3915
3916ARCH=$llvm_cv_target_arch
3917
3918
3919
3920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3922echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3923if test "${ac_cv_path_GREP+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 # Extract the first word of "grep ggrep" to use in msg output
3927if test -z "$GREP"; then
3928set dummy grep ggrep; ac_prog_name=$2
3929if test "${ac_cv_path_GREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
Reid Spencera773bd52006-08-04 18:18:08 +00003932 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003933# Loop through the user's path and test for each of PROGNAME-LIST
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003939 for ac_prog in grep ggrep; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3943 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003944 # Check for GNU $ac_path_GREP
3945case `"$ac_path_GREP" --version 2>&1` in
3946*GNU*)
3947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3948*)
3949 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003950 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003951 while :
3952 do
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_GREP="$ac_path_GREP"
3963 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003964 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3967 done
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969esac
3970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971
3972 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003973 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003974done
3975
3976done
Reid Spencera773bd52006-08-04 18:18:08 +00003977IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003978
3979
3980fi
3981
3982GREP="$ac_cv_path_GREP"
3983if test -z "$GREP"; then
3984 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3985echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3986 { (exit 1); exit 1; }; }
3987fi
3988
Reid Spencera773bd52006-08-04 18:18:08 +00003989else
3990 ac_cv_path_GREP=$GREP
3991fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993
Reid Spencera773bd52006-08-04 18:18:08 +00003994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3996echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003997 GREP="$ac_cv_path_GREP"
3998
3999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000{ echo "$as_me:$LINENO: checking for egrep" >&5
4001echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4002if test "${ac_cv_path_EGREP+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004004else
4005 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006 then ac_cv_path_EGREP="$GREP -E"
4007 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008 # Extract the first word of "egrep" to use in msg output
4009if test -z "$EGREP"; then
4010set dummy egrep; ac_prog_name=$2
4011if test "${ac_cv_path_EGREP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
Reid Spencera773bd52006-08-04 18:18:08 +00004014 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015# Loop through the user's path and test for each of PROGNAME-LIST
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021 for ac_prog in egrep; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4024 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4025 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004026 # Check for GNU $ac_path_EGREP
4027case `"$ac_path_EGREP" --version 2>&1` in
4028*GNU*)
4029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4030*)
4031 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004033 while :
4034 do
4035 cat "conftest.in" "conftest.in" >"conftest.tmp"
4036 mv "conftest.tmp" "conftest.in"
4037 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4043 # Best one so far, save it but keep looking for a better one
4044 ac_cv_path_EGREP="$ac_path_EGREP"
4045 ac_path_EGREP_max=$ac_count
4046 fi
4047 # 10*(2^10) chars as input seems more than enough
4048 test $ac_count -gt 10 && break
4049 done
4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051esac
4052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004053
4054 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004055 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056done
4057
4058done
Reid Spencera773bd52006-08-04 18:18:08 +00004059IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060
4061
4062fi
4063
4064EGREP="$ac_cv_path_EGREP"
4065if test -z "$EGREP"; then
4066 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4067echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4068 { (exit 1); exit 1; }; }
4069fi
4070
Reid Spencera773bd52006-08-04 18:18:08 +00004071else
4072 ac_cv_path_EGREP=$EGREP
4073fi
4074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075
Reid Spencera773bd52006-08-04 18:18:08 +00004076 fi
4077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4079echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004080 EGREP="$ac_cv_path_EGREP"
4081
4082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004083{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4085if test "${ac_cv_header_stdc+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004094#include <stdlib.h>
4095#include <stdarg.h>
4096#include <string.h>
4097#include <float.h>
4098
John Criswell0c38eaf2003-09-10 15:17:25 +00004099int
4100main ()
4101{
4102
4103 ;
4104 return 0;
4105}
John Criswell7a73b802003-06-30 21:59:07 +00004106_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004107rm -f conftest.$ac_objext
4108if { (ac_try="$ac_compile"
4109case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_compile") 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4122 { (case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125esac
4126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_try") 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004141 ac_cv_header_stdc=yes
4142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004143 echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148
Reid Spencera773bd52006-08-04 18:18:08 +00004149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004150
4151if test $ac_cv_header_stdc = yes; then
4152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153 cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004159#include <string.h>
4160
4161_ACEOF
4162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163 $EGREP "memchr" >/dev/null 2>&1; then
4164 :
John Criswell7a73b802003-06-30 21:59:07 +00004165else
4166 ac_cv_header_stdc=no
4167fi
4168rm -f conftest*
4169
4170fi
4171
4172if test $ac_cv_header_stdc = yes; then
4173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004174 cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004180#include <stdlib.h>
4181
4182_ACEOF
4183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 $EGREP "free" >/dev/null 2>&1; then
4185 :
John Criswell7a73b802003-06-30 21:59:07 +00004186else
4187 ac_cv_header_stdc=no
4188fi
4189rm -f conftest*
4190
4191fi
4192
4193if test $ac_cv_header_stdc = yes; then
4194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004195 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004196 :
4197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004204#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004205#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004206#if ((' ' & 0x0FF) == 0x020)
4207# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4208# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4209#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004210# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211 (('a' <= (c) && (c) <= 'i') \
4212 || ('j' <= (c) && (c) <= 'r') \
4213 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004214# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4215#endif
4216
4217#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4218int
4219main ()
4220{
4221 int i;
4222 for (i = 0; i < 256; i++)
4223 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004224 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004225 return 2;
4226 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004227}
4228_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004229rm -f conftest$ac_exeext
4230if { (ac_try="$ac_link"
4231case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_link") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 :
John Criswell7a73b802003-06-30 21:59:07 +00004250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251 echo "$as_me: program exited with status $ac_status" >&5
4252echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255( exit $ac_status )
4256ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258rm -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 +00004259fi
4260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261
John Criswell7a73b802003-06-30 21:59:07 +00004262fi
4263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004266if test $ac_cv_header_stdc = yes; then
4267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004268cat >>confdefs.h <<\_ACEOF
4269#define STDC_HEADERS 1
4270_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004271
4272fi
4273
Reid Spencera773bd52006-08-04 18:18:08 +00004274# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275
4276
4277
4278
4279
4280
4281
4282
4283
Reid Spencera773bd52006-08-04 18:18:08 +00004284for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286do
4287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293 cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
4299$ac_includes_default
4300
4301#include <$ac_header>
4302_ACEOF
4303rm -f conftest.$ac_objext
4304if { (ac_try="$ac_compile"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 eval "$as_ac_Header=yes"
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 eval "$as_ac_Header=no"
4343fi
4344
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346fi
4347ac_res=`eval echo '${'$as_ac_Header'}'`
4348 { echo "$as_me:$LINENO: result: $ac_res" >&5
4349echo "${ECHO_T}$ac_res" >&6; }
4350if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004351 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004353_ACEOF
4354
4355fi
4356
4357done
4358
4359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4361echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4362if test "${ac_cv_c_bigendian+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365 # See if sys/param.h defines the BYTE_ORDER macro.
4366cat >conftest.$ac_ext <<_ACEOF
4367/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004368_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004371/* end confdefs.h. */
4372#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004374
4375int
4376main ()
4377{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004378#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4379 bogus endian macros
4380#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004381
4382 ;
4383 return 0;
4384}
4385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386rm -f conftest.$ac_objext
4387if { (ac_try="$ac_compile"
4388case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401 { (case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_try") 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414esac
4415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_try") 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004420 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421cat >conftest.$ac_ext <<_ACEOF
4422/* confdefs.h. */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004426/* end confdefs.h. */
4427#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004429
4430int
4431main ()
4432{
4433#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434 not big endian
4435#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004436
4437 ;
4438 return 0;
4439}
4440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441rm -f conftest.$ac_objext
4442if { (ac_try="$ac_compile"
4443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004475 ac_cv_c_bigendian=yes
4476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004480 ac_cv_c_bigendian=no
4481fi
4482
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484else
4485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 # It does not; compile a test program.
4489if test "$cross_compiling" = yes; then
4490 # try to guess the endianness by grepping values into an object file
4491 ac_cv_c_bigendian=unknown
4492 cat >conftest.$ac_ext <<_ACEOF
4493/* confdefs.h. */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h. */
4498short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4499short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4500void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4501short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4502short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4503void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004504int
4505main ()
4506{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004508 ;
4509 return 0;
4510}
4511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512rm -f conftest.$ac_objext
4513if { (ac_try="$ac_compile"
4514case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_compile") 2>conftest.er1
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4527 { (case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532 (eval "$ac_try") 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest.$ac_objext'
4537 { (case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540esac
4541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_try") 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004547 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548fi
4549if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4550 if test "$ac_cv_c_bigendian" = unknown; then
4551 ac_cv_c_bigendian=no
4552 else
4553 # finding both strings is unlikely to happen, but who knows?
4554 ac_cv_c_bigendian=unknown
4555 fi
4556fi
Reid Spencera773bd52006-08-04 18:18:08 +00004557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004558 echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004561
Torok Edwin871384f2010-01-26 08:50:50 +00004562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004563
Reid Spencera773bd52006-08-04 18:18:08 +00004564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004571/* end confdefs.h. */
4572$ac_includes_default
4573int
4574main ()
4575{
4576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577 /* Are we little or big endian? From Harbison&Steele. */
4578 union
4579 {
4580 long int l;
4581 char c[sizeof (long int)];
4582 } u;
4583 u.l = 1;
4584 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004585
4586 ;
4587 return 0;
4588}
4589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590rm -f conftest$ac_exeext
4591if { (ac_try="$ac_link"
4592case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595esac
4596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_link") 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
4605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004610 ac_cv_c_bigendian=no
4611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612 echo "$as_me: program exited with status $ac_status" >&5
4613echo "$as_me: failed program was:" >&5
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616( exit $ac_status )
4617ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619rm -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 +00004620fi
4621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622
Reid Spencera773bd52006-08-04 18:18:08 +00004623fi
4624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626fi
4627{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4628echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4629case $ac_cv_c_bigendian in
4630 yes)
4631 ENDIAN=big
4632 ;;
4633 no)
4634 ENDIAN=little
4635 ;;
4636 *)
4637 { { echo "$as_me:$LINENO: error: unknown endianness
4638presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4639echo "$as_me: error: unknown endianness
4640presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4641 { (exit 1); exit 1; }; } ;;
4642esac
Reid Spencera773bd52006-08-04 18:18:08 +00004643
4644
4645if test "$cross_compiling" = yes; then
4646 LLVM_CROSS_COMPILING=1
4647
4648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4650echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4651if test "${ac_cv_build_exeext+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004653else
4654 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4655 ac_cv_build_exeext=.exe
4656else
4657 ac_build_prefix=${build_alias}-
4658
4659 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4660set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004665else
4666 if test -n "$BUILD_CC"; then
4667 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 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 +00004676 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004678 break 2
4679 fi
4680done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681done
Reid Spencera773bd52006-08-04 18:18:08 +00004682IFS=$as_save_IFS
4683
4684fi
4685fi
4686BUILD_CC=$ac_cv_prog_BUILD_CC
4687if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4689echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 { echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004693fi
4694
4695
4696 if test -z "$BUILD_CC"; then
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004703else
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 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 +00004714 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004716 break 2
4717 fi
4718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719done
Reid Spencera773bd52006-08-04 18:18:08 +00004720IFS=$as_save_IFS
4721
4722fi
4723fi
4724BUILD_CC=$ac_cv_prog_BUILD_CC
4725if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 { echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004731fi
4732
4733
4734 if test -z "$BUILD_CC"; then
4735 # Extract the first word of "cc", so it can be a program name with args.
4736set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004741else
4742 if test -n "$BUILD_CC"; then
4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744else
4745 ac_prog_rejected=no
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 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 +00004753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4754 ac_prog_rejected=yes
4755 continue
4756 fi
4757 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004759 break 2
4760 fi
4761done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004762done
Reid Spencera773bd52006-08-04 18:18:08 +00004763IFS=$as_save_IFS
4764
4765if test $ac_prog_rejected = yes; then
4766 # We found a bogon in the path, so make sure we never use it.
4767 set dummy $ac_cv_prog_BUILD_CC
4768 shift
4769 if test $# != 0; then
4770 # We chose a different compiler from the bogus one.
4771 # However, it has the same basename, so the bogon will be chosen
4772 # first if we set BUILD_CC to just the basename; use the full file name.
4773 shift
4774 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4775 fi
4776fi
4777fi
4778fi
4779BUILD_CC=$ac_cv_prog_BUILD_CC
4780if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004781 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4782echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784 { echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004786fi
4787
4788
4789 fi
4790 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4792echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4793 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004794 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4795 rm -f conftest*
4796 echo 'int main () { return 0; }' > conftest.$ac_ext
4797 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004799 (eval $ac_build_link) 2>&5
4800 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004803 for file in conftest.*; do
4804 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004805 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004806 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4807 esac
4808 done
4809 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4811echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4812 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004813 fi
4814 rm -f conftest*
4815 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4816fi
4817fi
4818
4819BUILD_EXEEXT=""
4820test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004821{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4822echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004823ac_build_exeext=$BUILD_EXEEXT
4824
Jim Grosbach673612e2008-10-02 22:56:44 +00004825 ac_build_prefix=${build_alias}-
4826 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4827set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004832else
4833 if test -n "$BUILD_CXX"; then
4834 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 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 +00004843 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004845 break 2
4846 fi
4847done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848done
Jim Grosbach673612e2008-10-02 22:56:44 +00004849IFS=$as_save_IFS
4850
4851fi
4852fi
4853BUILD_CXX=$ac_cv_prog_BUILD_CXX
4854if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4856echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004858 { echo "$as_me:$LINENO: result: no" >&5
4859echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004860fi
4861
4862
4863 if test -z "$BUILD_CXX"; then
4864 # Extract the first word of "g++", so it can be a program name with args.
4865set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004870else
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 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 +00004881 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004883 break 2
4884 fi
4885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886done
Jim Grosbach673612e2008-10-02 22:56:44 +00004887IFS=$as_save_IFS
4888
4889fi
4890fi
4891BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004898fi
4899
4900
4901 if test -z "$BUILD_CXX"; then
4902 # Extract the first word of "c++", so it can be a program name with args.
4903set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004908else
4909 if test -n "$BUILD_CXX"; then
4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911else
4912 ac_prog_rejected=no
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 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 +00004920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4921 ac_prog_rejected=yes
4922 continue
4923 fi
4924 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004926 break 2
4927 fi
4928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929done
Jim Grosbach673612e2008-10-02 22:56:44 +00004930IFS=$as_save_IFS
4931
4932if test $ac_prog_rejected = yes; then
4933 # We found a bogon in the path, so make sure we never use it.
4934 set dummy $ac_cv_prog_BUILD_CXX
4935 shift
4936 if test $# != 0; then
4937 # We chose a different compiler from the bogus one.
4938 # However, it has the same basename, so the bogon will be chosen
4939 # first if we set BUILD_CXX to just the basename; use the full file name.
4940 shift
4941 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4942 fi
4943fi
4944fi
4945fi
4946BUILD_CXX=$ac_cv_prog_BUILD_CXX
4947if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4949echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004951 { echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004953fi
4954
4955
4956 fi
4957 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004958else
4959 LLVM_CROSS_COMPILING=0
4960
4961fi
4962
Dan Gohman56fb5f92010-08-04 16:25:01 +00004963if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004964 cvsbuild="yes"
4965 optimize="no"
4966 CVSBUILD=CVSBUILD=1
4967
4968else
4969 cvsbuild="no"
4970 optimize="yes"
4971fi
4972
4973
Eric Christopherbee515f2011-11-11 22:51:42 +00004974# Check whether --enable-libcpp was given.
4975if test "${enable_libcpp+set}" = set; then
4976 enableval=$enable_libcpp;
4977else
4978 enableval=default
4979fi
4980
4981case "$enableval" in
4982 yes) ENABLE_LIBCPP=1
4983 ;;
4984 no) ENABLE_LIBCPP=0
4985 ;;
4986 default) ENABLE_LIBCPP=0
4987;;
4988 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4989echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4991esac
4992
Reid Spencera773bd52006-08-04 18:18:08 +00004993# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004994if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004995 enableval=$enable_optimized;
4996else
4997 enableval=$optimize
4998fi
4999
5000if test ${enableval} = "no" ; then
5001 ENABLE_OPTIMIZED=
5002
5003else
5004 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5005
5006fi
5007
David Greene2a5a12c2009-04-17 14:50:39 +00005008# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005009if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005010 enableval=$enable_profiling;
5011else
5012 enableval="no"
5013fi
5014
5015if test ${enableval} = "no" ; then
5016 ENABLE_PROFILING=
5017
5018else
5019 ENABLE_PROFILING=ENABLE_PROFILING=1
5020
5021fi
5022
Reid Spencera773bd52006-08-04 18:18:08 +00005023# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005024if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005025 enableval=$enable_assertions;
5026else
5027 enableval="yes"
5028fi
5029
5030if test ${enableval} = "yes" ; then
5031 DISABLE_ASSERTIONS=
5032
5033else
5034 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5035
5036fi
5037
David Greenea696d242007-06-28 19:36:08 +00005038# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005039if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005040 enableval=$enable_expensive_checks;
5041else
5042 enableval="no"
5043fi
5044
5045if test ${enableval} = "yes" ; then
5046 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5047
5048 EXPENSIVE_CHECKS=yes
5049
5050else
5051 ENABLE_EXPENSIVE_CHECKS=
5052
5053 EXPENSIVE_CHECKS=no
5054
5055fi
5056
Reid Spencer8b2e1412006-11-17 03:32:33 +00005057# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005059 enableval=$enable_debug_runtime;
5060else
5061 enableval=no
5062fi
5063
5064if test ${enableval} = "no" ; then
5065 DEBUG_RUNTIME=
5066
5067else
5068 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5069
5070fi
5071
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005072# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005074 enableval=$enable_debug_symbols;
5075else
5076 enableval=no
5077fi
5078
5079if test ${enableval} = "no" ; then
5080 DEBUG_SYMBOLS=
5081
5082else
5083 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5084
5085fi
5086
Reid Spencera773bd52006-08-04 18:18:08 +00005087# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005088if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005089 enableval=$enable_jit;
5090else
5091 enableval=default
5092fi
5093
5094if test ${enableval} = "no"
5095then
5096 JIT=
5097
5098else
5099 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005100 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005101 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005102 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005103 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005104 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005105 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005106 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005107 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005108 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005109 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005110 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005111 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005112 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005113 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005114 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005115 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005116 Hexagon) TARGET_HAS_JIT=0
5117 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005118 MBlaze) TARGET_HAS_JIT=0
5119 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005120 PTX) TARGET_HAS_JIT=0
5121 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005122 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005123 ;;
5124 esac
5125fi
5126
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005127# Check whether --enable-docs was given.
5128if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5130else
5131 enableval=default
5132fi
5133
5134case "$enableval" in
5135 yes) ENABLE_DOCS=1
5136 ;;
5137 no) ENABLE_DOCS=0
5138 ;;
5139 default) ENABLE_DOCS=1
5140 ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144esac
5145
Reid Spencera773bd52006-08-04 18:18:08 +00005146# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005147if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005148 enableval=$enable_doxygen;
5149else
5150 enableval=default
5151fi
5152
5153case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5155 ;;
5156 no) ENABLE_DOXYGEN=0
5157 ;;
5158 default) ENABLE_DOXYGEN=0
5159 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005163esac
5164
5165# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005166if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005167 enableval=$enable_threads;
5168else
Reid Spencer65c5d752006-11-05 17:08:18 +00005169 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005170fi
5171
5172case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005173 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005174 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005175 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005176 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005177 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005178 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005182esac
5183
Owen Andersona8603702009-05-19 22:18:56 +00005184cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005185#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005186_ACEOF
5187
5188
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005189# Check whether --enable-pthreads was given.
5190if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5192else
5193 enableval=default
5194fi
5195
5196case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5198 ;;
5199 no) ENABLE_PTHREADS=0
5200 ;;
5201 default) ENABLE_PTHREADS=1
5202 ;;
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5206esac
5207
Reid Spencer89b0d992006-12-16 22:07:52 +00005208# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005209if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005210 enableval=$enable_pic;
5211else
5212 enableval=default
5213fi
5214
5215case "$enableval" in
5216 yes) ENABLE_PIC=1
5217 ;;
5218 no) ENABLE_PIC=0
5219 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005220 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005221 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005225esac
5226
5227cat >>confdefs.h <<_ACEOF
5228#define ENABLE_PIC $ENABLE_PIC
5229_ACEOF
5230
5231
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005232# Check whether --enable-shared was given.
5233if test "${enable_shared+set}" = set; then
5234 enableval=$enable_shared;
5235else
5236 enableval=default
5237fi
5238
5239case "$enableval" in
5240 yes) ENABLE_SHARED=1
5241 ;;
5242 no) ENABLE_SHARED=0
5243 ;;
5244 default) ENABLE_SHARED=0
5245 ;;
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5249esac
5250
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005251# Check whether --enable-embed-stdcxx was given.
5252if test "${enable_embed_stdcxx+set}" = set; then
5253 enableval=$enable_embed_stdcxx;
5254else
5255 enableval=default
5256fi
5257
5258case "$enableval" in
5259 yes) ENABLE_EMBED_STDCXX=1
5260 ;;
5261 no) ENABLE_EMBED_STDCXX=0
5262 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005263 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005264 ;;
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5268esac
5269
Daniel Dunbardd464df2010-05-10 20:11:56 +00005270# Check whether --enable-timestamps was given.
5271if test "${enable_timestamps+set}" = set; then
5272 enableval=$enable_timestamps;
5273else
5274 enableval=default
5275fi
5276
5277case "$enableval" in
5278 yes) ENABLE_TIMESTAMPS=1
5279 ;;
5280 no) ENABLE_TIMESTAMPS=0
5281 ;;
5282 default) ENABLE_TIMESTAMPS=1
5283 ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5287esac
5288
5289cat >>confdefs.h <<_ACEOF
5290#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291_ACEOF
5292
5293
Reid Spencera773bd52006-08-04 18:18:08 +00005294TARGETS_TO_BUILD=""
5295# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005296if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005297 enableval=$enable_targets;
5298else
5299 enableval=all
5300fi
5301
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005302if test "$enableval" = host-only ; then
5303 enableval=host
5304fi
Reid Spencera773bd52006-08-04 18:18:08 +00005305case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005306 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005307 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005309 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005315 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005316 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005317 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5318 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005319 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005320 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005321 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005322 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005323 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005324 host) case "$llvm_cv_target_arch" in
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005329 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5330 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005331 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005332 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005333 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5334 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005335 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005336 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5338echo "$as_me: error: Can not set target to build" >&2;}
5339 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005340 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005341 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5342echo "$as_me: error: Unrecognized target $a_target" >&2;}
5343 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005344 esac
5345 done
5346 ;;
5347esac
Reid Spencera773bd52006-08-04 18:18:08 +00005348TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5349
5350
Douglas Gregor0711c302009-06-17 00:43:20 +00005351for a_target in $TARGETS_TO_BUILD; do
5352 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5353
5354cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005355#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5356_ACEOF
5357
5358 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5359 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005360 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005361 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005362 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5363 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5364 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005365
5366cat >>confdefs.h <<_ACEOF
5367#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005368_ACEOF
5369
5370
5371cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005372#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5373_ACEOF
5374
5375
5376cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005377#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005378_ACEOF
5379
5380
5381cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005382#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005383_ACEOF
5384
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005385 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005386
5387cat >>confdefs.h <<_ACEOF
5388#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5389_ACEOF
5390
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005391 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005392 fi
5393done
5394
Douglas Gregor1555a232009-06-16 20:12:29 +00005395LLVM_ENUM_TARGETS=""
5396LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005397LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005398LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005399for target_to_build in $TARGETS_TO_BUILD; do
5400 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005401 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005402 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5403 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005404 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5405 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5406 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005407 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5408 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5409 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005410done
5411
5412
5413
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005414
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005415
Reid Spencer65c5d752006-11-05 17:08:18 +00005416# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005417if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005418 enableval=$enable_cbe_printf_a;
5419else
5420 enableval=default
5421fi
5422
5423case "$enableval" in
5424 yes) ENABLE_CBE_PRINTF_A=1
5425 ;;
5426 no) ENABLE_CBE_PRINTF_A=0
5427 ;;
5428 default) ENABLE_CBE_PRINTF_A=1
5429 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005430 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5431echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5432 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005433esac
5434
5435cat >>confdefs.h <<_ACEOF
5436#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5437_ACEOF
5438
5439
Reid Spencera773bd52006-08-04 18:18:08 +00005440
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005441# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005443 withval=$with_optimize_option;
5444else
5445 withval=default
5446fi
5447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005448{ echo "$as_me:$LINENO: checking optimization flags" >&5
5449echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005450case "$withval" in
5451 default)
5452 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005453 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005454 MingW) optimize_option=-O2 ;;
5455 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005456 esac ;;
5457 *) optimize_option="$withval" ;;
5458esac
5459OPTIMIZE_OPTION=$optimize_option
5460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005461{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5462echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005463
5464
Reid Spencera773bd52006-08-04 18:18:08 +00005465# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005466if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005467 withval=$with_extra_options;
5468else
5469 withval=default
5470fi
5471
5472case "$withval" in
5473 default) EXTRA_OPTIONS= ;;
5474 *) EXTRA_OPTIONS=$withval ;;
5475esac
5476EXTRA_OPTIONS=$EXTRA_OPTIONS
5477
5478
Daniel Dunbared344d22011-06-16 22:30:41 +00005479
5480# Check whether --with-extra-ld-options was given.
5481if test "${with_extra_ld_options+set}" = set; then
5482 withval=$with_extra_ld_options;
5483else
5484 withval=default
5485fi
5486
5487case "$withval" in
5488 default) EXTRA_LD_OPTIONS= ;;
5489 *) EXTRA_LD_OPTIONS=$withval ;;
5490esac
5491EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5492
5493
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005494# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005495if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005496 enableval=$enable_bindings;
5497else
5498 enableval=default
5499fi
5500
5501BINDINGS_TO_BUILD=""
5502case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005503 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005504 all ) BINDINGS_TO_BUILD="ocaml" ;;
5505 none | no) BINDINGS_TO_BUILD="" ;;
5506 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5507 case "$a_binding" in
5508 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5510echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5511 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005512 esac
5513 done
5514 ;;
5515esac
5516
Reid Spencera773bd52006-08-04 18:18:08 +00005517
Gordon Henriksenf0915682007-10-02 16:42:22 +00005518# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005520 withval=$with_ocaml_libdir;
5521else
5522 withval=auto
5523fi
5524
5525case "$withval" in
5526 auto) with_ocaml_libdir="$withval" ;;
5527 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005528 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5529echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5530 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005531esac
5532
5533
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005534# Check whether --with-clang-srcdir was given.
5535if test "${with_clang_srcdir+set}" = set; then
5536 withval=$with_clang_srcdir;
5537else
5538 withval="-"
5539fi
5540
5541case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005542 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005543 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5544 *) clang_src_root="$ac_pwd/$withval" ;;
5545esac
5546CLANG_SRC_ROOT=$clang_src_root
5547
5548
5549
Chandler Carruth6b241162010-10-19 08:21:25 +00005550# Check whether --with-clang-resource-dir was given.
5551if test "${with_clang_resource_dir+set}" = set; then
5552 withval=$with_clang_resource_dir;
5553else
5554 withval=""
5555fi
5556
5557
5558cat >>confdefs.h <<_ACEOF
5559#define CLANG_RESOURCE_DIR "$withval"
5560_ACEOF
5561
5562
5563
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005564# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005566 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005567else
5568 withval=""
5569fi
5570
5571
5572cat >>confdefs.h <<_ACEOF
5573#define C_INCLUDE_DIRS "$withval"
5574_ACEOF
5575
5576
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005577# Clang normally uses the system c++ headers and libraries. With this option,
5578# clang will use the ones provided by a gcc installation instead. This option should
5579# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005580
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005581# Check whether --with-gcc-toolchain was given.
5582if test "${with_gcc_toolchain+set}" = set; then
5583 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005584else
5585 withval=""
5586fi
5587
5588
5589cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005590#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005591_ACEOF
5592
5593
5594
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005595# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005596if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005597 withval=$with_binutils_include;
5598else
5599 withval=default
5600fi
5601
5602case "$withval" in
5603 default) WITH_BINUTILS_INCDIR=default ;;
5604 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5606echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5607 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005608esac
5609if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5610 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5611
5612 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5613 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5615echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5616 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005617 fi
5618fi
5619
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005620
5621# Check whether --with-bug-report-url was given.
5622if test "${with_bug_report_url+set}" = set; then
5623 withval=$with_bug_report_url;
5624else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005625 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005626fi
5627
5628
5629cat >>confdefs.h <<_ACEOF
5630#define BUG_REPORT_URL "$withval"
5631_ACEOF
5632
5633
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005634# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005635if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005636 enableval=$enable_libffi; case "$enableval" in
5637 yes) llvm_cv_enable_libffi="yes" ;;
5638 no) llvm_cv_enable_libffi="no" ;;
5639 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5641 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005642 esac
5643else
5644 llvm_cv_enable_libffi=no
5645fi
5646
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005647
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005648
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005649# Check whether --with-internal-prefix was given.
5650if test "${with_internal_prefix+set}" = set; then
5651 withval=$with_internal_prefix;
5652else
5653 withval=""
5654fi
5655
5656INTERNAL_PREFIX=$withval
5657
5658
5659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5661echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5662if test "${lt_cv_path_NM+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005664else
5665 if test -n "$NM"; then
5666 # Let the user override the test.
5667 lt_cv_path_NM="$NM"
5668else
5669 lt_nm_to_check="${ac_tool_prefix}nm"
5670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5671 lt_nm_to_check="$lt_nm_to_check nm"
5672 fi
5673 for lt_tmp_nm in $lt_nm_to_check; do
5674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5676 IFS="$lt_save_ifs"
5677 test -z "$ac_dir" && ac_dir=.
5678 tmp_nm="$ac_dir/$lt_tmp_nm"
5679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5680 # Check to see if the nm accepts a BSD-compat flag.
5681 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5682 # nm: unknown option "B" ignored
5683 # Tru64's nm complains that /dev/null is an invalid object file
5684 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5685 */dev/null* | *'Invalid file or object type'*)
5686 lt_cv_path_NM="$tmp_nm -B"
5687 break
5688 ;;
5689 *)
5690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 */dev/null*)
5692 lt_cv_path_NM="$tmp_nm -p"
5693 break
5694 ;;
5695 *)
5696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5697 continue # so that we can try to find one that supports BSD flags
5698 ;;
5699 esac
5700 ;;
5701 esac
5702 fi
5703 done
5704 IFS="$lt_save_ifs"
5705 done
5706 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5707fi
5708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5710echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005711NM="$lt_cv_path_NM"
5712
5713
5714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715{ echo "$as_me:$LINENO: checking for GNU make" >&5
5716echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5717if test "${llvm_cv_gnu_make_command+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005719else
5720 llvm_cv_gnu_make_command=''
5721 for a in "$MAKE" make gmake gnumake ; do
5722 if test -z "$a" ; then continue ; fi ;
5723 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5724 then
5725 llvm_cv_gnu_make_command=$a ;
5726 break;
5727 fi
5728 done
5729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005730{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5731echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005732 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5733 ifGNUmake='' ;
5734 else
5735 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005736 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5737echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005738 fi
5739
5740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5742echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005743LN_S=$as_ln_s
5744if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745 { echo "$as_me:$LINENO: result: yes" >&5
5746echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5749echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005750fi
5751
5752# Extract the first word of "cmp", so it can be a program name with args.
5753set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756if test "${ac_cv_path_CMP+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005758else
5759 case $CMP in
5760 [\\/]* | ?:[\\/]*)
5761 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5762 ;;
5763 *)
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 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 +00005771 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005773 break 2
5774 fi
5775done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776done
Reid Spencera773bd52006-08-04 18:18:08 +00005777IFS=$as_save_IFS
5778
5779 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5780 ;;
5781esac
5782fi
5783CMP=$ac_cv_path_CMP
5784if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785 { echo "$as_me:$LINENO: result: $CMP" >&5
5786echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005788 { echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005790fi
5791
5792
5793# Extract the first word of "cp", so it can be a program name with args.
5794set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797if test "${ac_cv_path_CP+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005799else
5800 case $CP in
5801 [\\/]* | ?:[\\/]*)
5802 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5803 ;;
5804 *)
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 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 +00005812 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005814 break 2
5815 fi
5816done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005817done
Reid Spencera773bd52006-08-04 18:18:08 +00005818IFS=$as_save_IFS
5819
5820 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5821 ;;
5822esac
5823fi
5824CP=$ac_cv_path_CP
5825if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005826 { echo "$as_me:$LINENO: result: $CP" >&5
5827echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005829 { echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005831fi
5832
5833
5834# Extract the first word of "date", so it can be a program name with args.
5835set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838if test "${ac_cv_path_DATE+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005840else
5841 case $DATE in
5842 [\\/]* | ?:[\\/]*)
5843 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5844 ;;
5845 *)
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 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 +00005853 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005855 break 2
5856 fi
5857done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858done
Reid Spencera773bd52006-08-04 18:18:08 +00005859IFS=$as_save_IFS
5860
5861 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5862 ;;
5863esac
5864fi
5865DATE=$ac_cv_path_DATE
5866if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867 { echo "$as_me:$LINENO: result: $DATE" >&5
5868echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870 { echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005872fi
5873
5874
5875# Extract the first word of "find", so it can be a program name with args.
5876set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879if test "${ac_cv_path_FIND+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005881else
5882 case $FIND in
5883 [\\/]* | ?:[\\/]*)
5884 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5885 ;;
5886 *)
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 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 +00005894 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005896 break 2
5897 fi
5898done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899done
Reid Spencera773bd52006-08-04 18:18:08 +00005900IFS=$as_save_IFS
5901
5902 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5903 ;;
5904esac
5905fi
5906FIND=$ac_cv_path_FIND
5907if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005908 { echo "$as_me:$LINENO: result: $FIND" >&5
5909echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005911 { echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005913fi
5914
5915
5916# Extract the first word of "grep", so it can be a program name with args.
5917set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920if test "${ac_cv_path_GREP+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005922else
5923 case $GREP in
5924 [\\/]* | ?:[\\/]*)
5925 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5926 ;;
5927 *)
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 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 +00005935 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005937 break 2
5938 fi
5939done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940done
Reid Spencera773bd52006-08-04 18:18:08 +00005941IFS=$as_save_IFS
5942
5943 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5944 ;;
5945esac
5946fi
5947GREP=$ac_cv_path_GREP
5948if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949 { echo "$as_me:$LINENO: result: $GREP" >&5
5950echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005951else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005952 { echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005954fi
5955
5956
5957# Extract the first word of "mkdir", so it can be a program name with args.
5958set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5961if test "${ac_cv_path_MKDIR+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005963else
5964 case $MKDIR in
5965 [\\/]* | ?:[\\/]*)
5966 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5967 ;;
5968 *)
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 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 +00005976 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005978 break 2
5979 fi
5980done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981done
Reid Spencera773bd52006-08-04 18:18:08 +00005982IFS=$as_save_IFS
5983
5984 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5985 ;;
5986esac
5987fi
5988MKDIR=$ac_cv_path_MKDIR
5989if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5991echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005992else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993 { echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005995fi
5996
5997
5998# Extract the first word of "mv", so it can be a program name with args.
5999set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002if test "${ac_cv_path_MV+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006004else
6005 case $MV in
6006 [\\/]* | ?:[\\/]*)
6007 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6008 ;;
6009 *)
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 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 +00006017 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006019 break 2
6020 fi
6021done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022done
Reid Spencera773bd52006-08-04 18:18:08 +00006023IFS=$as_save_IFS
6024
6025 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6026 ;;
6027esac
6028fi
6029MV=$ac_cv_path_MV
6030if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031 { echo "$as_me:$LINENO: result: $MV" >&5
6032echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034 { echo "$as_me:$LINENO: result: no" >&5
6035echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006036fi
6037
6038
6039if test -n "$ac_tool_prefix"; then
6040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6041set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044if test "${ac_cv_prog_RANLIB+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006046else
6047 if test -n "$RANLIB"; then
6048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 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 +00006057 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006059 break 2
6060 fi
6061done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062done
Reid Spencera773bd52006-08-04 18:18:08 +00006063IFS=$as_save_IFS
6064
6065fi
6066fi
6067RANLIB=$ac_cv_prog_RANLIB
6068if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6070echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072 { echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006074fi
6075
6076
6077fi
6078if test -z "$ac_cv_prog_RANLIB"; then
6079 ac_ct_RANLIB=$RANLIB
6080 # Extract the first word of "ranlib", so it can be a program name with args.
6081set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006086else
6087 if test -n "$ac_ct_RANLIB"; then
6088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 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 +00006097 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006099 break 2
6100 fi
6101done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102done
Reid Spencera773bd52006-08-04 18:18:08 +00006103IFS=$as_save_IFS
6104
6105fi
6106fi
6107ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6108if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6110echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112 { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006114fi
6115
6116 if test "x$ac_ct_RANLIB" = x; then
6117 RANLIB=":"
6118 else
6119 case $cross_compiling:$ac_tool_warned in
6120yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122whose name does not start with the host triplet. If you think this
6123configuration is useful to you, please write to autoconf@gnu.org." >&5
6124echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125whose name does not start with the host triplet. If you think this
6126configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006127ac_tool_warned=yes ;;
6128esac
6129 RANLIB=$ac_ct_RANLIB
6130 fi
6131else
6132 RANLIB="$ac_cv_prog_RANLIB"
6133fi
6134
Torok Edwin871384f2010-01-26 08:50:50 +00006135if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140if test "${ac_cv_prog_AR+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006142else
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 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 +00006153 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006155 break 2
6156 fi
6157done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158done
Torok Edwin871384f2010-01-26 08:50:50 +00006159IFS=$as_save_IFS
6160
6161fi
6162fi
6163AR=$ac_cv_prog_AR
6164if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 { echo "$as_me:$LINENO: result: $AR" >&5
6166echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006168 { echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006170fi
6171
6172
6173fi
6174if test -z "$ac_cv_prog_AR"; then
6175 ac_ct_AR=$AR
6176 # Extract the first word of "ar", so it can be a program name with args.
6177set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006182else
6183 if test -n "$ac_ct_AR"; then
6184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 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 +00006193 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006195 break 2
6196 fi
6197done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198done
Torok Edwin871384f2010-01-26 08:50:50 +00006199IFS=$as_save_IFS
6200
6201fi
6202fi
6203ac_ct_AR=$ac_cv_prog_ac_ct_AR
6204if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6206echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208 { echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006210fi
6211
6212 if test "x$ac_ct_AR" = x; then
6213 AR="false"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6218whose name does not start with the host triplet. If you think this
6219configuration is useful to you, please write to autoconf@gnu.org." >&5
6220echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6221whose name does not start with the host triplet. If you think this
6222configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006223ac_tool_warned=yes ;;
6224esac
6225 AR=$ac_ct_AR
6226 fi
6227else
6228 AR="$ac_cv_prog_AR"
6229fi
6230
Reid Spencera773bd52006-08-04 18:18:08 +00006231# Extract the first word of "rm", so it can be a program name with args.
6232set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235if test "${ac_cv_path_RM+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006237else
6238 case $RM in
6239 [\\/]* | ?:[\\/]*)
6240 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6241 ;;
6242 *)
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 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 +00006250 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006252 break 2
6253 fi
6254done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255done
Reid Spencera773bd52006-08-04 18:18:08 +00006256IFS=$as_save_IFS
6257
6258 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6259 ;;
6260esac
6261fi
6262RM=$ac_cv_path_RM
6263if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264 { echo "$as_me:$LINENO: result: $RM" >&5
6265echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006267 { echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006269fi
6270
6271
6272# Extract the first word of "sed", so it can be a program name with args.
6273set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276if test "${ac_cv_path_SED+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006278else
6279 case $SED in
6280 [\\/]* | ?:[\\/]*)
6281 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6282 ;;
6283 *)
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 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 +00006291 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006293 break 2
6294 fi
6295done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296done
Reid Spencera773bd52006-08-04 18:18:08 +00006297IFS=$as_save_IFS
6298
6299 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6300 ;;
6301esac
6302fi
6303SED=$ac_cv_path_SED
6304if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305 { echo "$as_me:$LINENO: result: $SED" >&5
6306echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308 { echo "$as_me:$LINENO: result: no" >&5
6309echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006310fi
6311
6312
6313# Extract the first word of "tar", so it can be a program name with args.
6314set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317if test "${ac_cv_path_TAR+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006319else
6320 case $TAR in
6321 [\\/]* | ?:[\\/]*)
6322 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6323 ;;
6324 *)
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 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 +00006332 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006334 break 2
6335 fi
6336done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337done
Reid Spencera773bd52006-08-04 18:18:08 +00006338IFS=$as_save_IFS
6339
6340 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6341 ;;
6342esac
6343fi
6344TAR=$ac_cv_path_TAR
6345if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346 { echo "$as_me:$LINENO: result: $TAR" >&5
6347echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006349 { echo "$as_me:$LINENO: result: no" >&5
6350echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006351fi
6352
6353
6354# Extract the first word of "pwd", so it can be a program name with args.
6355set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358if test "${ac_cv_path_BINPWD+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006360else
6361 case $BINPWD in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 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 +00006373 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006375 break 2
6376 fi
6377done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378done
Reid Spencera773bd52006-08-04 18:18:08 +00006379IFS=$as_save_IFS
6380
6381 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6382 ;;
6383esac
6384fi
6385BINPWD=$ac_cv_path_BINPWD
6386if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6388echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006390 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006392fi
6393
6394
6395
6396# Extract the first word of "Graphviz", so it can be a program name with args.
6397set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6400if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006402else
6403 case $GRAPHVIZ in
6404 [\\/]* | ?:[\\/]*)
6405 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6406 ;;
6407 *)
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 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 +00006415 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006417 break 2
6418 fi
6419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420done
Reid Spencera773bd52006-08-04 18:18:08 +00006421IFS=$as_save_IFS
6422
6423 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6424 ;;
6425esac
6426fi
6427GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6428if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6430echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432 { echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006434fi
6435
6436
6437if test "$GRAPHVIZ" != "echo Graphviz" ; then
6438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439cat >>confdefs.h <<\_ACEOF
6440#define HAVE_GRAPHVIZ 1
6441_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006442
Jeff Cohen28783c32007-01-12 18:22:38 +00006443 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006444 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6445 fi
6446
6447cat >>confdefs.h <<_ACEOF
6448#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6449_ACEOF
6450
6451fi
6452# Extract the first word of "dot", so it can be a program name with args.
6453set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456if test "${ac_cv_path_DOT+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006458else
6459 case $DOT in
6460 [\\/]* | ?:[\\/]*)
6461 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6462 ;;
6463 *)
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 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 +00006471 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006473 break 2
6474 fi
6475done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476done
Reid Spencera773bd52006-08-04 18:18:08 +00006477IFS=$as_save_IFS
6478
6479 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6480 ;;
6481esac
6482fi
6483DOT=$ac_cv_path_DOT
6484if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485 { echo "$as_me:$LINENO: result: $DOT" >&5
6486echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006488 { echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006490fi
6491
6492
6493if test "$DOT" != "echo dot" ; then
6494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006495cat >>confdefs.h <<\_ACEOF
6496#define HAVE_DOT 1
6497_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006498
Jeff Cohen28783c32007-01-12 18:22:38 +00006499 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006500 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6501 fi
6502
6503cat >>confdefs.h <<_ACEOF
6504#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6505_ACEOF
6506
6507fi
David Greenef0b9eff2009-07-09 17:16:26 +00006508# Extract the first word of "fdp", so it can be a program name with args.
6509set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512if test "${ac_cv_path_FDP+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006514else
6515 case $FDP in
6516 [\\/]* | ?:[\\/]*)
6517 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6518 ;;
6519 *)
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 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 +00006527 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006529 break 2
6530 fi
6531done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532done
David Greenef0b9eff2009-07-09 17:16:26 +00006533IFS=$as_save_IFS
6534
6535 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6536 ;;
6537esac
6538fi
6539FDP=$ac_cv_path_FDP
6540if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541 { echo "$as_me:$LINENO: result: $FDP" >&5
6542echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544 { echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006546fi
6547
6548
6549if test "$FDP" != "echo fdp" ; then
6550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551cat >>confdefs.h <<\_ACEOF
6552#define HAVE_FDP 1
6553_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006554
6555 if test "$llvm_cv_os_type" = "MingW" ; then
6556 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6557 fi
6558
6559cat >>confdefs.h <<_ACEOF
6560#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6561_ACEOF
6562
6563fi
6564# Extract the first word of "neato", so it can be a program name with args.
6565set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568if test "${ac_cv_path_NEATO+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006570else
6571 case $NEATO in
6572 [\\/]* | ?:[\\/]*)
6573 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6574 ;;
6575 *)
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 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 +00006583 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006585 break 2
6586 fi
6587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588done
David Greenef0b9eff2009-07-09 17:16:26 +00006589IFS=$as_save_IFS
6590
6591 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6592 ;;
6593esac
6594fi
6595NEATO=$ac_cv_path_NEATO
6596if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597 { echo "$as_me:$LINENO: result: $NEATO" >&5
6598echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600 { echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006602fi
6603
6604
6605if test "$NEATO" != "echo neato" ; then
6606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607cat >>confdefs.h <<\_ACEOF
6608#define HAVE_NEATO 1
6609_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006610
6611 if test "$llvm_cv_os_type" = "MingW" ; then
6612 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6613 fi
6614
6615cat >>confdefs.h <<_ACEOF
6616#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6617_ACEOF
6618
6619fi
6620# Extract the first word of "twopi", so it can be a program name with args.
6621set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624if test "${ac_cv_path_TWOPI+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006626else
6627 case $TWOPI in
6628 [\\/]* | ?:[\\/]*)
6629 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6630 ;;
6631 *)
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 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 +00006639 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006641 break 2
6642 fi
6643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644done
David Greenef0b9eff2009-07-09 17:16:26 +00006645IFS=$as_save_IFS
6646
6647 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6648 ;;
6649esac
6650fi
6651TWOPI=$ac_cv_path_TWOPI
6652if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006653 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6654echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656 { echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006658fi
6659
6660
6661if test "$TWOPI" != "echo twopi" ; then
6662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663cat >>confdefs.h <<\_ACEOF
6664#define HAVE_TWOPI 1
6665_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006666
6667 if test "$llvm_cv_os_type" = "MingW" ; then
6668 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6669 fi
6670
6671cat >>confdefs.h <<_ACEOF
6672#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6673_ACEOF
6674
6675fi
6676# Extract the first word of "circo", so it can be a program name with args.
6677set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680if test "${ac_cv_path_CIRCO+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006682else
6683 case $CIRCO in
6684 [\\/]* | ?:[\\/]*)
6685 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6686 ;;
6687 *)
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 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 +00006695 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006697 break 2
6698 fi
6699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700done
David Greenef0b9eff2009-07-09 17:16:26 +00006701IFS=$as_save_IFS
6702
6703 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6704 ;;
6705esac
6706fi
6707CIRCO=$ac_cv_path_CIRCO
6708if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6710echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712 { echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006714fi
6715
6716
6717if test "$CIRCO" != "echo circo" ; then
6718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719cat >>confdefs.h <<\_ACEOF
6720#define HAVE_CIRCO 1
6721_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006722
6723 if test "$llvm_cv_os_type" = "MingW" ; then
6724 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6725 fi
6726
6727cat >>confdefs.h <<_ACEOF
6728#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6729_ACEOF
6730
6731fi
Reid Spencera773bd52006-08-04 18:18:08 +00006732for ac_prog in gv gsview32
6733do
6734 # Extract the first word of "$ac_prog", so it can be a program name with args.
6735set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738if test "${ac_cv_path_GV+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006740else
6741 case $GV in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6744 ;;
6745 *)
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 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 +00006753 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006755 break 2
6756 fi
6757done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758done
Reid Spencera773bd52006-08-04 18:18:08 +00006759IFS=$as_save_IFS
6760
6761 ;;
6762esac
6763fi
6764GV=$ac_cv_path_GV
6765if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766 { echo "$as_me:$LINENO: result: $GV" >&5
6767echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769 { echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006771fi
6772
6773
6774 test -n "$GV" && break
6775done
6776test -n "$GV" || GV="echo gv"
6777
6778if test "$GV" != "echo gv" ; then
6779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780cat >>confdefs.h <<\_ACEOF
6781#define HAVE_GV 1
6782_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006783
Jeff Cohen28783c32007-01-12 18:22:38 +00006784 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006785 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786 fi
6787
6788cat >>confdefs.h <<_ACEOF
6789#define LLVM_PATH_GV "$GV${EXEEXT}"
6790_ACEOF
6791
6792fi
6793# Extract the first word of "dotty", so it can be a program name with args.
6794set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797if test "${ac_cv_path_DOTTY+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006799else
6800 case $DOTTY in
6801 [\\/]* | ?:[\\/]*)
6802 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6803 ;;
6804 *)
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 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 +00006812 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006814 break 2
6815 fi
6816done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817done
Reid Spencera773bd52006-08-04 18:18:08 +00006818IFS=$as_save_IFS
6819
6820 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6821 ;;
6822esac
6823fi
6824DOTTY=$ac_cv_path_DOTTY
6825if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6827echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829 { echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006831fi
6832
6833
6834if test "$DOTTY" != "echo dotty" ; then
6835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836cat >>confdefs.h <<\_ACEOF
6837#define HAVE_DOTTY 1
6838_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006839
Jeff Cohen28783c32007-01-12 18:22:38 +00006840 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006841 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842 fi
6843
6844cat >>confdefs.h <<_ACEOF
6845#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6846_ACEOF
6847
6848fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006849# Extract the first word of "xdot.py", so it can be a program name with args.
6850set dummy xdot.py; ac_word=$2
6851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_path_XDOT_PY+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 case $XDOT_PY in
6857 [\\/]* | ?:[\\/]*)
6858 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6859 ;;
6860 *)
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6877 ;;
6878esac
6879fi
6880XDOT_PY=$ac_cv_path_XDOT_PY
6881if test -n "$XDOT_PY"; then
6882 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6883echo "${ECHO_T}$XDOT_PY" >&6; }
6884else
6885 { echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6; }
6887fi
6888
6889
6890if test "$XDOT_PY" != "echo xdot.py" ; then
6891
6892cat >>confdefs.h <<\_ACEOF
6893#define HAVE_XDOT_PY 1
6894_ACEOF
6895
6896 if test "$llvm_cv_os_type" = "MingW" ; then
6897 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898 fi
6899
6900cat >>confdefs.h <<_ACEOF
6901#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6902_ACEOF
6903
6904fi
Reid Spencera773bd52006-08-04 18:18:08 +00006905
Reid Spencera773bd52006-08-04 18:18:08 +00006906# Find a good install program. We prefer a C program (faster),
6907# so one script is as good as another. But avoid the broken or
6908# incompatible versions:
6909# SysV /etc/install, /usr/sbin/install
6910# SunOS /usr/etc/install
6911# IRIX /sbin/install
6912# AIX /bin/install
6913# AmigaOS /C/install, which installs bootblocks on floppy discs
6914# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6915# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6916# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6917# OS/2's system install, which has a completely different semantic
6918# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6920echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006921if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922if test "${ac_cv_path_install+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006924else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930 # Account for people who put trailing slashes in PATH elements.
6931case $as_dir/ in
6932 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006935 /usr/ucb/* ) ;;
6936 *)
6937 # OSF1 and SCO ODT 3.0 have their own names for install.
6938 # Don't use installbsd from OSF since it installs stuff as root
6939 # by default.
6940 for ac_prog in ginstall scoinst install; do
6941 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 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 +00006943 if test $ac_prog = install &&
6944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6945 # AIX install. It has an incompatible calling convention.
6946 :
6947 elif test $ac_prog = install &&
6948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6949 # program-specific install script used by HP pwplus--don't use.
6950 :
6951 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6953 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006954 fi
6955 fi
6956 done
6957 done
6958 ;;
6959esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960done
Reid Spencera773bd52006-08-04 18:18:08 +00006961IFS=$as_save_IFS
6962
6963
6964fi
6965 if test "${ac_cv_path_install+set}" = set; then
6966 INSTALL=$ac_cv_path_install
6967 else
6968 # As a last resort, use the slow shell script. Don't cache a
6969 # value for INSTALL within a source directory, because that will
6970 # break other packages using the cache if that directory is
6971 # removed, or if the value is a relative name.
6972 INSTALL=$ac_install_sh
6973 fi
6974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006975{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6976echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006977
6978# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6979# It thinks the first close brace ends the variable substitution.
6980test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6981
6982test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6983
6984test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6985
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006986case "$INSTALL" in
6987 [\\/$]* | ?:[\\/]* ) ;;
6988 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6989esac
Reid Spencera773bd52006-08-04 18:18:08 +00006990
6991# Extract the first word of "bzip2", so it can be a program name with args.
6992set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995if test "${ac_cv_path_BZIP2+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006997else
6998 case $BZIP2 in
6999 [\\/]* | ?:[\\/]*)
7000 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7001 ;;
7002 *)
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 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 +00007010 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007012 break 2
7013 fi
7014done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007015done
Reid Spencera773bd52006-08-04 18:18:08 +00007016IFS=$as_save_IFS
7017
Reid Spencera773bd52006-08-04 18:18:08 +00007018 ;;
7019esac
7020fi
7021BZIP2=$ac_cv_path_BZIP2
7022if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7024echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026 { echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007028fi
7029
7030
mike-m68cb3192010-05-06 23:45:43 +00007031# Extract the first word of "cat", so it can be a program name with args.
7032set dummy cat; ac_word=$2
7033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035if test "${ac_cv_path_CAT+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 case $CAT in
7039 [\\/]* | ?:[\\/]*)
7040 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7041 ;;
7042 *)
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056IFS=$as_save_IFS
7057
7058 ;;
7059esac
7060fi
7061CAT=$ac_cv_path_CAT
7062if test -n "$CAT"; then
7063 { echo "$as_me:$LINENO: result: $CAT" >&5
7064echo "${ECHO_T}$CAT" >&6; }
7065else
7066 { echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6; }
7068fi
7069
7070
Reid Spencera773bd52006-08-04 18:18:08 +00007071# Extract the first word of "doxygen", so it can be a program name with args.
7072set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075if test "${ac_cv_path_DOXYGEN+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007077else
7078 case $DOXYGEN in
7079 [\\/]* | ?:[\\/]*)
7080 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7081 ;;
7082 *)
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 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 +00007090 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007092 break 2
7093 fi
7094done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095done
Reid Spencera773bd52006-08-04 18:18:08 +00007096IFS=$as_save_IFS
7097
Reid Spencera773bd52006-08-04 18:18:08 +00007098 ;;
7099esac
7100fi
7101DOXYGEN=$ac_cv_path_DOXYGEN
7102if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7104echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106 { echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007108fi
7109
7110
Reid Spencera773bd52006-08-04 18:18:08 +00007111# Extract the first word of "groff", so it can be a program name with args.
7112set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115if test "${ac_cv_path_GROFF+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007117else
7118 case $GROFF in
7119 [\\/]* | ?:[\\/]*)
7120 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7121 ;;
7122 *)
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 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 +00007130 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007132 break 2
7133 fi
7134done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135done
Reid Spencera773bd52006-08-04 18:18:08 +00007136IFS=$as_save_IFS
7137
Reid Spencera773bd52006-08-04 18:18:08 +00007138 ;;
7139esac
7140fi
7141GROFF=$ac_cv_path_GROFF
7142if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 { echo "$as_me:$LINENO: result: $GROFF" >&5
7144echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 { echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007148fi
7149
7150
7151# Extract the first word of "gzip", so it can be a program name with args.
7152set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007155if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007157else
Eric Christopher031d3072010-12-10 01:31:51 +00007158 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007159 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007160 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007161 ;;
7162 *)
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007170 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007172 break 2
7173 fi
7174done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175done
Reid Spencera773bd52006-08-04 18:18:08 +00007176IFS=$as_save_IFS
7177
Reid Spencera773bd52006-08-04 18:18:08 +00007178 ;;
7179esac
7180fi
Eric Christopher031d3072010-12-10 01:31:51 +00007181GZIPBIN=$ac_cv_path_GZIPBIN
7182if test -n "$GZIPBIN"; then
7183 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7184echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 { echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007188fi
7189
7190
7191# Extract the first word of "pod2html", so it can be a program name with args.
7192set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195if test "${ac_cv_path_POD2HTML+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007197else
7198 case $POD2HTML in
7199 [\\/]* | ?:[\\/]*)
7200 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7201 ;;
7202 *)
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 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 +00007210 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007212 break 2
7213 fi
7214done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215done
Reid Spencera773bd52006-08-04 18:18:08 +00007216IFS=$as_save_IFS
7217
Reid Spencera773bd52006-08-04 18:18:08 +00007218 ;;
7219esac
7220fi
7221POD2HTML=$ac_cv_path_POD2HTML
7222if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7224echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007228fi
7229
7230
7231# Extract the first word of "pod2man", so it can be a program name with args.
7232set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235if test "${ac_cv_path_POD2MAN+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007237else
7238 case $POD2MAN in
7239 [\\/]* | ?:[\\/]*)
7240 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7241 ;;
7242 *)
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 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 +00007250 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007252 break 2
7253 fi
7254done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255done
Reid Spencera773bd52006-08-04 18:18:08 +00007256IFS=$as_save_IFS
7257
Reid Spencera773bd52006-08-04 18:18:08 +00007258 ;;
7259esac
7260fi
7261POD2MAN=$ac_cv_path_POD2MAN
7262if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7264echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007266 { echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007268fi
7269
7270
mike-m68cb3192010-05-06 23:45:43 +00007271# Extract the first word of "pdfroff", so it can be a program name with args.
7272set dummy pdfroff; ac_word=$2
7273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275if test "${ac_cv_path_PDFROFF+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278 case $PDFROFF in
7279 [\\/]* | ?:[\\/]*)
7280 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7281 ;;
7282 *)
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294done
7295done
7296IFS=$as_save_IFS
7297
7298 ;;
7299esac
7300fi
7301PDFROFF=$ac_cv_path_PDFROFF
7302if test -n "$PDFROFF"; then
7303 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7304echo "${ECHO_T}$PDFROFF" >&6; }
7305else
7306 { echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6; }
7308fi
7309
7310
Reid Spencera773bd52006-08-04 18:18:08 +00007311# Extract the first word of "runtest", so it can be a program name with args.
7312set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315if test "${ac_cv_path_RUNTEST+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007317else
7318 case $RUNTEST in
7319 [\\/]* | ?:[\\/]*)
7320 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7321 ;;
7322 *)
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 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 +00007330 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007332 break 2
7333 fi
7334done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335done
Reid Spencera773bd52006-08-04 18:18:08 +00007336IFS=$as_save_IFS
7337
Reid Spencera773bd52006-08-04 18:18:08 +00007338 ;;
7339esac
7340fi
7341RUNTEST=$ac_cv_path_RUNTEST
7342if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7344echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 { echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007348fi
7349
7350
7351
7352no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7354echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007355
7356# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007358 withval=$with_tclinclude; with_tclinclude=${withval}
7359else
7360 with_tclinclude=''
7361fi
7362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363if test "${ac_cv_path_tclsh+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
7366
7367if test x"${with_tclinclude}" != x ; then
7368 if test -f ${with_tclinclude}/tclsh ; then
7369 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7370 elif test -f ${with_tclinclude}/src/tclsh ; then
7371 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7372 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7374echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7375 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007376 fi
7377fi
Torok Edwin871384f2010-01-26 08:50:50 +00007378fi
7379
Reid Spencera773bd52006-08-04 18:18:08 +00007380
7381if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 { echo "$as_me:$LINENO: result: none" >&5
7383echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007384 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
7385do
7386 # Extract the first word of "$ac_prog", so it can be a program name with args.
7387set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7390if test "${ac_cv_path_TCLSH+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007392else
7393 case $TCLSH in
7394 [\\/]* | ?:[\\/]*)
7395 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7396 ;;
7397 *)
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 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 +00007405 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007407 break 2
7408 fi
7409done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410done
Reid Spencera773bd52006-08-04 18:18:08 +00007411IFS=$as_save_IFS
7412
7413 ;;
7414esac
7415fi
7416TCLSH=$ac_cv_path_TCLSH
7417if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7419echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 { echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007423fi
7424
7425
7426 test -n "$TCLSH" && break
7427done
7428
7429 if test x"${TCLSH}" = x ; then
7430 ac_cv_path_tclsh='';
7431 else
7432 ac_cv_path_tclsh="${TCLSH}";
7433 fi
7434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7436echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007437 TCLSH="${ac_cv_path_tclsh}"
7438
7439fi
7440
Reid Spencera773bd52006-08-04 18:18:08 +00007441# Extract the first word of "zip", so it can be a program name with args.
7442set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445if test "${ac_cv_path_ZIP+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
7448 case $ZIP in
7449 [\\/]* | ?:[\\/]*)
7450 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7451 ;;
7452 *)
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 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 +00007460 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007462 break 2
7463 fi
7464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465done
Reid Spencera773bd52006-08-04 18:18:08 +00007466IFS=$as_save_IFS
7467
Reid Spencera773bd52006-08-04 18:18:08 +00007468 ;;
7469esac
7470fi
7471ZIP=$ac_cv_path_ZIP
7472if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 { echo "$as_me:$LINENO: result: $ZIP" >&5
7474echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 { echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007478fi
7479
7480
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007481for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007482do
7483 # Extract the first word of "$ac_prog", so it can be a program name with args.
7484set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487if test "${ac_cv_path_OCAMLC+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007489else
7490 case $OCAMLC in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 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 +00007502 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007504 break 2
7505 fi
7506done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007508IFS=$as_save_IFS
7509
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007510 ;;
7511esac
7512fi
7513OCAMLC=$ac_cv_path_OCAMLC
7514if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7516echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518 { echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007520fi
7521
7522
Gordon Henriksene7072162008-03-07 18:20:01 +00007523 test -n "$OCAMLC" && break
7524done
7525
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007526for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007527do
7528 # Extract the first word of "$ac_prog", so it can be a program name with args.
7529set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007534else
7535 case $OCAMLOPT in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 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 +00007547 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007549 break 2
7550 fi
7551done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007553IFS=$as_save_IFS
7554
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007555 ;;
7556esac
7557fi
7558OCAMLOPT=$ac_cv_path_OCAMLOPT
7559if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7561echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007565fi
7566
7567
Gordon Henriksene7072162008-03-07 18:20:01 +00007568 test -n "$OCAMLOPT" && break
7569done
7570
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007571for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007572do
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007579else
7580 case $OCAMLDEP in
7581 [\\/]* | ?:[\\/]*)
7582 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7583 ;;
7584 *)
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 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 +00007592 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007594 break 2
7595 fi
7596done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007598IFS=$as_save_IFS
7599
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007600 ;;
7601esac
7602fi
7603OCAMLDEP=$ac_cv_path_OCAMLDEP
7604if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7606echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608 { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007610fi
7611
7612
Gordon Henriksene7072162008-03-07 18:20:01 +00007613 test -n "$OCAMLDEP" && break
7614done
7615
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007616for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007617do
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007624else
7625 case $OCAMLDOC in
7626 [\\/]* | ?:[\\/]*)
7627 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7628 ;;
7629 *)
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 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 +00007637 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007639 break 2
7640 fi
7641done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007643IFS=$as_save_IFS
7644
7645 ;;
7646esac
7647fi
7648OCAMLDOC=$ac_cv_path_OCAMLDOC
7649if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7651echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 { echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007655fi
7656
7657
7658 test -n "$OCAMLDOC" && break
7659done
7660
Torok Edwincc499a42008-10-22 09:56:27 +00007661for ac_prog in gas as
7662do
7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
7664set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_GAS+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007669else
7670 case $GAS in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 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 +00007682 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007684 break 2
7685 fi
7686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687done
Torok Edwincc499a42008-10-22 09:56:27 +00007688IFS=$as_save_IFS
7689
7690 ;;
7691esac
7692fi
7693GAS=$ac_cv_path_GAS
7694if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 { echo "$as_me:$LINENO: result: $GAS" >&5
7696echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698 { echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007700fi
7701
7702
7703 test -n "$GAS" && break
7704done
7705
Reid Spencera773bd52006-08-04 18:18:08 +00007706
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007707{ echo "$as_me:$LINENO: checking for linker version" >&5
7708echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7709if test "${llvm_cv_link_version+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712
7713 version_string="$(ld -v 2>&1 | head -1)"
7714
7715 # Check for ld64.
7716 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007717 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007718 else
7719 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7720 fi
7721
7722fi
7723{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7724echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7725
7726cat >>confdefs.h <<_ACEOF
7727#define HOST_LINK_VERSION "$llvm_cv_link_version"
7728_ACEOF
7729
7730
7731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7733echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7734if test "${llvm_cv_link_use_r+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007736else
7737 ac_ext=c
7738ac_cpp='$CPP $CPPFLAGS'
7739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743 oldcflags="$CFLAGS"
7744 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h. */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007750/* end confdefs.h. */
7751
7752int
7753main ()
7754{
Dan Gohman39ed6782010-04-25 00:12:20 +00007755
Reid Spencera773bd52006-08-04 18:18:08 +00007756 ;
7757 return 0;
7758}
7759_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760rm -f conftest.$ac_objext conftest$ac_exeext
7761if { (ac_try="$ac_link"
7762case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_link") 2>conftest.er1
7768 ac_status=$?
7769 grep -v '^ *+' conftest.er1 >conftest.err
7770 rm -f conftest.er1
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7775 { (case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778esac
7779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_try") 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest$ac_exeext'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007794 llvm_cv_link_use_r=yes
7795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796 echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801
Bill Wendlingebcceee2009-04-18 11:20:33 +00007802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007804 CFLAGS="$oldcflags"
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
7812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7814echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007815if test "$llvm_cv_link_use_r" = yes ; then
7816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817cat >>confdefs.h <<\_ACEOF
7818#define HAVE_LINK_R 1
7819_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007820
7821 fi
7822
7823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7825echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7826if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007828else
7829 ac_ext=c
7830ac_cpp='$CPP $CPPFLAGS'
7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835 oldcflags="$CFLAGS"
7836 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007837 cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h. */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007842/* end confdefs.h. */
7843
7844int
7845main ()
7846{
Dan Gohman39ed6782010-04-25 00:12:20 +00007847
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007848 ;
7849 return 0;
7850}
7851_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852rm -f conftest.$ac_objext conftest$ac_exeext
7853if { (ac_try="$ac_link"
7854case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870esac
7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_try") 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007886 llvm_cv_link_use_export_dynamic=yes
7887else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893
Bill Wendlingebcceee2009-04-18 11:20:33 +00007894rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007896 CFLAGS="$oldcflags"
7897 ac_ext=c
7898ac_cpp='$CPP $CPPFLAGS'
7899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7906echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007907if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909cat >>confdefs.h <<\_ACEOF
7910#define HAVE_LINK_EXPORT_DYNAMIC 1
7911_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007912
7913 fi
7914
7915
Dan Gohmanda612d62010-06-01 14:56:56 +00007916{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7917echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7918if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927 oldcflags="$CFLAGS"
7928
7929 # The following code is from the autoconf manual,
7930 # "11.13: Limitations of Usual Tools".
7931 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7932 # Use mktemp if possible; otherwise fall back on mkdir,
7933 # with $RANDOM to make collisions less likely.
7934 : ${TMPDIR=/tmp}
7935 {
7936 tmp=`
7937 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7938 ` &&
7939 test -n "$tmp" && test -d "$tmp"
7940 } || {
7941 tmp=$TMPDIR/foo$$-$RANDOM
7942 (umask 077 && mkdir "$tmp")
7943 } || exit $?
7944
Dan Gohmanda612d62010-06-01 14:56:56 +00007945 echo "{" > "$tmp/export.map"
7946 echo " global: main;" >> "$tmp/export.map"
7947 echo " local: *;" >> "$tmp/export.map"
7948 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007949
Dan Gohmanda612d62010-06-01 14:56:56 +00007950 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007951 cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957
7958int
7959main ()
7960{
Dan Gohman39ed6782010-04-25 00:12:20 +00007961
Dan Gohman391569c2010-04-16 22:59:06 +00007962 ;
7963 return 0;
7964}
7965_ACEOF
7966rm -f conftest.$ac_objext conftest$ac_exeext
7967if { (ac_try="$ac_link"
7968case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971esac
7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_link") 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7984esac
7985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986 (eval "$ac_try") 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest$ac_exeext'
7991 { (case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994esac
7995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_try") 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008000 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008001else
8002 echo "$as_me: failed program was:" >&5
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
Dan Gohman943005e2010-06-01 16:22:27 +00008005 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008006fi
8007
8008rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008010 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008011 rmdir "$tmp"
8012 CFLAGS="$oldcflags"
8013 ac_ext=c
8014ac_cpp='$CPP $CPPFLAGS'
8015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018
8019
8020fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008021{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8022echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8023if test "$llvm_cv_link_use_version_script" = yes ; then
8024 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008025
8026 fi
8027
8028
Reid Spencera773bd52006-08-04 18:18:08 +00008029
8030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008031{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8032echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8033if test "${ac_cv_c_const+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008041/* end confdefs.h. */
8042
8043int
8044main ()
8045{
8046/* FIXME: Include the comments suggested by Paul. */
8047#ifndef __cplusplus
8048 /* Ultrix mips cc rejects this. */
8049 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008051 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008052 char const *const *ccp;
8053 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008054 /* NEC SVR4.0.2 mips cc rejects this. */
8055 struct point {int x, y;};
8056 static struct point const zero = {0,0};
8057 /* AIX XL C 1.02.0.0 rejects this.
8058 It does not let you subtract one const X* pointer from another in
8059 an arm of an if-expression whose if-part is not a constant
8060 expression */
8061 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008063 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 ++ccp;
8065 p = (char**) ccp;
8066 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008067 { /* SCO 3.2v4 cc rejects this. */
8068 char *t;
8069 char const *s = 0 ? (char *) 0 : (char const *) 0;
8070
8071 *t++ = 0;
8072 if (s) return 0;
8073 }
8074 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8075 int x[] = {25, 17};
8076 const int *foo = &x[0];
8077 ++foo;
8078 }
8079 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8080 typedef const int *iptr;
8081 iptr p = 0;
8082 ++p;
8083 }
8084 { /* AIX XL C 1.02.0.0 rejects this saying
8085 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8086 struct s { int j; const int *ap[3]; };
8087 struct s *b; b->j = 5;
8088 }
8089 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8090 const int foo = 10;
8091 if (!foo) return 0;
8092 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008094#endif
8095
8096 ;
8097 return 0;
8098}
8099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100rm -f conftest.$ac_objext
8101if { (ac_try="$ac_compile"
8102case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105esac
8106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008134 ac_cv_c_const=yes
8135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136 echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141
Reid Spencera773bd52006-08-04 18:18:08 +00008142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008144{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8145echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008146if test $ac_cv_c_const = no; then
8147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148cat >>confdefs.h <<\_ACEOF
8149#define const
8150_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008151
8152fi
8153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154
8155
8156
8157
8158
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008159ac_header_dirent=no
8160for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8162{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8163echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172/* end confdefs.h. */
8173#include <sys/types.h>
8174#include <$ac_hdr>
8175
8176int
8177main ()
8178{
8179if ((DIR *) 0)
8180return 0;
8181 ;
8182 return 0;
8183}
8184_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185rm -f conftest.$ac_objext
8186if { (ac_try="$ac_compile"
8187case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8190esac
8191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest.$ac_objext'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008219 eval "$as_ac_Header=yes"
8220else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008221 echo "$as_me: failed program was:" >&5
8222sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226
Reid Spencera773bd52006-08-04 18:18:08 +00008227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229ac_res=`eval echo '${'$as_ac_Header'}'`
8230 { echo "$as_me:$LINENO: result: $ac_res" >&5
8231echo "${ECHO_T}$ac_res" >&6; }
8232if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008235_ACEOF
8236
8237ac_header_dirent=$ac_hdr; break
8238fi
8239
8240done
8241# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8242if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8244echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8245if test "${ac_cv_search_opendir+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247else
8248 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249cat >conftest.$ac_ext <<_ACEOF
8250/* confdefs.h. */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008254/* end confdefs.h. */
8255
Reid Spencera773bd52006-08-04 18:18:08 +00008256/* Override any GCC internal prototype to avoid an error.
8257 Use char because int might match the return type of a GCC
8258 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008259#ifdef __cplusplus
8260extern "C"
8261#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008262char opendir ();
8263int
8264main ()
8265{
Reid Spencera773bd52006-08-04 18:18:08 +00008266return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008267 ;
8268 return 0;
8269}
8270_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008271for ac_lib in '' dir; do
8272 if test -z "$ac_lib"; then
8273 ac_res="none required"
8274 else
8275 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008277 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278 rm -f conftest.$ac_objext conftest$ac_exeext
8279if { (ac_try="$ac_link"
8280case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283esac
8284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_link") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296esac
8297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008312 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313else
8314 echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319
Bill Wendlingebcceee2009-04-18 11:20:33 +00008320rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321 conftest$ac_exeext
8322 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008323 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008324fi
John Criswell7a73b802003-06-30 21:59:07 +00008325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326if test "${ac_cv_search_opendir+set}" = set; then
8327 :
Reid Spencera773bd52006-08-04 18:18:08 +00008328else
8329 ac_cv_search_opendir=no
8330fi
8331rm conftest.$ac_ext
8332LIBS=$ac_func_search_save_LIBS
8333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8335echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008336ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008339
Reid Spencera773bd52006-08-04 18:18:08 +00008340fi
8341
8342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345if test "${ac_cv_search_opendir+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008347else
8348 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008354/* end confdefs.h. */
8355
8356/* Override any GCC internal prototype to avoid an error.
8357 Use char because int might match the return type of a GCC
8358 builtin and then its argument prototype would still apply. */
8359#ifdef __cplusplus
8360extern "C"
8361#endif
8362char opendir ();
8363int
8364main ()
8365{
8366return opendir ();
8367 ;
8368 return 0;
8369}
8370_ACEOF
8371for ac_lib in '' x; do
8372 if test -z "$ac_lib"; then
8373 ac_res="none required"
8374 else
8375 ac_res=-l$ac_lib
8376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8377 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378 rm -f conftest.$ac_objext conftest$ac_exeext
8379if { (ac_try="$ac_link"
8380case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383esac
8384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_link") 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008412 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413else
8414 echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
Reid Spencera773bd52006-08-04 18:18:08 +00008418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419
Bill Wendlingebcceee2009-04-18 11:20:33 +00008420rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421 conftest$ac_exeext
8422 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008423 break
8424fi
8425done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426if test "${ac_cv_search_opendir+set}" = set; then
8427 :
Reid Spencera773bd52006-08-04 18:18:08 +00008428else
8429 ac_cv_search_opendir=no
8430fi
8431rm conftest.$ac_ext
8432LIBS=$ac_func_search_save_LIBS
8433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008436ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8439
8440fi
8441
8442fi
John Criswell7a73b802003-06-30 21:59:07 +00008443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444
John Criswell7a73b802003-06-30 21:59:07 +00008445for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446do
8447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453fi
8454ac_res=`eval echo '${'$as_ac_Header'}'`
8455 { echo "$as_me:$LINENO: result: $ac_res" >&5
8456echo "${ECHO_T}$ac_res" >&6; }
8457else
8458 # Is the header compilable?
8459{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8460echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8461cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467$ac_includes_default
8468#include <$ac_header>
8469_ACEOF
8470rm -f conftest.$ac_objext
8471if { (ac_try="$ac_compile"
8472case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_try") 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498esac
8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_header_compiler=yes
8505else
8506 echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_compiler=no
8510fi
8511
8512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514echo "${ECHO_T}$ac_header_compiler" >&6; }
8515
8516# Is the header present?
8517{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8519cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
8525#include <$ac_header>
8526_ACEOF
8527if { (ac_try="$ac_cpp conftest.$ac_ext"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } >/dev/null; then
8540 if test -s conftest.err; then
8541 ac_cpp_err=$ac_c_preproc_warn_flag
8542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 else
8544 ac_cpp_err=
8545 fi
8546else
8547 ac_cpp_err=yes
8548fi
8549if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555 ac_header_preproc=no
8556fi
8557
8558rm -f conftest.err conftest.$ac_ext
8559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8560echo "${ECHO_T}$ac_header_preproc" >&6; }
8561
8562# So? What about this header?
8563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8564 yes:no: )
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8569 ac_header_preproc=yes
8570 ;;
8571 no:yes:* )
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8584 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008585## ------------------------------------ ##
8586## Report this to http://llvm.org/bugs/ ##
8587## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588_ASBOX
8589 ) | sed "s/^/$as_me: WARNING: /" >&2
8590 ;;
8591esac
8592{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596else
8597 eval "$as_ac_Header=\$ac_header_preproc"
8598fi
8599ac_res=`eval echo '${'$as_ac_Header'}'`
8600 { echo "$as_me:$LINENO: result: $ac_res" >&5
8601echo "${ECHO_T}$ac_res" >&6; }
8602
8603fi
8604if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008605 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008607_ACEOF
8608
8609fi
8610
8611done
8612
Reid Spencera773bd52006-08-04 18:18:08 +00008613# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008615 enableval=$enable_ltdl_install;
8616fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008617
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619
8620
8621if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008622 INSTALL_LTDL_TRUE=
8623 INSTALL_LTDL_FALSE='#'
8624else
8625 INSTALL_LTDL_TRUE='#'
8626 INSTALL_LTDL_FALSE=
8627fi
8628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629
8630
8631if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008632 CONVENIENCE_LTDL_TRUE=
8633 CONVENIENCE_LTDL_FALSE='#'
8634else
8635 CONVENIENCE_LTDL_TRUE='#'
8636 CONVENIENCE_LTDL_FALSE=
8637fi
8638
8639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008640{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8641echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008642library_names_spec=
8643libname_spec='lib$name'
8644soname_spec=
8645shrext_cmds=".so"
8646postinstall_cmds=
8647postuninstall_cmds=
8648finish_cmds=
8649finish_eval=
8650shlibpath_var=
8651shlibpath_overrides_runpath=unknown
8652version_type=none
8653dynamic_linker="$host_os ld.so"
8654sys_lib_dlsearch_path_spec="/lib /usr/lib"
8655if test "$GCC" = yes; then
8656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8658 # if the path contains ";" then we assume it to be the separator
8659 # otherwise default to the standard path separator (i.e. ":") - it is
8660 # assumed that no part of a normal pathname contains ";" but that should
8661 # okay in the real world where ";" in dirpaths is itself problematic.
8662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8663 else
8664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8665 fi
8666else
8667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8668fi
8669need_lib_prefix=unknown
8670hardcode_into_libs=no
8671
8672# when you set need_version to no, make sure it does not cause -set_version
8673# flags to be left without arguments
8674need_version=unknown
8675
8676case $host_os in
8677aix3*)
8678 version_type=linux
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8680 shlibpath_var=LIBPATH
8681
8682 # AIX 3 has no versioning support, so we append a major version to the name.
8683 soname_spec='${libname}${release}${shared_ext}$major'
8684 ;;
8685
8686aix4* | aix5*)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 hardcode_into_libs=yes
8691 if test "$host_cpu" = ia64; then
8692 # AIX 5 supports IA64
8693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8694 shlibpath_var=LD_LIBRARY_PATH
8695 else
8696 # With GCC up to 2.95.x, collect2 would create an import file
8697 # for dependence libraries. The import file would start with
8698 # the line `#! .'. This would cause the generated library to
8699 # depend on `.', always an invalid library. This was fixed in
8700 # development snapshots of GCC prior to 3.0.
8701 case $host_os in
8702 aix4 | aix4.[01] | aix4.[01].*)
8703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8704 echo ' yes '
8705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8706 :
8707 else
8708 can_build_shared=no
8709 fi
8710 ;;
8711 esac
8712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8713 # soname into executable. Probably we can add versioning support to
8714 # collect2, so additional links can be useful in future.
8715 if test "$aix_use_runtimelinking" = yes; then
8716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8717 # instead of lib<name>.a to let people know that these are not
8718 # typical AIX shared libraries.
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720 else
8721 # We preserve .a as extension for shared libraries through AIX4.2
8722 # and later when we are not doing run time linking.
8723 library_names_spec='${libname}${release}.a $libname.a'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 fi
8726 shlibpath_var=LIBPATH
8727 fi
8728 ;;
8729
8730amigaos*)
8731 library_names_spec='$libname.ixlibrary $libname.a'
8732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8733 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'
8734 ;;
8735
8736beos*)
8737 library_names_spec='${libname}${shared_ext}'
8738 dynamic_linker="$host_os ld.so"
8739 shlibpath_var=LIBRARY_PATH
8740 ;;
8741
8742bsdi[45]*)
8743 version_type=linux
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8751 # the default ld.so.conf also contains /usr/contrib/lib and
8752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8753 # libtool to hard-code these into programs
8754 ;;
8755
8756cygwin* | mingw* | pw32*)
8757 version_type=windows
8758 shrext_cmds=".dll"
8759 need_version=no
8760 need_lib_prefix=no
8761
8762 case $GCC,$host_os in
8763 yes,cygwin* | yes,mingw* | yes,pw32*)
8764 library_names_spec='$libname.dll.a'
8765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8766 postinstall_cmds='base_file=`basename \${file}`~
8767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8768 dldir=$destdir/`dirname \$dlpath`~
8769 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008770 $install_prog $dir/$dlname \$dldir/$dlname~
8771 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8773 dlpath=$dir/\$dldll~
8774 $rm \$dlpath'
8775 shlibpath_overrides_runpath=yes
8776
8777 case $host_os in
8778 cygwin*)
8779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8782 ;;
8783 mingw*)
8784 # MinGW DLLs use traditional 'lib' prefix
8785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8788 # It is most probably a Windows format PATH printed by
8789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8790 # path with ; separators, and with drive letters. We can handle the
8791 # drive letters (cygwin fileutils understands them), so leave them,
8792 # especially as we might pass files found there to a mingw objdump,
8793 # which wouldn't understand a cygwinified path. Ahh.
8794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795 else
8796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8797 fi
8798 ;;
8799 pw32*)
8800 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008801 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 +00008802 ;;
8803 esac
8804 ;;
8805
8806 *)
8807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8808 ;;
8809 esac
8810 dynamic_linker='Win32 ld.exe'
8811 # FIXME: first we should search . and the directory the executable is in
8812 shlibpath_var=PATH
8813 ;;
8814
8815darwin* | rhapsody*)
8816 dynamic_linker="$host_os dyld"
8817 version_type=darwin
8818 need_lib_prefix=no
8819 need_version=no
8820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8821 soname_spec='${libname}${release}${major}$shared_ext'
8822 shlibpath_overrides_runpath=yes
8823 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008824 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8826 if test "$GCC" = yes; then
8827 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"`
8828 else
8829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8830 fi
8831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8832 ;;
8833
8834dgux*)
8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 ;;
8842
Eric Christopher360fa9a2011-10-26 00:42:12 +00008843freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008844 dynamic_linker=no
8845 ;;
8846
8847kfreebsd*-gnu)
8848 version_type=linux
8849 need_lib_prefix=no
8850 need_version=no
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=no
8855 hardcode_into_libs=yes
8856 dynamic_linker='GNU ld.so'
8857 ;;
8858
Reid Spencera773bd52006-08-04 18:18:08 +00008859freebsd* | dragonfly*)
8860 # DragonFly does not have aout. When/if they implement a new
8861 # versioning mechanism, adjust this.
8862 if test -x /usr/bin/objformat; then
8863 objformat=`/usr/bin/objformat`
8864 else
8865 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008866 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008867 *) objformat=elf ;;
8868 esac
8869 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008870 version_type=freebsd-$objformat
8871 case $version_type in
8872 freebsd-elf*)
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8874 need_version=no
8875 need_lib_prefix=no
8876 ;;
8877 freebsd-*)
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8879 need_version=yes
8880 ;;
8881 esac
8882 shlibpath_var=LD_LIBRARY_PATH
8883 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008884 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008885 shlibpath_overrides_runpath=yes
8886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008887 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008888 shlibpath_overrides_runpath=yes
8889 hardcode_into_libs=yes
8890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008893 shlibpath_overrides_runpath=no
8894 hardcode_into_libs=yes
8895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008896 freebsd*) # from 4.6 on
8897 shlibpath_overrides_runpath=yes
8898 hardcode_into_libs=yes
8899 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008900 esac
8901 ;;
8902
8903gnu*)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 hardcode_into_libs=yes
8911 ;;
8912
8913hpux9* | hpux10* | hpux11*)
8914 # Give a soname corresponding to the major version so that dld.sl refuses to
8915 # link against other versions.
8916 version_type=sunos
8917 need_lib_prefix=no
8918 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008919 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008920 ia64*)
8921 shrext_cmds='.so'
8922 hardcode_into_libs=yes
8923 dynamic_linker="$host_os dld.so"
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 if test "X$HPUX_IA64_MODE" = X32; then
8929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8930 else
8931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8932 fi
8933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8934 ;;
8935 hppa*64*)
8936 shrext_cmds='.sl'
8937 hardcode_into_libs=yes
8938 dynamic_linker="$host_os dld.sl"
8939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945 ;;
8946 *)
8947 shrext_cmds='.sl'
8948 dynamic_linker="$host_os dld.sl"
8949 shlibpath_var=SHLIB_PATH
8950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 ;;
8954 esac
8955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8956 postinstall_cmds='chmod 555 $lib'
8957 ;;
8958
Reid Spencera773bd52006-08-04 18:18:08 +00008959interix3*)
8960 version_type=linux
8961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 hardcode_into_libs=yes
8969 ;;
8970
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008971irix5* | irix6* | nonstopux*)
8972 case $host_os in
8973 nonstopux*) version_type=nonstopux ;;
8974 *)
8975 if test "$lt_cv_prog_gnu_ld" = yes; then
8976 version_type=linux
8977 else
8978 version_type=irix
8979 fi ;;
8980 esac
8981 need_lib_prefix=no
8982 need_version=no
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8985 case $host_os in
8986 irix5* | nonstopux*)
8987 libsuff= shlibsuff=
8988 ;;
8989 *)
8990 case $LD in # libtool.m4 will add one of these switches to LD
8991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8992 libsuff= shlibsuff= libmagic=32-bit;;
8993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8994 libsuff=32 shlibsuff=N32 libmagic=N32;;
8995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8997 *) libsuff= shlibsuff= libmagic=never-match;;
8998 esac
8999 ;;
9000 esac
9001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9002 shlibpath_overrides_runpath=no
9003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9005 hardcode_into_libs=yes
9006 ;;
9007
9008# No shared lib support for Linux oldld, aout, or coff.
9009linux*oldld* | linux*aout* | linux*coff*)
9010 dynamic_linker=no
9011 ;;
9012
9013# This must be Linux ELF.
9014linux*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 # This implies no fast_install, which is unacceptable.
9024 # Some rework will be needed to allow for fast_install
9025 # before this can be enabled.
9026 hardcode_into_libs=yes
9027
9028 # Append ld.so.conf contents to the search path
9029 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009030 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 +00009031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9032 fi
9033
9034 # We used to test for /lib/ld.so.1 and disable shared libraries on
9035 # powerpc, because MkLinux only supported shared libraries with the
9036 # GNU dynamic linker. Since this was broken with cross compilers,
9037 # most powerpc-linux boxes support dynamic linking these days and
9038 # people can always --disable-shared, the test was removed, and we
9039 # assume the GNU/Linux dynamic linker is in use.
9040 dynamic_linker='GNU/Linux ld.so'
9041 ;;
9042
9043knetbsd*-gnu)
9044 version_type=linux
9045 need_lib_prefix=no
9046 need_version=no
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=no
9051 hardcode_into_libs=yes
9052 dynamic_linker='GNU ld.so'
9053 ;;
9054
9055netbsd*)
9056 version_type=sunos
9057 need_lib_prefix=no
9058 need_version=no
9059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9062 dynamic_linker='NetBSD (a.out) ld.so'
9063 else
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 dynamic_linker='NetBSD ld.elf_so'
9067 fi
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 hardcode_into_libs=yes
9071 ;;
9072
9073newsos6)
9074 version_type=linux
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9078 ;;
9079
9080nto-qnx*)
9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes
9088 ;;
9089
9090openbsd*)
9091 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009092 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009093 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9095 case $host_os in
9096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9097 *) need_version=no ;;
9098 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9103 case $host_os in
9104 openbsd2.[89] | openbsd2.[89].*)
9105 shlibpath_overrides_runpath=no
9106 ;;
9107 *)
9108 shlibpath_overrides_runpath=yes
9109 ;;
9110 esac
9111 else
9112 shlibpath_overrides_runpath=yes
9113 fi
9114 ;;
9115
9116os2*)
9117 libname_spec='$name'
9118 shrext_cmds=".dll"
9119 need_lib_prefix=no
9120 library_names_spec='$libname${shared_ext} $libname.a'
9121 dynamic_linker='OS/2 ld.exe'
9122 shlibpath_var=LIBPATH
9123 ;;
9124
9125osf3* | osf4* | osf5*)
9126 version_type=osf
9127 need_lib_prefix=no
9128 need_version=no
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9134 ;;
9135
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136solaris*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9145 # ldd complains unless libraries are executable
9146 postinstall_cmds='chmod +x $lib'
9147 ;;
9148
9149sunos4*)
9150 version_type=sunos
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 if test "$with_gnu_ld" = yes; then
9156 need_lib_prefix=no
9157 fi
9158 need_version=yes
9159 ;;
9160
Reid Spencera773bd52006-08-04 18:18:08 +00009161sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162 version_type=linux
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 case $host_vendor in
9167 sni)
9168 shlibpath_overrides_runpath=no
9169 need_lib_prefix=no
9170 export_dynamic_flag_spec='${wl}-Blargedynsym'
9171 runpath_var=LD_RUN_PATH
9172 ;;
9173 siemens)
9174 need_lib_prefix=no
9175 ;;
9176 motorola)
9177 need_lib_prefix=no
9178 need_version=no
9179 shlibpath_overrides_runpath=no
9180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9181 ;;
9182 esac
9183 ;;
9184
9185sysv4*MP*)
9186 if test -d /usr/nec ;then
9187 version_type=linux
9188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9189 soname_spec='$libname${shared_ext}.$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 fi
9192 ;;
9193
Reid Spencera773bd52006-08-04 18:18:08 +00009194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9195 version_type=freebsd-elf
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 hardcode_into_libs=yes
9202 if test "$with_gnu_ld" = yes; then
9203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9204 shlibpath_overrides_runpath=no
9205 else
9206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9207 shlibpath_overrides_runpath=yes
9208 case $host_os in
9209 sco3.2v5*)
9210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9211 ;;
9212 esac
9213 fi
9214 sys_lib_dlsearch_path_spec='/usr/lib'
9215 ;;
9216
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217uts4*)
9218 version_type=linux
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 ;;
9223
9224*)
9225 dynamic_linker=no
9226 ;;
9227esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9229echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230test "$dynamic_linker" = no && can_build_shared=no
9231
Reid Spencera773bd52006-08-04 18:18:08 +00009232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9233if test "$GCC" = yes; then
9234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9235fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009236
Reid Spencera773bd52006-08-04 18:18:08 +00009237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009238{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9239echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9240if test "${libltdl_cv_shlibext+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242else
9243
9244module=yes
9245eval libltdl_cv_shlibext=$shrext_cmds
9246
9247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009248{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9249echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250if test -n "$libltdl_cv_shlibext"; then
9251
9252cat >>confdefs.h <<_ACEOF
9253#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9254_ACEOF
9255
9256fi
9257
9258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9260echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9261if test "${libltdl_cv_shlibpath_var+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009263else
9264 libltdl_cv_shlibpath_var="$shlibpath_var"
9265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009266{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9267echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009268if test -n "$libltdl_cv_shlibpath_var"; then
9269
9270cat >>confdefs.h <<_ACEOF
9271#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9272_ACEOF
9273
9274fi
9275
9276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9278echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9279if test "${libltdl_cv_sys_search_path+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009281else
9282 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009284{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9285echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286if test -n "$libltdl_cv_sys_search_path"; then
9287 sys_search_path=
9288 for dir in $libltdl_cv_sys_search_path; do
9289 if test -z "$sys_search_path"; then
9290 sys_search_path="$dir"
9291 else
9292 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9293 fi
9294 done
9295
9296cat >>confdefs.h <<_ACEOF
9297#define LTDL_SYSSEARCHPATH "$sys_search_path"
9298_ACEOF
9299
9300fi
9301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302{ echo "$as_me:$LINENO: checking for objdir" >&5
9303echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9304if test "${libltdl_cv_objdir+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306else
9307 libltdl_cv_objdir="$objdir"
9308 if test -n "$objdir"; then
9309 :
9310 else
9311 rm -f .libs 2>/dev/null
9312 mkdir .libs 2>/dev/null
9313 if test -d .libs; then
9314 libltdl_cv_objdir=.libs
9315 else
9316 # MS-DOS does not allow filenames that begin with a dot.
9317 libltdl_cv_objdir=_libs
9318 fi
9319 rmdir .libs 2>/dev/null
9320 fi
9321
9322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009323{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9324echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325
9326cat >>confdefs.h <<_ACEOF
9327#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9328_ACEOF
9329
9330
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331
9332
9333
9334
9335# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009336{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9337echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9338if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340else
9341
9342# These are sane defaults that work on at least a few old systems.
9343# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9344
9345# Character class describing NM global symbol codes.
9346symcode='[BCDEGRST]'
9347
9348# Regexp to match symbols that can be accessed directly from C.
9349sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9350
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351# Transform an extracted symbol line into a proper C declaration
9352lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9353
9354# Transform an extracted symbol line into symbol name and symbol address
9355lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9356
9357# Define system-specific variables.
9358case $host_os in
9359aix*)
9360 symcode='[BCDT]'
9361 ;;
9362cygwin* | mingw* | pw32*)
9363 symcode='[ABCDGISTW]'
9364 ;;
9365hpux*) # Its linker distinguishes data from code symbols
9366 if test "$host_cpu" = ia64; then
9367 symcode='[ABCDEGRST]'
9368 fi
9369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9370 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'"
9371 ;;
9372linux*)
9373 if test "$host_cpu" = ia64; then
9374 symcode='[ABCDGIRSTW]'
9375 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9376 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'"
9377 fi
9378 ;;
9379irix* | nonstopux*)
9380 symcode='[BCDEGRST]'
9381 ;;
9382osf*)
9383 symcode='[BCDEGQRST]'
9384 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009385solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386 symcode='[BDRT]'
9387 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009388sco3.2v5*)
9389 symcode='[DT]'
9390 ;;
9391sysv4.2uw2*)
9392 symcode='[DT]'
9393 ;;
9394sysv5* | sco5v6* | unixware* | OpenUNIX*)
9395 symcode='[ABDT]'
9396 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397sysv4)
9398 symcode='[DFNSTU]'
9399 ;;
9400esac
9401
9402# Handle CRLF in mingw tool chain
9403opt_cr=
9404case $build_os in
9405mingw*)
9406 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9407 ;;
9408esac
9409
9410# If we're using GNU nm, then use its standard symbol codes.
9411case `$NM -V 2>&1` in
9412*GNU* | *'with BFD'*)
9413 symcode='[ABCDGIRSTW]' ;;
9414esac
9415
9416# Try without a prefix undercore, then with it.
9417for ac_symprfx in "" "_"; do
9418
Reid Spencera773bd52006-08-04 18:18:08 +00009419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9420 symxfrm="\\1 $ac_symprfx\\2 \\2"
9421
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009422 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009423 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 +00009424
9425 # Check to see that the pipe works correctly.
9426 pipe_works=no
9427
9428 rm -f conftest*
9429 cat > conftest.$ac_ext <<EOF
9430#ifdef __cplusplus
9431extern "C" {
9432#endif
9433char nm_test_var;
9434void nm_test_func(){}
9435#ifdef __cplusplus
9436}
9437#endif
9438int main(){nm_test_var='a';nm_test_func();return(0);}
9439EOF
9440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442 (eval $ac_compile) 2>&5
9443 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009446 # Now try to grab the symbols.
9447 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009448 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 +00009449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9450 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453 # Try sorting and uniquifying the output.
9454 if sort "$nlist" | uniq > "$nlist"T; then
9455 mv -f "$nlist"T "$nlist"
9456 else
9457 rm -f "$nlist"T
9458 fi
9459
9460 # Make sure that we snagged all the symbols we need.
9461 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9462 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9463 cat <<EOF > conftest.$ac_ext
9464#ifdef __cplusplus
9465extern "C" {
9466#endif
9467
9468EOF
9469 # Now generate the symbol file.
9470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9471
9472 cat <<EOF >> conftest.$ac_ext
9473#if defined (__STDC__) && __STDC__
9474# define lt_ptr_t void *
9475#else
9476# define lt_ptr_t char *
9477# define const
9478#endif
9479
9480/* The mapping between symbol names and symbols. */
9481const struct {
9482 const char *name;
9483 lt_ptr_t address;
9484}
9485lt_preloaded_symbols[] =
9486{
9487EOF
9488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9489 cat <<\EOF >> conftest.$ac_ext
9490 {0, (lt_ptr_t) 0}
9491};
9492
9493#ifdef __cplusplus
9494}
9495#endif
9496EOF
9497 # Now try linking the two files.
9498 mv conftest.$ac_objext conftstm.$ac_objext
9499 lt_save_LIBS="$LIBS"
9500 lt_save_CFLAGS="$CFLAGS"
9501 LIBS="conftstm.$ac_objext"
9502 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009504 (eval $ac_link) 2>&5
9505 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009508 pipe_works=yes
9509 fi
9510 LIBS="$lt_save_LIBS"
9511 CFLAGS="$lt_save_CFLAGS"
9512 else
9513 echo "cannot find nm_test_func in $nlist" >&5
9514 fi
9515 else
9516 echo "cannot find nm_test_var in $nlist" >&5
9517 fi
9518 else
9519 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9520 fi
9521 else
9522 echo "$progname: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 fi
9525 rm -f conftest* conftst*
9526
9527 # Do not use the global_symbol_pipe unless it works.
9528 if test "$pipe_works" = yes; then
9529 break
9530 else
9531 lt_cv_sys_global_symbol_pipe=
9532 fi
9533done
9534
9535fi
9536
9537if test -z "$lt_cv_sys_global_symbol_pipe"; then
9538 lt_cv_sys_global_symbol_to_cdecl=
9539fi
9540if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009541 { echo "$as_me:$LINENO: result: failed" >&5
9542echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 { echo "$as_me:$LINENO: result: ok" >&5
9545echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009546fi
9547
9548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9550echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9551if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553else
9554 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9555 libltdl_cv_preloaded_symbols=yes
9556 else
9557 libltdl_cv_preloaded_symbols=no
9558 fi
9559
9560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009561{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9562echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009565cat >>confdefs.h <<\_ACEOF
9566#define HAVE_PRELOADED_SYMBOLS 1
9567_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009568
9569fi
9570
9571LIBADD_DL=
9572
9573ac_ext=c
9574ac_cpp='$CPP $CPPFLAGS'
9575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577ac_compiler_gnu=$ac_cv_c_compiler_gnu
9578
9579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009580{ echo "$as_me:$LINENO: checking for shl_load" >&5
9581echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9582if test "${ac_cv_func_shl_load+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584else
9585 cat >conftest.$ac_ext <<_ACEOF
9586/* confdefs.h. */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
9590/* end confdefs.h. */
9591/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595/* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char shl_load (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
9599
9600#ifdef __STDC__
9601# include <limits.h>
9602#else
9603# include <assert.h>
9604#endif
9605
9606#undef shl_load
9607
9608/* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9611#ifdef __cplusplus
9612extern "C"
9613#endif
9614char shl_load ();
9615/* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618#if defined __stub_shl_load || defined __stub___shl_load
9619choke me
9620#endif
9621
9622int
9623main ()
9624{
9625return shl_load ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (ac_try="$ac_link"
9632case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648esac
9649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_func_shl_load=yes
9665else
9666 echo "$as_me: failed program was:" >&5
9667sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_cv_func_shl_load=no
9670fi
9671
9672rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674fi
9675{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9676echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9677if test $ac_cv_func_shl_load = yes; then
9678
9679cat >>confdefs.h <<\_ACEOF
9680#define HAVE_SHL_LOAD 1
9681_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682
9683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009684 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9685echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9686if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688else
9689 ac_check_lib_save_LIBS=$LIBS
9690LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009691cat >conftest.$ac_ext <<_ACEOF
9692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696/* end confdefs.h. */
9697
Reid Spencera773bd52006-08-04 18:18:08 +00009698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701#ifdef __cplusplus
9702extern "C"
9703#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009704char shl_load ();
9705int
9706main ()
9707{
Reid Spencera773bd52006-08-04 18:18:08 +00009708return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709 ;
9710 return 0;
9711}
9712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009713rm -f conftest.$ac_objext conftest$ac_exeext
9714if { (ac_try="$ac_link"
9715case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_try") 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747 ac_cv_lib_dld_shl_load=yes
9748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009749 echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009754
Bill Wendlingebcceee2009-04-18 11:20:33 +00009755rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009756 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757LIBS=$ac_check_lib_save_LIBS
9758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009759{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9761if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763cat >>confdefs.h <<\_ACEOF
9764#define HAVE_SHL_LOAD 1
9765_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766
9767 LIBADD_DL="$LIBADD_DL -ldld"
9768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9771if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773else
9774 ac_check_lib_save_LIBS=$LIBS
9775LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009776cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781/* end confdefs.h. */
9782
Reid Spencera773bd52006-08-04 18:18:08 +00009783/* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786#ifdef __cplusplus
9787extern "C"
9788#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789char dlopen ();
9790int
9791main ()
9792{
Reid Spencera773bd52006-08-04 18:18:08 +00009793return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794 ;
9795 return 0;
9796}
9797_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (ac_try="$ac_link"
9800case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803esac
9804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_link") 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9813 { (case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_try") 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
9822 { ac_try='test -s conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832 ac_cv_lib_dl_dlopen=yes
9833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839
Bill Wendlingebcceee2009-04-18 11:20:33 +00009840rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842LIBS=$ac_check_lib_save_LIBS
9843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9845echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9846if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009848cat >>confdefs.h <<\_ACEOF
9849#define HAVE_LIBDL 1
9850_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851
9852 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009854 cat >conftest.$ac_ext <<_ACEOF
9855/* confdefs.h. */
9856_ACEOF
9857cat confdefs.h >>conftest.$ac_ext
9858cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859/* end confdefs.h. */
9860#if HAVE_DLFCN_H
9861# include <dlfcn.h>
9862#endif
9863
9864int
9865main ()
9866{
9867dlopen(0, 0);
9868 ;
9869 return 0;
9870}
9871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009872rm -f conftest.$ac_objext conftest$ac_exeext
9873if { (ac_try="$ac_link"
9874case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_link") 2>conftest.er1
9880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907cat >>confdefs.h <<\_ACEOF
9908#define HAVE_LIBDL 1
9909_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910 libltdl_cv_func_dlopen="yes"
9911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9916echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9917if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919else
9920 ac_check_lib_save_LIBS=$LIBS
9921LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009922cat >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
Reid Spencera773bd52006-08-04 18:18:08 +00009929/* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932#ifdef __cplusplus
9933extern "C"
9934#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935char dlopen ();
9936int
9937main ()
9938{
Reid Spencera773bd52006-08-04 18:18:08 +00009939return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940 ;
9941 return 0;
9942}
9943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009944rm -f conftest.$ac_objext conftest$ac_exeext
9945if { (ac_try="$ac_link"
9946case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9949esac
9950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_link") 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978 ac_cv_lib_svld_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 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985
Bill Wendlingebcceee2009-04-18 11:20:33 +00009986rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009987 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988LIBS=$ac_check_lib_save_LIBS
9989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009990{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9991echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9992if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994cat >>confdefs.h <<\_ACEOF
9995#define HAVE_LIBDL 1
9996_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997
9998 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010000 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10001echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10002if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004else
10005 ac_check_lib_save_LIBS=$LIBS
10006LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010007cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h. */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012/* end confdefs.h. */
10013
Reid Spencera773bd52006-08-04 18:18:08 +000010014/* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017#ifdef __cplusplus
10018extern "C"
10019#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020char dld_link ();
10021int
10022main ()
10023{
Reid Spencera773bd52006-08-04 18:18:08 +000010024return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010025 ;
10026 return 0;
10027}
10028_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010029rm -f conftest.$ac_objext conftest$ac_exeext
10030if { (ac_try="$ac_link"
10031case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034esac
10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047esac
10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063 ac_cv_lib_dld_dld_link=yes
10064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010070
Bill Wendlingebcceee2009-04-18 11:20:33 +000010071rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010072 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073LIBS=$ac_check_lib_save_LIBS
10074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10076echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10077if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079cat >>confdefs.h <<\_ACEOF
10080#define HAVE_DLD 1
10081_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082
10083 LIBADD_DL="$LIBADD_DL -ldld"
10084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010085 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10086echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10087if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10098#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010100/* System header to define __stub macros and hopefully few prototypes,
10101 which can conflict with char _dyld_func_lookup (); below.
10102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10103 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010105#ifdef __STDC__
10106# include <limits.h>
10107#else
10108# include <assert.h>
10109#endif
10110
10111#undef _dyld_func_lookup
10112
10113/* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10116#ifdef __cplusplus
10117extern "C"
10118#endif
10119char _dyld_func_lookup ();
10120/* The GNU C library defines this for functions which it implements
10121 to always fail with ENOSYS. Some functions are actually named
10122 something starting with __ and the normal name is an alias. */
10123#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10124choke me
10125#endif
10126
10127int
10128main ()
10129{
10130return _dyld_func_lookup ();
10131 ;
10132 return 0;
10133}
10134_ACEOF
10135rm -f conftest.$ac_objext conftest$ac_exeext
10136if { (ac_try="$ac_link"
10137case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140esac
10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153esac
10154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_try") 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_func__dyld_func_lookup=yes
10170else
10171 echo "$as_me: failed program was:" >&5
10172sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175fi
Reid Spencera773bd52006-08-04 18:18:08 +000010176
Bill Wendlingebcceee2009-04-18 11:20:33 +000010177rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010178 conftest$ac_exeext conftest.$ac_ext
10179fi
10180{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10181echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10182if test $ac_cv_func__dyld_func_lookup = yes; then
10183
10184cat >>confdefs.h <<\_ACEOF
10185#define HAVE_DYLD 1
10186_ACEOF
10187
10188fi
10189
10190
10191fi
10192
10193
10194fi
10195
10196
10197fi
10198
10199rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201
10202fi
10203
10204
10205fi
10206
10207
10208fi
10209
10210
10211if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10212then
10213 lt_save_LIBS="$LIBS"
10214 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010215
10216for ac_func in dlerror
10217do
10218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10219{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10221if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h. */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h. */
10230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10232#define $ac_func innocuous_$ac_func
10233
10234/* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char $ac_func (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
10238
10239#ifdef __STDC__
10240# include <limits.h>
10241#else
10242# include <assert.h>
10243#endif
10244
10245#undef $ac_func
10246
10247/* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250#ifdef __cplusplus
10251extern "C"
10252#endif
10253char $ac_func ();
10254/* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257#if defined __stub_$ac_func || defined __stub___$ac_func
10258choke me
10259#endif
10260
10261int
10262main ()
10263{
10264return $ac_func ();
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274esac
10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287esac
10288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 eval "$as_ac_var=yes"
10304else
10305 echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 eval "$as_ac_var=no"
10309fi
10310
10311rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313fi
10314ac_res=`eval echo '${'$as_ac_var'}'`
10315 { echo "$as_me:$LINENO: result: $ac_res" >&5
10316echo "${ECHO_T}$ac_res" >&6; }
10317if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320_ACEOF
10321
10322fi
10323done
10324
10325 LIBS="$lt_save_LIBS"
10326fi
10327ac_ext=c
10328ac_cpp='$CPP $CPPFLAGS'
10329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332
10333
10334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010335{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10336echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10337if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339else
10340 ac_cv_sys_symbol_underscore=no
10341 cat > conftest.$ac_ext <<EOF
10342void nm_test_func(){}
10343int main(){nm_test_func;return 0;}
10344EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 (eval $ac_compile) 2>&5
10347 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350 # Now try to grab the symbols.
10351 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010352 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 +000010353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10354 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357 # See whether the symbols have a leading underscore.
10358 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10359 ac_cv_sys_symbol_underscore=yes
10360 else
10361 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10362 :
10363 else
10364 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10365 fi
10366 fi
10367 else
10368 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10369 fi
10370 else
10371 echo "configure: failed program was:" >&5
10372 cat conftest.c >&5
10373 fi
10374 rm -rf conftest*
10375
10376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010377{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10378echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379
10380
10381if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10382 if test x"$libltdl_cv_func_dlopen" = xyes ||
10383 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010384 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10385echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10386if test "${libltdl_cv_need_uscore+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388else
10389 libltdl_cv_need_uscore=unknown
10390 save_LIBS="$LIBS"
10391 LIBS="$LIBS $LIBADD_DL"
10392 if test "$cross_compiling" = yes; then :
10393 libltdl_cv_need_uscore=cross
10394else
10395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396 lt_status=$lt_dlunknown
10397 cat > conftest.$ac_ext <<EOF
Benjamin Kramer8c3d2582012-03-07 17:07:20 +000010398#line 10398 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399#include "confdefs.h"
10400
10401#if HAVE_DLFCN_H
10402#include <dlfcn.h>
10403#endif
10404
10405#include <stdio.h>
10406
10407#ifdef RTLD_GLOBAL
10408# define LT_DLGLOBAL RTLD_GLOBAL
10409#else
10410# ifdef DL_GLOBAL
10411# define LT_DLGLOBAL DL_GLOBAL
10412# else
10413# define LT_DLGLOBAL 0
10414# endif
10415#endif
10416
10417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418 find out it does not work in some platform. */
10419#ifndef LT_DLLAZY_OR_NOW
10420# ifdef RTLD_LAZY
10421# define LT_DLLAZY_OR_NOW RTLD_LAZY
10422# else
10423# ifdef DL_LAZY
10424# define LT_DLLAZY_OR_NOW DL_LAZY
10425# else
10426# ifdef RTLD_NOW
10427# define LT_DLLAZY_OR_NOW RTLD_NOW
10428# else
10429# ifdef DL_NOW
10430# define LT_DLLAZY_OR_NOW DL_NOW
10431# else
10432# define LT_DLLAZY_OR_NOW 0
10433# endif
10434# endif
10435# endif
10436# endif
10437#endif
10438
10439#ifdef __cplusplus
10440extern "C" void exit (int);
10441#endif
10442
10443void fnord() { int i=42;}
10444int main ()
10445{
10446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447 int status = $lt_dlunknown;
10448
10449 if (self)
10450 {
10451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453 /* dlclose (self); */
10454 }
Reid Spencera773bd52006-08-04 18:18:08 +000010455 else
10456 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457
10458 exit (status);
10459}
10460EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 (eval $ac_link) 2>&5
10463 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010466 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467 lt_status=$?
10468 case x$lt_status in
10469 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10470 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010471 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472 esac
10473 else :
10474 # compilation failed
10475
10476 fi
10477fi
10478rm -fr conftest*
10479
10480 LIBS="$save_LIBS"
10481
10482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010483{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10484echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 fi
10486fi
10487
10488if test x"$libltdl_cv_need_uscore" = xyes; then
10489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010490cat >>confdefs.h <<\_ACEOF
10491#define NEED_USCORE 1
10492_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493
10494fi
10495
10496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10498echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10499if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501else
10502 # PORTME does your system automatically load deplibs for dlopen?
10503 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10504 # For now, we just catch OSes we know something about -- in the
10505 # future, we'll try test this programmatically.
10506 libltdl_cv_sys_dlopen_deplibs=unknown
10507 case "$host_os" in
10508 aix3*|aix4.1.*|aix4.2.*)
10509 # Unknown whether this is true for these versions of AIX, but
10510 # we want this `case' here to explicitly catch those versions.
10511 libltdl_cv_sys_dlopen_deplibs=unknown
10512 ;;
10513 aix[45]*)
10514 libltdl_cv_sys_dlopen_deplibs=yes
10515 ;;
10516 darwin*)
10517 # Assuming the user has installed a libdl from somewhere, this is true
10518 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10519 libltdl_cv_sys_dlopen_deplibs=yes
10520 ;;
10521 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10522 # GNU and its variants, using gnu ld.so (Glibc)
10523 libltdl_cv_sys_dlopen_deplibs=yes
10524 ;;
10525 hpux10*|hpux11*)
10526 libltdl_cv_sys_dlopen_deplibs=yes
10527 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010528 interix*)
10529 libltdl_cv_sys_dlopen_deplibs=yes
10530 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531 irix[12345]*|irix6.[01]*)
10532 # Catch all versions of IRIX before 6.2, and indicate that we don't
10533 # know how it worked for any of those versions.
10534 libltdl_cv_sys_dlopen_deplibs=unknown
10535 ;;
10536 irix*)
10537 # The case above catches anything before 6.2, and it's known that
10538 # at 6.2 and later dlopen does load deplibs.
10539 libltdl_cv_sys_dlopen_deplibs=yes
10540 ;;
10541 netbsd*)
10542 libltdl_cv_sys_dlopen_deplibs=yes
10543 ;;
10544 openbsd*)
10545 libltdl_cv_sys_dlopen_deplibs=yes
10546 ;;
10547 osf[1234]*)
10548 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10549 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010550 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551 libltdl_cv_sys_dlopen_deplibs=no
10552 ;;
10553 osf5.0|osf5.0a|osf5.1)
10554 # dlopen *does* load deplibs and with the right loader patch applied
10555 # it even uses RPATH in a shared library to search for shared objects
10556 # that the library depends on, but there's no easy way to know if that
10557 # patch is installed. Since this is the case, all we can really
10558 # say is unknown -- it depends on the patch being installed. If
10559 # it is, this changes to `yes'. Without it, it would be `no'.
10560 libltdl_cv_sys_dlopen_deplibs=unknown
10561 ;;
10562 osf*)
10563 # the two cases above should catch all versions of osf <= 5.1. Read
10564 # the comments above for what we know about them.
10565 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10566 # is used to find them so we can finally say `yes'.
10567 libltdl_cv_sys_dlopen_deplibs=yes
10568 ;;
10569 solaris*)
10570 libltdl_cv_sys_dlopen_deplibs=yes
10571 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10573 libltdl_cv_sys_dlopen_deplibs=yes
10574 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575 esac
10576
10577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10579echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010582cat >>confdefs.h <<\_ACEOF
10583#define LTDL_DLOPEN_DEPLIBS 1
10584_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585
10586fi
10587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010588
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010590do
10591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597fi
10598ac_res=`eval echo '${'$as_ac_Header'}'`
10599 { echo "$as_me:$LINENO: result: $ac_res" >&5
10600echo "${ECHO_T}$ac_res" >&6; }
10601else
10602 # Is the header compilable?
10603{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10605cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h. */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h. */
10611$ac_includes_default
10612#include <$ac_header>
10613_ACEOF
10614rm -f conftest.$ac_objext
10615if { (ac_try="$ac_compile"
10616case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_compile") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10629 { (case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10632esac
10633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_try") 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try='test -s conftest.$ac_objext'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_header_compiler=yes
10649else
10650 echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ac_header_compiler=no
10654fi
10655
10656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10658echo "${ECHO_T}$ac_header_compiler" >&6; }
10659
10660# Is the header present?
10661{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10663cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h. */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h. */
10669#include <$ac_header>
10670_ACEOF
10671if { (ac_try="$ac_cpp conftest.$ac_ext"
10672case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } >/dev/null; then
10684 if test -s conftest.err; then
10685 ac_cpp_err=$ac_c_preproc_warn_flag
10686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10687 else
10688 ac_cpp_err=
10689 fi
10690else
10691 ac_cpp_err=yes
10692fi
10693if test -z "$ac_cpp_err"; then
10694 ac_header_preproc=yes
10695else
10696 echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 ac_header_preproc=no
10700fi
10701
10702rm -f conftest.err conftest.$ac_ext
10703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10704echo "${ECHO_T}$ac_header_preproc" >&6; }
10705
10706# So? What about this header?
10707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10708 yes:no: )
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10713 ac_header_preproc=yes
10714 ;;
10715 no:yes:* )
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10728 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010729## ------------------------------------ ##
10730## Report this to http://llvm.org/bugs/ ##
10731## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010732_ASBOX
10733 ) | sed "s/^/$as_me: WARNING: /" >&2
10734 ;;
10735esac
10736{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740else
10741 eval "$as_ac_Header=\$ac_header_preproc"
10742fi
10743ac_res=`eval echo '${'$as_ac_Header'}'`
10744 { echo "$as_me:$LINENO: result: $ac_res" >&5
10745echo "${ECHO_T}$ac_res" >&6; }
10746
10747fi
10748if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751_ACEOF
10752
10753fi
10754
10755done
10756
10757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010758{ echo "$as_me:$LINENO: checking for error_t" >&5
10759echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10760if test "${ac_cv_type_error_t+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762else
10763 cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h. */
10769#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770# include <argz.h>
10771#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010772
10773typedef error_t ac__type_new_;
10774int
10775main ()
10776{
10777if ((ac__type_new_ *) 0)
10778 return 0;
10779if (sizeof (ac__type_new_))
10780 return 0;
10781 ;
10782 return 0;
10783}
10784_ACEOF
10785rm -f conftest.$ac_objext
10786if { (ac_try="$ac_compile"
10787case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_compile") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803esac
10804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest.$ac_objext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813esac
10814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_type_error_t=yes
10820else
10821 echo "$as_me: failed program was:" >&5
10822sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ac_cv_type_error_t=no
10825fi
10826
10827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828fi
10829{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10830echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10831if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832
10833cat >>confdefs.h <<_ACEOF
10834#define HAVE_ERROR_T 1
10835_ACEOF
10836
10837
10838else
10839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840cat >>confdefs.h <<\_ACEOF
10841#define error_t int
10842_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843
10844fi
10845
10846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010847
10848
10849
10850
10851
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010853do
10854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 cat >conftest.$ac_ext <<_ACEOF
10861/* confdefs.h. */
10862_ACEOF
10863cat confdefs.h >>conftest.$ac_ext
10864cat >>conftest.$ac_ext <<_ACEOF
10865/* end confdefs.h. */
10866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10868#define $ac_func innocuous_$ac_func
10869
10870/* System header to define __stub macros and hopefully few prototypes,
10871 which can conflict with char $ac_func (); below.
10872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873 <limits.h> exists even on freestanding compilers. */
10874
10875#ifdef __STDC__
10876# include <limits.h>
10877#else
10878# include <assert.h>
10879#endif
10880
10881#undef $ac_func
10882
10883/* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886#ifdef __cplusplus
10887extern "C"
10888#endif
10889char $ac_func ();
10890/* The GNU C library defines this for functions which it implements
10891 to always fail with ENOSYS. Some functions are actually named
10892 something starting with __ and the normal name is an alias. */
10893#if defined __stub_$ac_func || defined __stub___$ac_func
10894choke me
10895#endif
10896
10897int
10898main ()
10899{
10900return $ac_func ();
10901 ;
10902 return 0;
10903}
10904_ACEOF
10905rm -f conftest.$ac_objext conftest$ac_exeext
10906if { (ac_try="$ac_link"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_link") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10920 { (case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923esac
10924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_try") 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest$ac_exeext'
10930 { (case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933esac
10934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_try") 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 eval "$as_ac_var=yes"
10940else
10941 echo "$as_me: failed program was:" >&5
10942sed 's/^/| /' conftest.$ac_ext >&5
10943
10944 eval "$as_ac_var=no"
10945fi
10946
10947rm -f core conftest.err conftest.$ac_objext \
10948 conftest$ac_exeext conftest.$ac_ext
10949fi
10950ac_res=`eval echo '${'$as_ac_var'}'`
10951 { echo "$as_me:$LINENO: result: $ac_res" >&5
10952echo "${ECHO_T}$ac_res" >&6; }
10953if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956_ACEOF
10957
10958fi
10959done
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010980
10981
10982
10983
10984
10985
10986
10987
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10989 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010990do
10991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997fi
10998ac_res=`eval echo '${'$as_ac_Header'}'`
10999 { echo "$as_me:$LINENO: result: $ac_res" >&5
11000echo "${ECHO_T}$ac_res" >&6; }
11001else
11002 # Is the header compilable?
11003{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11005cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
11010/* end confdefs.h. */
11011$ac_includes_default
11012#include <$ac_header>
11013_ACEOF
11014rm -f conftest.$ac_objext
11015if { (ac_try="$ac_compile"
11016case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_compile") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_header_compiler=yes
11049else
11050 echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_header_compiler=no
11054fi
11055
11056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11058echo "${ECHO_T}$ac_header_compiler" >&6; }
11059
11060# Is the header present?
11061{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11062echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11063cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <$ac_header>
11070_ACEOF
11071if { (ac_try="$ac_cpp conftest.$ac_ext"
11072case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075esac
11076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } >/dev/null; then
11084 if test -s conftest.err; then
11085 ac_cpp_err=$ac_c_preproc_warn_flag
11086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11087 else
11088 ac_cpp_err=
11089 fi
11090else
11091 ac_cpp_err=yes
11092fi
11093if test -z "$ac_cpp_err"; then
11094 ac_header_preproc=yes
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_header_preproc=no
11100fi
11101
11102rm -f conftest.err conftest.$ac_ext
11103{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104echo "${ECHO_T}$ac_header_preproc" >&6; }
11105
11106# So? What about this header?
11107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11108 yes:no: )
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11113 ac_header_preproc=yes
11114 ;;
11115 no:yes:* )
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11123echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11128 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011129## ------------------------------------ ##
11130## Report this to http://llvm.org/bugs/ ##
11131## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011132_ASBOX
11133 ) | sed "s/^/$as_me: WARNING: /" >&2
11134 ;;
11135esac
11136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140else
11141 eval "$as_ac_Header=\$ac_header_preproc"
11142fi
11143ac_res=`eval echo '${'$as_ac_Header'}'`
11144 { echo "$as_me:$LINENO: result: $ac_res" >&5
11145echo "${ECHO_T}$ac_res" >&6; }
11146
11147fi
11148if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151_ACEOF
11152
11153fi
11154
11155done
11156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011157
11158
11159
11160
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011162do
11163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169fi
11170ac_res=`eval echo '${'$as_ac_Header'}'`
11171 { echo "$as_me:$LINENO: result: $ac_res" >&5
11172echo "${ECHO_T}$ac_res" >&6; }
11173else
11174 # Is the header compilable?
11175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11177cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
11183$ac_includes_default
11184#include <$ac_header>
11185_ACEOF
11186rm -f conftest.$ac_objext
11187if { (ac_try="$ac_compile"
11188case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204esac
11205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214esac
11215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_header_compiler=yes
11221else
11222 echo "$as_me: failed program was:" >&5
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
11225 ac_header_compiler=no
11226fi
11227
11228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230echo "${ECHO_T}$ac_header_compiler" >&6; }
11231
11232# Is the header present?
11233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11235cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241#include <$ac_header>
11242_ACEOF
11243if { (ac_try="$ac_cpp conftest.$ac_ext"
11244case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247esac
11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null; then
11256 if test -s conftest.err; then
11257 ac_cpp_err=$ac_c_preproc_warn_flag
11258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11259 else
11260 ac_cpp_err=
11261 fi
11262else
11263 ac_cpp_err=yes
11264fi
11265if test -z "$ac_cpp_err"; then
11266 ac_header_preproc=yes
11267else
11268 echo "$as_me: failed program was:" >&5
11269sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ac_header_preproc=no
11272fi
11273
11274rm -f conftest.err conftest.$ac_ext
11275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276echo "${ECHO_T}$ac_header_preproc" >&6; }
11277
11278# So? What about this header?
11279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280 yes:no: )
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285 ac_header_preproc=yes
11286 ;;
11287 no:yes:* )
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11300 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011301## ------------------------------------ ##
11302## Report this to http://llvm.org/bugs/ ##
11303## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011304_ASBOX
11305 ) | sed "s/^/$as_me: WARNING: /" >&2
11306 ;;
11307esac
11308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 eval "$as_ac_Header=\$ac_header_preproc"
11314fi
11315ac_res=`eval echo '${'$as_ac_Header'}'`
11316 { echo "$as_me:$LINENO: result: $ac_res" >&5
11317echo "${ECHO_T}$ac_res" >&6; }
11318
11319fi
11320if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323_ACEOF
11324
11325fi
11326
11327done
11328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011329
11330
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011332do
11333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339fi
11340ac_res=`eval echo '${'$as_ac_Header'}'`
11341 { echo "$as_me:$LINENO: result: $ac_res" >&5
11342echo "${ECHO_T}$ac_res" >&6; }
11343else
11344 # Is the header compilable?
11345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353$ac_includes_default
11354#include <$ac_header>
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371 { (case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374esac
11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_try") 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384esac
11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_header_compiler=yes
11391else
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 ac_header_compiler=no
11396fi
11397
11398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11400echo "${ECHO_T}$ac_header_compiler" >&6; }
11401
11402# Is the header present?
11403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11405cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411#include <$ac_header>
11412_ACEOF
11413if { (ac_try="$ac_cpp conftest.$ac_ext"
11414case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev/null; then
11426 if test -s conftest.err; then
11427 ac_cpp_err=$ac_c_preproc_warn_flag
11428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11429 else
11430 ac_cpp_err=
11431 fi
11432else
11433 ac_cpp_err=yes
11434fi
11435if test -z "$ac_cpp_err"; then
11436 ac_header_preproc=yes
11437else
11438 echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 ac_header_preproc=no
11442fi
11443
11444rm -f conftest.err conftest.$ac_ext
11445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446echo "${ECHO_T}$ac_header_preproc" >&6; }
11447
11448# So? What about this header?
11449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 yes:no: )
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455 ac_header_preproc=yes
11456 ;;
11457 no:yes:* )
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011471## ------------------------------------ ##
11472## Report this to http://llvm.org/bugs/ ##
11473## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011474_ASBOX
11475 ) | sed "s/^/$as_me: WARNING: /" >&2
11476 ;;
11477esac
11478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482else
11483 eval "$as_ac_Header=\$ac_header_preproc"
11484fi
11485ac_res=`eval echo '${'$as_ac_Header'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487echo "${ECHO_T}$ac_res" >&6; }
11488
11489fi
11490if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493_ACEOF
11494 break
11495fi
11496
11497done
11498
11499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011500
11501
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011503do
11504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518#define $ac_func innocuous_$ac_func
11519
11520/* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11524
11525#ifdef __STDC__
11526# include <limits.h>
11527#else
11528# include <assert.h>
11529#endif
11530
11531#undef $ac_func
11532
11533/* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536#ifdef __cplusplus
11537extern "C"
11538#endif
11539char $ac_func ();
11540/* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543#if defined __stub_$ac_func || defined __stub___$ac_func
11544choke me
11545#endif
11546
11547int
11548main ()
11549{
11550return $ac_func ();
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest$ac_exeext
11556if { (ac_try="$ac_link"
11557case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest$ac_exeext'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
11584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 eval "$as_ac_var=yes"
11590else
11591 echo "$as_me: failed program was:" >&5
11592sed 's/^/| /' conftest.$ac_ext >&5
11593
11594 eval "$as_ac_var=no"
11595fi
11596
11597rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599fi
11600ac_res=`eval echo '${'$as_ac_var'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602echo "${ECHO_T}$ac_res" >&6; }
11603if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606_ACEOF
11607 break
11608fi
11609done
11610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011611
11612
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011614do
11615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621 cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11629#define $ac_func innocuous_$ac_func
11630
11631/* System header to define __stub macros and hopefully few prototypes,
11632 which can conflict with char $ac_func (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11635
11636#ifdef __STDC__
11637# include <limits.h>
11638#else
11639# include <assert.h>
11640#endif
11641
11642#undef $ac_func
11643
11644/* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647#ifdef __cplusplus
11648extern "C"
11649#endif
11650char $ac_func ();
11651/* The GNU C library defines this for functions which it implements
11652 to always fail with ENOSYS. Some functions are actually named
11653 something starting with __ and the normal name is an alias. */
11654#if defined __stub_$ac_func || defined __stub___$ac_func
11655choke me
11656#endif
11657
11658int
11659main ()
11660{
11661return $ac_func ();
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext conftest$ac_exeext
11667if { (ac_try="$ac_link"
11668case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_link") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681 { (case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684esac
11685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 eval "$as_ac_var=yes"
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 eval "$as_ac_var=no"
11706fi
11707
11708rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710fi
11711ac_res=`eval echo '${'$as_ac_var'}'`
11712 { echo "$as_me:$LINENO: result: $ac_res" >&5
11713echo "${ECHO_T}$ac_res" >&6; }
11714if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717_ACEOF
11718 break
11719fi
11720done
11721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011722
11723
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011725do
11726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11727{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11729if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731else
11732 cat >conftest.$ac_ext <<_ACEOF
11733/* confdefs.h. */
11734_ACEOF
11735cat confdefs.h >>conftest.$ac_ext
11736cat >>conftest.$ac_ext <<_ACEOF
11737/* end confdefs.h. */
11738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11740#define $ac_func innocuous_$ac_func
11741
11742/* System header to define __stub macros and hopefully few prototypes,
11743 which can conflict with char $ac_func (); below.
11744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745 <limits.h> exists even on freestanding compilers. */
11746
11747#ifdef __STDC__
11748# include <limits.h>
11749#else
11750# include <assert.h>
11751#endif
11752
11753#undef $ac_func
11754
11755/* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11758#ifdef __cplusplus
11759extern "C"
11760#endif
11761char $ac_func ();
11762/* The GNU C library defines this for functions which it implements
11763 to always fail with ENOSYS. Some functions are actually named
11764 something starting with __ and the normal name is an alias. */
11765#if defined __stub_$ac_func || defined __stub___$ac_func
11766choke me
11767#endif
11768
11769int
11770main ()
11771{
11772return $ac_func ();
11773 ;
11774 return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext conftest$ac_exeext
11778if { (ac_try="$ac_link"
11779case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782esac
11783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "$as_ac_var=yes"
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 eval "$as_ac_var=no"
11817fi
11818
11819rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821fi
11822ac_res=`eval echo '${'$as_ac_var'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824echo "${ECHO_T}$ac_res" >&6; }
11825if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828_ACEOF
11829 break
11830fi
11831done
11832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011833
11834
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011836do
11837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843 cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11851#define $ac_func innocuous_$ac_func
11852
11853/* System header to define __stub macros and hopefully few prototypes,
11854 which can conflict with char $ac_func (); below.
11855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856 <limits.h> exists even on freestanding compilers. */
11857
11858#ifdef __STDC__
11859# include <limits.h>
11860#else
11861# include <assert.h>
11862#endif
11863
11864#undef $ac_func
11865
11866/* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869#ifdef __cplusplus
11870extern "C"
11871#endif
11872char $ac_func ();
11873/* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876#if defined __stub_$ac_func || defined __stub___$ac_func
11877choke me
11878#endif
11879
11880int
11881main ()
11882{
11883return $ac_func ();
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext conftest$ac_exeext
11889if { (ac_try="$ac_link"
11890case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893esac
11894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 eval "$as_ac_var=yes"
11923else
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 eval "$as_ac_var=no"
11928fi
11929
11930rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11932fi
11933ac_res=`eval echo '${'$as_ac_var'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935echo "${ECHO_T}$ac_res" >&6; }
11936if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939_ACEOF
11940
11941fi
11942done
11943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011944
11945
11946
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011948do
11949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11950{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11963#define $ac_func innocuous_$ac_func
11964
11965/* System header to define __stub macros and hopefully few prototypes,
11966 which can conflict with char $ac_func (); below.
11967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11968 <limits.h> exists even on freestanding compilers. */
11969
11970#ifdef __STDC__
11971# include <limits.h>
11972#else
11973# include <assert.h>
11974#endif
11975
11976#undef $ac_func
11977
11978/* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11981#ifdef __cplusplus
11982extern "C"
11983#endif
11984char $ac_func ();
11985/* The GNU C library defines this for functions which it implements
11986 to always fail with ENOSYS. Some functions are actually named
11987 something starting with __ and the normal name is an alias. */
11988#if defined __stub_$ac_func || defined __stub___$ac_func
11989choke me
11990#endif
11991
11992int
11993main ()
11994{
11995return $ac_func ();
11996 ;
11997 return 0;
11998}
11999_ACEOF
12000rm -f conftest.$ac_objext conftest$ac_exeext
12001if { (ac_try="$ac_link"
12002case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_link") 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 eval "$as_ac_var=yes"
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 eval "$as_ac_var=no"
12040fi
12041
12042rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044fi
12045ac_res=`eval echo '${'$as_ac_var'}'`
12046 { echo "$as_me:$LINENO: result: $ac_res" >&5
12047echo "${ECHO_T}$ac_res" >&6; }
12048if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012050#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051_ACEOF
12052
12053fi
12054done
12055
12056
Douglas Gregor01746742009-05-11 18:05:52 +000012057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012058{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12059echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012060
Reid Spencer86901802004-12-08 23:07:27 +000012061ICC=no
12062IXX=no
12063case $CC in
12064 icc*|icpc*)
12065 ICC=yes
12066 IXX=yes
12067 ;;
12068 *)
12069 ;;
12070esac
12071
Duraid Madina937c60a2006-02-15 07:57:42 +000012072if test "$GCC" != "yes" && test "$ICC" != "yes"
12073then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012074 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12075echo "$as_me: error: gcc|icc required but not found" >&2;}
12076 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012077fi
12078
12079if test "$GXX" != "yes" && test "$IXX" != "yes"
12080then
Eric Christopher73e36da2010-12-08 02:02:14 +000012081 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12082echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012083 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012084fi
12085
Reid Spencer86901802004-12-08 23:07:27 +000012086if test "$GCC" = "yes"
12087then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012088 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012089#if !defined(__GNUC__) || __GNUC__ < 3
12090#error Unsupported GCC version
12091#endif
12092
12093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012094rm -f conftest.$ac_objext
12095if { (ac_try="$ac_compile"
12096case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112esac
12113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12134echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12135 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012137
Chris Lattner399c7c72008-02-05 19:43:53 +000012138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012139fi
12140
12141if test -z "$llvm_cv_gnu_make_command"
12142then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012143 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12144echo "$as_me: error: GNU Make required but not found" >&2;}
12145 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012146fi
12147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148{ echo "$as_me:$LINENO: result: ok" >&5
12149echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012151{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12152echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012153NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012154
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012155NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012156
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012157COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12158
12159{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12160echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012161
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012163
12164{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12165echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12166if test "${ac_cv_lib_m_sin+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012168else
12169 ac_check_lib_save_LIBS=$LIBS
12170LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012171cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012176/* end confdefs.h. */
12177
Reid Spencera773bd52006-08-04 18:18:08 +000012178/* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012181#ifdef __cplusplus
12182extern "C"
12183#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012184char sin ();
12185int
12186main ()
12187{
Reid Spencera773bd52006-08-04 18:18:08 +000012188return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012189 ;
12190 return 0;
12191}
12192_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012193rm -f conftest.$ac_objext conftest$ac_exeext
12194if { (ac_try="$ac_link"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012227 ac_cv_lib_m_sin=yes
12228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012234
Bill Wendlingebcceee2009-04-18 11:20:33 +000012235rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012236 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012237LIBS=$ac_check_lib_save_LIBS
12238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012239{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12240echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12241if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012242 cat >>confdefs.h <<_ACEOF
12243#define HAVE_LIBM 1
12244_ACEOF
12245
12246 LIBS="-lm $LIBS"
12247
12248fi
12249
Jeff Cohen28783c32007-01-12 18:22:38 +000012250if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251
12252{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12253echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12254if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012256else
12257 ac_check_lib_save_LIBS=$LIBS
12258LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259cat >conftest.$ac_ext <<_ACEOF
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012264/* end confdefs.h. */
12265
Reid Spencer48fdf912006-06-01 19:03:21 +000012266
Reid Spencer484fc8e2006-06-01 16:55:59 +000012267int
12268main ()
12269{
Reid Spencera773bd52006-08-04 18:18:08 +000012270return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012271 ;
12272 return 0;
12273}
12274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012275rm -f conftest.$ac_objext conftest$ac_exeext
12276if { (ac_try="$ac_link"
12277case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012309 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012311 echo "$as_me: failed program was:" >&5
12312sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316
Bill Wendlingebcceee2009-04-18 11:20:33 +000012317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012319LIBS=$ac_check_lib_save_LIBS
12320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12322echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12323if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012324 cat >>confdefs.h <<_ACEOF
12325#define HAVE_LIBIMAGEHLP 1
12326_ACEOF
12327
12328 LIBS="-limagehlp $LIBS"
12329
12330fi
12331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332
12333{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12334echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12335if test "${ac_cv_lib_psapi_main+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012337else
12338 ac_check_lib_save_LIBS=$LIBS
12339LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012340cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012345/* end confdefs.h. */
12346
Reid Spencer48fdf912006-06-01 19:03:21 +000012347
Reid Spencer484fc8e2006-06-01 16:55:59 +000012348int
12349main ()
12350{
Reid Spencera773bd52006-08-04 18:18:08 +000012351return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012352 ;
12353 return 0;
12354}
12355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012356rm -f conftest.$ac_objext conftest$ac_exeext
12357if { (ac_try="$ac_link"
12358case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361esac
12362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_link") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12371 { (case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374esac
12375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_try") 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_try") 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012390 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012392 echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012397
Bill Wendlingebcceee2009-04-18 11:20:33 +000012398rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012399 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012400LIBS=$ac_check_lib_save_LIBS
12401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012402{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12403echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12404if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012405 cat >>confdefs.h <<_ACEOF
12406#define HAVE_LIBPSAPI 1
12407_ACEOF
12408
12409 LIBS="-lpsapi $LIBS"
12410
12411fi
12412
12413fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012415{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12416echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12417if test "${ac_cv_search_dlopen+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012419else
12420 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012421cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012427
Reid Spencera773bd52006-08-04 18:18:08 +000012428/* Override any GCC internal prototype to avoid an error.
12429 Use char because int might match the return type of a GCC
12430 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012431#ifdef __cplusplus
12432extern "C"
12433#endif
John Criswell7a73b802003-06-30 21:59:07 +000012434char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012435int
12436main ()
12437{
Reid Spencera773bd52006-08-04 18:18:08 +000012438return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012439 ;
12440 return 0;
12441}
12442_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012443for ac_lib in '' dl; do
12444 if test -z "$ac_lib"; then
12445 ac_res="none required"
12446 else
12447 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012449 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012450 rm -f conftest.$ac_objext conftest$ac_exeext
12451if { (ac_try="$ac_link"
12452case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455esac
12456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_link") 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12468esac
12469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478esac
12479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012484 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012485else
12486 echo "$as_me: failed program was:" >&5
12487sed 's/^/| /' conftest.$ac_ext >&5
12488
12489
John Criswell7a73b802003-06-30 21:59:07 +000012490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491
Bill Wendlingebcceee2009-04-18 11:20:33 +000012492rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012493 conftest$ac_exeext
12494 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012495 break
John Criswell7a73b802003-06-30 21:59:07 +000012496fi
Reid Spencera773bd52006-08-04 18:18:08 +000012497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498if test "${ac_cv_search_dlopen+set}" = set; then
12499 :
Reid Spencera773bd52006-08-04 18:18:08 +000012500else
12501 ac_cv_search_dlopen=no
12502fi
12503rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012504LIBS=$ac_func_search_save_LIBS
12505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012506{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12507echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012508ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012509if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012512cat >>confdefs.h <<\_ACEOF
12513#define HAVE_DLOPEN 1
12514_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012515
12516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12518echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012519fi
12520
12521
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012522if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012523 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12524echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12525if test "${ac_cv_search_ffi_call+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012527else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012528 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012529cat >conftest.$ac_ext <<_ACEOF
12530/* confdefs.h. */
12531_ACEOF
12532cat confdefs.h >>conftest.$ac_ext
12533cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012534/* end confdefs.h. */
12535
12536/* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12539#ifdef __cplusplus
12540extern "C"
12541#endif
12542char ffi_call ();
12543int
12544main ()
12545{
12546return ffi_call ();
12547 ;
12548 return 0;
12549}
12550_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012551for ac_lib in '' ffi; do
12552 if test -z "$ac_lib"; then
12553 ac_res="none required"
12554 else
12555 ac_res=-l$ac_lib
12556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12557 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012558 rm -f conftest.$ac_objext conftest$ac_exeext
12559if { (ac_try="$ac_link"
12560case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563esac
12564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_link") 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12573 { (case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576esac
12577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_try") 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_try") 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012592 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012593else
12594 echo "$as_me: failed program was:" >&5
12595sed 's/^/| /' conftest.$ac_ext >&5
12596
12597
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012599
Bill Wendlingebcceee2009-04-18 11:20:33 +000012600rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012601 conftest$ac_exeext
12602 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012603 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012604fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012605done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606if test "${ac_cv_search_ffi_call+set}" = set; then
12607 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012608else
12609 ac_cv_search_ffi_call=no
12610fi
12611rm conftest.$ac_ext
12612LIBS=$ac_func_search_save_LIBS
12613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012614{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12615echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012616ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012617if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012620cat >>confdefs.h <<\_ACEOF
12621#define HAVE_FFI_CALL 1
12622_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012623
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012624else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012625 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12626echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12627 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012628fi
12629
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012630fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012632{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12633echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12634if test "${ac_cv_search_mallinfo+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012636else
12637 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012638cat >conftest.$ac_ext <<_ACEOF
12639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012644
Reid Spencera773bd52006-08-04 18:18:08 +000012645/* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012648#ifdef __cplusplus
12649extern "C"
12650#endif
John Criswell7a73b802003-06-30 21:59:07 +000012651char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012652int
12653main ()
12654{
Reid Spencera773bd52006-08-04 18:18:08 +000012655return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012656 ;
12657 return 0;
12658}
12659_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012660for ac_lib in '' malloc; do
12661 if test -z "$ac_lib"; then
12662 ac_res="none required"
12663 else
12664 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012666 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012667 rm -f conftest.$ac_objext conftest$ac_exeext
12668if { (ac_try="$ac_link"
12669case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672esac
12673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_link") 2>conftest.er1
12675 ac_status=$?
12676 grep -v '^ *+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12682 { (case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_try") 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest$ac_exeext'
12692 { (case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695esac
12696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_try") 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012701 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012702else
12703 echo "$as_me: failed program was:" >&5
12704sed 's/^/| /' conftest.$ac_ext >&5
12705
12706
John Criswell7a73b802003-06-30 21:59:07 +000012707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708
Bill Wendlingebcceee2009-04-18 11:20:33 +000012709rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012710 conftest$ac_exeext
12711 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012712 break
John Criswell7a73b802003-06-30 21:59:07 +000012713fi
Reid Spencera773bd52006-08-04 18:18:08 +000012714done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715if test "${ac_cv_search_mallinfo+set}" = set; then
12716 :
Reid Spencera773bd52006-08-04 18:18:08 +000012717else
12718 ac_cv_search_mallinfo=no
12719fi
12720rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012721LIBS=$ac_func_search_save_LIBS
12722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012723{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12724echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012725ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012726if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012729cat >>confdefs.h <<\_ACEOF
12730#define HAVE_MALLINFO 1
12731_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012732
12733fi
12734
12735
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012736if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737
12738{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12739echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12740if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012742else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012743 ac_check_lib_save_LIBS=$LIBS
12744LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012745cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012750/* end confdefs.h. */
12751
Reid Spencera773bd52006-08-04 18:18:08 +000012752/* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012755#ifdef __cplusplus
12756extern "C"
12757#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012758char pthread_mutex_init ();
12759int
12760main ()
12761{
Reid Spencera773bd52006-08-04 18:18:08 +000012762return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012763 ;
12764 return 0;
12765}
12766_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012767rm -f conftest.$ac_objext conftest$ac_exeext
12768if { (ac_try="$ac_link"
12769case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772esac
12773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012801 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012803 echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808
Bill Wendlingebcceee2009-04-18 11:20:33 +000012809rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012811LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12814echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12815if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012816 cat >>confdefs.h <<_ACEOF
12817#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012818_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012819
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012820 LIBS="-lpthread $LIBS"
12821
Reid Spencer22177fe2005-07-12 15:24:20 +000012822fi
12823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12825echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12826if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012828else
12829 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012835/* end confdefs.h. */
12836
Reid Spencera773bd52006-08-04 18:18:08 +000012837/* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012840#ifdef __cplusplus
12841extern "C"
12842#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012843char pthread_mutex_lock ();
12844int
12845main ()
12846{
Reid Spencera773bd52006-08-04 18:18:08 +000012847return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012848 ;
12849 return 0;
12850}
12851_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012852for ac_lib in '' pthread; do
12853 if test -z "$ac_lib"; then
12854 ac_res="none required"
12855 else
12856 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012858 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012859 rm -f conftest.$ac_objext conftest$ac_exeext
12860if { (ac_try="$ac_link"
12861case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012893 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012894else
12895 echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
12898
Brian Gaeke5f268f72003-12-05 19:29:01 +000012899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900
Bill Wendlingebcceee2009-04-18 11:20:33 +000012901rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012902 conftest$ac_exeext
12903 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012904 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012905fi
Reid Spencera773bd52006-08-04 18:18:08 +000012906done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012907if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12908 :
Reid Spencera773bd52006-08-04 18:18:08 +000012909else
12910 ac_cv_search_pthread_mutex_lock=no
12911fi
12912rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012913LIBS=$ac_func_search_save_LIBS
12914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12916echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012917ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012921cat >>confdefs.h <<\_ACEOF
12922#define HAVE_PTHREAD_MUTEX_LOCK 1
12923_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012924
12925fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12928echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12929if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012931else
12932 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012938/* end confdefs.h. */
12939
12940/* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12943#ifdef __cplusplus
12944extern "C"
12945#endif
12946char pthread_rwlock_init ();
12947int
12948main ()
12949{
12950return pthread_rwlock_init ();
12951 ;
12952 return 0;
12953}
12954_ACEOF
12955for ac_lib in '' pthread; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12958 else
12959 ac_res=-l$ac_lib
12960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12961 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012962 rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (ac_try="$ac_link"
12964case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012996 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
Owen Andersonde8aed22009-06-16 18:20:20 +000013002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003
Owen Andersonde8aed22009-06-16 18:20:20 +000013004rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005 conftest$ac_exeext
13006 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013007 break
13008fi
13009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13011 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013012else
13013 ac_cv_search_pthread_rwlock_init=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13019echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013020ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_PTHREAD_RWLOCK_INIT 1
13026_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013027
13028fi
13029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013030 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13031echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13032if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013034else
13035 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013036cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013041/* end confdefs.h. */
13042
13043/* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13046#ifdef __cplusplus
13047extern "C"
13048#endif
13049char pthread_getspecific ();
13050int
13051main ()
13052{
13053return pthread_getspecific ();
13054 ;
13055 return 0;
13056}
13057_ACEOF
13058for ac_lib in '' pthread; do
13059 if test -z "$ac_lib"; then
13060 ac_res="none required"
13061 else
13062 ac_res=-l$ac_lib
13063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13064 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065 rm -f conftest.$ac_objext conftest$ac_exeext
13066if { (ac_try="$ac_link"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_link") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013099 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013100else
13101 echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104
Owen Anderson27fcfe12009-06-25 23:10:26 +000013105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013106
Owen Anderson27fcfe12009-06-25 23:10:26 +000013107rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108 conftest$ac_exeext
13109 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013110 break
13111fi
13112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13114 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013115else
13116 ac_cv_search_pthread_getspecific=no
13117fi
13118rm conftest.$ac_ext
13119LIBS=$ac_func_search_save_LIBS
13120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013121{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13122echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013123ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013127cat >>confdefs.h <<\_ACEOF
13128#define HAVE_PTHREAD_GETSPECIFIC 1
13129_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013130
13131fi
13132
Reid Spencer0a262ba2005-08-24 10:07:20 +000013133fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013134
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013135
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013136# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013137if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013138 withval=$with_udis86;
13139 USE_UDIS86=1
13140
13141 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013142 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013143 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13144 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145
13146{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13147echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13148if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013150else
13151 ac_check_lib_save_LIBS=$LIBS
13152LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013153cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013158/* end confdefs.h. */
13159
13160/* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163#ifdef __cplusplus
13164extern "C"
13165#endif
13166char ud_init ();
13167int
13168main ()
13169{
13170return ud_init ();
13171 ;
13172 return 0;
13173}
13174_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013175rm -f conftest.$ac_objext conftest$ac_exeext
13176if { (ac_try="$ac_link"
13177case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180esac
13181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13190 { (case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193esac
13194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_try") 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; } &&
13199 { ac_try='test -s conftest$ac_exeext'
13200 { (case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203esac
13204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_try") 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013209 ac_cv_lib_udis86_ud_init=yes
13210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216
Bill Wendlingebcceee2009-04-18 11:20:33 +000013217rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013218 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013219LIBS=$ac_check_lib_save_LIBS
13220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013221{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13222echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13223if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013224 cat >>confdefs.h <<_ACEOF
13225#define HAVE_LIBUDIS86 1
13226_ACEOF
13227
13228 LIBS="-ludis86 $LIBS"
13229
13230else
13231
13232 echo "Error! You need to have libudis86 around."
13233 exit -1
13234
13235fi
13236
13237
13238else
13239 USE_UDIS86=0
13240
13241fi
13242
13243
13244cat >>confdefs.h <<_ACEOF
13245#define USE_UDIS86 $USE_UDIS86
13246_ACEOF
13247
13248
13249
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013250# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013252 withval=$with_oprofile;
13253 USE_OPROFILE=1
13254
13255 case "$withval" in
13256 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013257 no) llvm_cv_oppath=
13258 USE_OPROFILE=0
13259 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013260 *) llvm_cv_oppath="${withval}/lib/oprofile"
13261 CPPFLAGS="-I${withval}/include";;
13262 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013263 if test -n "$llvm_cv_oppath" ; then
13264 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13266echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13267if test "${ac_cv_search_bfd_init+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013269else
13270 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013276/* end confdefs.h. */
13277
13278/* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281#ifdef __cplusplus
13282extern "C"
13283#endif
13284char bfd_init ();
13285int
13286main ()
13287{
13288return bfd_init ();
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293for ac_lib in '' bfd; do
13294 if test -z "$ac_lib"; then
13295 ac_res="none required"
13296 else
13297 ac_res=-l$ac_lib
13298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13299 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300 rm -f conftest.$ac_objext conftest$ac_exeext
13301if { (ac_try="$ac_link"
13302case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305esac
13306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest$ac_exeext'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013334 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335else
13336 echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013342rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343 conftest$ac_exeext
13344 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013345 break
13346fi
13347done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013348if test "${ac_cv_search_bfd_init+set}" = set; then
13349 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013350else
13351 ac_cv_search_bfd_init=no
13352fi
13353rm conftest.$ac_ext
13354LIBS=$ac_func_search_save_LIBS
13355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13357echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013358ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361
13362fi
13363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13365echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13366if test "${ac_cv_search_op_open_agent+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013368else
13369 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370cat >conftest.$ac_ext <<_ACEOF
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013375/* end confdefs.h. */
13376
13377/* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13380#ifdef __cplusplus
13381extern "C"
13382#endif
13383char op_open_agent ();
13384int
13385main ()
13386{
13387return op_open_agent ();
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392for ac_lib in '' opagent; do
13393 if test -z "$ac_lib"; then
13394 ac_res="none required"
13395 else
13396 ac_res=-l$ac_lib
13397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13398 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399 rm -f conftest.$ac_objext conftest$ac_exeext
13400if { (ac_try="$ac_link"
13401case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>conftest.er1
13407 ac_status=$?
13408 grep -v '^ *+' conftest.er1 >conftest.err
13409 rm -f conftest.er1
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13414 { (case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_try") 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest$ac_exeext'
13424 { (case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_try") 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013433 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013434else
13435 echo "$as_me: failed program was:" >&5
13436sed 's/^/| /' conftest.$ac_ext >&5
13437
13438
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013440
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013441rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013442 conftest$ac_exeext
13443 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013444 break
13445fi
13446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447if test "${ac_cv_search_op_open_agent+set}" = set; then
13448 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013449else
13450 ac_cv_search_op_open_agent=no
13451fi
13452rm conftest.$ac_ext
13453LIBS=$ac_func_search_save_LIBS
13454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13456echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013457ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13460
13461else
13462
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013463 echo "Error! You need to have libopagent around."
13464 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013465
13466fi
13467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468 if test "${ac_cv_header_opagent_h+set}" = set; then
13469 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13470echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13471if test "${ac_cv_header_opagent_h+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473fi
13474{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13475echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13476else
13477 # Is the header compilable?
13478{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13479echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13480cat >conftest.$ac_ext <<_ACEOF
13481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486$ac_includes_default
13487#include <opagent.h>
13488_ACEOF
13489rm -f conftest.$ac_objext
13490if { (ac_try="$ac_compile"
13491case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13504 { (case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_try") 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler=yes
13524else
13525 echo "$as_me: failed program was:" >&5
13526sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013528 ac_header_compiler=no
13529fi
13530
13531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13533echo "${ECHO_T}$ac_header_compiler" >&6; }
13534
13535# Is the header present?
13536{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13537echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13538cat >conftest.$ac_ext <<_ACEOF
13539/* confdefs.h. */
13540_ACEOF
13541cat confdefs.h >>conftest.$ac_ext
13542cat >>conftest.$ac_ext <<_ACEOF
13543/* end confdefs.h. */
13544#include <opagent.h>
13545_ACEOF
13546if { (ac_try="$ac_cpp conftest.$ac_ext"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } >/dev/null; then
13559 if test -s conftest.err; then
13560 ac_cpp_err=$ac_c_preproc_warn_flag
13561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13562 else
13563 ac_cpp_err=
13564 fi
13565else
13566 ac_cpp_err=yes
13567fi
13568if test -z "$ac_cpp_err"; then
13569 ac_header_preproc=yes
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 ac_header_preproc=no
13575fi
13576
13577rm -f conftest.err conftest.$ac_ext
13578{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13579echo "${ECHO_T}$ac_header_preproc" >&6; }
13580
13581# So? What about this header?
13582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13583 yes:no: )
13584 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13585echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13587echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13588 ac_header_preproc=yes
13589 ;;
13590 no:yes:* )
13591 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13592echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13593 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13594echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13596echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13598echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13600echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13602echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13603 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013604## ------------------------------------ ##
13605## Report this to http://llvm.org/bugs/ ##
13606## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013607_ASBOX
13608 ) | sed "s/^/$as_me: WARNING: /" >&2
13609 ;;
13610esac
13611{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13612echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13613if test "${ac_cv_header_opagent_h+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 ac_cv_header_opagent_h=$ac_header_preproc
13617fi
13618{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13619echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13620
13621fi
13622if test $ac_cv_header_opagent_h = yes; then
13623 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013624else
13625
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013626 echo "Error! You need to have opagent.h around."
13627 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013628
13629fi
13630
13631
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013632 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013633
13634else
13635
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013636 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013637
13638
13639fi
13640
13641
13642cat >>confdefs.h <<_ACEOF
13643#define USE_OPROFILE $USE_OPROFILE
13644_ACEOF
13645
13646
13647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013648
13649
13650
13651
13652
Reid Spencer59473af2004-12-25 07:31:29 +000013653ac_header_dirent=no
13654for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013655 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13656{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13657echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661 cat >conftest.$ac_ext <<_ACEOF
13662/* confdefs.h. */
13663_ACEOF
13664cat confdefs.h >>conftest.$ac_ext
13665cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013666/* end confdefs.h. */
13667#include <sys/types.h>
13668#include <$ac_hdr>
13669
13670int
13671main ()
13672{
13673if ((DIR *) 0)
13674return 0;
13675 ;
13676 return 0;
13677}
13678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679rm -f conftest.$ac_objext
13680if { (ac_try="$ac_compile"
13681case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013713 eval "$as_ac_Header=yes"
13714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013715 echo "$as_me: failed program was:" >&5
13716sed 's/^/| /' conftest.$ac_ext >&5
13717
13718 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013720
Reid Spencera773bd52006-08-04 18:18:08 +000013721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013723ac_res=`eval echo '${'$as_ac_Header'}'`
13724 { echo "$as_me:$LINENO: result: $ac_res" >&5
13725echo "${ECHO_T}$ac_res" >&6; }
13726if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013727 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013728#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013729_ACEOF
13730
13731ac_header_dirent=$ac_hdr; break
13732fi
13733
13734done
13735# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13736if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013737 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13738echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13739if test "${ac_cv_search_opendir+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013741else
13742 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013743cat >conftest.$ac_ext <<_ACEOF
13744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013748/* end confdefs.h. */
13749
Reid Spencera773bd52006-08-04 18:18:08 +000013750/* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013753#ifdef __cplusplus
13754extern "C"
13755#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013756char opendir ();
13757int
13758main ()
13759{
Reid Spencera773bd52006-08-04 18:18:08 +000013760return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013761 ;
13762 return 0;
13763}
13764_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013765for ac_lib in '' dir; do
13766 if test -z "$ac_lib"; then
13767 ac_res="none required"
13768 else
13769 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013771 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013772 rm -f conftest.$ac_objext conftest$ac_exeext
13773if { (ac_try="$ac_link"
13774case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777esac
13778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_link") 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790esac
13791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest$ac_exeext'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013806 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807else
13808 echo "$as_me: failed program was:" >&5
13809sed 's/^/| /' conftest.$ac_ext >&5
13810
13811
Reid Spencer59473af2004-12-25 07:31:29 +000013812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813
Bill Wendlingebcceee2009-04-18 11:20:33 +000013814rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815 conftest$ac_exeext
13816 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013817 break
Reid Spencer59473af2004-12-25 07:31:29 +000013818fi
Reid Spencera773bd52006-08-04 18:18:08 +000013819done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820if test "${ac_cv_search_opendir+set}" = set; then
13821 :
Reid Spencera773bd52006-08-04 18:18:08 +000013822else
13823 ac_cv_search_opendir=no
13824fi
13825rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013826LIBS=$ac_func_search_save_LIBS
13827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013828{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13829echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013830ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013833
13834fi
13835
13836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839if test "${ac_cv_search_opendir+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013841else
13842 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013848/* end confdefs.h. */
13849
Reid Spencera773bd52006-08-04 18:18:08 +000013850/* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013853#ifdef __cplusplus
13854extern "C"
13855#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013856char opendir ();
13857int
13858main ()
13859{
Reid Spencera773bd52006-08-04 18:18:08 +000013860return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013861 ;
13862 return 0;
13863}
13864_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013865for ac_lib in '' x; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13868 else
13869 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013871 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872 rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (ac_try="$ac_link"
13874case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13877esac
13878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_link") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013906 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
Reid Spencer59473af2004-12-25 07:31:29 +000013912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913
Bill Wendlingebcceee2009-04-18 11:20:33 +000013914rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915 conftest$ac_exeext
13916 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013917 break
Reid Spencer59473af2004-12-25 07:31:29 +000013918fi
Reid Spencera773bd52006-08-04 18:18:08 +000013919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920if test "${ac_cv_search_opendir+set}" = set; then
13921 :
Reid Spencera773bd52006-08-04 18:18:08 +000013922else
13923 ac_cv_search_opendir=no
13924fi
13925rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013926LIBS=$ac_func_search_save_LIBS
13927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013930ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013933
13934fi
13935
13936fi
13937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13939echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13940if test "${ac_cv_header_mmap_anon+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013942else
13943 ac_ext=c
13944ac_cpp='$CPP $CPPFLAGS'
13945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947ac_compiler_gnu=$ac_cv_c_compiler_gnu
13948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013949 cat >conftest.$ac_ext <<_ACEOF
13950/* confdefs.h. */
13951_ACEOF
13952cat confdefs.h >>conftest.$ac_ext
13953cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013954/* end confdefs.h. */
13955#include <sys/mman.h>
13956#include <unistd.h>
13957#include <fcntl.h>
13958int
13959main ()
13960{
13961mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13962 ;
13963 return 0;
13964}
13965_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966rm -f conftest.$ac_objext
13967if { (ac_try="$ac_compile"
13968case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971esac
13972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994esac
13995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014000 ac_cv_header_mmap_anon=yes
14001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002 echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007
Reid Spencera773bd52006-08-04 18:18:08 +000014008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014009 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
14015
14016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14018echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014019if test "$ac_cv_header_mmap_anon" = yes; then
14020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021cat >>confdefs.h <<\_ACEOF
14022#define HAVE_MMAP_ANONYMOUS 1
14023_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014024
14025fi
14026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14028echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14029if test "${ac_cv_header_stat_broken+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032 cat >conftest.$ac_ext <<_ACEOF
14033/* confdefs.h. */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014037/* end confdefs.h. */
14038#include <sys/types.h>
14039#include <sys/stat.h>
14040
Reid Spencera773bd52006-08-04 18:18:08 +000014041#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014042# if S_ISBLK (S_IFDIR)
14043You lose.
14044# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014045#endif
14046
Reid Spencera773bd52006-08-04 18:18:08 +000014047#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048# if S_ISBLK (S_IFCHR)
14049You lose.
14050# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014051#endif
14052
Reid Spencera773bd52006-08-04 18:18:08 +000014053#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054# if S_ISLNK (S_IFREG)
14055You lose.
14056# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014057#endif
14058
Reid Spencera773bd52006-08-04 18:18:08 +000014059#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060# if S_ISSOCK (S_IFREG)
14061You lose.
14062# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014063#endif
14064
14065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14067 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014068 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069else
14070 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014072rm -f conftest*
14073
Reid Spencer59473af2004-12-25 07:31:29 +000014074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14076echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014077if test $ac_cv_header_stat_broken = yes; then
14078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014079cat >>confdefs.h <<\_ACEOF
14080#define STAT_MACROS_BROKEN 1
14081_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014082
14083fi
14084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14086echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14087if test "${ac_cv_header_sys_wait_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014096#include <sys/types.h>
14097#include <sys/wait.h>
14098#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014099# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014100#endif
14101#ifndef WIFEXITED
14102# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14103#endif
14104
John Criswell7a73b802003-06-30 21:59:07 +000014105int
14106main ()
14107{
14108 int s;
14109 wait (&s);
14110 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14111 ;
14112 return 0;
14113}
14114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115rm -f conftest.$ac_objext
14116if { (ac_try="$ac_compile"
14117case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120esac
14121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_compile") 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14130 { (case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133esac
14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_try") 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } &&
14139 { ac_try='test -s conftest.$ac_objext'
14140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143esac
14144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014149 ac_cv_header_sys_wait_h=yes
14150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156
Reid Spencera773bd52006-08-04 18:18:08 +000014157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14160echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014161if test $ac_cv_header_sys_wait_h = yes; then
14162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163cat >>confdefs.h <<\_ACEOF
14164#define HAVE_SYS_WAIT_H 1
14165_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014166
14167fi
14168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14170echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14171if test "${ac_cv_header_time+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014174 cat >conftest.$ac_ext <<_ACEOF
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014179/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014180#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014181#include <sys/time.h>
14182#include <time.h>
14183
14184int
14185main ()
14186{
14187if ((struct tm *) 0)
14188return 0;
14189 ;
14190 return 0;
14191}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014192_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193rm -f conftest.$ac_objext
14194if { (ac_try="$ac_compile"
14195case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_try") 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014227 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234
Reid Spencera773bd52006-08-04 18:18:08 +000014235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14238echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014239if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241cat >>confdefs.h <<\_ACEOF
14242#define TIME_WITH_SYS_TIME 1
14243_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014244
14245fi
14246
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248
14249
14250
14251
14252
14253
Reid Spencer59473af2004-12-25 07:31:29 +000014254for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255do
14256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262fi
14263ac_res=`eval echo '${'$as_ac_Header'}'`
14264 { echo "$as_me:$LINENO: result: $ac_res" >&5
14265echo "${ECHO_T}$ac_res" >&6; }
14266else
14267 # Is the header compilable?
14268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14270cat >conftest.$ac_ext <<_ACEOF
14271/* confdefs.h. */
14272_ACEOF
14273cat confdefs.h >>conftest.$ac_ext
14274cat >>conftest.$ac_ext <<_ACEOF
14275/* end confdefs.h. */
14276$ac_includes_default
14277#include <$ac_header>
14278_ACEOF
14279rm -f conftest.$ac_objext
14280if { (ac_try="$ac_compile"
14281case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284esac
14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_compile") 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14294 { (case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14297esac
14298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_try") 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307esac
14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_try") 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_header_compiler=yes
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_header_compiler=no
14319fi
14320
14321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14323echo "${ECHO_T}$ac_header_compiler" >&6; }
14324
14325# Is the header present?
14326{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14328cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334#include <$ac_header>
14335_ACEOF
14336if { (ac_try="$ac_cpp conftest.$ac_ext"
14337case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340esac
14341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } >/dev/null; then
14349 if test -s conftest.err; then
14350 ac_cpp_err=$ac_c_preproc_warn_flag
14351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14352 else
14353 ac_cpp_err=
14354 fi
14355else
14356 ac_cpp_err=yes
14357fi
14358if test -z "$ac_cpp_err"; then
14359 ac_header_preproc=yes
14360else
14361 echo "$as_me: failed program was:" >&5
14362sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 ac_header_preproc=no
14365fi
14366
14367rm -f conftest.err conftest.$ac_ext
14368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14369echo "${ECHO_T}$ac_header_preproc" >&6; }
14370
14371# So? What about this header?
14372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14373 yes:no: )
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14378 ac_header_preproc=yes
14379 ;;
14380 no:yes:* )
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14393 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014394## ------------------------------------ ##
14395## Report this to http://llvm.org/bugs/ ##
14396## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397_ASBOX
14398 ) | sed "s/^/$as_me: WARNING: /" >&2
14399 ;;
14400esac
14401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405else
14406 eval "$as_ac_Header=\$ac_header_preproc"
14407fi
14408ac_res=`eval echo '${'$as_ac_Header'}'`
14409 { echo "$as_me:$LINENO: result: $ac_res" >&5
14410echo "${ECHO_T}$ac_res" >&6; }
14411
14412fi
14413if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014414 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014416_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014417
14418fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014419
Reid Spencer59473af2004-12-25 07:31:29 +000014420done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422
14423
14424
14425
14426
14427
Douglas Gregor071d73d2009-05-18 17:21:34 +000014428for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014429do
14430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436fi
14437ac_res=`eval echo '${'$as_ac_Header'}'`
14438 { echo "$as_me:$LINENO: result: $ac_res" >&5
14439echo "${ECHO_T}$ac_res" >&6; }
14440else
14441 # Is the header compilable?
14442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451#include <$ac_header>
14452_ACEOF
14453rm -f conftest.$ac_objext
14454if { (ac_try="$ac_compile"
14455case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14468 { (case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471esac
14472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_try") 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481esac
14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_try") 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_header_compiler=yes
14488else
14489 echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 ac_header_compiler=no
14493fi
14494
14495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14497echo "${ECHO_T}$ac_header_compiler" >&6; }
14498
14499# Is the header present?
14500{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14502cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508#include <$ac_header>
14509_ACEOF
14510if { (ac_try="$ac_cpp conftest.$ac_ext"
14511case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14514esac
14515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null; then
14523 if test -s conftest.err; then
14524 ac_cpp_err=$ac_c_preproc_warn_flag
14525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14526 else
14527 ac_cpp_err=
14528 fi
14529else
14530 ac_cpp_err=yes
14531fi
14532if test -z "$ac_cpp_err"; then
14533 ac_header_preproc=yes
14534else
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 ac_header_preproc=no
14539fi
14540
14541rm -f conftest.err conftest.$ac_ext
14542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14543echo "${ECHO_T}$ac_header_preproc" >&6; }
14544
14545# So? What about this header?
14546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14547 yes:no: )
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14552 ac_header_preproc=yes
14553 ;;
14554 no:yes:* )
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14567 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014568## ------------------------------------ ##
14569## Report this to http://llvm.org/bugs/ ##
14570## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014571_ASBOX
14572 ) | sed "s/^/$as_me: WARNING: /" >&2
14573 ;;
14574esac
14575{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579else
14580 eval "$as_ac_Header=\$ac_header_preproc"
14581fi
14582ac_res=`eval echo '${'$as_ac_Header'}'`
14583 { echo "$as_me:$LINENO: result: $ac_res" >&5
14584echo "${ECHO_T}$ac_res" >&6; }
14585
14586fi
14587if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014588 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014590_ACEOF
14591
14592fi
14593
14594done
14595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596
14597
Douglas Gregor071d73d2009-05-18 17:21:34 +000014598for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014599do
14600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606fi
14607ac_res=`eval echo '${'$as_ac_Header'}'`
14608 { echo "$as_me:$LINENO: result: $ac_res" >&5
14609echo "${ECHO_T}$ac_res" >&6; }
14610else
14611 # Is the header compilable?
14612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14614cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
14620$ac_includes_default
14621#include <$ac_header>
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (ac_try="$ac_compile"
14625case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_header_compiler=yes
14658else
14659 echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 ac_header_compiler=no
14663fi
14664
14665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667echo "${ECHO_T}$ac_header_compiler" >&6; }
14668
14669# Is the header present?
14670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14672cat >conftest.$ac_ext <<_ACEOF
14673/* confdefs.h. */
14674_ACEOF
14675cat confdefs.h >>conftest.$ac_ext
14676cat >>conftest.$ac_ext <<_ACEOF
14677/* end confdefs.h. */
14678#include <$ac_header>
14679_ACEOF
14680if { (ac_try="$ac_cpp conftest.$ac_ext"
14681case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684esac
14685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } >/dev/null; then
14693 if test -s conftest.err; then
14694 ac_cpp_err=$ac_c_preproc_warn_flag
14695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14696 else
14697 ac_cpp_err=
14698 fi
14699else
14700 ac_cpp_err=yes
14701fi
14702if test -z "$ac_cpp_err"; then
14703 ac_header_preproc=yes
14704else
14705 echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ac_header_preproc=no
14709fi
14710
14711rm -f conftest.err conftest.$ac_ext
14712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713echo "${ECHO_T}$ac_header_preproc" >&6; }
14714
14715# So? What about this header?
14716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14717 yes:no: )
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14722 ac_header_preproc=yes
14723 ;;
14724 no:yes:* )
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14737 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014738## ------------------------------------ ##
14739## Report this to http://llvm.org/bugs/ ##
14740## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014741_ASBOX
14742 ) | sed "s/^/$as_me: WARNING: /" >&2
14743 ;;
14744esac
14745{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749else
14750 eval "$as_ac_Header=\$ac_header_preproc"
14751fi
14752ac_res=`eval echo '${'$as_ac_Header'}'`
14753 { echo "$as_me:$LINENO: result: $ac_res" >&5
14754echo "${ECHO_T}$ac_res" >&6; }
14755
14756fi
14757if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014758 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014760_ACEOF
14761
14762fi
14763
14764done
Reid Spencer59473af2004-12-25 07:31:29 +000014765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766
14767
14768
14769
Daniel Dunbar3e462932011-02-03 02:40:02 +000014770
14771for 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 +000014772do
14773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779fi
14780ac_res=`eval echo '${'$as_ac_Header'}'`
14781 { echo "$as_me:$LINENO: result: $ac_res" >&5
14782echo "${ECHO_T}$ac_res" >&6; }
14783else
14784 # Is the header compilable?
14785{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793$ac_includes_default
14794#include <$ac_header>
14795_ACEOF
14796rm -f conftest.$ac_objext
14797if { (ac_try="$ac_compile"
14798case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801esac
14802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_compile") 2>conftest.er1
14804 ac_status=$?
14805 grep -v '^ *+' conftest.er1 >conftest.err
14806 rm -f conftest.er1
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14811 { (case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_try") 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824esac
14825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_try") 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_header_compiler=yes
14831else
14832 echo "$as_me: failed program was:" >&5
14833sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_header_compiler=no
14836fi
14837
14838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840echo "${ECHO_T}$ac_header_compiler" >&6; }
14841
14842# Is the header present?
14843{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14845cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851#include <$ac_header>
14852_ACEOF
14853if { (ac_try="$ac_cpp conftest.$ac_ext"
14854case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857esac
14858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } >/dev/null; then
14866 if test -s conftest.err; then
14867 ac_cpp_err=$ac_c_preproc_warn_flag
14868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14869 else
14870 ac_cpp_err=
14871 fi
14872else
14873 ac_cpp_err=yes
14874fi
14875if test -z "$ac_cpp_err"; then
14876 ac_header_preproc=yes
14877else
14878 echo "$as_me: failed program was:" >&5
14879sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_header_preproc=no
14882fi
14883
14884rm -f conftest.err conftest.$ac_ext
14885{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14886echo "${ECHO_T}$ac_header_preproc" >&6; }
14887
14888# So? What about this header?
14889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14890 yes:no: )
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14895 ac_header_preproc=yes
14896 ;;
14897 no:yes:* )
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14905echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14910 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014911## ------------------------------------ ##
14912## Report this to http://llvm.org/bugs/ ##
14913## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014914_ASBOX
14915 ) | sed "s/^/$as_me: WARNING: /" >&2
14916 ;;
14917esac
14918{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923 eval "$as_ac_Header=\$ac_header_preproc"
14924fi
14925ac_res=`eval echo '${'$as_ac_Header'}'`
14926 { echo "$as_me:$LINENO: result: $ac_res" >&5
14927echo "${ECHO_T}$ac_res" >&6; }
14928
14929fi
14930if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014931 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000014933_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000014934
14935fi
John Criswell7ed43ad2004-07-19 16:12:29 +000014936
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014937done
14938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014939
14940
14941
14942
Douglas Gregor01746742009-05-11 18:05:52 +000014943for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014944do
14945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951fi
14952ac_res=`eval echo '${'$as_ac_Header'}'`
14953 { echo "$as_me:$LINENO: result: $ac_res" >&5
14954echo "${ECHO_T}$ac_res" >&6; }
14955else
14956 # Is the header compilable?
14957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14959cat >conftest.$ac_ext <<_ACEOF
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965$ac_includes_default
14966#include <$ac_header>
14967_ACEOF
14968rm -f conftest.$ac_objext
14969if { (ac_try="$ac_compile"
14970case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973esac
14974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_header_compiler=yes
15003else
15004 echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 ac_header_compiler=no
15008fi
15009
15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012echo "${ECHO_T}$ac_header_compiler" >&6; }
15013
15014# Is the header present?
15015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15017cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
15023#include <$ac_header>
15024_ACEOF
15025if { (ac_try="$ac_cpp conftest.$ac_ext"
15026case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029esac
15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15041 else
15042 ac_cpp_err=
15043 fi
15044else
15045 ac_cpp_err=yes
15046fi
15047if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 ac_header_preproc=no
15054fi
15055
15056rm -f conftest.err conftest.$ac_ext
15057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058echo "${ECHO_T}$ac_header_preproc" >&6; }
15059
15060# So? What about this header?
15061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15062 yes:no: )
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067 ac_header_preproc=yes
15068 ;;
15069 no:yes:* )
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15082 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015083## ------------------------------------ ##
15084## Report this to http://llvm.org/bugs/ ##
15085## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015086_ASBOX
15087 ) | sed "s/^/$as_me: WARNING: /" >&2
15088 ;;
15089esac
15090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094else
15095 eval "$as_ac_Header=\$ac_header_preproc"
15096fi
15097ac_res=`eval echo '${'$as_ac_Header'}'`
15098 { echo "$as_me:$LINENO: result: $ac_res" >&5
15099echo "${ECHO_T}$ac_res" >&6; }
15100
15101fi
15102if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015103 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015105_ACEOF
15106
15107fi
15108
15109done
15110
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015111
15112for ac_header in valgrind/valgrind.h
15113do
15114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120fi
15121ac_res=`eval echo '${'$as_ac_Header'}'`
15122 { echo "$as_me:$LINENO: result: $ac_res" >&5
15123echo "${ECHO_T}$ac_res" >&6; }
15124else
15125 # Is the header compilable?
15126{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15128cat >conftest.$ac_ext <<_ACEOF
15129/* confdefs.h. */
15130_ACEOF
15131cat confdefs.h >>conftest.$ac_ext
15132cat >>conftest.$ac_ext <<_ACEOF
15133/* end confdefs.h. */
15134$ac_includes_default
15135#include <$ac_header>
15136_ACEOF
15137rm -f conftest.$ac_objext
15138if { (ac_try="$ac_compile"
15139case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155esac
15156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
15162 { (case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165esac
15166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_try") 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_header_compiler=yes
15172else
15173 echo "$as_me: failed program was:" >&5
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
15176 ac_header_compiler=no
15177fi
15178
15179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181echo "${ECHO_T}$ac_header_compiler" >&6; }
15182
15183# Is the header present?
15184{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15186cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
15192#include <$ac_header>
15193_ACEOF
15194if { (ac_try="$ac_cpp conftest.$ac_ext"
15195case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198esac
15199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } >/dev/null; then
15207 if test -s conftest.err; then
15208 ac_cpp_err=$ac_c_preproc_warn_flag
15209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210 else
15211 ac_cpp_err=
15212 fi
15213else
15214 ac_cpp_err=yes
15215fi
15216if test -z "$ac_cpp_err"; then
15217 ac_header_preproc=yes
15218else
15219 echo "$as_me: failed program was:" >&5
15220sed 's/^/| /' conftest.$ac_ext >&5
15221
15222 ac_header_preproc=no
15223fi
15224
15225rm -f conftest.err conftest.$ac_ext
15226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15227echo "${ECHO_T}$ac_header_preproc" >&6; }
15228
15229# So? What about this header?
15230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15231 yes:no: )
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15236 ac_header_preproc=yes
15237 ;;
15238 no:yes:* )
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15251 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015252## ------------------------------------ ##
15253## Report this to http://llvm.org/bugs/ ##
15254## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015255_ASBOX
15256 ) | sed "s/^/$as_me: WARNING: /" >&2
15257 ;;
15258esac
15259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263else
15264 eval "$as_ac_Header=\$ac_header_preproc"
15265fi
15266ac_res=`eval echo '${'$as_ac_Header'}'`
15267 { echo "$as_me:$LINENO: result: $ac_res" >&5
15268echo "${ECHO_T}$ac_res" >&6; }
15269
15270fi
15271if test `eval echo '${'$as_ac_Header'}'` = yes; then
15272 cat >>confdefs.h <<_ACEOF
15273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274_ACEOF
15275
15276fi
15277
15278done
15279
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015280
15281for ac_header in fenv.h
15282do
15283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289fi
15290ac_res=`eval echo '${'$as_ac_Header'}'`
15291 { echo "$as_me:$LINENO: result: $ac_res" >&5
15292echo "${ECHO_T}$ac_res" >&6; }
15293else
15294 # Is the header compilable?
15295{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15297cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h. */
15303$ac_includes_default
15304#include <$ac_header>
15305_ACEOF
15306rm -f conftest.$ac_objext
15307if { (ac_try="$ac_compile"
15308case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15311esac
15312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_compile") 2>conftest.er1
15314 ac_status=$?
15315 grep -v '^ *+' conftest.er1 >conftest.err
15316 rm -f conftest.er1
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15324esac
15325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest.$ac_objext'
15331 { (case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334esac
15335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_try") 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_header_compiler=yes
15341else
15342 echo "$as_me: failed program was:" >&5
15343sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 ac_header_compiler=no
15346fi
15347
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15350echo "${ECHO_T}$ac_header_compiler" >&6; }
15351
15352# Is the header present?
15353{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15355cat >conftest.$ac_ext <<_ACEOF
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361#include <$ac_header>
15362_ACEOF
15363if { (ac_try="$ac_cpp conftest.$ac_ext"
15364case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } >/dev/null; then
15376 if test -s conftest.err; then
15377 ac_cpp_err=$ac_c_preproc_warn_flag
15378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15379 else
15380 ac_cpp_err=
15381 fi
15382else
15383 ac_cpp_err=yes
15384fi
15385if test -z "$ac_cpp_err"; then
15386 ac_header_preproc=yes
15387else
15388 echo "$as_me: failed program was:" >&5
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 ac_header_preproc=no
15392fi
15393
15394rm -f conftest.err conftest.$ac_ext
15395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15396echo "${ECHO_T}$ac_header_preproc" >&6; }
15397
15398# So? What about this header?
15399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15400 yes:no: )
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15405 ac_header_preproc=yes
15406 ;;
15407 no:yes:* )
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15420 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015421## ------------------------------------ ##
15422## Report this to http://llvm.org/bugs/ ##
15423## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015424_ASBOX
15425 ) | sed "s/^/$as_me: WARNING: /" >&2
15426 ;;
15427esac
15428{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432else
15433 eval "$as_ac_Header=\$ac_header_preproc"
15434fi
15435ac_res=`eval echo '${'$as_ac_Header'}'`
15436 { echo "$as_me:$LINENO: result: $ac_res" >&5
15437echo "${ECHO_T}$ac_res" >&6; }
15438
15439fi
15440if test `eval echo '${'$as_ac_Header'}'` = yes; then
15441 cat >>confdefs.h <<_ACEOF
15442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443_ACEOF
15444
15445fi
15446
15447done
15448
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015449if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015450
15451for ac_header in pthread.h
15452do
15453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459fi
15460ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462echo "${ECHO_T}$ac_res" >&6; }
15463else
15464 # Is the header compilable?
15465{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473$ac_includes_default
15474#include <$ac_header>
15475_ACEOF
15476rm -f conftest.$ac_objext
15477if { (ac_try="$ac_compile"
15478case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481esac
15482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504esac
15505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_header_compiler=yes
15511else
15512 echo "$as_me: failed program was:" >&5
15513sed 's/^/| /' conftest.$ac_ext >&5
15514
15515 ac_header_compiler=no
15516fi
15517
15518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520echo "${ECHO_T}$ac_header_compiler" >&6; }
15521
15522# Is the header present?
15523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531#include <$ac_header>
15532_ACEOF
15533if { (ac_try="$ac_cpp conftest.$ac_ext"
15534case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15537esac
15538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } >/dev/null; then
15546 if test -s conftest.err; then
15547 ac_cpp_err=$ac_c_preproc_warn_flag
15548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15549 else
15550 ac_cpp_err=
15551 fi
15552else
15553 ac_cpp_err=yes
15554fi
15555if test -z "$ac_cpp_err"; then
15556 ac_header_preproc=yes
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561 ac_header_preproc=no
15562fi
15563
15564rm -f conftest.err conftest.$ac_ext
15565{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566echo "${ECHO_T}$ac_header_preproc" >&6; }
15567
15568# So? What about this header?
15569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15570 yes:no: )
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575 ac_header_preproc=yes
15576 ;;
15577 no:yes:* )
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15590 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015591## ------------------------------------ ##
15592## Report this to http://llvm.org/bugs/ ##
15593## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015594_ASBOX
15595 ) | sed "s/^/$as_me: WARNING: /" >&2
15596 ;;
15597esac
15598{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602else
15603 eval "$as_ac_Header=\$ac_header_preproc"
15604fi
15605ac_res=`eval echo '${'$as_ac_Header'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607echo "${ECHO_T}$ac_res" >&6; }
15608
15609fi
15610if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015611 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015613_ACEOF
15614 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015615
15616else
15617 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015618
15619fi
15620
Reid Spencerbe3e4192007-08-17 05:45:26 +000015621done
Reid Spencer1000b732006-12-01 00:37:14 +000015622
15623else
15624 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015625
15626fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015627
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015628if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015629
15630
15631for ac_header in ffi.h ffi/ffi.h
15632do
15633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639fi
15640ac_res=`eval echo '${'$as_ac_Header'}'`
15641 { echo "$as_me:$LINENO: result: $ac_res" >&5
15642echo "${ECHO_T}$ac_res" >&6; }
15643else
15644 # Is the header compilable?
15645{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15647cat >conftest.$ac_ext <<_ACEOF
15648/* confdefs.h. */
15649_ACEOF
15650cat confdefs.h >>conftest.$ac_ext
15651cat >>conftest.$ac_ext <<_ACEOF
15652/* end confdefs.h. */
15653$ac_includes_default
15654#include <$ac_header>
15655_ACEOF
15656rm -f conftest.$ac_objext
15657if { (ac_try="$ac_compile"
15658case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671 { (case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674esac
15675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_try") 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try='test -s conftest.$ac_objext'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_header_compiler=yes
15691else
15692 echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 ac_header_compiler=no
15696fi
15697
15698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15700echo "${ECHO_T}$ac_header_compiler" >&6; }
15701
15702# Is the header present?
15703{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15705cat >conftest.$ac_ext <<_ACEOF
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711#include <$ac_header>
15712_ACEOF
15713if { (ac_try="$ac_cpp conftest.$ac_ext"
15714case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15717esac
15718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } >/dev/null; then
15726 if test -s conftest.err; then
15727 ac_cpp_err=$ac_c_preproc_warn_flag
15728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15729 else
15730 ac_cpp_err=
15731 fi
15732else
15733 ac_cpp_err=yes
15734fi
15735if test -z "$ac_cpp_err"; then
15736 ac_header_preproc=yes
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_header_preproc=no
15742fi
15743
15744rm -f conftest.err conftest.$ac_ext
15745{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15746echo "${ECHO_T}$ac_header_preproc" >&6; }
15747
15748# So? What about this header?
15749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15750 yes:no: )
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15755 ac_header_preproc=yes
15756 ;;
15757 no:yes:* )
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15770 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015771## ------------------------------------ ##
15772## Report this to http://llvm.org/bugs/ ##
15773## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015774_ASBOX
15775 ) | sed "s/^/$as_me: WARNING: /" >&2
15776 ;;
15777esac
15778{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783 eval "$as_ac_Header=\$ac_header_preproc"
15784fi
15785ac_res=`eval echo '${'$as_ac_Header'}'`
15786 { echo "$as_me:$LINENO: result: $ac_res" >&5
15787echo "${ECHO_T}$ac_res" >&6; }
15788
15789fi
15790if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015791 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015793_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015794
15795fi
15796
15797done
15798
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015799fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015800
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015801
Eric Christopher654dee42010-06-22 21:01:04 +000015802for ac_header in CrashReporterClient.h
15803do
15804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810fi
15811ac_res=`eval echo '${'$as_ac_Header'}'`
15812 { echo "$as_me:$LINENO: result: $ac_res" >&5
15813echo "${ECHO_T}$ac_res" >&6; }
15814else
15815 # Is the header compilable?
15816{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15818cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825#include <$ac_header>
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (ac_try="$ac_compile"
15829case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_compile") 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845esac
15846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855esac
15856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_header_compiler=yes
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 ac_header_compiler=no
15867fi
15868
15869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871echo "${ECHO_T}$ac_header_compiler" >&6; }
15872
15873# Is the header present?
15874{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882#include <$ac_header>
15883_ACEOF
15884if { (ac_try="$ac_cpp conftest.$ac_ext"
15885case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15888esac
15889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null; then
15897 if test -s conftest.err; then
15898 ac_cpp_err=$ac_c_preproc_warn_flag
15899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15900 else
15901 ac_cpp_err=
15902 fi
15903else
15904 ac_cpp_err=yes
15905fi
15906if test -z "$ac_cpp_err"; then
15907 ac_header_preproc=yes
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 ac_header_preproc=no
15913fi
15914
15915rm -f conftest.err conftest.$ac_ext
15916{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917echo "${ECHO_T}$ac_header_preproc" >&6; }
15918
15919# So? What about this header?
15920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15921 yes:no: )
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926 ac_header_preproc=yes
15927 ;;
15928 no:yes:* )
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15941 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015942## ------------------------------------ ##
15943## Report this to http://llvm.org/bugs/ ##
15944## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000015945_ASBOX
15946 ) | sed "s/^/$as_me: WARNING: /" >&2
15947 ;;
15948esac
15949{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953else
15954 eval "$as_ac_Header=\$ac_header_preproc"
15955fi
15956ac_res=`eval echo '${'$as_ac_Header'}'`
15957 { echo "$as_me:$LINENO: result: $ac_res" >&5
15958echo "${ECHO_T}$ac_res" >&6; }
15959
15960fi
15961if test `eval echo '${'$as_ac_Header'}'` = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15964_ACEOF
15965
15966fi
15967
15968done
15969
15970
Eric Christopher51e57132010-12-07 02:05:42 +000015971{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15972echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000015973cat >conftest.$ac_ext <<_ACEOF
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000015979extern const char *__crashreporter_info__;
15980 int main() {
15981 __crashreporter_info__ = "test";
15982 return 0;
15983 }
Eric Christopher481d4022010-12-03 07:45:22 +000015984
Eric Christopher481d4022010-12-03 07:45:22 +000015985_ACEOF
15986rm -f conftest.$ac_objext conftest$ac_exeext
15987if { (ac_try="$ac_link"
15988case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991esac
15992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_link") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } &&
16000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16001 { (case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004esac
16005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_try") 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest$ac_exeext'
16011 { (case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014esac
16015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_try") 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016020 { echo "$as_me:$LINENO: result: yes" >&5
16021echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016022
16023cat >>confdefs.h <<\_ACEOF
16024#define HAVE_CRASHREPORTER_INFO 1
16025_ACEOF
16026
Eric Christopher51e57132010-12-07 02:05:42 +000016027else
16028 echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 { echo "$as_me:$LINENO: result: no" >&5
16032echo "${ECHO_T}no" >&6; }
16033
16034cat >>confdefs.h <<\_ACEOF
16035#define HAVE_CRASHREPORTER_INFO 0
16036_ACEOF
16037
Eric Christopher481d4022010-12-03 07:45:22 +000016038fi
Eric Christopher654dee42010-06-22 21:01:04 +000016039
Eric Christopher51e57132010-12-07 02:05:42 +000016040rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042
16043
Reid Spencer8085cff2005-01-16 02:58:39 +000016044
Torok Edwin871384f2010-01-26 08:50:50 +000016045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016046 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16047echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16048if test "${ac_cv_huge_val_sanity+set}" = set; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016050else
16051
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016052 ac_ext=cpp
16053ac_cpp='$CXXCPP $CPPFLAGS'
16054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016057
Eric Christopherc7718502010-03-02 05:06:54 +000016058 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016059 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016060 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016061 ac_cv_huge_val_sanity=yes
16062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016063 cat >conftest.$ac_ext <<_ACEOF
16064/* confdefs.h. */
16065_ACEOF
16066cat confdefs.h >>conftest.$ac_ext
16067cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016068/* end confdefs.h. */
16069#include <math.h>
16070int
16071main ()
16072{
16073double x = HUGE_VAL; return x != x;
16074 ;
16075 return 0;
16076}
16077_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016078rm -f conftest$ac_exeext
16079if { (ac_try="$ac_link"
16080case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_link") 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016098 ac_cv_huge_val_sanity=yes
16099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016100 echo "$as_me: program exited with status $ac_status" >&5
16101echo "$as_me: failed program was:" >&5
16102sed 's/^/| /' conftest.$ac_ext >&5
16103
16104( exit $ac_status )
16105ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016107rm -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 +000016108fi
16109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016110
Eric Christopherc7718502010-03-02 05:06:54 +000016111 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016112 ac_ext=c
16113ac_cpp='$CPP $CPPFLAGS'
16114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116ac_compiler_gnu=$ac_cv_c_compiler_gnu
16117
16118
16119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016120{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16121echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016122 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16123
16124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016125{ echo "$as_me:$LINENO: checking for pid_t" >&5
16126echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16127if test "${ac_cv_type_pid_t+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130 cat >conftest.$ac_ext <<_ACEOF
16131/* confdefs.h. */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
16135/* end confdefs.h. */
16136$ac_includes_default
16137typedef pid_t ac__type_new_;
16138int
16139main ()
16140{
16141if ((ac__type_new_ *) 0)
16142 return 0;
16143if (sizeof (ac__type_new_))
16144 return 0;
16145 ;
16146 return 0;
16147}
16148_ACEOF
16149rm -f conftest.$ac_objext
16150if { (ac_try="$ac_compile"
16151case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16164 { (case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_try") 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_try") 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_type_pid_t=yes
16184else
16185 echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016188 ac_cv_type_pid_t=no
16189fi
16190
16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192fi
16193{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16194echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16195if test $ac_cv_type_pid_t = yes; then
16196 :
John Criswell7a73b802003-06-30 21:59:07 +000016197else
16198
16199cat >>confdefs.h <<_ACEOF
16200#define pid_t int
16201_ACEOF
16202
16203fi
16204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016205{ echo "$as_me:$LINENO: checking for size_t" >&5
16206echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16207if test "${ac_cv_type_size_t+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209else
16210 cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216$ac_includes_default
16217typedef size_t ac__type_new_;
16218int
16219main ()
16220{
16221if ((ac__type_new_ *) 0)
16222 return 0;
16223if (sizeof (ac__type_new_))
16224 return 0;
16225 ;
16226 return 0;
16227}
16228_ACEOF
16229rm -f conftest.$ac_objext
16230if { (ac_try="$ac_compile"
16231case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
16243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16244 { (case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_try") 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257esac
16258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_try") 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ac_cv_type_size_t=yes
16264else
16265 echo "$as_me: failed program was:" >&5
16266sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016268 ac_cv_type_size_t=no
16269fi
16270
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16274echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16275if test $ac_cv_type_size_t = yes; then
16276 :
John Criswell7a73b802003-06-30 21:59:07 +000016277else
16278
16279cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016280#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016281_ACEOF
16282
16283fi
16284
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016285
16286cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016287#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016288_ACEOF
16289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016290{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16291echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16292if test "${ac_cv_struct_tm+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016300/* end confdefs.h. */
16301#include <sys/types.h>
16302#include <time.h>
16303
16304int
16305main ()
16306{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016307struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016308 ;
16309 return 0;
16310}
16311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016312rm -f conftest.$ac_objext
16313if { (ac_try="$ac_compile"
16314case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317esac
16318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_compile") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16327 { (case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16330esac
16331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_try") 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; } &&
16336 { ac_try='test -s conftest.$ac_objext'
16337 { (case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_try") 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016346 ac_cv_struct_tm=time.h
16347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016348 echo "$as_me: failed program was:" >&5
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
16351 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016353
Reid Spencera773bd52006-08-04 18:18:08 +000016354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016356{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16357echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016358if test $ac_cv_struct_tm = sys/time.h; then
16359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016360cat >>confdefs.h <<\_ACEOF
16361#define TM_IN_SYS_TIME 1
16362_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016363
16364fi
16365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016366{ echo "$as_me:$LINENO: checking for int64_t" >&5
16367echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16368if test "${ac_cv_type_int64_t+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371 cat >conftest.$ac_ext <<_ACEOF
16372/* confdefs.h. */
16373_ACEOF
16374cat confdefs.h >>conftest.$ac_ext
16375cat >>conftest.$ac_ext <<_ACEOF
16376/* end confdefs.h. */
16377$ac_includes_default
16378typedef int64_t ac__type_new_;
16379int
16380main ()
16381{
16382if ((ac__type_new_ *) 0)
16383 return 0;
16384if (sizeof (ac__type_new_))
16385 return 0;
16386 ;
16387 return 0;
16388}
16389_ACEOF
16390rm -f conftest.$ac_objext
16391if { (ac_try="$ac_compile"
16392case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395esac
16396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_compile") 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16405 { (case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408esac
16409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_try") 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
16415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
16419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16424 ac_cv_type_int64_t=yes
16425else
16426 echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ac_cv_type_int64_t=no
16430fi
16431
16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433fi
16434{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16435echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16436if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016437
16438cat >>confdefs.h <<_ACEOF
16439#define HAVE_INT64_T 1
16440_ACEOF
16441
16442
16443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016444 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16445echo "$as_me: error: Type int64_t required but not found" >&2;}
16446 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016447fi
16448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016449{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16450echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16451if test "${ac_cv_type_uint64_t+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453else
16454 cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461typedef uint64_t ac__type_new_;
16462int
16463main ()
16464{
16465if ((ac__type_new_ *) 0)
16466 return 0;
16467if (sizeof (ac__type_new_))
16468 return 0;
16469 ;
16470 return 0;
16471}
16472_ACEOF
16473rm -f conftest.$ac_objext
16474if { (ac_try="$ac_compile"
16475case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16478esac
16479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_compile") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491esac
16492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_cv_type_uint64_t=yes
16508else
16509 echo "$as_me: failed program was:" >&5
16510sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ac_cv_type_uint64_t=no
16513fi
16514
16515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516fi
16517{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16518echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16519if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016520
16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_UINT64_T 1
16523_ACEOF
16524
16525
16526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016527 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16528echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16529if test "${ac_cv_type_u_int64_t+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531else
16532 cat >conftest.$ac_ext <<_ACEOF
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */
16538$ac_includes_default
16539typedef u_int64_t ac__type_new_;
16540int
16541main ()
16542{
16543if ((ac__type_new_ *) 0)
16544 return 0;
16545if (sizeof (ac__type_new_))
16546 return 0;
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext
16552if { (ac_try="$ac_compile"
16553case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556esac
16557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_compile") 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569esac
16570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_try") 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579esac
16580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_type_u_int64_t=yes
16586else
16587 echo "$as_me: failed program was:" >&5
16588sed 's/^/| /' conftest.$ac_ext >&5
16589
16590 ac_cv_type_u_int64_t=no
16591fi
16592
16593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594fi
16595{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16596echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16597if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016598
16599cat >>confdefs.h <<_ACEOF
16600#define HAVE_U_INT64_T 1
16601_ACEOF
16602
16603
Misha Brukmanceca9042004-09-02 23:02:30 +000016604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016605 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16606echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16607 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016608fi
16609
John Criswell679ff312004-09-02 18:44:44 +000016610fi
16611
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016612
16613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016614
16615
16616
16617
16618
16619
16620
Reid Spencerdf3be822006-01-23 08:15:53 +000016621for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016622do
16623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628else
16629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16637#define $ac_func innocuous_$ac_func
16638
16639/* System header to define __stub macros and hopefully few prototypes,
16640 which can conflict with char $ac_func (); below.
16641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16642 <limits.h> exists even on freestanding compilers. */
16643
16644#ifdef __STDC__
16645# include <limits.h>
16646#else
16647# include <assert.h>
16648#endif
16649
16650#undef $ac_func
16651
16652/* Override any GCC internal prototype to avoid an error.
16653 Use char because int might match the return type of a GCC
16654 builtin and then its argument prototype would still apply. */
16655#ifdef __cplusplus
16656extern "C"
16657#endif
16658char $ac_func ();
16659/* The GNU C library defines this for functions which it implements
16660 to always fail with ENOSYS. Some functions are actually named
16661 something starting with __ and the normal name is an alias. */
16662#if defined __stub_$ac_func || defined __stub___$ac_func
16663choke me
16664#endif
16665
16666int
16667main ()
16668{
16669return $ac_func ();
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext conftest$ac_exeext
16675if { (ac_try="$ac_link"
16676case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_link") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692esac
16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest$ac_exeext'
16699 { (case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702esac
16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_try") 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 eval "$as_ac_var=yes"
16709else
16710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 eval "$as_ac_var=no"
16714fi
16715
16716rm -f core conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16718fi
16719ac_res=`eval echo '${'$as_ac_var'}'`
16720 { echo "$as_me:$LINENO: result: $ac_res" >&5
16721echo "${ECHO_T}$ac_res" >&6; }
16722if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016723 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016725_ACEOF
16726
16727fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016728done
John Criswell7a73b802003-06-30 21:59:07 +000016729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016730
16731
16732
16733
Reid Spencer96cf5872007-07-13 10:05:30 +000016734for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016735do
16736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16737{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16741else
16742 cat >conftest.$ac_ext <<_ACEOF
16743/* confdefs.h. */
16744_ACEOF
16745cat confdefs.h >>conftest.$ac_ext
16746cat >>conftest.$ac_ext <<_ACEOF
16747/* end confdefs.h. */
16748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16750#define $ac_func innocuous_$ac_func
16751
16752/* System header to define __stub macros and hopefully few prototypes,
16753 which can conflict with char $ac_func (); below.
16754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16755 <limits.h> exists even on freestanding compilers. */
16756
16757#ifdef __STDC__
16758# include <limits.h>
16759#else
16760# include <assert.h>
16761#endif
16762
16763#undef $ac_func
16764
16765/* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16768#ifdef __cplusplus
16769extern "C"
16770#endif
16771char $ac_func ();
16772/* The GNU C library defines this for functions which it implements
16773 to always fail with ENOSYS. Some functions are actually named
16774 something starting with __ and the normal name is an alias. */
16775#if defined __stub_$ac_func || defined __stub___$ac_func
16776choke me
16777#endif
16778
16779int
16780main ()
16781{
16782return $ac_func ();
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext conftest$ac_exeext
16788if { (ac_try="$ac_link"
16789case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792esac
16793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_link") 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; } &&
16811 { ac_try='test -s conftest$ac_exeext'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 eval "$as_ac_var=yes"
16822else
16823 echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 eval "$as_ac_var=no"
16827fi
16828
16829rm -f core conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
16831fi
16832ac_res=`eval echo '${'$as_ac_var'}'`
16833 { echo "$as_me:$LINENO: result: $ac_res" >&5
16834echo "${ECHO_T}$ac_res" >&6; }
16835if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016836 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016838_ACEOF
16839
16840fi
16841done
16842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016843
16844
16845
16846
16847
Reid Spencerb90645c2007-02-16 19:17:20 +000016848for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016849do
16850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16851{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855else
16856 cat >conftest.$ac_ext <<_ACEOF
16857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
16862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16864#define $ac_func innocuous_$ac_func
16865
16866/* System header to define __stub macros and hopefully few prototypes,
16867 which can conflict with char $ac_func (); below.
16868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16869 <limits.h> exists even on freestanding compilers. */
16870
16871#ifdef __STDC__
16872# include <limits.h>
16873#else
16874# include <assert.h>
16875#endif
16876
16877#undef $ac_func
16878
16879/* Override any GCC internal prototype to avoid an error.
16880 Use char because int might match the return type of a GCC
16881 builtin and then its argument prototype would still apply. */
16882#ifdef __cplusplus
16883extern "C"
16884#endif
16885char $ac_func ();
16886/* The GNU C library defines this for functions which it implements
16887 to always fail with ENOSYS. Some functions are actually named
16888 something starting with __ and the normal name is an alias. */
16889#if defined __stub_$ac_func || defined __stub___$ac_func
16890choke me
16891#endif
16892
16893int
16894main ()
16895{
16896return $ac_func ();
16897 ;
16898 return 0;
16899}
16900_ACEOF
16901rm -f conftest.$ac_objext conftest$ac_exeext
16902if { (ac_try="$ac_link"
16903case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_link") 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16916 { (case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_try") 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest$ac_exeext'
16926 { (case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16929esac
16930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931 (eval "$ac_try") 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 eval "$as_ac_var=yes"
16936else
16937 echo "$as_me: failed program was:" >&5
16938sed 's/^/| /' conftest.$ac_ext >&5
16939
16940 eval "$as_ac_var=no"
16941fi
16942
16943rm -f core conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16945fi
16946ac_res=`eval echo '${'$as_ac_var'}'`
16947 { echo "$as_me:$LINENO: result: $ac_res" >&5
16948echo "${ECHO_T}$ac_res" >&6; }
16949if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000016950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000016952_ACEOF
16953
16954fi
16955done
16956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016957
16958
16959
Reid Spencerb90645c2007-02-16 19:17:20 +000016960for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016961do
16962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16963{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16967else
16968 cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16976#define $ac_func innocuous_$ac_func
16977
16978/* System header to define __stub macros and hopefully few prototypes,
16979 which can conflict with char $ac_func (); below.
16980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16981 <limits.h> exists even on freestanding compilers. */
16982
16983#ifdef __STDC__
16984# include <limits.h>
16985#else
16986# include <assert.h>
16987#endif
16988
16989#undef $ac_func
16990
16991/* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
16994#ifdef __cplusplus
16995extern "C"
16996#endif
16997char $ac_func ();
16998/* The GNU C library defines this for functions which it implements
16999 to always fail with ENOSYS. Some functions are actually named
17000 something starting with __ and the normal name is an alias. */
17001#if defined __stub_$ac_func || defined __stub___$ac_func
17002choke me
17003#endif
17004
17005int
17006main ()
17007{
17008return $ac_func ();
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext conftest$ac_exeext
17014if { (ac_try="$ac_link"
17015case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018esac
17019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_link") 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031esac
17032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest$ac_exeext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 eval "$as_ac_var=yes"
17048else
17049 echo "$as_me: failed program was:" >&5
17050sed 's/^/| /' conftest.$ac_ext >&5
17051
17052 eval "$as_ac_var=no"
17053fi
17054
17055rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057fi
17058ac_res=`eval echo '${'$as_ac_var'}'`
17059 { echo "$as_me:$LINENO: result: $ac_res" >&5
17060echo "${ECHO_T}$ac_res" >&6; }
17061if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017062 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017064_ACEOF
17065
17066fi
17067done
17068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017069
17070
17071
17072
17073
Eric Christophere4291822010-04-16 05:14:21 +000017074
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017075
17076for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017077do
17078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17079{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 cat >conftest.$ac_ext <<_ACEOF
17085/* confdefs.h. */
17086_ACEOF
17087cat confdefs.h >>conftest.$ac_ext
17088cat >>conftest.$ac_ext <<_ACEOF
17089/* end confdefs.h. */
17090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092#define $ac_func innocuous_$ac_func
17093
17094/* System header to define __stub macros and hopefully few prototypes,
17095 which can conflict with char $ac_func (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
17098
17099#ifdef __STDC__
17100# include <limits.h>
17101#else
17102# include <assert.h>
17103#endif
17104
17105#undef $ac_func
17106
17107/* Override any GCC internal prototype to avoid an error.
17108 Use char because int might match the return type of a GCC
17109 builtin and then its argument prototype would still apply. */
17110#ifdef __cplusplus
17111extern "C"
17112#endif
17113char $ac_func ();
17114/* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
17117#if defined __stub_$ac_func || defined __stub___$ac_func
17118choke me
17119#endif
17120
17121int
17122main ()
17123{
17124return $ac_func ();
17125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext conftest$ac_exeext
17130if { (ac_try="$ac_link"
17131case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17134esac
17135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_link") 2>conftest.er1
17137 ac_status=$?
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144 { (case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147esac
17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_try") 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 eval "$as_ac_var=yes"
17164else
17165 echo "$as_me: failed program was:" >&5
17166sed 's/^/| /' conftest.$ac_ext >&5
17167
17168 eval "$as_ac_var=no"
17169fi
17170
17171rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173fi
17174ac_res=`eval echo '${'$as_ac_var'}'`
17175 { echo "$as_me:$LINENO: result: $ac_res" >&5
17176echo "${ECHO_T}$ac_res" >&6; }
17177if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017178 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017180_ACEOF
17181
17182fi
17183done
Reid Spencerdf3be822006-01-23 08:15:53 +000017184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017185
17186
17187
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017188for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017189do
17190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195else
17196 cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17204#define $ac_func innocuous_$ac_func
17205
17206/* System header to define __stub macros and hopefully few prototypes,
17207 which can conflict with char $ac_func (); below.
17208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209 <limits.h> exists even on freestanding compilers. */
17210
17211#ifdef __STDC__
17212# include <limits.h>
17213#else
17214# include <assert.h>
17215#endif
17216
17217#undef $ac_func
17218
17219/* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222#ifdef __cplusplus
17223extern "C"
17224#endif
17225char $ac_func ();
17226/* The GNU C library defines this for functions which it implements
17227 to always fail with ENOSYS. Some functions are actually named
17228 something starting with __ and the normal name is an alias. */
17229#if defined __stub_$ac_func || defined __stub___$ac_func
17230choke me
17231#endif
17232
17233int
17234main ()
17235{
17236return $ac_func ();
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext conftest$ac_exeext
17242if { (ac_try="$ac_link"
17243case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17246esac
17247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_link") 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17256 { (case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_try") 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest$ac_exeext'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17269esac
17270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 eval "$as_ac_var=yes"
17276else
17277 echo "$as_me: failed program was:" >&5
17278sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 eval "$as_ac_var=no"
17281fi
17282
17283rm -f core conftest.err conftest.$ac_objext \
17284 conftest$ac_exeext conftest.$ac_ext
17285fi
17286ac_res=`eval echo '${'$as_ac_var'}'`
17287 { echo "$as_me:$LINENO: result: $ac_res" >&5
17288echo "${ECHO_T}$ac_res" >&6; }
17289if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017290 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017292_ACEOF
17293
17294fi
17295done
17296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017297
17298
17299
17300
Chris Lattner511f11d2005-11-14 07:25:50 +000017301for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017302do
17303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17304{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308else
17309 cat >conftest.$ac_ext <<_ACEOF
17310/* confdefs.h. */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h. */
17315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17317#define $ac_func innocuous_$ac_func
17318
17319/* System header to define __stub macros and hopefully few prototypes,
17320 which can conflict with char $ac_func (); below.
17321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17322 <limits.h> exists even on freestanding compilers. */
17323
17324#ifdef __STDC__
17325# include <limits.h>
17326#else
17327# include <assert.h>
17328#endif
17329
17330#undef $ac_func
17331
17332/* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
17335#ifdef __cplusplus
17336extern "C"
17337#endif
17338char $ac_func ();
17339/* The GNU C library defines this for functions which it implements
17340 to always fail with ENOSYS. Some functions are actually named
17341 something starting with __ and the normal name is an alias. */
17342#if defined __stub_$ac_func || defined __stub___$ac_func
17343choke me
17344#endif
17345
17346int
17347main ()
17348{
17349return $ac_func ();
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354rm -f conftest.$ac_objext conftest$ac_exeext
17355if { (ac_try="$ac_link"
17356case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359esac
17360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_link") 2>conftest.er1
17362 ac_status=$?
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17372esac
17373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest$ac_exeext'
17379 { (case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382esac
17383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 eval "$as_ac_var=yes"
17389else
17390 echo "$as_me: failed program was:" >&5
17391sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 eval "$as_ac_var=no"
17394fi
17395
17396rm -f core conftest.err conftest.$ac_objext \
17397 conftest$ac_exeext conftest.$ac_ext
17398fi
17399ac_res=`eval echo '${'$as_ac_var'}'`
17400 { echo "$as_me:$LINENO: result: $ac_res" >&5
17401echo "${ECHO_T}$ac_res" >&6; }
17402if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017403 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017405_ACEOF
17406
17407fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017408done
John Criswell7a73b802003-06-30 21:59:07 +000017409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017410
17411
17412
17413
Daniel Dunbar3e462932011-02-03 02:40:02 +000017414
17415for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017416do
17417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17418{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17420if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17422else
17423 cat >conftest.$ac_ext <<_ACEOF
17424/* confdefs.h. */
17425_ACEOF
17426cat confdefs.h >>conftest.$ac_ext
17427cat >>conftest.$ac_ext <<_ACEOF
17428/* end confdefs.h. */
17429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17431#define $ac_func innocuous_$ac_func
17432
17433/* System header to define __stub macros and hopefully few prototypes,
17434 which can conflict with char $ac_func (); below.
17435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17436 <limits.h> exists even on freestanding compilers. */
17437
17438#ifdef __STDC__
17439# include <limits.h>
17440#else
17441# include <assert.h>
17442#endif
17443
17444#undef $ac_func
17445
17446/* Override any GCC internal prototype to avoid an error.
17447 Use char because int might match the return type of a GCC
17448 builtin and then its argument prototype would still apply. */
17449#ifdef __cplusplus
17450extern "C"
17451#endif
17452char $ac_func ();
17453/* The GNU C library defines this for functions which it implements
17454 to always fail with ENOSYS. Some functions are actually named
17455 something starting with __ and the normal name is an alias. */
17456#if defined __stub_$ac_func || defined __stub___$ac_func
17457choke me
17458#endif
17459
17460int
17461main ()
17462{
17463return $ac_func ();
17464 ;
17465 return 0;
17466}
17467_ACEOF
17468rm -f conftest.$ac_objext conftest$ac_exeext
17469if { (ac_try="$ac_link"
17470case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17473esac
17474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_link") 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486esac
17487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest$ac_exeext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496esac
17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 eval "$as_ac_var=yes"
17503else
17504 echo "$as_me: failed program was:" >&5
17505sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 eval "$as_ac_var=no"
17508fi
17509
17510rm -f core conftest.err conftest.$ac_objext \
17511 conftest$ac_exeext conftest.$ac_ext
17512fi
17513ac_res=`eval echo '${'$as_ac_var'}'`
17514 { echo "$as_me:$LINENO: result: $ac_res" >&5
17515echo "${ECHO_T}$ac_res" >&6; }
17516if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017517 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017519_ACEOF
17520
17521fi
17522done
17523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017524{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17525echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17526if test "${llvm_cv_c_printf_a+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017528else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017529 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017530ac_cpp='$CPP $CPPFLAGS'
17531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533ac_compiler_gnu=$ac_cv_c_compiler_gnu
17534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017535 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017536 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017538 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017540 /* confdefs.h. */
17541_ACEOF
17542cat confdefs.h >>conftest.$ac_ext
17543cat >>conftest.$ac_ext <<_ACEOF
17544/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017545
John Criswella0137d32003-10-13 16:22:01 +000017546#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017547#include <stdlib.h>
17548
John Criswella0137d32003-10-13 16:22:01 +000017549int
17550main ()
17551{
17552
Reid Spencer2706f8c2004-09-19 23:53:36 +000017553volatile double A, B;
17554char Buffer[100];
17555A = 1;
17556A /= 10.0;
17557sprintf(Buffer, "%a", A);
17558B = atof(Buffer);
17559if (A != B)
17560 return (1);
17561if (A != 0x1.999999999999ap-4)
17562 return (1);
17563return (0);
John Criswella0137d32003-10-13 16:22:01 +000017564 ;
17565 return 0;
17566}
17567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017568rm -f conftest$ac_exeext
17569if { (ac_try="$ac_link"
17570case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573esac
17574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582esac
17583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017588 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017590 echo "$as_me: program exited with status $ac_status" >&5
17591echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
17594( exit $ac_status )
17595llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597rm -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 +000017598fi
Reid Spencera773bd52006-08-04 18:18:08 +000017599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017600
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017602ac_cpp='$CPP $CPPFLAGS'
17603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605ac_compiler_gnu=$ac_cv_c_compiler_gnu
17606
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17609echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017610 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017612cat >>confdefs.h <<\_ACEOF
17613#define HAVE_PRINTF_A 1
17614_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017615
Reid Spencer2706f8c2004-09-19 23:53:36 +000017616 fi
John Criswella0137d32003-10-13 16:22:01 +000017617
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17620echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17621if test "${ac_cv_func_rand48+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017623else
Reid Spencera773bd52006-08-04 18:18:08 +000017624 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017625ac_cpp='$CXXCPP $CPPFLAGS'
17626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630 cat >conftest.$ac_ext <<_ACEOF
17631/* confdefs.h. */
17632_ACEOF
17633cat confdefs.h >>conftest.$ac_ext
17634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017635/* end confdefs.h. */
17636#include <stdlib.h>
17637int
17638main ()
17639{
17640srand48(0);lrand48();drand48();
17641 ;
17642 return 0;
17643}
17644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017645rm -f conftest.$ac_objext
17646if { (ac_try="$ac_compile"
17647case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673esac
17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017679 ac_cv_func_rand48=yes
17680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681 echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017686
Reid Spencera773bd52006-08-04 18:18:08 +000017687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017688 ac_ext=c
17689ac_cpp='$CPP $CPPFLAGS'
17690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
17694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017695{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17696echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017697
17698if test "$ac_cv_func_rand48" = "yes" ; then
17699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700cat >>confdefs.h <<\_ACEOF
17701#define HAVE_RAND48 1
17702_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017703
17704fi
John Criswell0021c312004-02-13 21:57:29 +000017705
17706
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017707{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17708echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17709if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17711else
17712 cat >conftest.$ac_ext <<_ACEOF
17713/* confdefs.h. */
17714_ACEOF
17715cat confdefs.h >>conftest.$ac_ext
17716cat >>conftest.$ac_ext <<_ACEOF
17717/* end confdefs.h. */
17718$ac_includes_default
17719int
17720main ()
17721{
17722#ifndef strerror_s
17723 char *p = (char *) strerror_s;
17724 return !p;
17725#endif
17726
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest.$ac_objext
17732if { (ac_try="$ac_compile"
17733case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_compile") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759esac
17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_cv_have_decl_strerror_s=yes
17766else
17767 echo "$as_me: failed program was:" >&5
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 ac_cv_have_decl_strerror_s=no
17771fi
17772
17773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774fi
17775{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17776echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17777if test $ac_cv_have_decl_strerror_s = yes; then
17778
17779cat >>confdefs.h <<_ACEOF
17780#define HAVE_DECL_STRERROR_S 1
17781_ACEOF
17782
17783
17784else
17785 cat >>confdefs.h <<_ACEOF
17786#define HAVE_DECL_STRERROR_S 0
17787_ACEOF
17788
17789
17790fi
17791
17792
17793
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017794if test "$llvm_cv_os_type" = "MingW" ; then
17795 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17796echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17797if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799else
17800 ac_check_lib_save_LIBS=$LIBS
17801LIBS="-lgcc $LIBS"
17802cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
17808
17809/* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812#ifdef __cplusplus
17813extern "C"
17814#endif
17815char _alloca ();
17816int
17817main ()
17818{
17819return _alloca ();
17820 ;
17821 return 0;
17822}
17823_ACEOF
17824rm -f conftest.$ac_objext conftest$ac_exeext
17825if { (ac_try="$ac_link"
17826case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_link") 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842esac
17843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest$ac_exeext'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852esac
17853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_lib_gcc__alloca=yes
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863 ac_cv_lib_gcc__alloca=no
17864fi
17865
17866rm -f core conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868LIBS=$ac_check_lib_save_LIBS
17869fi
17870{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17871echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17872if test $ac_cv_lib_gcc__alloca = yes; then
17873
17874cat >>confdefs.h <<\_ACEOF
17875#define HAVE__ALLOCA 1
17876_ACEOF
17877
17878fi
17879
17880 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17881echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17882if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884else
17885 ac_check_lib_save_LIBS=$LIBS
17886LIBS="-lgcc $LIBS"
17887cat >conftest.$ac_ext <<_ACEOF
17888/* confdefs.h. */
17889_ACEOF
17890cat confdefs.h >>conftest.$ac_ext
17891cat >>conftest.$ac_ext <<_ACEOF
17892/* end confdefs.h. */
17893
17894/* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897#ifdef __cplusplus
17898extern "C"
17899#endif
17900char __alloca ();
17901int
17902main ()
17903{
17904return __alloca ();
17905 ;
17906 return 0;
17907}
17908_ACEOF
17909rm -f conftest.$ac_objext conftest$ac_exeext
17910if { (ac_try="$ac_link"
17911case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17914esac
17915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_link") 2>conftest.er1
17917 ac_status=$?
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17924 { (case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927esac
17928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_try") 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest$ac_exeext'
17934 { (case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17937esac
17938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_try") 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; }; then
17943 ac_cv_lib_gcc___alloca=yes
17944else
17945 echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948 ac_cv_lib_gcc___alloca=no
17949fi
17950
17951rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953LIBS=$ac_check_lib_save_LIBS
17954fi
17955{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17956echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17957if test $ac_cv_lib_gcc___alloca = yes; then
17958
17959cat >>confdefs.h <<\_ACEOF
17960#define HAVE___ALLOCA 1
17961_ACEOF
17962
17963fi
17964
17965 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17966echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17967if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17969else
17970 ac_check_lib_save_LIBS=$LIBS
17971LIBS="-lgcc $LIBS"
17972cat >conftest.$ac_ext <<_ACEOF
17973/* confdefs.h. */
17974_ACEOF
17975cat confdefs.h >>conftest.$ac_ext
17976cat >>conftest.$ac_ext <<_ACEOF
17977/* end confdefs.h. */
17978
17979/* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17982#ifdef __cplusplus
17983extern "C"
17984#endif
17985char __chkstk ();
17986int
17987main ()
17988{
17989return __chkstk ();
17990 ;
17991 return 0;
17992}
17993_ACEOF
17994rm -f conftest.$ac_objext conftest$ac_exeext
17995if { (ac_try="$ac_link"
17996case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999esac
18000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_link") 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
18008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18009 { (case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012esac
18013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_try") 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
18018 { ac_try='test -s conftest$ac_exeext'
18019 { (case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18022esac
18023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_try") 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_cv_lib_gcc___chkstk=yes
18029else
18030 echo "$as_me: failed program was:" >&5
18031sed 's/^/| /' conftest.$ac_ext >&5
18032
18033 ac_cv_lib_gcc___chkstk=no
18034fi
18035
18036rm -f core conftest.err conftest.$ac_objext \
18037 conftest$ac_exeext conftest.$ac_ext
18038LIBS=$ac_check_lib_save_LIBS
18039fi
18040{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18041echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18042if test $ac_cv_lib_gcc___chkstk = yes; then
18043
18044cat >>confdefs.h <<\_ACEOF
18045#define HAVE___CHKSTK 1
18046_ACEOF
18047
18048fi
18049
18050 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18051echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18052if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18054else
18055 ac_check_lib_save_LIBS=$LIBS
18056LIBS="-lgcc $LIBS"
18057cat >conftest.$ac_ext <<_ACEOF
18058/* confdefs.h. */
18059_ACEOF
18060cat confdefs.h >>conftest.$ac_ext
18061cat >>conftest.$ac_ext <<_ACEOF
18062/* end confdefs.h. */
18063
18064/* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18067#ifdef __cplusplus
18068extern "C"
18069#endif
18070char ___chkstk ();
18071int
18072main ()
18073{
18074return ___chkstk ();
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext conftest$ac_exeext
18080if { (ac_try="$ac_link"
18081case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_link") 2>conftest.er1
18087 ac_status=$?
18088 grep -v '^ *+' conftest.er1 >conftest.err
18089 rm -f conftest.er1
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest$ac_exeext'
18104 { (case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18107esac
18108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_try") 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_lib_gcc____chkstk=yes
18114else
18115 echo "$as_me: failed program was:" >&5
18116sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 ac_cv_lib_gcc____chkstk=no
18119fi
18120
18121rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18123LIBS=$ac_check_lib_save_LIBS
18124fi
18125{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18126echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18127if test $ac_cv_lib_gcc____chkstk = yes; then
18128
18129cat >>confdefs.h <<\_ACEOF
18130#define HAVE____CHKSTK 1
18131_ACEOF
18132
18133fi
18134
18135
18136 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18137echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18138if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140else
18141 ac_check_lib_save_LIBS=$LIBS
18142LIBS="-lgcc $LIBS"
18143cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149
18150/* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153#ifdef __cplusplus
18154extern "C"
18155#endif
18156char __ashldi3 ();
18157int
18158main ()
18159{
18160return __ashldi3 ();
18161 ;
18162 return 0;
18163}
18164_ACEOF
18165rm -f conftest.$ac_objext conftest$ac_exeext
18166if { (ac_try="$ac_link"
18167case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_link") 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183esac
18184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193esac
18194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_lib_gcc___ashldi3=yes
18200else
18201 echo "$as_me: failed program was:" >&5
18202sed 's/^/| /' conftest.$ac_ext >&5
18203
18204 ac_cv_lib_gcc___ashldi3=no
18205fi
18206
18207rm -f core conftest.err conftest.$ac_objext \
18208 conftest$ac_exeext conftest.$ac_ext
18209LIBS=$ac_check_lib_save_LIBS
18210fi
18211{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18212echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18213if test $ac_cv_lib_gcc___ashldi3 = yes; then
18214
18215cat >>confdefs.h <<\_ACEOF
18216#define HAVE___ASHLDI3 1
18217_ACEOF
18218
18219fi
18220
18221 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18222echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18223if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226 ac_check_lib_save_LIBS=$LIBS
18227LIBS="-lgcc $LIBS"
18228cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h. */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h. */
18234
18235/* Override any GCC internal prototype to avoid an error.
18236 Use char because int might match the return type of a GCC
18237 builtin and then its argument prototype would still apply. */
18238#ifdef __cplusplus
18239extern "C"
18240#endif
18241char __ashrdi3 ();
18242int
18243main ()
18244{
18245return __ashrdi3 ();
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext conftest$ac_exeext
18251if { (ac_try="$ac_link"
18252case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255esac
18256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_try") 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_lib_gcc___ashrdi3=yes
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ac_cv_lib_gcc___ashrdi3=no
18290fi
18291
18292rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294LIBS=$ac_check_lib_save_LIBS
18295fi
18296{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18297echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18298if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18299
18300cat >>confdefs.h <<\_ACEOF
18301#define HAVE___ASHRDI3 1
18302_ACEOF
18303
18304fi
18305
18306 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18307echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18308if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 ac_check_lib_save_LIBS=$LIBS
18312LIBS="-lgcc $LIBS"
18313cat >conftest.$ac_ext <<_ACEOF
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319
18320/* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18323#ifdef __cplusplus
18324extern "C"
18325#endif
18326char __divdi3 ();
18327int
18328main ()
18329{
18330return __divdi3 ();
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext conftest$ac_exeext
18336if { (ac_try="$ac_link"
18337case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340esac
18341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
18364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_gcc___divdi3=yes
18370else
18371 echo "$as_me: failed program was:" >&5
18372sed 's/^/| /' conftest.$ac_ext >&5
18373
18374 ac_cv_lib_gcc___divdi3=no
18375fi
18376
18377rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379LIBS=$ac_check_lib_save_LIBS
18380fi
18381{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18382echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18383if test $ac_cv_lib_gcc___divdi3 = yes; then
18384
18385cat >>confdefs.h <<\_ACEOF
18386#define HAVE___DIVDI3 1
18387_ACEOF
18388
18389fi
18390
18391 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18392echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18393if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18395else
18396 ac_check_lib_save_LIBS=$LIBS
18397LIBS="-lgcc $LIBS"
18398cat >conftest.$ac_ext <<_ACEOF
18399/* confdefs.h. */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h. */
18404
18405/* Override any GCC internal prototype to avoid an error.
18406 Use char because int might match the return type of a GCC
18407 builtin and then its argument prototype would still apply. */
18408#ifdef __cplusplus
18409extern "C"
18410#endif
18411char __fixdfdi ();
18412int
18413main ()
18414{
18415return __fixdfdi ();
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest.$ac_objext conftest$ac_exeext
18421if { (ac_try="$ac_link"
18422case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18425esac
18426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_link") 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18435 { (case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_try") 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest$ac_exeext'
18445 { (case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18448esac
18449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_try") 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18454 ac_cv_lib_gcc___fixdfdi=yes
18455else
18456 echo "$as_me: failed program was:" >&5
18457sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ac_cv_lib_gcc___fixdfdi=no
18460fi
18461
18462rm -f core conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
18464LIBS=$ac_check_lib_save_LIBS
18465fi
18466{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18467echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18468if test $ac_cv_lib_gcc___fixdfdi = yes; then
18469
18470cat >>confdefs.h <<\_ACEOF
18471#define HAVE___FIXDFDI 1
18472_ACEOF
18473
18474fi
18475
18476 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18477echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18478if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18480else
18481 ac_check_lib_save_LIBS=$LIBS
18482LIBS="-lgcc $LIBS"
18483cat >conftest.$ac_ext <<_ACEOF
18484/* confdefs.h. */
18485_ACEOF
18486cat confdefs.h >>conftest.$ac_ext
18487cat >>conftest.$ac_ext <<_ACEOF
18488/* end confdefs.h. */
18489
18490/* Override any GCC internal prototype to avoid an error.
18491 Use char because int might match the return type of a GCC
18492 builtin and then its argument prototype would still apply. */
18493#ifdef __cplusplus
18494extern "C"
18495#endif
18496char __fixsfdi ();
18497int
18498main ()
18499{
18500return __fixsfdi ();
18501 ;
18502 return 0;
18503}
18504_ACEOF
18505rm -f conftest.$ac_objext conftest$ac_exeext
18506if { (ac_try="$ac_link"
18507case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_link") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18520 { (case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523esac
18524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_try") 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest$ac_exeext'
18530 { (case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533esac
18534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_try") 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_lib_gcc___fixsfdi=yes
18540else
18541 echo "$as_me: failed program was:" >&5
18542sed 's/^/| /' conftest.$ac_ext >&5
18543
18544 ac_cv_lib_gcc___fixsfdi=no
18545fi
18546
18547rm -f core conftest.err conftest.$ac_objext \
18548 conftest$ac_exeext conftest.$ac_ext
18549LIBS=$ac_check_lib_save_LIBS
18550fi
18551{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18552echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18553if test $ac_cv_lib_gcc___fixsfdi = yes; then
18554
18555cat >>confdefs.h <<\_ACEOF
18556#define HAVE___FIXSFDI 1
18557_ACEOF
18558
18559fi
18560
18561 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18562echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18563if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565else
18566 ac_check_lib_save_LIBS=$LIBS
18567LIBS="-lgcc $LIBS"
18568cat >conftest.$ac_ext <<_ACEOF
18569/* confdefs.h. */
18570_ACEOF
18571cat confdefs.h >>conftest.$ac_ext
18572cat >>conftest.$ac_ext <<_ACEOF
18573/* end confdefs.h. */
18574
18575/* Override any GCC internal prototype to avoid an error.
18576 Use char because int might match the return type of a GCC
18577 builtin and then its argument prototype would still apply. */
18578#ifdef __cplusplus
18579extern "C"
18580#endif
18581char __floatdidf ();
18582int
18583main ()
18584{
18585return __floatdidf ();
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext conftest$ac_exeext
18591if { (ac_try="$ac_link"
18592case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595esac
18596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_link") 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest$ac_exeext'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_lib_gcc___floatdidf=yes
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 ac_cv_lib_gcc___floatdidf=no
18630fi
18631
18632rm -f core conftest.err conftest.$ac_objext \
18633 conftest$ac_exeext conftest.$ac_ext
18634LIBS=$ac_check_lib_save_LIBS
18635fi
18636{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18637echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18638if test $ac_cv_lib_gcc___floatdidf = yes; then
18639
18640cat >>confdefs.h <<\_ACEOF
18641#define HAVE___FLOATDIDF 1
18642_ACEOF
18643
18644fi
18645
18646 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18647echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18648if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651 ac_check_lib_save_LIBS=$LIBS
18652LIBS="-lgcc $LIBS"
18653cat >conftest.$ac_ext <<_ACEOF
18654/* confdefs.h. */
18655_ACEOF
18656cat confdefs.h >>conftest.$ac_ext
18657cat >>conftest.$ac_ext <<_ACEOF
18658/* end confdefs.h. */
18659
18660/* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18663#ifdef __cplusplus
18664extern "C"
18665#endif
18666char __lshrdi3 ();
18667int
18668main ()
18669{
18670return __lshrdi3 ();
18671 ;
18672 return 0;
18673}
18674_ACEOF
18675rm -f conftest.$ac_objext conftest$ac_exeext
18676if { (ac_try="$ac_link"
18677case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680esac
18681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_link") 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693esac
18694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest$ac_exeext'
18700 { (case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18703esac
18704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_try") 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_cv_lib_gcc___lshrdi3=yes
18710else
18711 echo "$as_me: failed program was:" >&5
18712sed 's/^/| /' conftest.$ac_ext >&5
18713
18714 ac_cv_lib_gcc___lshrdi3=no
18715fi
18716
18717rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
18719LIBS=$ac_check_lib_save_LIBS
18720fi
18721{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18722echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18723if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18724
18725cat >>confdefs.h <<\_ACEOF
18726#define HAVE___LSHRDI3 1
18727_ACEOF
18728
18729fi
18730
18731 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18732echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18733if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735else
18736 ac_check_lib_save_LIBS=$LIBS
18737LIBS="-lgcc $LIBS"
18738cat >conftest.$ac_ext <<_ACEOF
18739/* confdefs.h. */
18740_ACEOF
18741cat confdefs.h >>conftest.$ac_ext
18742cat >>conftest.$ac_ext <<_ACEOF
18743/* end confdefs.h. */
18744
18745/* Override any GCC internal prototype to avoid an error.
18746 Use char because int might match the return type of a GCC
18747 builtin and then its argument prototype would still apply. */
18748#ifdef __cplusplus
18749extern "C"
18750#endif
18751char __moddi3 ();
18752int
18753main ()
18754{
18755return __moddi3 ();
18756 ;
18757 return 0;
18758}
18759_ACEOF
18760rm -f conftest.$ac_objext conftest$ac_exeext
18761if { (ac_try="$ac_link"
18762case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765esac
18766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_link") 2>conftest.er1
18768 ac_status=$?
18769 grep -v '^ *+' conftest.er1 >conftest.err
18770 rm -f conftest.er1
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18775 { (case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778esac
18779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_try") 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest$ac_exeext'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_lib_gcc___moddi3=yes
18795else
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_cv_lib_gcc___moddi3=no
18800fi
18801
18802rm -f core conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804LIBS=$ac_check_lib_save_LIBS
18805fi
18806{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18807echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18808if test $ac_cv_lib_gcc___moddi3 = yes; then
18809
18810cat >>confdefs.h <<\_ACEOF
18811#define HAVE___MODDI3 1
18812_ACEOF
18813
18814fi
18815
18816 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18817echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18818if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820else
18821 ac_check_lib_save_LIBS=$LIBS
18822LIBS="-lgcc $LIBS"
18823cat >conftest.$ac_ext <<_ACEOF
18824/* confdefs.h. */
18825_ACEOF
18826cat confdefs.h >>conftest.$ac_ext
18827cat >>conftest.$ac_ext <<_ACEOF
18828/* end confdefs.h. */
18829
18830/* Override any GCC internal prototype to avoid an error.
18831 Use char because int might match the return type of a GCC
18832 builtin and then its argument prototype would still apply. */
18833#ifdef __cplusplus
18834extern "C"
18835#endif
18836char __udivdi3 ();
18837int
18838main ()
18839{
18840return __udivdi3 ();
18841 ;
18842 return 0;
18843}
18844_ACEOF
18845rm -f conftest.$ac_objext conftest$ac_exeext
18846if { (ac_try="$ac_link"
18847case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850esac
18851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_link") 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } &&
18859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18860 { (case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_try") 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest$ac_exeext'
18870 { (case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873esac
18874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_try") 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_lib_gcc___udivdi3=yes
18880else
18881 echo "$as_me: failed program was:" >&5
18882sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_lib_gcc___udivdi3=no
18885fi
18886
18887rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
18889LIBS=$ac_check_lib_save_LIBS
18890fi
18891{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18892echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18893if test $ac_cv_lib_gcc___udivdi3 = yes; then
18894
18895cat >>confdefs.h <<\_ACEOF
18896#define HAVE___UDIVDI3 1
18897_ACEOF
18898
18899fi
18900
18901 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18902echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18903if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905else
18906 ac_check_lib_save_LIBS=$LIBS
18907LIBS="-lgcc $LIBS"
18908cat >conftest.$ac_ext <<_ACEOF
18909/* confdefs.h. */
18910_ACEOF
18911cat confdefs.h >>conftest.$ac_ext
18912cat >>conftest.$ac_ext <<_ACEOF
18913/* end confdefs.h. */
18914
18915/* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18918#ifdef __cplusplus
18919extern "C"
18920#endif
18921char __umoddi3 ();
18922int
18923main ()
18924{
18925return __umoddi3 ();
18926 ;
18927 return 0;
18928}
18929_ACEOF
18930rm -f conftest.$ac_objext conftest$ac_exeext
18931if { (ac_try="$ac_link"
18932case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935esac
18936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945 { (case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948esac
18949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_try") 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest$ac_exeext'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958esac
18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_lib_gcc___umoddi3=yes
18965else
18966 echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 ac_cv_lib_gcc___umoddi3=no
18970fi
18971
18972rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974LIBS=$ac_check_lib_save_LIBS
18975fi
18976{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18977echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18978if test $ac_cv_lib_gcc___umoddi3 = yes; then
18979
18980cat >>confdefs.h <<\_ACEOF
18981#define HAVE___UMODDI3 1
18982_ACEOF
18983
18984fi
18985
18986
18987 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18988echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18989if test "${ac_cv_lib_gcc___main+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991else
18992 ac_check_lib_save_LIBS=$LIBS
18993LIBS="-lgcc $LIBS"
18994cat >conftest.$ac_ext <<_ACEOF
18995/* confdefs.h. */
18996_ACEOF
18997cat confdefs.h >>conftest.$ac_ext
18998cat >>conftest.$ac_ext <<_ACEOF
18999/* end confdefs.h. */
19000
19001/* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19004#ifdef __cplusplus
19005extern "C"
19006#endif
19007char __main ();
19008int
19009main ()
19010{
19011return __main ();
19012 ;
19013 return 0;
19014}
19015_ACEOF
19016rm -f conftest.$ac_objext conftest$ac_exeext
19017if { (ac_try="$ac_link"
19018case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest$ac_exeext'
19041 { (case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19044esac
19045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_try") 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_lib_gcc___main=yes
19051else
19052 echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 ac_cv_lib_gcc___main=no
19056fi
19057
19058rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19060LIBS=$ac_check_lib_save_LIBS
19061fi
19062{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19063echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19064if test $ac_cv_lib_gcc___main = yes; then
19065
19066cat >>confdefs.h <<\_ACEOF
19067#define HAVE___MAIN 1
19068_ACEOF
19069
19070fi
19071
19072 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19073echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19074if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076else
19077 ac_check_lib_save_LIBS=$LIBS
19078LIBS="-lgcc $LIBS"
19079cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
19085
19086/* Override any GCC internal prototype to avoid an error.
19087 Use char because int might match the return type of a GCC
19088 builtin and then its argument prototype would still apply. */
19089#ifdef __cplusplus
19090extern "C"
19091#endif
19092char __cmpdi2 ();
19093int
19094main ()
19095{
19096return __cmpdi2 ();
19097 ;
19098 return 0;
19099}
19100_ACEOF
19101rm -f conftest.$ac_objext conftest$ac_exeext
19102if { (ac_try="$ac_link"
19103case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19106esac
19107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119esac
19120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest$ac_exeext'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19129esac
19130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_lib_gcc___cmpdi2=yes
19136else
19137 echo "$as_me: failed program was:" >&5
19138sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 ac_cv_lib_gcc___cmpdi2=no
19141fi
19142
19143rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145LIBS=$ac_check_lib_save_LIBS
19146fi
19147{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19148echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19149if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19150
19151cat >>confdefs.h <<\_ACEOF
19152#define HAVE___CMPDI2 1
19153_ACEOF
19154
19155fi
19156
19157fi
19158
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019159if test "$llvm_cv_os_type" = "MingW" ; then
19160 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19161echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19162 cat >conftest.$ac_ext <<_ACEOF
19163#include <windows.h>
19164#include <imagehlp.h>
19165extern void foo(PENUMLOADED_MODULES_CALLBACK);
19166extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19167_ACEOF
19168rm -f conftest.$ac_objext
19169if { (ac_try="$ac_compile"
19170case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196esac
19197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_try") 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202
19203 { echo "$as_me:$LINENO: result: yes" >&5
19204echo "${ECHO_T}yes" >&6; }
19205 llvm_cv_win32_elmcb_pcstr="PCSTR"
19206
19207else
19208 echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
19211
19212 { echo "$as_me:$LINENO: result: no" >&5
19213echo "${ECHO_T}no" >&6; }
19214 llvm_cv_win32_elmcb_pcstr="PSTR"
19215
19216fi
19217
19218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219
19220cat >>confdefs.h <<_ACEOF
19221#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19222_ACEOF
19223
19224fi
19225
Torok Edwin871384f2010-01-26 08:50:50 +000019226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019227{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19228echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19229if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019231else
Reid Spencera773bd52006-08-04 18:18:08 +000019232 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019233ac_cpp='$CXXCPP $CPPFLAGS'
19234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019238 cat >conftest.$ac_ext <<_ACEOF
19239/* confdefs.h. */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019243/* end confdefs.h. */
19244#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019245int
19246main ()
19247{
19248float f; isnan(f);
19249 ;
19250 return 0;
19251}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019252_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019253rm -f conftest.$ac_objext
19254if { (ac_try="$ac_compile"
19255case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_try") 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019287 ac_cv_func_isnan_in_math_h=yes
19288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019289 echo "$as_me: failed program was:" >&5
19290sed 's/^/| /' conftest.$ac_ext >&5
19291
19292 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019294
Reid Spencera773bd52006-08-04 18:18:08 +000019295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019296 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019297ac_cpp='$CPP $CPPFLAGS'
19298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301
19302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019303{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19304echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019305
19306
19307if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019309cat >>confdefs.h <<\_ACEOF
19310#define HAVE_ISNAN_IN_MATH_H 1
19311_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019312
Reid Spencerabec8f92004-10-27 23:03:44 +000019313fi
19314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019315{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19316echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19317if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019319else
Reid Spencera773bd52006-08-04 18:18:08 +000019320 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019321ac_cpp='$CXXCPP $CPPFLAGS'
19322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019326 cat >conftest.$ac_ext <<_ACEOF
19327/* confdefs.h. */
19328_ACEOF
19329cat confdefs.h >>conftest.$ac_ext
19330cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019331/* end confdefs.h. */
19332#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019333int
19334main ()
19335{
19336float f; isnan(f);
19337 ;
19338 return 0;
19339}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019340_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019341rm -f conftest.$ac_objext
19342if { (ac_try="$ac_compile"
19343case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346esac
19347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_compile") 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359esac
19360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest.$ac_objext'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019375 ac_cv_func_isnan_in_cmath=yes
19376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019382
Reid Spencera773bd52006-08-04 18:18:08 +000019383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019384 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385ac_cpp='$CPP $CPPFLAGS'
19386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19388ac_compiler_gnu=$ac_cv_c_compiler_gnu
19389
19390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19392echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019393
19394if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019396cat >>confdefs.h <<\_ACEOF
19397#define HAVE_ISNAN_IN_CMATH 1
19398_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019399
Reid Spencerabec8f92004-10-27 23:03:44 +000019400fi
19401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019402{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19403echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19404if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019406else
Reid Spencera773bd52006-08-04 18:18:08 +000019407 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019408ac_cpp='$CXXCPP $CPPFLAGS'
19409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019413 cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019418/* end confdefs.h. */
19419#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019420int
19421main ()
19422{
19423float f; std::isnan(f);
19424 ;
19425 return 0;
19426}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019428rm -f conftest.$ac_objext
19429if { (ac_try="$ac_compile"
19430case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433esac
19434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_compile") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446esac
19447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456esac
19457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019462 ac_cv_func_std_isnan_in_cmath=yes
19463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464 echo "$as_me: failed program was:" >&5
19465sed 's/^/| /' conftest.$ac_ext >&5
19466
19467 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019469
Reid Spencera773bd52006-08-04 18:18:08 +000019470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019471 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019472ac_cpp='$CPP $CPPFLAGS'
19473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019478{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19479echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019480
19481if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483cat >>confdefs.h <<\_ACEOF
19484#define HAVE_STD_ISNAN_IN_CMATH 1
19485_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019486
Reid Spencerabec8f92004-10-27 23:03:44 +000019487fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019488
19489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019490{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19491echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19492if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019494else
Reid Spencera773bd52006-08-04 18:18:08 +000019495 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019496ac_cpp='$CXXCPP $CPPFLAGS'
19497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019501 cat >conftest.$ac_ext <<_ACEOF
19502/* confdefs.h. */
19503_ACEOF
19504cat confdefs.h >>conftest.$ac_ext
19505cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019506/* end confdefs.h. */
19507#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019508int
19509main ()
19510{
19511float f; isinf(f);
19512 ;
19513 return 0;
19514}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019516rm -f conftest.$ac_objext
19517if { (ac_try="$ac_compile"
19518case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19521esac
19522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_compile") 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19534esac
19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019550 ac_cv_func_isinf_in_math_h=yes
19551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019552 echo "$as_me: failed program was:" >&5
19553sed 's/^/| /' conftest.$ac_ext >&5
19554
19555 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019557
Reid Spencera773bd52006-08-04 18:18:08 +000019558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019559 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019560ac_cpp='$CPP $CPPFLAGS'
19561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19563ac_compiler_gnu=$ac_cv_c_compiler_gnu
19564
19565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019566{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19567echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019568
19569if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019571cat >>confdefs.h <<\_ACEOF
19572#define HAVE_ISINF_IN_MATH_H 1
19573_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019574
Reid Spencerabec8f92004-10-27 23:03:44 +000019575fi
19576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019577{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19578echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19579if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019581else
Reid Spencera773bd52006-08-04 18:18:08 +000019582 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019583ac_cpp='$CXXCPP $CPPFLAGS'
19584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019588 cat >conftest.$ac_ext <<_ACEOF
19589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019593/* end confdefs.h. */
19594#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019595int
19596main ()
19597{
19598float f; isinf(f);
19599 ;
19600 return 0;
19601}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019602_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019603rm -f conftest.$ac_objext
19604if { (ac_try="$ac_compile"
19605case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608esac
19609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_compile") 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019637 ac_cv_func_isinf_in_cmath=yes
19638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019639 echo "$as_me: failed program was:" >&5
19640sed 's/^/| /' conftest.$ac_ext >&5
19641
19642 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019644
Reid Spencera773bd52006-08-04 18:18:08 +000019645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019646 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019647ac_cpp='$CPP $CPPFLAGS'
19648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650ac_compiler_gnu=$ac_cv_c_compiler_gnu
19651
19652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19654echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019655
19656if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658cat >>confdefs.h <<\_ACEOF
19659#define HAVE_ISINF_IN_CMATH 1
19660_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019661
Reid Spencerabec8f92004-10-27 23:03:44 +000019662fi
19663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19665echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19666if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019668else
Reid Spencera773bd52006-08-04 18:18:08 +000019669 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019670ac_cpp='$CXXCPP $CPPFLAGS'
19671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675 cat >conftest.$ac_ext <<_ACEOF
19676/* confdefs.h. */
19677_ACEOF
19678cat confdefs.h >>conftest.$ac_ext
19679cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019680/* end confdefs.h. */
19681#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019682int
19683main ()
19684{
19685float f; std::isinf(f)}
19686 ;
19687 return 0;
19688}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019689_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019690rm -f conftest.$ac_objext
19691if { (ac_try="$ac_compile"
19692case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19695esac
19696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19705 { (case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_try") 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } &&
19714 { ac_try='test -s conftest.$ac_objext'
19715 { (case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718esac
19719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_try") 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019724 ac_cv_func_std_isinf_in_cmath=yes
19725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019731
Reid Spencera773bd52006-08-04 18:18:08 +000019732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019733 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019734ac_cpp='$CPP $CPPFLAGS'
19735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737ac_compiler_gnu=$ac_cv_c_compiler_gnu
19738
19739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019740{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19741echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019742
19743if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745cat >>confdefs.h <<\_ACEOF
19746#define HAVE_STD_ISINF_IN_CMATH 1
19747_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019748
Reid Spencerabec8f92004-10-27 23:03:44 +000019749fi
19750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19752echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19753if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019755else
Reid Spencera773bd52006-08-04 18:18:08 +000019756 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019757ac_cpp='$CXXCPP $CPPFLAGS'
19758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762 cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h. */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019767/* end confdefs.h. */
19768#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019769int
19770main ()
19771{
19772float f; finite(f);
19773 ;
19774 return 0;
19775}
Brian Gaeked59a6472004-07-21 03:33:58 +000019776_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019777rm -f conftest.$ac_objext
19778if { (ac_try="$ac_compile"
19779case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782esac
19783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805esac
19806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_try") 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019811 ac_cv_func_finite_in_ieeefp_h=yes
19812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019813 echo "$as_me: failed program was:" >&5
19814sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818
Reid Spencera773bd52006-08-04 18:18:08 +000019819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019820 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019821ac_cpp='$CPP $CPPFLAGS'
19822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19824ac_compiler_gnu=$ac_cv_c_compiler_gnu
19825
19826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019827{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19828echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019829
Brian Gaeke6802b552004-10-28 05:06:45 +000019830if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019832cat >>confdefs.h <<\_ACEOF
19833#define HAVE_FINITE_IN_IEEEFP_H 1
19834_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019835
Reid Spencerabec8f92004-10-27 23:03:44 +000019836fi
19837
19838
19839
Reid Spencer30fe5262007-01-20 07:48:49 +000019840if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019841
19842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843for ac_header in stdlib.h unistd.h
19844do
19845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851fi
19852ac_res=`eval echo '${'$as_ac_Header'}'`
19853 { echo "$as_me:$LINENO: result: $ac_res" >&5
19854echo "${ECHO_T}$ac_res" >&6; }
19855else
19856 # Is the header compilable?
19857{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19859cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865$ac_includes_default
19866#include <$ac_header>
19867_ACEOF
19868rm -f conftest.$ac_objext
19869if { (ac_try="$ac_compile"
19870case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873esac
19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19876 ac_status=$?
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
19882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886esac
19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_header_compiler=yes
19903else
19904 echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019907 ac_header_compiler=no
19908fi
19909
19910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19912echo "${ECHO_T}$ac_header_compiler" >&6; }
19913
19914# Is the header present?
19915{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19916echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19917cat >conftest.$ac_ext <<_ACEOF
19918/* confdefs.h. */
19919_ACEOF
19920cat confdefs.h >>conftest.$ac_ext
19921cat >>conftest.$ac_ext <<_ACEOF
19922/* end confdefs.h. */
19923#include <$ac_header>
19924_ACEOF
19925if { (ac_try="$ac_cpp conftest.$ac_ext"
19926case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929esac
19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } >/dev/null; then
19938 if test -s conftest.err; then
19939 ac_cpp_err=$ac_c_preproc_warn_flag
19940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19941 else
19942 ac_cpp_err=
19943 fi
19944else
19945 ac_cpp_err=yes
19946fi
19947if test -z "$ac_cpp_err"; then
19948 ac_header_preproc=yes
19949else
19950 echo "$as_me: failed program was:" >&5
19951sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 ac_header_preproc=no
19954fi
19955
19956rm -f conftest.err conftest.$ac_ext
19957{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19958echo "${ECHO_T}$ac_header_preproc" >&6; }
19959
19960# So? What about this header?
19961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19962 yes:no: )
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19967 ac_header_preproc=yes
19968 ;;
19969 no:yes:* )
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19982 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000019983## ------------------------------------ ##
19984## Report this to http://llvm.org/bugs/ ##
19985## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019986_ASBOX
19987 ) | sed "s/^/$as_me: WARNING: /" >&2
19988 ;;
19989esac
19990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994else
19995 eval "$as_ac_Header=\$ac_header_preproc"
19996fi
19997ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999echo "${ECHO_T}$ac_res" >&6; }
20000
20001fi
20002if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020003 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020005_ACEOF
20006
20007fi
20008
20009done
20010
20011
20012for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020013do
20014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20017if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20019else
20020 cat >conftest.$ac_ext <<_ACEOF
20021/* confdefs.h. */
20022_ACEOF
20023cat confdefs.h >>conftest.$ac_ext
20024cat >>conftest.$ac_ext <<_ACEOF
20025/* end confdefs.h. */
20026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20028#define $ac_func innocuous_$ac_func
20029
20030/* System header to define __stub macros and hopefully few prototypes,
20031 which can conflict with char $ac_func (); below.
20032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033 <limits.h> exists even on freestanding compilers. */
20034
20035#ifdef __STDC__
20036# include <limits.h>
20037#else
20038# include <assert.h>
20039#endif
20040
20041#undef $ac_func
20042
20043/* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20046#ifdef __cplusplus
20047extern "C"
20048#endif
20049char $ac_func ();
20050/* The GNU C library defines this for functions which it implements
20051 to always fail with ENOSYS. Some functions are actually named
20052 something starting with __ and the normal name is an alias. */
20053#if defined __stub_$ac_func || defined __stub___$ac_func
20054choke me
20055#endif
20056
20057int
20058main ()
20059{
20060return $ac_func ();
20061 ;
20062 return 0;
20063}
20064_ACEOF
20065rm -f conftest.$ac_objext conftest$ac_exeext
20066if { (ac_try="$ac_link"
20067case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20070esac
20071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_link") 2>conftest.er1
20073 ac_status=$?
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } &&
20079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20080 { (case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083esac
20084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_try") 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest$ac_exeext'
20090 { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093esac
20094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 eval "$as_ac_var=yes"
20100else
20101 echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 eval "$as_ac_var=no"
20105fi
20106
20107rm -f core conftest.err conftest.$ac_objext \
20108 conftest$ac_exeext conftest.$ac_ext
20109fi
20110ac_res=`eval echo '${'$as_ac_var'}'`
20111 { echo "$as_me:$LINENO: result: $ac_res" >&5
20112echo "${ECHO_T}$ac_res" >&6; }
20113if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020114 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020116_ACEOF
20117
20118fi
20119done
20120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020121{ echo "$as_me:$LINENO: checking for working mmap" >&5
20122echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20123if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020126 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020127 ac_cv_func_mmap_fixed_mapped=no
20128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020129 cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020135$ac_includes_default
20136/* malloc might have been renamed as rpl_malloc. */
20137#undef malloc
20138
20139/* Thanks to Mike Haertel and Jim Avera for this test.
20140 Here is a matrix of mmap possibilities:
20141 mmap private not fixed
20142 mmap private fixed at somewhere currently unmapped
20143 mmap private fixed at somewhere already mapped
20144 mmap shared not fixed
20145 mmap shared fixed at somewhere currently unmapped
20146 mmap shared fixed at somewhere already mapped
20147 For private mappings, we should verify that changes cannot be read()
20148 back from the file, nor mmap's back from the file at a different
20149 address. (There have been systems where private was not correctly
20150 implemented like the infamous i386 svr4.0, and systems where the
20151 VM page cache was not coherent with the file system buffer cache
20152 like early versions of FreeBSD and possibly contemporary NetBSD.)
20153 For shared mappings, we should conversely verify that changes get
20154 propagated back to all the places they're supposed to be.
20155
20156 Grep wants private fixed already mapped.
20157 The main things grep needs to know about mmap are:
20158 * does it exist and is it safe to write into the mmap'd area
20159 * how to use it (BSD variants) */
20160
20161#include <fcntl.h>
20162#include <sys/mman.h>
20163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020164#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020165char *malloc ();
20166#endif
20167
20168/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020169#if !HAVE_GETPAGESIZE
20170/* Assume that all systems that can run configure have sys/param.h. */
20171# if !HAVE_SYS_PARAM_H
20172# define HAVE_SYS_PARAM_H 1
20173# endif
20174
John Criswell7a73b802003-06-30 21:59:07 +000020175# ifdef _SC_PAGESIZE
20176# define getpagesize() sysconf(_SC_PAGESIZE)
20177# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020179# include <sys/param.h>
20180# ifdef EXEC_PAGESIZE
20181# define getpagesize() EXEC_PAGESIZE
20182# else /* no EXEC_PAGESIZE */
20183# ifdef NBPG
20184# define getpagesize() NBPG * CLSIZE
20185# ifndef CLSIZE
20186# define CLSIZE 1
20187# endif /* no CLSIZE */
20188# else /* no NBPG */
20189# ifdef NBPC
20190# define getpagesize() NBPC
20191# else /* no NBPC */
20192# ifdef PAGESIZE
20193# define getpagesize() PAGESIZE
20194# endif /* PAGESIZE */
20195# endif /* no NBPC */
20196# endif /* no NBPG */
20197# endif /* no EXEC_PAGESIZE */
20198# else /* no HAVE_SYS_PARAM_H */
20199# define getpagesize() 8192 /* punt totally */
20200# endif /* no HAVE_SYS_PARAM_H */
20201# endif /* no _SC_PAGESIZE */
20202
20203#endif /* no HAVE_GETPAGESIZE */
20204
20205int
20206main ()
20207{
20208 char *data, *data2, *data3;
20209 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020210 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020211
20212 pagesize = getpagesize ();
20213
20214 /* First, make a file with some known garbage in it. */
20215 data = (char *) malloc (pagesize);
20216 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020217 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020218 for (i = 0; i < pagesize; ++i)
20219 *(data + i) = rand ();
20220 umask (0);
20221 fd = creat ("conftest.mmap", 0600);
20222 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020224 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020226 close (fd);
20227
20228 /* Next, try to mmap the file at a fixed address which already has
20229 something else allocated at it. If we can, also make sure that
20230 we see the same garbage. */
20231 fd = open ("conftest.mmap", O_RDWR);
20232 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020233 return 1;
20234 data2 = (char *) malloc (2 * pagesize);
20235 if (!data2)
20236 return 1;
20237 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020238 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020239 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020240 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020241 for (i = 0; i < pagesize; ++i)
20242 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020243 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020244
20245 /* Finally, make sure that changes to the mapped area do not
20246 percolate back to the file as seen by read(). (This is a bug on
20247 some variants of i386 svr4.0.) */
20248 for (i = 0; i < pagesize; ++i)
20249 *(data2 + i) = *(data2 + i) + 1;
20250 data3 = (char *) malloc (pagesize);
20251 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020252 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020253 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020255 for (i = 0; i < pagesize; ++i)
20256 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020258 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020259 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020260}
20261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262rm -f conftest$ac_exeext
20263if { (ac_try="$ac_link"
20264case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267esac
20268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_link") 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020282 ac_cv_func_mmap_fixed_mapped=yes
20283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020284 echo "$as_me: program exited with status $ac_status" >&5
20285echo "$as_me: failed program was:" >&5
20286sed 's/^/| /' conftest.$ac_ext >&5
20287
20288( exit $ac_status )
20289ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291rm -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 +000020292fi
Reid Spencera773bd52006-08-04 18:18:08 +000020293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020294
John Criswell7a73b802003-06-30 21:59:07 +000020295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020296{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20297echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020298if test $ac_cv_func_mmap_fixed_mapped = yes; then
20299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020300cat >>confdefs.h <<\_ACEOF
20301#define HAVE_MMAP 1
20302_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020303
20304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020305rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020307 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20308echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20309if test "${ac_cv_func_mmap_file+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020311else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020312 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020313ac_cpp='$CPP $CPPFLAGS'
20314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316ac_compiler_gnu=$ac_cv_c_compiler_gnu
20317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020319 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 /* confdefs.h. */
20324_ACEOF
20325cat confdefs.h >>conftest.$ac_ext
20326cat >>conftest.$ac_ext <<_ACEOF
20327/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020328
John Criswell7a73b802003-06-30 21:59:07 +000020329#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020330#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020331#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020332
20333int
20334main ()
20335{
John Criswell7a73b802003-06-30 21:59:07 +000020336
20337 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020338 fd = creat ("foo",0777);
20339 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20340 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020341 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020342 ;
20343 return 0;
20344}
John Criswell7a73b802003-06-30 21:59:07 +000020345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346rm -f conftest$ac_exeext
20347if { (ac_try="$ac_link"
20348case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351esac
20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360esac
20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020366 ac_cv_func_mmap_file=yes
20367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020368 echo "$as_me: program exited with status $ac_status" >&5
20369echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
20372( exit $ac_status )
20373ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375rm -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 +000020376fi
Reid Spencera773bd52006-08-04 18:18:08 +000020377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020378
John Criswell7a73b802003-06-30 21:59:07 +000020379 ac_ext=c
20380ac_cpp='$CPP $CPPFLAGS'
20381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20383ac_compiler_gnu=$ac_cv_c_compiler_gnu
20384
20385
20386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20388echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020389if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391cat >>confdefs.h <<\_ACEOF
20392#define HAVE_MMAP_FILE
20393_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020394
20395 MMAP_FILE=yes
20396
20397fi
20398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20400echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20401if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020403else
Reid Spencer582a23c2004-12-29 07:07:57 +000020404 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020405 ac_cv_need_dev_zero_for_mmap=yes
20406 else
20407 ac_cv_need_dev_zero_for_mmap=no
20408 fi
20409
20410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020411{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20412echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020413if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415cat >>confdefs.h <<\_ACEOF
20416#define NEED_DEV_ZERO_FOR_MMAP 1
20417_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020418
20419fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420
Reid Spencer30fe5262007-01-20 07:48:49 +000020421 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20422 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20424echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020425 fi
20426 if test "$ac_cv_func_mmap_file" = "no"
20427 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20429echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020430 fi
John Criswellb13092b2003-07-22 21:00:24 +000020431fi
John Criswell7a73b802003-06-30 21:59:07 +000020432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20434echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020435ac_ext=cpp
20436ac_cpp='$CXXCPP $CPPFLAGS'
20437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441cat >conftest.$ac_ext <<_ACEOF
20442/* confdefs.h. */
20443_ACEOF
20444cat confdefs.h >>conftest.$ac_ext
20445cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020446/* end confdefs.h. */
20447int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020448 volatile unsigned long val = 1;
20449 __sync_synchronize();
20450 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020451 __sync_add_and_fetch(&val, 1);
20452 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020453 return 0;
20454 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020455
20456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457rm -f conftest.$ac_objext conftest$ac_exeext
20458if { (ac_try="$ac_link"
20459case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462esac
20463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; } &&
20481 { ac_try='test -s conftest$ac_exeext'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20485esac
20486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020491 ac_ext=c
20492ac_cpp='$CPP $CPPFLAGS'
20493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495ac_compiler_gnu=$ac_cv_c_compiler_gnu
20496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020497 { echo "$as_me:$LINENO: result: yes" >&5
20498echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020500cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020501#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020503
Owen Andersond4b272b2009-05-18 23:58:51 +000020504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020505 echo "$as_me: failed program was:" >&5
20506sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020508 { echo "$as_me:$LINENO: result: no" >&5
20509echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020511cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020512#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020513_ACEOF
20514
20515 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20516echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518
Owen Andersond4b272b2009-05-18 23:58:51 +000020519rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020521
John Criswell7a73b802003-06-30 21:59:07 +000020522
Nick Lewycky4372e692009-09-29 06:18:23 +000020523if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020524 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20525echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20526if test "${llvm_cv_linux_mixed+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020528else
20529 ac_ext=c
20530ac_cpp='$CPP $CPPFLAGS'
20531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533ac_compiler_gnu=$ac_cv_c_compiler_gnu
20534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535 cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020540/* end confdefs.h. */
20541#ifndef __x86_64__
20542 error: Not x86-64 even if uname says so!
20543 #endif
20544
20545int
20546main ()
20547{
20548
20549 ;
20550 return 0;
20551}
20552_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553rm -f conftest.$ac_objext
20554if { (ac_try="$ac_compile"
20555case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20558esac
20559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_compile") 2>conftest.er1
20561 ac_status=$?
20562 grep -v '^ *+' conftest.er1 >conftest.err
20563 rm -f conftest.er1
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
20567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20568 { (case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20571esac
20572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_try") 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581esac
20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020587 llvm_cv_linux_mixed=no
20588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589 echo "$as_me: failed program was:" >&5
20590sed 's/^/| /' conftest.$ac_ext >&5
20591
20592 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020594
Nick Lewycky4372e692009-09-29 06:18:23 +000020595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 ac_ext=c
20597ac_cpp='$CPP $CPPFLAGS'
20598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
20602
20603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20605echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020606
20607 if test "$llvm_cv_linux_mixed" = "yes"; then
20608 llvm_cv_target_arch="x86"
20609 ARCH="x86"
20610 fi
20611fi
20612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613
Reid Spencer9372f152007-07-30 20:13:24 +000020614for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615do
20616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20617{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20619if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621else
20622 cat >conftest.$ac_ext <<_ACEOF
20623/* confdefs.h. */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
20627/* end confdefs.h. */
20628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20630#define $ac_func innocuous_$ac_func
20631
20632/* System header to define __stub macros and hopefully few prototypes,
20633 which can conflict with char $ac_func (); below.
20634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20635 <limits.h> exists even on freestanding compilers. */
20636
20637#ifdef __STDC__
20638# include <limits.h>
20639#else
20640# include <assert.h>
20641#endif
20642
20643#undef $ac_func
20644
20645/* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20648#ifdef __cplusplus
20649extern "C"
20650#endif
20651char $ac_func ();
20652/* The GNU C library defines this for functions which it implements
20653 to always fail with ENOSYS. Some functions are actually named
20654 something starting with __ and the normal name is an alias. */
20655#if defined __stub_$ac_func || defined __stub___$ac_func
20656choke me
20657#endif
20658
20659int
20660main ()
20661{
20662return $ac_func ();
20663 ;
20664 return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext conftest$ac_exeext
20668if { (ac_try="$ac_link"
20669case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20672esac
20673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_link") 2>conftest.er1
20675 ac_status=$?
20676 grep -v '^ *+' conftest.er1 >conftest.err
20677 rm -f conftest.er1
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682 { (case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20685esac
20686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_try") 2>&5
20688 ac_status=$?
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try='test -s conftest$ac_exeext'
20692 { (case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20695esac
20696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_try") 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 eval "$as_ac_var=yes"
20702else
20703 echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 eval "$as_ac_var=no"
20707fi
20708
20709rm -f core conftest.err conftest.$ac_objext \
20710 conftest$ac_exeext conftest.$ac_ext
20711fi
20712ac_res=`eval echo '${'$as_ac_var'}'`
20713 { echo "$as_me:$LINENO: result: $ac_res" >&5
20714echo "${ECHO_T}$ac_res" >&6; }
20715if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020716 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020718_ACEOF
20719
20720fi
20721done
20722
20723
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020724SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020725
20726
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020727SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20728
20729
Jeff Cohen28783c32007-01-12 18:22:38 +000020730if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020731 prefix="/usr/local"
20732fi
Reid Spencere9de0912004-08-20 09:03:57 +000020733eval LLVM_PREFIX="${prefix}";
20734eval LLVM_BINDIR="${prefix}/bin";
20735eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020736eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020737eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020738eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020739eval LLVM_INCLUDEDIR="${prefix}/include";
20740eval LLVM_INFODIR="${prefix}/info";
20741eval LLVM_MANDIR="${prefix}/man";
20742LLVM_CONFIGTIME=`date`
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020754if test "${ENABLE_TIMESTAMPS}" = "0"; then
20755 LLVM_CONFIGTIME="(timestamp not enabled)"
20756fi
20757
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020758
Reid Spencere9de0912004-08-20 09:03:57 +000020759cat >>confdefs.h <<_ACEOF
20760#define LLVM_PREFIX "$LLVM_PREFIX"
20761_ACEOF
20762
20763
20764cat >>confdefs.h <<_ACEOF
20765#define LLVM_BINDIR "$LLVM_BINDIR"
20766_ACEOF
20767
20768
20769cat >>confdefs.h <<_ACEOF
20770#define LLVM_LIBDIR "$LLVM_LIBDIR"
20771_ACEOF
20772
20773
20774cat >>confdefs.h <<_ACEOF
20775#define LLVM_DATADIR "$LLVM_DATADIR"
20776_ACEOF
20777
20778
20779cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020780#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020781_ACEOF
20782
20783
20784cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020785#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020786_ACEOF
20787
20788
20789cat >>confdefs.h <<_ACEOF
20790#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20791_ACEOF
20792
20793
20794cat >>confdefs.h <<_ACEOF
20795#define LLVM_INFODIR "$LLVM_INFODIR"
20796_ACEOF
20797
20798
20799cat >>confdefs.h <<_ACEOF
20800#define LLVM_MANDIR "$LLVM_MANDIR"
20801_ACEOF
20802
20803
20804cat >>confdefs.h <<_ACEOF
20805#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20806_ACEOF
20807
20808
Eric Christopher790e11c2007-12-01 00:34:39 +000020809cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020810#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020811_ACEOF
20812
20813
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020814if test "$BINDINGS_TO_BUILD" = auto ; then
20815 BINDINGS_TO_BUILD=""
20816 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20817 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20818 fi
20819fi
20820BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20821
20822
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020823ALL_BINDINGS=ocaml
20824
20825
Gordon Henriksenf0915682007-10-02 16:42:22 +000020826binding_prereqs_failed=0
20827for a_binding in $BINDINGS_TO_BUILD ; do
20828 case "$a_binding" in
20829 ocaml)
20830 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20832echo "$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 +000020833 binding_prereqs_failed=1
20834 fi
20835 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020836 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20837echo "$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 +000020838 binding_prereqs_failed=1
20839 fi
20840 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020841 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20842echo "$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 +000020843 fi
20844 if test "x$with_ocaml_libdir" != xauto ; then
20845 OCAML_LIBDIR=$with_ocaml_libdir
20846
20847 else
20848 ocaml_stdlib="`"$OCAMLC" -where`"
20849 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20850 then
20851 # ocaml stdlib is beneath our prefix; use stdlib
20852 OCAML_LIBDIR=$ocaml_stdlib
20853
20854 else
20855 # ocaml stdlib is outside our prefix; use libdir/ocaml
20856 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20857
20858 fi
20859 fi
20860 ;;
20861 esac
20862done
20863if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20865echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20866 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020867fi
20868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20870echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20871if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020873else
20874 ac_ext=cpp
20875ac_cpp='$CXXCPP $CPPFLAGS'
20876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20879
20880 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000020881 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020882 cat >conftest.$ac_ext <<_ACEOF
20883/* confdefs.h. */
20884_ACEOF
20885cat confdefs.h >>conftest.$ac_ext
20886cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020887/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020888template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020889int
20890main ()
20891{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000020892X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020893 ;
20894 return 0;
20895}
20896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020897rm -f conftest.$ac_objext
20898if { (ac_try="$ac_compile"
20899case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20902esac
20903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20905 ac_status=$?
20906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } &&
20911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20912 { (case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915esac
20916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_try") 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925esac
20926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_try") 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020931 llvm_cv_cxx_visibility_inlines_hidden=yes
20932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020933 echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020938
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 CXXFLAGS="$oldcxxflags"
20941 ac_ext=c
20942ac_cpp='$CPP $CPPFLAGS'
20943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946
20947
20948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20950echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020951if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20952 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20953
20954else
20955 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20956
20957fi
20958
Gordon Henriksenf0915682007-10-02 16:42:22 +000020959
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020960if test "$llvm_cv_link_use_r" = "yes" ; then
20961 RPATH="-Wl,-R"
20962else
20963 RPATH="-Wl,-rpath"
20964fi
20965
20966
20967if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20968 RDYNAMIC="-Wl,-export-dynamic"
20969else
20970 RDYNAMIC=""
20971fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020972
20973
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020974
Eric Christophera1cba682010-08-08 02:44:25 +000020975ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020976
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020977
20978
20979
20980
20981
Douglas Gregor1555a232009-06-16 20:12:29 +000020982ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20983
20984ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20985
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020986ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20987
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020988ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20989
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000020990ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020991
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020992
Reid Spencera773bd52006-08-04 18:18:08 +000020993ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020994
Eric Christopher360fa9a2011-10-26 00:42:12 +000020995
Reid Spencerea949cf2006-08-16 00:45:38 +000020996ac_config_files="$ac_config_files llvm.spec"
20997
20998
Peter Collingbourne7be3a602011-05-13 03:27:56 +000020999ac_config_files="$ac_config_files docs/doxygen.cfg"
21000
Eric Christopher63c09512012-02-02 00:16:55 +000021001
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021002if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021003 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021004fi
Eric Christopher63c09512012-02-02 00:16:55 +000021005if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021006 configh="include/clang/Config/config.h"
21007 doxy="docs/doxygen.cfg"
21008 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021009
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021010 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021011
21012fi
21013
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021014ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021015
Eric Christopher360fa9a2011-10-26 00:42:12 +000021016
Reid Spencera773bd52006-08-04 18:18:08 +000021017ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021018
Reid Spencera773bd52006-08-04 18:18:08 +000021019ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021020
21021
Reid Spencera773bd52006-08-04 18:18:08 +000021022ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021023
21024
Reid Spencera773bd52006-08-04 18:18:08 +000021025ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021026
21027
Reid Spencera773bd52006-08-04 18:18:08 +000021028ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021029
21030
Reid Spencer8b2e1412006-11-17 03:32:33 +000021031ac_config_commands="$ac_config_commands runtime/Makefile"
21032
21033
Reid Spencera773bd52006-08-04 18:18:08 +000021034ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021035
21036
Reid Spencera773bd52006-08-04 18:18:08 +000021037ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021038
21039
Bill Wendlingf24eb392009-01-04 23:12:30 +000021040ac_config_commands="$ac_config_commands unittests/Makefile"
21041
21042
Reid Spencera773bd52006-08-04 18:18:08 +000021043ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021044
21045
Reid Spencera773bd52006-08-04 18:18:08 +000021046ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021047
21048
Reid Spencera773bd52006-08-04 18:18:08 +000021049ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021050
21051
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021052ac_config_commands="$ac_config_commands bindings/Makefile"
21053
21054
21055ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21056
21057
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021058
John Criswell7a73b802003-06-30 21:59:07 +000021059cat >confcache <<\_ACEOF
21060# This file is a shell script that caches the results of configure
21061# tests run on this system so they can be shared between configure
21062# scripts and configure runs, see configure's option --config-cache.
21063# It is not useful on other systems. If it contains results you don't
21064# want to keep, you may remove or edit it.
21065#
21066# config.status only pays attention to the cache file if you give it
21067# the --recheck option to rerun configure.
21068#
John Criswell0c38eaf2003-09-10 15:17:25 +000021069# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021070# loading this file, other *unset* `ac_cv_foo' will be assigned the
21071# following values.
21072
21073_ACEOF
21074
21075# The following way of writing the cache mishandles newlines in values,
21076# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021077# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021078# Ultrix sh set writes to stderr and can't be redirected directly,
21079# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021080(
21081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21082 eval ac_val=\$$ac_var
21083 case $ac_val in #(
21084 *${as_nl}*)
21085 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21087echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021088 esac
21089 case $ac_var in #(
21090 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021092 esac ;;
21093 esac
21094 done
21095
John Criswell7a73b802003-06-30 21:59:07 +000021096 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21098 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099 # `set' does not quote correctly, so add quotes (double-quote
21100 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021101 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021102 "s/'/'\\\\''/g;
21103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021104 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021105 *)
21106 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021108 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021109 esac |
21110 sort
21111) |
John Criswell7a73b802003-06-30 21:59:07 +000021112 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021113 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021114 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021115 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21117 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21119 :end' >>confcache
21120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21121 if test -w "$cache_file"; then
21122 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21124echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021125 cat confcache >$cache_file
21126 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021127 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21128echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021129 fi
21130fi
21131rm -f confcache
21132
21133test "x$prefix" = xNONE && prefix=$ac_default_prefix
21134# Let make expand exec_prefix.
21135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21136
John Criswell7a73b802003-06-30 21:59:07 +000021137DEFS=-DHAVE_CONFIG_H
21138
John Criswell0c38eaf2003-09-10 15:17:25 +000021139ac_libobjs=
21140ac_ltlibobjs=
21141for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21142 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021144 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21146 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021147 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21148 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021149done
21150LIBOBJS=$ac_libobjs
21151
21152LTLIBOBJS=$ac_ltlibobjs
21153
21154
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021155if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21157Usually this means the macro was only invoked conditionally." >&5
21158echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21159Usually this means the macro was only invoked conditionally." >&2;}
21160 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021161fi
21162if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021163 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21164Usually this means the macro was only invoked conditionally." >&5
21165echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21166Usually this means the macro was only invoked conditionally." >&2;}
21167 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021168fi
John Criswell7a73b802003-06-30 21:59:07 +000021169
21170: ${CONFIG_STATUS=./config.status}
21171ac_clean_files_save=$ac_clean_files
21172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21174echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021176#! $SHELL
21177# Generated by $as_me.
21178# Run this file to recreate the current configuration.
21179# Compiler output produced by configure, useful for debugging
21180# configure, is in config.log if it exists.
21181
21182debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021183ac_cs_recheck=false
21184ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021185SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021188cat >>$CONFIG_STATUS <<\_ACEOF
21189## --------------------- ##
21190## M4sh Initialization. ##
21191## --------------------- ##
21192
21193# Be Bourne compatible
21194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021195 emulate sh
21196 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021198 # is contrary to our usage. Disable this feature.
21199 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021200 setopt NO_GLOB_SUBST
21201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204BIN_SH=xpg4; export BIN_SH # for Tru64
21205DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021206
John Criswell7a73b802003-06-30 21:59:07 +000021207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208# PATH needs CR
21209# Avoid depending upon Character Ranges.
21210as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21211as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21212as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21213as_cr_digits='0123456789'
21214as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021215
21216# The user is always right.
21217if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218 echo "#! /bin/sh" >conf$$.sh
21219 echo "exit 0" >>conf$$.sh
21220 chmod +x conf$$.sh
21221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21222 PATH_SEPARATOR=';'
21223 else
21224 PATH_SEPARATOR=:
21225 fi
21226 rm -f conf$$.sh
21227fi
21228
21229# Support unset when possible.
21230if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21231 as_unset=unset
21232else
21233 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021234fi
John Criswell7a73b802003-06-30 21:59:07 +000021235
Reid Spencera773bd52006-08-04 18:18:08 +000021236
21237# IFS
21238# We need space, tab and new line, in precisely that order. Quoting is
21239# there to prevent editors from complaining about space-tab.
21240# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21241# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021242as_nl='
21243'
Reid Spencera773bd52006-08-04 18:18:08 +000021244IFS=" "" $as_nl"
21245
21246# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021248 *[\\/]* ) as_myself=$0 ;;
21249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021250for as_dir in $PATH
21251do
21252 IFS=$as_save_IFS
21253 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21255done
Reid Spencera773bd52006-08-04 18:18:08 +000021256IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021257
Reid Spencera773bd52006-08-04 18:18:08 +000021258 ;;
21259esac
21260# We did not find ourselves, most probably we were run as `sh COMMAND'
21261# in which case we are not to be found in the path.
21262if test "x$as_myself" = x; then
21263 as_myself=$0
21264fi
21265if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21267 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021268fi
21269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021270# Work around bugs in pre-3.0 UWIN ksh.
21271for as_var in ENV MAIL MAILPATH
21272do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021273done
21274PS1='$ '
21275PS2='> '
21276PS4='+ '
21277
21278# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021279for as_var in \
21280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21282 LC_TELEPHONE LC_TIME
21283do
21284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21285 eval $as_var=C; export $as_var
21286 else
21287 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021288 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289done
Torok Edwin871384f2010-01-26 08:50:50 +000021290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021292if expr a : '\(a\)' >/dev/null 2>&1 &&
21293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21294 as_expr=expr
21295else
21296 as_expr=false
21297fi
21298
21299if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21300 as_basename=basename
21301else
21302 as_basename=false
21303fi
21304
21305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021307as_me=`$as_basename -- "$0" ||
21308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21309 X"$0" : 'X\(//\)$' \| \
21310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021311echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021312 sed '/^.*\/\([^/][^/]*\)\/*$/{
21313 s//\1/
21314 q
21315 }
21316 /^X\/\(\/\/\)$/{
21317 s//\1/
21318 q
21319 }
21320 /^X\/\(\/\).*/{
21321 s//\1/
21322 q
21323 }
21324 s/.*/./; q'`
21325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021326# CDPATH.
21327$as_unset CDPATH
21328
21329
21330
21331 as_lineno_1=$LINENO
21332 as_lineno_2=$LINENO
21333 test "x$as_lineno_1" != "x$as_lineno_2" &&
21334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21335
21336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21337 # uniformly replaced by the line number. The first 'sed' inserts a
21338 # line-number line after each line using $LINENO; the second 'sed'
21339 # does the real work. The second script uses 'N' to pair each
21340 # line-number line with the line containing $LINENO, and appends
21341 # trailing '-' during substitution so that $LINENO is not a special
21342 # case at line end.
21343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21344 # scripts with optimization help from Paolo Bonzini. Blame Lee
21345 # E. McMahon (1931-1989) for sed's syntax. :-)
21346 sed -n '
21347 p
21348 /[$]LINENO/=
21349 ' <$as_myself |
21350 sed '
21351 s/[$]LINENO.*/&-/
21352 t lineno
21353 b
21354 :lineno
21355 N
21356 :loop
21357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21358 t loop
21359 s/-\n.*//
21360 ' >$as_me.lineno &&
21361 chmod +x "$as_me.lineno" ||
21362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21363 { (exit 1); exit 1; }; }
21364
21365 # Don't try to exec as it changes $[0], causing all sort of problems
21366 # (the dirname of $[0] is not the place where we might find the
21367 # original and so on. Autoconf is especially sensitive to this).
21368 . "./$as_me.lineno"
21369 # Exit status is that of the last command.
21370 exit
21371}
21372
21373
21374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21375 as_dirname=dirname
21376else
21377 as_dirname=false
21378fi
Reid Spencera773bd52006-08-04 18:18:08 +000021379
21380ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021382-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021386 esac;;
21387*)
21388 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021389esac
21390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391if expr a : '\(a\)' >/dev/null 2>&1 &&
21392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21393 as_expr=expr
21394else
21395 as_expr=false
21396fi
21397
John Criswell7a73b802003-06-30 21:59:07 +000021398rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021399if test -d conf$$.dir; then
21400 rm -f conf$$.dir/conf$$.file
21401else
21402 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021405echo >conf$$.file
21406if ln -s conf$$.file conf$$ 2>/dev/null; then
21407 as_ln_s='ln -s'
21408 # ... but there are two gotchas:
21409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21411 # In both cases, we have to default to `cp -p'.
21412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021413 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021414elif ln conf$$.file conf$$ 2>/dev/null; then
21415 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021416else
21417 as_ln_s='cp -p'
21418fi
Reid Spencera773bd52006-08-04 18:18:08 +000021419rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21420rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021421
John Criswell0c38eaf2003-09-10 15:17:25 +000021422if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021423 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021424else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021425 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021426 as_mkdir_p=false
21427fi
21428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21430# systems may use methods other than mode bits to determine executability.
21431cat >conf$$.file <<_ASEOF
21432#! /bin/sh
21433exit 0
21434_ASEOF
21435chmod +x conf$$.file
21436if test -x conf$$.file >/dev/null 2>&1; then
21437 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021441rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021442
21443# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021445
21446# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021448
21449
John Criswell7a73b802003-06-30 21:59:07 +000021450exec 6>&1
21451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021452# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021453# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021454# values after options handling.
21455ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021456This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021458
21459 CONFIG_FILES = $CONFIG_FILES
21460 CONFIG_HEADERS = $CONFIG_HEADERS
21461 CONFIG_LINKS = $CONFIG_LINKS
21462 CONFIG_COMMANDS = $CONFIG_COMMANDS
21463 $ $0 $@
21464
Reid Spencera773bd52006-08-04 18:18:08 +000021465on `(hostname || uname -n) 2>/dev/null | sed 1q`
21466"
21467
John Criswell7a73b802003-06-30 21:59:07 +000021468_ACEOF
21469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021471# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021472config_files="$ac_config_files"
21473config_headers="$ac_config_headers"
21474config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021475
Reid Spencera773bd52006-08-04 18:18:08 +000021476_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021479ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480\`$as_me' instantiates files from templates according to the
21481current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021484
21485 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486 -V, --version print version number, then exit
21487 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021488 -d, --debug don't remove temporary files
21489 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490 --file=FILE[:TEMPLATE]
21491 instantiate the configuration file FILE
21492 --header=FILE[:TEMPLATE]
21493 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021494
21495Configuration files:
21496$config_files
21497
21498Configuration headers:
21499$config_headers
21500
John Criswellc764fbc2003-09-06 15:17:13 +000021501Configuration commands:
21502$config_commands
21503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021505
Reid Spencera773bd52006-08-04 18:18:08 +000021506_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021508ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021509LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510configured by $0, generated by GNU Autoconf 2.60,
21511 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021514This config.status script is free software; the Free Software Foundation
21515gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021516
21517ac_pwd='$ac_pwd'
21518srcdir='$srcdir'
21519INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021520_ACEOF
21521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522cat >>$CONFIG_STATUS <<\_ACEOF
21523# If no file are specified by the user, then we need to provide default
21524# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021525ac_need_defaults=:
21526while test $# != 0
21527do
21528 case $1 in
21529 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021532 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021534 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021535 ac_option=$1
21536 ac_optarg=$2
21537 ac_shift=shift
21538 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021539 esac
21540
John Criswell0c38eaf2003-09-10 15:17:25 +000021541 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021542 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21544 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021547 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021548 debug=: ;;
21549 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021550 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021552 ac_need_defaults=false;;
21553 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021554 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021555 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021556 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021557 --he | --h)
21558 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559 { echo "$as_me: error: ambiguous option: $1
21560Try \`$0 --help' for more information." >&2
21561 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021562 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021563 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21566 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021567
21568 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569 -*) { echo "$as_me: error: unrecognized option: $1
21570Try \`$0 --help' for more information." >&2
21571 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021574 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021575
21576 esac
21577 shift
21578done
21579
John Criswell0c38eaf2003-09-10 15:17:25 +000021580ac_configure_extra_args=
21581
21582if $ac_cs_silent; then
21583 exec 6>/dev/null
21584 ac_configure_extra_args="$ac_configure_extra_args --silent"
21585fi
21586
21587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021588cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021589if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021590 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21591 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021592 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021594fi
21595
John Criswell7a73b802003-06-30 21:59:07 +000021596_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021598exec 5>>config.log
21599{
21600 echo
21601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21602## Running $as_me. ##
21603_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021605} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021606
Reid Spencera773bd52006-08-04 18:18:08 +000021607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021609#
Reid Spencera773bd52006-08-04 18:18:08 +000021610# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021611#
Reid Spencerc0682832005-02-24 19:05:19 +000021612llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021613
21614_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021617
21618# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021619for ac_config_target in $ac_config_targets
21620do
Reid Spencera773bd52006-08-04 18:18:08 +000021621 case $ac_config_target in
21622 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021623 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021624 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21625 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021626 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021627 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021628 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021629 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021630 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021631 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021632 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21633 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021634 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021635 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21636 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21637 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21638 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21639 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021640 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021641 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21642 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021643 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021644 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21645 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21646 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021647 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21648 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21651echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21652 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021653 esac
21654done
21655
Reid Spencera773bd52006-08-04 18:18:08 +000021656
John Criswell7a73b802003-06-30 21:59:07 +000021657# If the user did not use the arguments to specify the items to instantiate,
21658# then the envvar interface is used. Set only those that are not.
21659# We use the long form for the default assignment because of an extremely
21660# bizarre bug on SunOS 4.1.3.
21661if $ac_need_defaults; then
21662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021665fi
21666
John Criswell0c38eaf2003-09-10 15:17:25 +000021667# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021668# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021669# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021670# Hook for its removal unless debugging.
21671# Note that there is a small window in which the directory will not be cleaned:
21672# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021673$debug ||
21674{
Reid Spencera773bd52006-08-04 18:18:08 +000021675 tmp=
21676 trap 'exit_status=$?
21677 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21678' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021680}
John Criswell7a73b802003-06-30 21:59:07 +000021681# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021682
John Criswell7a73b802003-06-30 21:59:07 +000021683{
Reid Spencera773bd52006-08-04 18:18:08 +000021684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021685 test -n "$tmp" && test -d "$tmp"
21686} ||
21687{
Reid Spencera773bd52006-08-04 18:18:08 +000021688 tmp=./conf$$-$RANDOM
21689 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690} ||
21691{
21692 echo "$me: cannot create a temporary directory in ." >&2
21693 { (exit 1); exit 1; }
21694}
John Criswell7a73b802003-06-30 21:59:07 +000021695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021696#
21697# Set up the sed scripts for CONFIG_FILES section.
21698#
21699
21700# No need to generate the scripts if there are no CONFIG_FILES.
21701# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021702if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021703
21704_ACEOF
21705
Reid Spencera773bd52006-08-04 18:18:08 +000021706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021707
Reid Spencera773bd52006-08-04 18:18:08 +000021708ac_delim='%!_!# '
21709for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710 cat >conf$$subs.sed <<_ACEOF
21711SHELL!$SHELL$ac_delim
21712PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21713PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21714PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21715PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21716PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21717PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21718exec_prefix!$exec_prefix$ac_delim
21719prefix!$prefix$ac_delim
21720program_transform_name!$program_transform_name$ac_delim
21721bindir!$bindir$ac_delim
21722sbindir!$sbindir$ac_delim
21723libexecdir!$libexecdir$ac_delim
21724datarootdir!$datarootdir$ac_delim
21725datadir!$datadir$ac_delim
21726sysconfdir!$sysconfdir$ac_delim
21727sharedstatedir!$sharedstatedir$ac_delim
21728localstatedir!$localstatedir$ac_delim
21729includedir!$includedir$ac_delim
21730oldincludedir!$oldincludedir$ac_delim
21731docdir!$docdir$ac_delim
21732infodir!$infodir$ac_delim
21733htmldir!$htmldir$ac_delim
21734dvidir!$dvidir$ac_delim
21735pdfdir!$pdfdir$ac_delim
21736psdir!$psdir$ac_delim
21737libdir!$libdir$ac_delim
21738localedir!$localedir$ac_delim
21739mandir!$mandir$ac_delim
21740DEFS!$DEFS$ac_delim
21741ECHO_C!$ECHO_C$ac_delim
21742ECHO_N!$ECHO_N$ac_delim
21743ECHO_T!$ECHO_T$ac_delim
21744LIBS!$LIBS$ac_delim
21745build_alias!$build_alias$ac_delim
21746host_alias!$host_alias$ac_delim
21747target_alias!$target_alias$ac_delim
21748LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021749CC!$CC$ac_delim
21750CFLAGS!$CFLAGS$ac_delim
21751LDFLAGS!$LDFLAGS$ac_delim
21752CPPFLAGS!$CPPFLAGS$ac_delim
21753ac_ct_CC!$ac_ct_CC$ac_delim
21754EXEEXT!$EXEEXT$ac_delim
21755OBJEXT!$OBJEXT$ac_delim
21756CXX!$CXX$ac_delim
21757CXXFLAGS!$CXXFLAGS$ac_delim
21758ac_ct_CXX!$ac_ct_CXX$ac_delim
21759CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021760subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021761ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21762LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763build!$build$ac_delim
21764build_cpu!$build_cpu$ac_delim
21765build_vendor!$build_vendor$ac_delim
21766build_os!$build_os$ac_delim
21767host!$host$ac_delim
21768host_cpu!$host_cpu$ac_delim
21769host_vendor!$host_vendor$ac_delim
21770host_os!$host_os$ac_delim
21771target!$target$ac_delim
21772target_cpu!$target_cpu$ac_delim
21773target_vendor!$target_vendor$ac_delim
21774target_os!$target_os$ac_delim
21775OS!$OS$ac_delim
21776HOST_OS!$HOST_OS$ac_delim
21777TARGET_OS!$TARGET_OS$ac_delim
21778LINKALL!$LINKALL$ac_delim
21779NOLINKALL!$NOLINKALL$ac_delim
21780LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21781LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21782ARCH!$ARCH$ac_delim
21783ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021784GREP!$GREP$ac_delim
21785EGREP!$EGREP$ac_delim
21786LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21787BUILD_CC!$BUILD_CC$ac_delim
21788BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21789BUILD_CXX!$BUILD_CXX$ac_delim
21790CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021791ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21793ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21794DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21795ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21796EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21797DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21798DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21799JIT!$JIT$ac_delim
21800TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021801ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021803LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021804ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021805ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021806ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021807ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021811 break
21812 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21814echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21815 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021816 else
21817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021818 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021819done
21820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21822if test -n "$ac_eof"; then
21823 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21824 ac_eof=`expr $ac_eof + 1`
21825fi
21826
21827cat >>$CONFIG_STATUS <<_ACEOF
21828cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21829/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831sed '
21832s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21833s/^/s,@/; s/!/@,|#_!!_#|/
21834:n
21835t n
21836s/'"$ac_delim"'$/,g/; t
21837s/$/\\/; p
21838N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21839' >>$CONFIG_STATUS <conf$$subs.sed
21840rm -f conf$$subs.sed
21841cat >>$CONFIG_STATUS <<_ACEOF
21842CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021843_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844
21845
21846ac_delim='%!_!# '
21847for ac_last_try in false false false false false :; do
21848 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021849ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021850TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21851LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21852LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021853LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021854LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021855ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021856OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021857EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021858EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021859CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021860BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021861INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021862NM!$NM$ac_delim
21863ifGNUmake!$ifGNUmake$ac_delim
21864LN_S!$LN_S$ac_delim
21865CMP!$CMP$ac_delim
21866CP!$CP$ac_delim
21867DATE!$DATE$ac_delim
21868FIND!$FIND$ac_delim
21869MKDIR!$MKDIR$ac_delim
21870MV!$MV$ac_delim
21871RANLIB!$RANLIB$ac_delim
21872AR!$AR$ac_delim
21873RM!$RM$ac_delim
21874SED!$SED$ac_delim
21875TAR!$TAR$ac_delim
21876BINPWD!$BINPWD$ac_delim
21877GRAPHVIZ!$GRAPHVIZ$ac_delim
21878DOT!$DOT$ac_delim
21879FDP!$FDP$ac_delim
21880NEATO!$NEATO$ac_delim
21881TWOPI!$TWOPI$ac_delim
21882CIRCO!$CIRCO$ac_delim
21883GV!$GV$ac_delim
21884DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021885XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21887INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21888INSTALL_DATA!$INSTALL_DATA$ac_delim
21889BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021890CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891DOXYGEN!$DOXYGEN$ac_delim
21892GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021893GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021894POD2HTML!$POD2HTML$ac_delim
21895POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021896PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897RUNTEST!$RUNTEST$ac_delim
21898TCLSH!$TCLSH$ac_delim
21899ZIP!$ZIP$ac_delim
21900OCAMLC!$OCAMLC$ac_delim
21901OCAMLOPT!$OCAMLOPT$ac_delim
21902OCAMLDEP!$OCAMLDEP$ac_delim
21903OCAMLDOC!$OCAMLDOC$ac_delim
21904GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021905HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21907INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21908CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21909CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21910LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021911NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21912NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021913COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914USE_UDIS86!$USE_UDIS86$ac_delim
21915USE_OPROFILE!$USE_OPROFILE$ac_delim
21916HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21917HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21918MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021920SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21922LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21923LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21924LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21925LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21926LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21927LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21928LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21929LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21930LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21931BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21932ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021933OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21934ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21935RPATH!$RPATH$ac_delim
21936RDYNAMIC!$RDYNAMIC$ac_delim
21937LIBOBJS!$LIBOBJS$ac_delim
21938LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021939_ACEOF
21940
Benjamin Kramer8c3d2582012-03-07 17:07:20 +000021941 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942 break
21943 elif $ac_last_try; then
21944 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21945echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21946 { (exit 1); exit 1; }; }
21947 else
21948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21949 fi
21950done
21951
21952ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21953if test -n "$ac_eof"; then
21954 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21955 ac_eof=`expr $ac_eof + 1`
21956fi
21957
21958cat >>$CONFIG_STATUS <<_ACEOF
21959cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000021960/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21961_ACEOF
21962sed '
21963s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21964s/^/s,@/; s/!/@,|#_!!_#|/
21965:n
21966t n
21967s/'"$ac_delim"'$/,g/; t
21968s/$/\\/; p
21969N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21970' >>$CONFIG_STATUS <conf$$subs.sed
21971rm -f conf$$subs.sed
21972cat >>$CONFIG_STATUS <<_ACEOF
21973:end
21974s/|#_!!_#|//g
21975CEOF$ac_eof
21976_ACEOF
21977
21978
Reid Spencera773bd52006-08-04 18:18:08 +000021979# VPATH may cause trouble with some makes, so we remove $(srcdir),
21980# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21981# trailing colons and then remove the whole line if VPATH becomes empty
21982# (actually we leave an empty line to preserve line numbers).
21983if test "x$srcdir" = x.; then
21984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21985s/:*\$(srcdir):*/:/
21986s/:*\${srcdir}:*/:/
21987s/:*@srcdir@:*/:/
21988s/^\([^=]*=[ ]*\):*/\1/
21989s/:*$//
21990s/^[^=]*=[ ]*$//
21991}'
21992fi
21993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021994cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021995fi # test -n "$CONFIG_FILES"
21996
Reid Spencera773bd52006-08-04 18:18:08 +000021997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021999do
22000 case $ac_tag in
22001 :[FHLC]) ac_mode=$ac_tag; continue;;
22002 esac
22003 case $ac_mode$ac_tag in
22004 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22006echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22007 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022008 :[FH]-) ac_tag=-:-;;
22009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22010 esac
22011 ac_save_IFS=$IFS
22012 IFS=:
22013 set x $ac_tag
22014 IFS=$ac_save_IFS
22015 shift
22016 ac_file=$1
22017 shift
22018
22019 case $ac_mode in
22020 :L) ac_source=$1;;
22021 :[FH])
22022 ac_file_inputs=
22023 for ac_f
22024 do
22025 case $ac_f in
22026 -) ac_f="$tmp/stdin";;
22027 *) # Look for the file first in the build tree, then in the source tree
22028 # (if the path is not absolute). The absolute path cannot be DOS-style,
22029 # because $ac_f cannot contain `:'.
22030 test -f "$ac_f" ||
22031 case $ac_f in
22032 [\\/$]*) false;;
22033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22034 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22036echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22037 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022038 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022040 done
22041
22042 # Let's still pretend it is `configure' which instantiates (i.e., don't
22043 # use $as_me), people would be surprised to read:
22044 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045 configure_input="Generated from "`IFS=:
22046 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022047 if test x"$ac_file" != x-; then
22048 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022049 { echo "$as_me:$LINENO: creating $ac_file" >&5
22050echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022051 fi
22052
22053 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022054 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022055 esac
22056 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022057 esac
22058
Reid Spencera773bd52006-08-04 18:18:08 +000022059 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22066 s//\1/
22067 q
22068 }
22069 /^X\(\/\/\)[^/].*/{
22070 s//\1/
22071 q
22072 }
22073 /^X\(\/\/\)$/{
22074 s//\1/
22075 q
22076 }
22077 /^X\(\/\).*/{
22078 s//\1/
22079 q
22080 }
22081 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022082 { as_dir="$ac_dir"
22083 case $as_dir in #(
22084 -*) as_dir=./$as_dir;;
22085 esac
22086 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22087 as_dirs=
22088 while :; do
22089 case $as_dir in #(
22090 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22091 *) as_qdir=$as_dir;;
22092 esac
22093 as_dirs="'$as_qdir' $as_dirs"
22094 as_dir=`$as_dirname -- "$as_dir" ||
22095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22096 X"$as_dir" : 'X\(//\)[^/]' \| \
22097 X"$as_dir" : 'X\(//\)$' \| \
22098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22099echo X"$as_dir" |
22100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22101 s//\1/
22102 q
22103 }
22104 /^X\(\/\/\)[^/].*/{
22105 s//\1/
22106 q
22107 }
22108 /^X\(\/\/\)$/{
22109 s//\1/
22110 q
22111 }
22112 /^X\(\/\).*/{
22113 s//\1/
22114 q
22115 }
22116 s/.*/./; q'`
22117 test -d "$as_dir" && break
22118 done
22119 test -z "$as_dirs" || eval "mkdir $as_dirs"
22120 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22121echo "$as_me: error: cannot create directory $as_dir" >&2;}
22122 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022123 ac_builddir=.
22124
Reid Spencera773bd52006-08-04 18:18:08 +000022125case "$ac_dir" in
22126.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22127*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022129 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022131 case $ac_top_builddir_sub in
22132 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22133 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22134 esac ;;
22135esac
22136ac_abs_top_builddir=$ac_pwd
22137ac_abs_builddir=$ac_pwd$ac_dir_suffix
22138# for backward compatibility:
22139ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022140
22141case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022142 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022143 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022144 ac_top_srcdir=$ac_top_builddir_sub
22145 ac_abs_top_srcdir=$ac_pwd ;;
22146 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022147 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022148 ac_top_srcdir=$srcdir
22149 ac_abs_top_srcdir=$srcdir ;;
22150 *) # Relative name.
22151 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22152 ac_top_srcdir=$ac_top_build_prefix$srcdir
22153 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022154esac
Reid Spencera773bd52006-08-04 18:18:08 +000022155ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022156
John Criswell7a73b802003-06-30 21:59:07 +000022157
Reid Spencera773bd52006-08-04 18:18:08 +000022158 case $ac_mode in
22159 :F)
22160 #
22161 # CONFIG_FILE
22162 #
John Criswell7a73b802003-06-30 21:59:07 +000022163
22164 case $INSTALL in
22165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022166 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022167 esac
John Criswell7a73b802003-06-30 21:59:07 +000022168_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022170cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022171# If the template does not know about datarootdir, expand it.
22172# FIXME: This hack should be removed a few years after 2.60.
22173ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022174
22175case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022176 p
22177 q
22178}
22179/@datadir@/p
22180/@docdir@/p
22181/@infodir@/p
22182/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022183/@mandir@/p
22184' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022185*datarootdir*) ac_datarootdir_seen=yes;;
22186*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022187 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22188echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022189_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022190cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022191 ac_datarootdir_hack='
22192 s&@datadir@&$datadir&g
22193 s&@docdir@&$docdir&g
22194 s&@infodir@&$infodir&g
22195 s&@localedir@&$localedir&g
22196 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022197 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022198esac
22199_ACEOF
22200
22201# Neutralize VPATH when `$srcdir' = `.'.
22202# Shell code in configure.ac might set extrasub.
22203# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204cat >>$CONFIG_STATUS <<_ACEOF
22205 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022206$extrasub
22207_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022208cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022209:t
22210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022211s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022212s&@top_builddir@&$ac_top_builddir_sub&;t t
22213s&@srcdir@&$ac_srcdir&;t t
22214s&@abs_srcdir@&$ac_abs_srcdir&;t t
22215s&@top_srcdir@&$ac_top_srcdir&;t t
22216s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22217s&@builddir@&$ac_builddir&;t t
22218s&@abs_builddir@&$ac_abs_builddir&;t t
22219s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22220s&@INSTALL@&$ac_INSTALL&;t t
22221$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022222" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022223
Reid Spencera773bd52006-08-04 18:18:08 +000022224test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22225 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22226 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022227 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022228which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022229echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022230which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022231
Reid Spencera773bd52006-08-04 18:18:08 +000022232 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022233 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022234 -) cat "$tmp/out"; rm -f "$tmp/out";;
22235 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22236 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022237 ;;
22238 :H)
22239 #
22240 # CONFIG_HEADER
22241 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022242_ACEOF
22243
22244# Transform confdefs.h into a sed script `conftest.defines', that
22245# substitutes the proper values into config.h.in to produce config.h.
22246rm -f conftest.defines conftest.tail
22247# First, append a space to every undef/define line, to ease matching.
22248echo 's/$/ /' >conftest.defines
22249# Then, protect against being on the right side of a sed subst, or in
22250# an unquoted here document, in config.status. If some macros were
22251# called several times there might be several #defines for the same
22252# symbol, which is useless. But do not sort them, since the last
22253# AC_DEFINE must be honored.
22254ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22255# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22256# NAME is the cpp macro being defined, VALUE is the value it is being given.
22257# PARAMS is the parameter list in the macro definition--in most cases, it's
22258# just an empty string.
22259ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22260ac_dB='\\)[ (].*,\\1define\\2'
22261ac_dC=' '
22262ac_dD=' ,'
22263
22264uniq confdefs.h |
22265 sed -n '
22266 t rset
22267 :rset
22268 s/^[ ]*#[ ]*define[ ][ ]*//
22269 t ok
22270 d
22271 :ok
22272 s/[\\&,]/\\&/g
22273 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22274 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22275 ' >>conftest.defines
22276
22277# Remove the space that was appended to ease matching.
22278# Then replace #undef with comments. This is necessary, for
22279# example, in the case of _POSIX_SOURCE, which is predefined and required
22280# on some systems where configure will not decide to define it.
22281# (The regexp can be short, since the line contains either #define or #undef.)
22282echo 's/ $//
22283s,^[ #]*u.*,/* & */,' >>conftest.defines
22284
22285# Break up conftest.defines:
22286ac_max_sed_lines=50
22287
22288# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22289# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22290# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22291# et cetera.
22292ac_in='$ac_file_inputs'
22293ac_out='"$tmp/out1"'
22294ac_nxt='"$tmp/out2"'
22295
22296while :
22297do
22298 # Write a here document:
22299 cat >>$CONFIG_STATUS <<_ACEOF
22300 # First, check the format of the line:
22301 cat >"\$tmp/defines.sed" <<\\CEOF
22302/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22303/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22304b
22305:def
22306_ACEOF
22307 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22308 echo 'CEOF
22309 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22310 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22311 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22312 grep . conftest.tail >/dev/null || break
22313 rm -f conftest.defines
22314 mv conftest.tail conftest.defines
22315done
22316rm -f conftest.defines conftest.tail
22317
22318echo "ac_result=$ac_in" >>$CONFIG_STATUS
22319cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022320 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 echo "/* $configure_input */" >"$tmp/config.h"
22322 cat "$ac_result" >>"$tmp/config.h"
22323 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22325echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022326 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022327 rm -f $ac_file
22328 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022329 fi
22330 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022331 echo "/* $configure_input */"
22332 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022333 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022334 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022335 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022337 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22338echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022339 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022340 esac
John Criswell7a73b802003-06-30 21:59:07 +000022341
Reid Spencera773bd52006-08-04 18:18:08 +000022342
22343 case $ac_file$ac_mode in
22344 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022345 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022346 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022347 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022348 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022349 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022350 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022351 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022352 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022353 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022354 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022355 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022356 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022357 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022358 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022359 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022360 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022361 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022362 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022363 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022364 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022365 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022366 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022367 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022368 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022369 ${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 +000022370
22371 esac
22372done # for ac_tag
22373
John Criswell7a73b802003-06-30 21:59:07 +000022374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022375{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022377chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022378ac_clean_files=$ac_clean_files_save
22379
22380
22381# configure is writing to config.log, and then calls config.status.
22382# config.status does its own redirection, appending to config.log.
22383# Unfortunately, on DOS this fails, as config.log is still kept open
22384# by configure, so config.status won't be able to write to it; its
22385# output is simply discarded. So we exec the FD to /dev/null,
22386# effectively closing config.log, so it can be properly (re)opened and
22387# appended to by config.status. When coming back to configure, we
22388# need to make the FD available again.
22389if test "$no_create" != yes; then
22390 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022391 ac_config_status_args=
22392 test "$silent" = yes &&
22393 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022394 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022396 exec 5>>config.log
22397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022399 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022400fi
22401
John Criswell12399a12003-09-30 15:55:44 +000022402#
22403# CONFIG_SUBDIRS section.
22404#
22405if test "$no_recursion" != yes; then
22406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022407 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022408 ac_sub_configure_args=
22409 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022410 eval "set x $ac_configure_args"
22411 shift
22412 for ac_arg
22413 do
John Criswell12399a12003-09-30 15:55:44 +000022414 if test -n "$ac_prev"; then
22415 ac_prev=
22416 continue
22417 fi
22418 case $ac_arg in
22419 -cache-file | --cache-file | --cache-fil | --cache-fi \
22420 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22421 ac_prev=cache_file ;;
22422 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22423 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22424 | --c=*)
22425 ;;
22426 --config-cache | -C)
22427 ;;
22428 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22429 ac_prev=srcdir ;;
22430 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22431 ;;
22432 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22433 ac_prev=prefix ;;
22434 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22435 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022436 *)
22437 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022438 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022439 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022440 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022441 esac
22442 done
22443
22444 # Always prepend --prefix to ensure using the same prefix
22445 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022446 ac_arg="--prefix=$prefix"
22447 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022448 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022449 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022450 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022451
22452 ac_popdir=`pwd`
22453 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22454
22455 # Do not complain, so a configure script can configure whichever
22456 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022457 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022458
Reid Spencera773bd52006-08-04 18:18:08 +000022459 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460 echo "$as_me:$LINENO: $ac_msg" >&5
22461 echo "$ac_msg" >&6
22462 { as_dir="$ac_dir"
22463 case $as_dir in #(
22464 -*) as_dir=./$as_dir;;
22465 esac
22466 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22467 as_dirs=
22468 while :; do
22469 case $as_dir in #(
22470 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22471 *) as_qdir=$as_dir;;
22472 esac
22473 as_dirs="'$as_qdir' $as_dirs"
22474 as_dir=`$as_dirname -- "$as_dir" ||
22475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476 X"$as_dir" : 'X\(//\)[^/]' \| \
22477 X"$as_dir" : 'X\(//\)$' \| \
22478 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22479echo X"$as_dir" |
22480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22481 s//\1/
22482 q
22483 }
22484 /^X\(\/\/\)[^/].*/{
22485 s//\1/
22486 q
22487 }
22488 /^X\(\/\/\)$/{
22489 s//\1/
22490 q
22491 }
22492 /^X\(\/\).*/{
22493 s//\1/
22494 q
22495 }
22496 s/.*/./; q'`
22497 test -d "$as_dir" && break
22498 done
22499 test -z "$as_dirs" || eval "mkdir $as_dirs"
22500 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22501echo "$as_me: error: cannot create directory $as_dir" >&2;}
22502 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022503 ac_builddir=.
22504
Reid Spencera773bd52006-08-04 18:18:08 +000022505case "$ac_dir" in
22506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22507*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022509 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022511 case $ac_top_builddir_sub in
22512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22514 esac ;;
22515esac
22516ac_abs_top_builddir=$ac_pwd
22517ac_abs_builddir=$ac_pwd$ac_dir_suffix
22518# for backward compatibility:
22519ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022520
22521case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022522 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022523 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022524 ac_top_srcdir=$ac_top_builddir_sub
22525 ac_abs_top_srcdir=$ac_pwd ;;
22526 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022527 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022528 ac_top_srcdir=$srcdir
22529 ac_abs_top_srcdir=$srcdir ;;
22530 *) # Relative name.
22531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22532 ac_top_srcdir=$ac_top_build_prefix$srcdir
22533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022534esac
Reid Spencera773bd52006-08-04 18:18:08 +000022535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022536
22537
Reid Spencera773bd52006-08-04 18:18:08 +000022538 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022539
22540 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022541 if test -f "$ac_srcdir/configure.gnu"; then
22542 ac_sub_configure=$ac_srcdir/configure.gnu
22543 elif test -f "$ac_srcdir/configure"; then
22544 ac_sub_configure=$ac_srcdir/configure
22545 elif test -f "$ac_srcdir/configure.in"; then
22546 # This should be Cygnus configure.
22547 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022549 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22550echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022551 ac_sub_configure=
22552 fi
22553
22554 # The recursion is here.
22555 if test -n "$ac_sub_configure"; then
22556 # Make the cache file name correct relative to the subdirectory.
22557 case $cache_file in
22558 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022559 *) # Relative name.
22560 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022561 esac
22562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022563 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22564echo "$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 +000022565 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022566 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22567 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022568 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22569echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22570 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022571 fi
22572
Reid Spencera773bd52006-08-04 18:18:08 +000022573 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022574 done
22575fi
22576