blob: a82cccb3f919dec37be08cfb6ab702de10823864 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00003# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
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#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 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.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='llvm 3.1svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
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
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000694ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_DOXYGEN
696ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000697ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000699ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000700ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000701ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713NM
714ifGNUmake
715LN_S
716CMP
717CP
718DATE
719FIND
720MKDIR
721MV
722RANLIB
723AR
724RM
725SED
726TAR
727BINPWD
728GRAPHVIZ
729DOT
730FDP
731NEATO
732TWOPI
733CIRCO
734GV
735DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000736XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000737PERL
738HAVE_PERL
739INSTALL_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
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000772SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000791ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000799CXX
800CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000801CCC
802CPP'
John Criswell0157f502010-03-19 21:31:39 +0000803ac_subdirs_all='projects/llvm-gcc
804projects/test-suite
805projects/llvm-test
806projects/poolalloc
807projects/llvm-poolalloc
808projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000809projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000810projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-java
813projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000814projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000815projects/llvm-kernel
816tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001318\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001391 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
David Greenea696d242007-06-28 19:36:08 +00001396 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001404 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001405 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001406 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001407 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001413 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher360fa9a2011-10-26 00:42:12 +00001419 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001430 --with-optimize-option Select the compiler options to use for optimized
1431 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001432 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001433 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1435 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001436 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1439 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001440 --with-c-include-dirs Colon separated list of directories clang will
1441 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001442 --with-cxx-include-root Directory with the libstdc++ headers.
1443 --with-cxx-include-arch Architecture of the libstdc++ headers.
1444 --with-cxx-include-32bit-dir
1445 32 bit multilib dir.
1446 --with-cxx-include-64bit-dir
1447 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001450 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001451 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001452 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001453 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001458 CC C compiler command
1459 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001463 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001466 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <llvmbugs@cs.uiuc.edu>.
1472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001473ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001480 ac_builddir=.
1481
Reid Spencera773bd52006-08-04 18:18:08 +00001482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001486 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001497
1498case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001499 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001500 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001511esac
Reid Spencera773bd52006-08-04 18:18:08 +00001512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001513
Reid Spencera773bd52006-08-04 18:18:08 +00001514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001522 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001526 done
1527fi
1528
Reid Spencera773bd52006-08-04 18:18:08 +00001529test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001530if $ac_init_version; then
1531 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001532llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001540Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001542 exit
John Criswell7a73b802003-06-30 21:59:07 +00001543fi
Reid Spencera773bd52006-08-04 18:18:08 +00001544cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001545This file contains any messages produced by compilers while
1546running configure, to aid debugging if configure makes a mistake.
1547
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001548It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001550
1551 $ $0 $@
1552
1553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001554exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001555{
1556cat <<_ASUNAME
1557## --------- ##
1558## Platform. ##
1559## --------- ##
1560
1561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569
1570/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001573/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001574/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577
1578_ASUNAME
1579
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001585 echo "PATH: $as_dir"
1586done
Reid Spencera773bd52006-08-04 18:18:08 +00001587IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589} >&5
1590
1591cat >&5 <<_ACEOF
1592
1593
1594## ----------- ##
1595## Core tests. ##
1596## ----------- ##
1597
1598_ACEOF
1599
1600
1601# Keep a trace of the command line.
1602# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001603# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001604# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001606ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001607ac_configure_args0=
1608ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_must_keep_next=false
1610for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001611do
John Criswell0c38eaf2003-09-10 15:17:25 +00001612 for ac_arg
1613 do
1614 case $ac_arg in
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1618 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001619 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 esac
1622 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001627 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 case $ac_arg in
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 esac
1637 ;;
1638 -* ) ac_must_keep_next=true ;;
1639 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001641 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 ;;
1643 esac
1644 done
John Criswell7a73b802003-06-30 21:59:07 +00001645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647$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 +00001648
1649# When interrupted or exit'd, cleanup temporary files, and complete
1650# config.log. We remove comments because anyway the quotes in there
1651# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001652# WARNING: Use '\'' to represent an apostrophe within the trap.
1653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001654trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1656 {
1657 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001658
John Criswell7a73b802003-06-30 21:59:07 +00001659 cat <<\_ASBOX
1660## ---------------- ##
1661## Cache variables. ##
1662## ---------------- ##
1663_ASBOX
1664 echo
1665 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001666(
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1669 case $ac_val in #(
1670 *${as_nl}*)
1671 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001674 esac
1675 case $ac_var in #(
1676 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac ;;
1679 esac
1680 done
John Criswell7a73b802003-06-30 21:59:07 +00001681 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001684 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001688 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac |
1692 sort
1693)
John Criswell7a73b802003-06-30 21:59:07 +00001694 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001695
1696 cat <<\_ASBOX
1697## ----------------- ##
1698## Output variables. ##
1699## ----------------- ##
1700_ASBOX
1701 echo
1702 for ac_var in $ac_subst_vars
1703 do
Reid Spencera773bd52006-08-04 18:18:08 +00001704 eval ac_val=\$$ac_var
1705 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001707 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 done | sort
1710 echo
1711
1712 if test -n "$ac_subst_files"; then
1713 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001714## ------------------- ##
1715## File substitutions. ##
1716## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001717_ASBOX
1718 echo
1719 for ac_var in $ac_subst_files
1720 do
Reid Spencera773bd52006-08-04 18:18:08 +00001721 eval ac_val=\$$ac_var
1722 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001726 done | sort
1727 echo
1728 fi
1729
John Criswell7a73b802003-06-30 21:59:07 +00001730 if test -s confdefs.h; then
1731 cat <<\_ASBOX
1732## ----------- ##
1733## confdefs.h. ##
1734## ----------- ##
1735_ASBOX
1736 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001737 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001738 echo
1739 fi
1740 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001743 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001746 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001747' 0
John Criswell7a73b802003-06-30 21:59:07 +00001748for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001750done
1751ac_signal=0
1752
1753# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001754rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001755
1756# Predefined preprocessor variables.
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_NAME "$PACKAGE_NAME"
1760_ACEOF
1761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762
John Criswell7a73b802003-06-30 21:59:07 +00001763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_STRING "$PACKAGE_STRING"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780_ACEOF
1781
1782
1783# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001785if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001787elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793shift
1794for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001795do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001799 sed 's/^/| /' "$ac_site_file" >&5
1800 . "$ac_site_file"
1801 fi
1802done
1803
1804if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001813 esac
1814 fi
1815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 >$cache_file
1819fi
1820
1821# Check that the precious variables saved in the cache have kept the same
1822# value.
1823ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001824for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $ac_old_set,$ac_new_set in
1830 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001833 ac_cache_corrupted=: ;;
1834 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,);;
1839 *)
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001848 fi;;
1849 esac
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1852 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001854 *) ac_arg=$ac_var=$ac_new_val ;;
1855 esac
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 esac
1860 fi
1861done
1862if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
Reid Spencera773bd52006-08-04 18:18:08 +00001893
John Criswell7a73b802003-06-30 21:59:07 +00001894ac_ext=c
1895ac_cpp='$CPP $CPPFLAGS'
1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001902LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001903
1904
1905
1906
1907
1908
1909
John Criswell7a73b802003-06-30 21:59:07 +00001910ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001911for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001912 if test -f "$ac_dir/install-sh"; then
1913 ac_aux_dir=$ac_dir
1914 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 break
1916 elif test -f "$ac_dir/install.sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 break
1920 elif test -f "$ac_dir/shtool"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/shtool install -c"
1923 break
1924 fi
John Criswell7a73b802003-06-30 21:59:07 +00001925done
1926if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001927 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1928echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1929 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001930fi
Reid Spencera773bd52006-08-04 18:18:08 +00001931
1932# These three variables are undocumented and unsupported,
1933# and are intended to be withdrawn in a future Autoconf release.
1934# They can cause serious problems if a builder's source tree is in a directory
1935# whose full name contains unusual characters.
1936ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1937ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1938ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1939
John Criswell7a73b802003-06-30 21:59:07 +00001940
John Criswell392aaa32003-07-22 19:18:09 +00001941
Reid Spencer2706f8c2004-09-19 23:53:36 +00001942if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001943 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001944 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1945echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1946 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 fi
John Criswell93e1c722003-09-15 17:04:06 +00001948fi
1949
Nick Lewycky83fc4472009-09-29 05:48:51 +00001950ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951ac_cpp='$CPP $CPPFLAGS'
1952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001955if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001956 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001957 do
1958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001964else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001967else
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 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 +00001975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977 break 2
1978 fi
1979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980done
Reid Spencera773bd52006-08-04 18:18:08 +00001981IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001982
1983fi
1984fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 { echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001990 { echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001992fi
1993
Reid Spencera773bd52006-08-04 18:18:08 +00001994
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001995 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001996 done
1997fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001998if test -z "$CC"; then
1999 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002000 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002001do
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002008else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002011else
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013for as_dir in $PATH
2014do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 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 +00002019 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002021 break 2
2022 fi
2023done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024done
Reid Spencera773bd52006-08-04 18:18:08 +00002025IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002026
2027fi
2028fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002036fi
2037
Reid Spencera773bd52006-08-04 18:18:08 +00002038
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002040done
John Criswell7a73b802003-06-30 21:59:07 +00002041
Reid Spencera773bd52006-08-04 18:18:08 +00002042 if test "x$ac_ct_CC" = x; then
2043 CC=""
2044 else
2045 case $cross_compiling:$ac_tool_warned in
2046yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048whose name does not start with the host triplet. If you think this
2049configuration is useful to you, please write to autoconf@gnu.org." >&5
2050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051whose name does not start with the host triplet. If you think this
2052configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002053ac_tool_warned=yes ;;
2054esac
2055 CC=$ac_ct_CC
2056 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002057fi
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061See \`config.log' for more details." >&5
2062echo "$as_me: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065
John Criswell7a73b802003-06-30 21:59:07 +00002066# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002067echo "$as_me:$LINENO: checking for C compiler version" >&5
2068ac_compiler=`set X $ac_compile; echo $2`
2069{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002070case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002076 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079{ (ac_try="$ac_compiler -v >&5"
2080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler -v >&5") 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089{ (ac_try="$ac_compiler -V >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -V >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002100cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002106
John Criswell7a73b802003-06-30 21:59:07 +00002107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002116ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002117# Try to create an executable without -o first, disregard a.out.
2118# It will help us diagnose broken compilers, and finding out an intuition
2119# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2121echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2122ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123#
2124# List of possible output files, starting from the most likely.
2125# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2126# only as a last resort. b.out is created by i960 compilers.
2127ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2128#
2129# The IRIX 6 linker writes into existing files which may not be
2130# executable, retaining their permissions. Remove them first so a
2131# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002132ac_rmfiles=
2133for ac_file in $ac_files
2134do
2135 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2138 esac
2139done
2140rm -f $ac_rmfiles
2141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002143case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002148 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002149 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154# in a Makefile. We should not override ac_cv_exeext if it was cached,
2155# so that the user can short-circuit this test for compilers unknown to
2156# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002158do
2159 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002160 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002162 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002163 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002167 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002169 then :; else
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 fi
2172 # We set ac_cv_exeext here because the later test for it is not
2173 # safe: cross compilers may not add the suffix if given an `-o'
2174 # argument, so we may need to know it at that point already.
2175 # Even if this section looks crufty: it has the advantage of
2176 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002177 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002179 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002180 esac
2181done
Reid Spencera773bd52006-08-04 18:18:08 +00002182test "$ac_cv_exeext" = no && ac_cv_exeext=
2183
John Criswell7a73b802003-06-30 21:59:07 +00002184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002186sed 's/^/| /' conftest.$ac_ext >&5
2187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002188{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: C compiler cannot create executables
2191See \`config.log' for more details." >&2;}
2192 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002193fi
John Criswell7a73b802003-06-30 21:59:07 +00002194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002195ac_exeext=$ac_cv_exeext
2196{ echo "$as_me:$LINENO: result: $ac_file" >&5
2197echo "${ECHO_T}$ac_file" >&6; }
2198
2199# Check that the compiler produces executables we can run. If not, either
2200# the compiler is broken, or we cross compile.
2201{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2202echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2203# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2204# If not cross compiling, check that we can run a simple program.
2205if test "$cross_compiling" != yes; then
2206 if { ac_try='./$ac_file'
2207 { (case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_try") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 cross_compiling=no
2217 else
2218 if test "$cross_compiling" = maybe; then
2219 cross_compiling=yes
2220 else
2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222If you meant to cross compile, use \`--host'.
2223See \`config.log' for more details." >&5
2224echo "$as_me: error: cannot run C compiled programs.
2225If you meant to cross compile, use \`--host'.
2226See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2228 fi
2229 fi
2230fi
2231{ echo "$as_me:$LINENO: result: yes" >&5
2232echo "${ECHO_T}yes" >&6; }
2233
2234rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002235ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002236# Check that the compiler produces executables we can run. If not, either
2237# the compiler is broken, or we cross compile.
2238{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2240{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241echo "${ECHO_T}$cross_compiling" >&6; }
2242
2243{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2245if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002246case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002251 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002252 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257# work properly (i.e., refer to `conftest.exe'), while it won't with
2258# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002259for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002261 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002264 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002265 * ) break;;
2266 esac
2267done
2268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002275
2276rm -f conftest$ac_cv_exeext
2277{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002279
2280rm -f conftest.$ac_ext
2281EXEEXT=$ac_cv_exeext
2282ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2285if test "${ac_cv_objext+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288 cat >conftest.$ac_ext <<_ACEOF
2289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002294
John Criswell7a73b802003-06-30 21:59:07 +00002295int
2296main ()
2297{
2298
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002305case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002310 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002311 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002314 for ac_file in conftest.o conftest.obj conftest.*; do
2315 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002316 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 break;;
2320 esac
2321done
2322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002324sed 's/^/| /' conftest.$ac_ext >&5
2325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332
John Criswell7a73b802003-06-30 21:59:07 +00002333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344 cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002350
John Criswell7a73b802003-06-30 21:59:07 +00002351int
2352main ()
2353{
2354#ifndef __GNUC__
2355 choke me
2356#endif
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002362rm -f conftest.$ac_objext
2363if { (ac_try="$ac_compile"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compile") 2>conftest.er1
2370 ac_status=$?
2371 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377 { (case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_try") 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002396 ac_compiler_gnu=yes
2397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002398 echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002403
Reid Spencera773bd52006-08-04 18:18:08 +00002404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002406
2407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2410GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411ac_test_CFLAGS=${CFLAGS+set}
2412ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2415if test "${ac_cv_prog_cc_g+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002417else
Reid Spencera773bd52006-08-04 18:18:08 +00002418 ac_save_c_werror_flag=$ac_c_werror_flag
2419 ac_c_werror_flag=yes
2420 ac_cv_prog_cc_g=no
2421 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002428
John Criswell7a73b802003-06-30 21:59:07 +00002429int
2430main ()
2431{
2432
2433 ;
2434 return 0;
2435}
2436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437rm -f conftest.$ac_objext
2438if { (ac_try="$ac_compile"
2439case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compile") 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 CFLAGS=""
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002482/* end confdefs.h. */
2483
2484int
2485main ()
2486{
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492rm -f conftest.$ac_objext
2493if { (ac_try="$ac_compile"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 :
Torok Edwin871384f2010-01-26 08:50:50 +00002527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002532 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002533 cat >conftest.$ac_ext <<_ACEOF
2534/* confdefs.h. */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002538/* end confdefs.h. */
2539
2540int
2541main ()
2542{
2543
2544 ;
2545 return 0;
2546}
2547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548rm -f conftest.$ac_objext
2549if { (ac_try="$ac_compile"
2550case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553esac
2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compile") 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563 { (case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_try") 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002582 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
John Criswell7a73b802003-06-30 21:59:07 +00002588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589
Reid Spencera773bd52006-08-04 18:18:08 +00002590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002592
Reid Spencera773bd52006-08-04 18:18:08 +00002593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595
Reid Spencera773bd52006-08-04 18:18:08 +00002596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002606 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002608 fi
2609else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002612 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002614 fi
2615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620else
Reid Spencera773bd52006-08-04 18:18:08 +00002621 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628/* end confdefs.h. */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637 char **p;
2638 int i;
2639{
2640 return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002655 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002658 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
Reid Spencera773bd52006-08-04 18:18:08 +00002661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2663#define FOO(x) 'x'
2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672int
2673main ()
2674{
2675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 ;
2677 return 0;
2678}
2679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682do
2683 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002684 rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2699 { (case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_try") 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002718 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002719else
2720 echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725
Reid Spencera773bd52006-08-04 18:18:08 +00002726rm -f core conftest.err conftest.$ac_objext
2727 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728done
Reid Spencera773bd52006-08-04 18:18:08 +00002729rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002730CC=$ac_save_CC
2731
2732fi
Reid Spencera773bd52006-08-04 18:18:08 +00002733# AC_CACHE_VAL
2734case "x$ac_cv_prog_cc_c89" in
2735 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736 { echo "$as_me:$LINENO: result: none needed" >&5
2737echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002738 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002739 { echo "$as_me:$LINENO: result: unsupported" >&5
2740echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002742 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2744echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745esac
2746
John Criswell0c38eaf2003-09-10 15:17:25 +00002747
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
Eric Christopherffee5722011-09-16 20:36:25 +00002754ac_ext=cpp
2755ac_cpp='$CXXCPP $CPPFLAGS'
2756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2759if test -z "$CXX"; then
2760 if test -n "$CCC"; then
2761 CXX=$CCC
2762 else
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in clang++ llvm-g++ g++
2765 do
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770if test "${ac_cv_prog_CXX+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 if test -n "$CXX"; then
2774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793CXX=$ac_cv_prog_CXX
2794if test -n "$CXX"; then
2795 { echo "$as_me:$LINENO: result: $CXX" >&5
2796echo "${ECHO_T}$CXX" >&6; }
2797else
2798 { echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6; }
2800fi
2801
2802
2803 test -n "$CXX" && break
2804 done
2805fi
2806if test -z "$CXX"; then
2807 ac_ct_CXX=$CXX
2808 for ac_prog in clang++ llvm-g++ g++
2809do
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
2812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 if test -n "$ac_ct_CXX"; then
2818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CXX="$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2838if test -n "$ac_ct_CXX"; then
2839 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2840echo "${ECHO_T}$ac_ct_CXX" >&6; }
2841else
2842 { echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6; }
2844fi
2845
2846
2847 test -n "$ac_ct_CXX" && break
2848done
2849
2850 if test "x$ac_ct_CXX" = x; then
2851 CXX="g++"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856whose name does not start with the host triplet. If you think this
2857configuration is useful to you, please write to autoconf@gnu.org." >&5
2858echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859whose name does not start with the host triplet. If you think this
2860configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861ac_tool_warned=yes ;;
2862esac
2863 CXX=$ac_ct_CXX
2864 fi
2865fi
2866
2867 fi
2868fi
2869# Provide some information about the compiler.
2870echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2871ac_compiler=`set X $ac_compile; echo $2`
2872{ (ac_try="$ac_compiler --version >&5"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compiler --version >&5") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882{ (ac_try="$ac_compiler -v >&5"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler -v >&5") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892{ (ac_try="$ac_compiler -V >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -V >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902
2903{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2904echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2905if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918#ifndef __GNUC__
2919 choke me
2920#endif
2921
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (ac_try="$ac_compile"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2941 { (case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_try") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 ac_compiler_gnu=yes
2961else
2962 echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 ac_compiler_gnu=no
2966fi
2967
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2970
2971fi
2972{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2973echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2974GXX=`test $ac_compiler_gnu = yes && echo yes`
2975ac_test_CXXFLAGS=${CXXFLAGS+set}
2976ac_save_CXXFLAGS=$CXXFLAGS
2977{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2979if test "${ac_cv_prog_cxx_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2983 ac_cxx_werror_flag=yes
2984 ac_cv_prog_cxx_g=no
2985 CXXFLAGS="-g"
2986 cat >conftest.$ac_ext <<_ACEOF
2987/* confdefs.h. */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h. */
2992
2993int
2994main ()
2995{
2996
2997 ;
2998 return 0;
2999}
3000_ACEOF
3001rm -f conftest.$ac_objext
3002if { (ac_try="$ac_compile"
3003case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_prog_cxx_g=yes
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 CXXFLAGS=""
3041 cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047
3048int
3049main ()
3050{
3051
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (ac_try="$ac_compile"
3058case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 :
3091else
3092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3096 CXXFLAGS="-g"
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_prog_cxx_g=yes
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151
3152fi
3153
3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155fi
3156
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162fi
3163{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3165if test "$ac_test_CXXFLAGS" = set; then
3166 CXXFLAGS=$ac_save_CXXFLAGS
3167elif test $ac_cv_prog_cxx_g = yes; then
3168 if test "$GXX" = yes; then
3169 CXXFLAGS="-g -O2"
3170 else
3171 CXXFLAGS="-g"
3172 fi
3173else
3174 if test "$GXX" = yes; then
3175 CXXFLAGS="-O2"
3176 else
3177 CXXFLAGS=
3178 fi
3179fi
3180ac_ext=c
3181ac_cpp='$CPP $CPPFLAGS'
3182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003185
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003186ac_ext=c
3187ac_cpp='$CPP $CPPFLAGS'
3188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003191{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003193# On Suns, sometimes $CPP names a directory.
3194if test -n "$CPP" && test -d "$CPP"; then
3195 CPP=
3196fi
3197if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003198 if test "${ac_cv_prog_CPP+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200else
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3203 do
3204 ac_preproc_ok=false
3205for ac_c_preproc_warn_flag in '' yes
3206do
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218/* end confdefs.h. */
3219#ifdef __STDC__
3220# include <limits.h>
3221#else
3222# include <assert.h>
3223#endif
3224 Syntax error
3225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226if { (ac_try="$ac_cpp conftest.$ac_ext"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 else
3243 ac_cpp_err=
3244 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003246 ac_cpp_err=yes
3247fi
3248if test -z "$ac_cpp_err"; then
3249 :
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254 # Broken: fails on valid input.
3255continue
3256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003257
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258rm -f conftest.err conftest.$ac_ext
3259
Reid Spencera773bd52006-08-04 18:18:08 +00003260 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003262 cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267/* end confdefs.h. */
3268#include <ac_nonexistent.h>
3269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270if { (ac_try="$ac_cpp conftest.$ac_ext"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286 else
3287 ac_cpp_err=
3288 fi
3289else
3290 ac_cpp_err=yes
3291fi
3292if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 # Broken: success on invalid input.
3294continue
3295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296 echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299 # Passes both tests.
3300ac_preproc_ok=:
3301break
3302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003303
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304rm -f conftest.err conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003309if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310 break
3311fi
3312
3313 done
3314 ac_cv_prog_CPP=$CPP
3315
3316fi
3317 CPP=$ac_cv_prog_CPP
3318else
3319 ac_cv_prog_CPP=$CPP
3320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321{ echo "$as_me:$LINENO: result: $CPP" >&5
3322echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323ac_preproc_ok=false
3324for ac_c_preproc_warn_flag in '' yes
3325do
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337/* end confdefs.h. */
3338#ifdef __STDC__
3339# include <limits.h>
3340#else
3341# include <assert.h>
3342#endif
3343 Syntax error
3344_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345if { (ac_try="$ac_cpp conftest.$ac_ext"
3346case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361 else
3362 ac_cpp_err=
3363 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003365 ac_cpp_err=yes
3366fi
3367if test -z "$ac_cpp_err"; then
3368 :
3369else
3370 echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373 # Broken: fails on valid input.
3374continue
3375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377rm -f conftest.err conftest.$ac_ext
3378
Reid Spencera773bd52006-08-04 18:18:08 +00003379 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003381 cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386/* end confdefs.h. */
3387#include <ac_nonexistent.h>
3388_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389if { (ac_try="$ac_cpp conftest.$ac_ext"
3390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405 else
3406 ac_cpp_err=
3407 fi
3408else
3409 ac_cpp_err=yes
3410fi
3411if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 # Broken: success on invalid input.
3413continue
3414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418 # Passes both tests.
3419ac_preproc_ok=:
3420break
3421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423rm -f conftest.err conftest.$ac_ext
3424
3425done
3426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428if $ac_preproc_ok; then
3429 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432See \`config.log' for more details." >&5
3433echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436fi
3437
John Criswell7a73b802003-06-30 21:59:07 +00003438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
John Criswell7a73b802003-06-30 21:59:07 +00003444
Eric Christopherffee5722011-09-16 20:36:25 +00003445
3446
3447if test -d ${srcdir}/projects/llvm-gcc ; then
3448 subdirs="$subdirs projects/llvm-gcc"
3449
3450fi
3451
3452if test -d ${srcdir}/projects/test-suite ; then
3453 subdirs="$subdirs projects/test-suite"
3454
3455fi
3456
3457if test -d ${srcdir}/projects/llvm-test ; then
3458 subdirs="$subdirs projects/llvm-test"
3459
3460fi
3461
3462if test -d ${srcdir}/projects/poolalloc ; then
3463 subdirs="$subdirs projects/poolalloc"
3464
3465fi
3466
3467if test -d ${srcdir}/projects/llvm-poolalloc ; then
3468 subdirs="$subdirs projects/llvm-poolalloc"
3469
3470fi
3471
3472for i in `ls ${srcdir}/projects`
3473do
3474 if test -d ${srcdir}/projects/${i} ; then
3475 case ${i} in
3476 sample) subdirs="$subdirs projects/sample"
3477 ;;
3478 privbracket) subdirs="$subdirs projects/privbracket"
3479 ;;
3480 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3481 ;;
3482 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3483;;
3484 llvm-java) subdirs="$subdirs projects/llvm-java"
3485 ;;
3486 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3487 ;;
3488 safecode) subdirs="$subdirs projects/safecode"
3489 ;;
3490 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3491 ;;
3492 llvm-gcc) ;;
3493 test-suite) ;;
3494 llvm-test) ;;
3495 poolalloc) ;;
3496 llvm-poolalloc) ;;
3497 *)
3498 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3499echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3500 ;;
3501 esac
3502 fi
3503done
3504
3505# Check whether --enable-polly was given.
3506if test "${enable_polly+set}" = set; then
3507 enableval=$enable_polly;
3508else
3509 enableval=default
3510fi
3511
3512case "$enableval" in
3513 yes) ENABLE_POLLY=1
3514 ;;
3515 no) ENABLE_POLLY=0
3516 ;;
3517 default) ENABLE_POLLY=1
3518 ;;
3519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3520echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3521 { (exit 1); exit 1; }; } ;;
3522esac
3523
3524
3525if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3526 LLVM_HAS_POLLY=1
3527
3528 subdirs="$subdirs tools/polly"
3529
3530fi
3531
3532
3533# Make sure we can run config.sub.
3534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3536echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3537 { (exit 1); exit 1; }; }
3538
3539{ echo "$as_me:$LINENO: checking build system type" >&5
3540echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3541if test "${ac_cv_build+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 ac_build_alias=$build_alias
3545test "x$ac_build_alias" = x &&
3546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547test "x$ac_build_alias" = x &&
3548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3549echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3550 { (exit 1); exit 1; }; }
3551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3553echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3554 { (exit 1); exit 1; }; }
3555
3556fi
3557{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3558echo "${ECHO_T}$ac_cv_build" >&6; }
3559case $ac_cv_build in
3560*-*-*) ;;
3561*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3562echo "$as_me: error: invalid value of canonical build" >&2;}
3563 { (exit 1); exit 1; }; };;
3564esac
3565build=$ac_cv_build
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_build
3568shift
3569build_cpu=$1
3570build_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574build_os=$*
3575IFS=$ac_save_IFS
3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
3579{ echo "$as_me:$LINENO: checking host system type" >&5
3580echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3581if test "${ac_cv_host+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3586else
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3589echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3590 { (exit 1); exit 1; }; }
3591fi
3592
3593fi
3594{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3595echo "${ECHO_T}$ac_cv_host" >&6; }
3596case $ac_cv_host in
3597*-*-*) ;;
3598*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3599echo "$as_me: error: invalid value of canonical host" >&2;}
3600 { (exit 1); exit 1; }; };;
3601esac
3602host=$ac_cv_host
3603ac_save_IFS=$IFS; IFS='-'
3604set x $ac_cv_host
3605shift
3606host_cpu=$1
3607host_vendor=$2
3608shift; shift
3609# Remember, the first character of IFS is used to create $*,
3610# except with old shells:
3611host_os=$*
3612IFS=$ac_save_IFS
3613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614
3615
3616{ echo "$as_me:$LINENO: checking target system type" >&5
3617echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3618if test "${ac_cv_target+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621 if test "x$target_alias" = x; then
3622 ac_cv_target=$ac_cv_host
3623else
3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3626echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3627 { (exit 1); exit 1; }; }
3628fi
3629
3630fi
3631{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3632echo "${ECHO_T}$ac_cv_target" >&6; }
3633case $ac_cv_target in
3634*-*-*) ;;
3635*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3636echo "$as_me: error: invalid value of canonical target" >&2;}
3637 { (exit 1); exit 1; }; };;
3638esac
3639target=$ac_cv_target
3640ac_save_IFS=$IFS; IFS='-'
3641set x $ac_cv_target
3642shift
3643target_cpu=$1
3644target_vendor=$2
3645shift; shift
3646# Remember, the first character of IFS is used to create $*,
3647# except with old shells:
3648target_os=$*
3649IFS=$ac_save_IFS
3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653# The aliases save the names the user supplied, while $host etc.
3654# will get canonicalized.
3655test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3657 NONENONEs,x,x, &&
3658 program_prefix=${target_alias}-
3659
3660{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3661echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3662if test "${llvm_cv_os_type+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665 case $host in
3666 *-*-aix*)
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="AIX"
3670 llvm_cv_platform_type="Unix" ;;
3671 *-*-irix*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="IRIX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-cygwin*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="Cygwin"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-darwin*)
3682 llvm_cv_link_all_option="-Wl,-all_load"
3683 llvm_cv_no_link_all_option="-Wl,-noall_load"
3684 llvm_cv_os_type="Darwin"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-minix*)
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Minix"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-freebsd*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="FreeBSD"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-openbsd*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="OpenBSD"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-netbsd*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="NetBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-dragonfly*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="DragonFly"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-hpux*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="HP-UX"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-interix*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Interix"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-linux*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Linux"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-solaris*)
3727 llvm_cv_link_all_option="-Wl,-z,allextract"
3728 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3729 llvm_cv_os_type="SunOS"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-auroraux*)
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="AuroraUX"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-win32*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Win32"
3740 llvm_cv_platform_type="Win32" ;;
3741 *-*-mingw*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="MingW"
3745 llvm_cv_platform_type="Win32" ;;
3746 *-*-haiku*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Haiku"
3750 llvm_cv_platform_type="Unix" ;;
3751 *-unknown-eabi*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Freestanding"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-unknown-elf*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3761 *)
3762 llvm_cv_link_all_option=""
3763 llvm_cv_no_link_all_option=""
3764 llvm_cv_os_type="Unknown"
3765 llvm_cv_platform_type="Unknown" ;;
3766esac
3767fi
3768{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3769echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3770
3771{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3772echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3773if test "${llvm_cv_target_os_type+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776 case $target in
3777 *-*-aix*)
3778 llvm_cv_target_os_type="AIX" ;;
3779 *-*-irix*)
3780 llvm_cv_target_os_type="IRIX" ;;
3781 *-*-cygwin*)
3782 llvm_cv_target_os_type="Cygwin" ;;
3783 *-*-darwin*)
3784 llvm_cv_target_os_type="Darwin" ;;
3785 *-*-minix*)
3786 llvm_cv_target_os_type="Minix" ;;
3787 *-*-freebsd*)
3788 llvm_cv_target_os_type="FreeBSD" ;;
3789 *-*-openbsd*)
3790 llvm_cv_target_os_type="OpenBSD" ;;
3791 *-*-netbsd*)
3792 llvm_cv_target_os_type="NetBSD" ;;
3793 *-*-dragonfly*)
3794 llvm_cv_target_os_type="DragonFly" ;;
3795 *-*-hpux*)
3796 llvm_cv_target_os_type="HP-UX" ;;
3797 *-*-interix*)
3798 llvm_cv_target_os_type="Interix" ;;
3799 *-*-linux*)
3800 llvm_cv_target_os_type="Linux" ;;
3801 *-*-solaris*)
3802 llvm_cv_target_os_type="SunOS" ;;
3803 *-*-auroraux*)
3804 llvm_cv_target_os_type="AuroraUX" ;;
3805 *-*-win32*)
3806 llvm_cv_target_os_type="Win32" ;;
3807 *-*-mingw*)
3808 llvm_cv_target_os_type="MingW" ;;
3809 *-*-haiku*)
3810 llvm_cv_target_os_type="Haiku" ;;
3811 *-*-rtems*)
3812 llvm_cv_target_os_type="RTEMS" ;;
3813 *-*-nacl*)
3814 llvm_cv_target_os_type="NativeClient" ;;
3815 *-unknown-eabi*)
3816 llvm_cv_target_os_type="Freestanding" ;;
3817 *)
3818 llvm_cv_target_os_type="Unknown" ;;
3819esac
3820fi
3821{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3822echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3823
3824if test "$llvm_cv_os_type" = "Unknown" ; then
3825 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3826echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3827 { (exit 1); exit 1; }; }
3828fi
3829
3830OS=$llvm_cv_os_type
3831
3832HOST_OS=$llvm_cv_os_type
3833
3834TARGET_OS=$llvm_cv_target_os_type
3835
3836
3837LINKALL=$llvm_cv_link_all_option
3838
3839NOLINKALL=$llvm_cv_no_link_all_option
3840
3841
3842case $llvm_cv_platform_type in
3843 Unix)
3844
3845cat >>confdefs.h <<\_ACEOF
3846#define LLVM_ON_UNIX 1
3847_ACEOF
3848
3849 LLVM_ON_UNIX=1
3850
3851 LLVM_ON_WIN32=0
3852
3853 ;;
3854 Win32)
3855
3856cat >>confdefs.h <<\_ACEOF
3857#define LLVM_ON_WIN32 1
3858_ACEOF
3859
3860 LLVM_ON_UNIX=0
3861
3862 LLVM_ON_WIN32=1
3863
3864 ;;
3865esac
3866
3867{ echo "$as_me:$LINENO: checking target architecture" >&5
3868echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3869if test "${llvm_cv_target_arch+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872 case $target in
3873 i?86-*) llvm_cv_target_arch="x86" ;;
3874 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3875 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3876 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3877 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3878 arm*-*) llvm_cv_target_arch="ARM" ;;
3879 mips-*) llvm_cv_target_arch="Mips" ;;
3880 xcore-*) llvm_cv_target_arch="XCore" ;;
3881 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003882 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3883 ptx-*) llvm_cv_target_arch="PTX" ;;
3884 *) llvm_cv_target_arch="Unknown" ;;
3885esac
3886fi
3887{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3888echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3889
3890if test "$llvm_cv_target_arch" = "Unknown" ; then
3891 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3892echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3893fi
3894
3895# Determine the LLVM native architecture for the target
3896case "$llvm_cv_target_arch" in
3897 x86) LLVM_NATIVE_ARCH="X86" ;;
3898 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3899 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3900esac
3901
3902ARCH=$llvm_cv_target_arch
3903
3904
3905
3906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003907{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3908echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3909if test "${ac_cv_path_GREP+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912 # Extract the first word of "grep ggrep" to use in msg output
3913if test -z "$GREP"; then
3914set dummy grep ggrep; ac_prog_name=$2
3915if test "${ac_cv_path_GREP+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
Reid Spencera773bd52006-08-04 18:18:08 +00003918 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919# Loop through the user's path and test for each of PROGNAME-LIST
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3929 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003930 # Check for GNU $ac_path_GREP
3931case `"$ac_path_GREP" --version 2>&1` in
3932*GNU*)
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934*)
3935 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003942 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003950 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955esac
3956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957
3958 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003959 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960done
3961
3962done
Reid Spencera773bd52006-08-04 18:18:08 +00003963IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964
3965
3966fi
3967
3968GREP="$ac_cv_path_GREP"
3969if test -z "$GREP"; then
3970 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3971echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3972 { (exit 1); exit 1; }; }
3973fi
3974
Reid Spencera773bd52006-08-04 18:18:08 +00003975else
3976 ac_cv_path_GREP=$GREP
3977fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979
Reid Spencera773bd52006-08-04 18:18:08 +00003980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3982echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003983 GREP="$ac_cv_path_GREP"
3984
3985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986{ echo "$as_me:$LINENO: checking for egrep" >&5
3987echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3988if test "${ac_cv_path_EGREP+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003990else
3991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992 then ac_cv_path_EGREP="$GREP -E"
3993 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994 # Extract the first word of "egrep" to use in msg output
3995if test -z "$EGREP"; then
3996set dummy egrep; ac_prog_name=$2
3997if test "${ac_cv_path_EGREP+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
Reid Spencera773bd52006-08-04 18:18:08 +00004000 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001# Loop through the user's path and test for each of PROGNAME-LIST
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007 for ac_prog in egrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4011 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004012 # Check for GNU $ac_path_EGREP
4013case `"$ac_path_EGREP" --version 2>&1` in
4014*GNU*)
4015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016*)
4017 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004018 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004019 while :
4020 do
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_EGREP="$ac_path_EGREP"
4031 ac_path_EGREP_max=$ac_count
4032 fi
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4035 done
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037esac
4038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039
4040 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004041 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004042done
4043
4044done
Reid Spencera773bd52006-08-04 18:18:08 +00004045IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046
4047
4048fi
4049
4050EGREP="$ac_cv_path_EGREP"
4051if test -z "$EGREP"; then
4052 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054 { (exit 1); exit 1; }; }
4055fi
4056
Reid Spencera773bd52006-08-04 18:18:08 +00004057else
4058 ac_cv_path_EGREP=$EGREP
4059fi
4060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061
Reid Spencera773bd52006-08-04 18:18:08 +00004062 fi
4063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4065echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004066 EGREP="$ac_cv_path_EGREP"
4067
4068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4070echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4071if test "${ac_cv_header_stdc+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074 cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004079/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004080#include <stdlib.h>
4081#include <stdarg.h>
4082#include <string.h>
4083#include <float.h>
4084
John Criswell0c38eaf2003-09-10 15:17:25 +00004085int
4086main ()
4087{
4088
4089 ;
4090 return 0;
4091}
John Criswell7a73b802003-06-30 21:59:07 +00004092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093rm -f conftest.$ac_objext
4094if { (ac_try="$ac_compile"
4095case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098esac
4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compile") 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4108 { (case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111esac
4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4113 (eval "$ac_try") 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004127 ac_cv_header_stdc=yes
4128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004133fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134
Reid Spencera773bd52006-08-04 18:18:08 +00004135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004136
4137if test $ac_cv_header_stdc = yes; then
4138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139 cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004144/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004145#include <string.h>
4146
4147_ACEOF
4148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149 $EGREP "memchr" >/dev/null 2>&1; then
4150 :
John Criswell7a73b802003-06-30 21:59:07 +00004151else
4152 ac_cv_header_stdc=no
4153fi
4154rm -f conftest*
4155
4156fi
4157
4158if test $ac_cv_header_stdc = yes; then
4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004166#include <stdlib.h>
4167
4168_ACEOF
4169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004170 $EGREP "free" >/dev/null 2>&1; then
4171 :
John Criswell7a73b802003-06-30 21:59:07 +00004172else
4173 ac_cv_header_stdc=no
4174fi
4175rm -f conftest*
4176
4177fi
4178
4179if test $ac_cv_header_stdc = yes; then
4180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004182 :
4183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004190#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004191#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004192#if ((' ' & 0x0FF) == 0x020)
4193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004196# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004197 (('a' <= (c) && (c) <= 'i') \
4198 || ('j' <= (c) && (c) <= 'r') \
4199 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4201#endif
4202
4203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204int
4205main ()
4206{
4207 int i;
4208 for (i = 0; i < 256; i++)
4209 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004210 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004211 return 2;
4212 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004213}
4214_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004215rm -f conftest$ac_exeext
4216if { (ac_try="$ac_link"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_link") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 :
John Criswell7a73b802003-06-30 21:59:07 +00004236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004237 echo "$as_me: program exited with status $ac_status" >&5
4238echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241( exit $ac_status )
4242ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004244rm -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 +00004245fi
4246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247
John Criswell7a73b802003-06-30 21:59:07 +00004248fi
4249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4251echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004252if test $ac_cv_header_stdc = yes; then
4253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004254cat >>confdefs.h <<\_ACEOF
4255#define STDC_HEADERS 1
4256_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004257
4258fi
4259
Reid Spencera773bd52006-08-04 18:18:08 +00004260# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261
4262
4263
4264
4265
4266
4267
4268
4269
Reid Spencera773bd52006-08-04 18:18:08 +00004270for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4271 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272do
4273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279 cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h. */
4285$ac_includes_default
4286
4287#include <$ac_header>
4288_ACEOF
4289rm -f conftest.$ac_objext
4290if { (ac_try="$ac_compile"
4291case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4297 ac_status=$?
4298 grep -v '^ *+' conftest.er1 >conftest.err
4299 rm -f conftest.er1
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_Header=yes"
4324else
4325 echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 eval "$as_ac_Header=no"
4329fi
4330
4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332fi
4333ac_res=`eval echo '${'$as_ac_Header'}'`
4334 { echo "$as_me:$LINENO: result: $ac_res" >&5
4335echo "${ECHO_T}$ac_res" >&6; }
4336if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004337 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004339_ACEOF
4340
4341fi
4342
4343done
4344
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4347echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4348if test "${ac_cv_c_bigendian+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004351 # See if sys/param.h defines the BYTE_ORDER macro.
4352cat >conftest.$ac_ext <<_ACEOF
4353/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004355cat confdefs.h >>conftest.$ac_ext
4356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004357/* end confdefs.h. */
4358#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004359#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004360
4361int
4362main ()
4363{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004364#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4365 bogus endian macros
4366#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004367
4368 ;
4369 return 0;
4370}
4371_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004372rm -f conftest.$ac_objext
4373if { (ac_try="$ac_compile"
4374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_compile") 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387 { (case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
4391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_try") 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004406 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h. */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004412/* end confdefs.h. */
4413#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004415
4416int
4417main ()
4418{
4419#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004420 not big endian
4421#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004422
4423 ;
4424 return 0;
4425}
4426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427rm -f conftest.$ac_objext
4428if { (ac_try="$ac_compile"
4429case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004461 ac_cv_c_bigendian=yes
4462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463 echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466 ac_cv_c_bigendian=no
4467fi
4468
4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 # It does not; compile a test program.
4475if test "$cross_compiling" = yes; then
4476 # try to guess the endianness by grepping values into an object file
4477 ac_cv_c_bigendian=unknown
4478 cat >conftest.$ac_ext <<_ACEOF
4479/* confdefs.h. */
4480_ACEOF
4481cat confdefs.h >>conftest.$ac_ext
4482cat >>conftest.$ac_ext <<_ACEOF
4483/* end confdefs.h. */
4484short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4485short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4486void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4487short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4488short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4489void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004490int
4491main ()
4492{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004494 ;
4495 return 0;
4496}
4497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004498rm -f conftest.$ac_objext
4499if { (ac_try="$ac_compile"
4500case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503esac
4504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4513 { (case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516esac
4517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518 (eval "$ac_try") 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
4527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_try") 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004533 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534fi
4535if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4536 if test "$ac_cv_c_bigendian" = unknown; then
4537 ac_cv_c_bigendian=no
4538 else
4539 # finding both strings is unlikely to happen, but who knows?
4540 ac_cv_c_bigendian=unknown
4541 fi
4542fi
Reid Spencera773bd52006-08-04 18:18:08 +00004543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004544 echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547
Torok Edwin871384f2010-01-26 08:50:50 +00004548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549
Reid Spencera773bd52006-08-04 18:18:08 +00004550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552 cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004557/* end confdefs.h. */
4558$ac_includes_default
4559int
4560main ()
4561{
4562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004563 /* Are we little or big endian? From Harbison&Steele. */
4564 union
4565 {
4566 long int l;
4567 char c[sizeof (long int)];
4568 } u;
4569 u.l = 1;
4570 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004571
4572 ;
4573 return 0;
4574}
4575_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576rm -f conftest$ac_exeext
4577if { (ac_try="$ac_link"
4578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_link") 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587 { (case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590esac
4591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_try") 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004596 ac_cv_c_bigendian=no
4597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598 echo "$as_me: program exited with status $ac_status" >&5
4599echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602( exit $ac_status )
4603ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605rm -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 +00004606fi
4607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608
Reid Spencera773bd52006-08-04 18:18:08 +00004609fi
4610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612fi
4613{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4614echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4615case $ac_cv_c_bigendian in
4616 yes)
4617 ENDIAN=big
4618 ;;
4619 no)
4620 ENDIAN=little
4621 ;;
4622 *)
4623 { { echo "$as_me:$LINENO: error: unknown endianness
4624presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4625echo "$as_me: error: unknown endianness
4626presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4627 { (exit 1); exit 1; }; } ;;
4628esac
Reid Spencera773bd52006-08-04 18:18:08 +00004629
4630
4631if test "$cross_compiling" = yes; then
4632 LLVM_CROSS_COMPILING=1
4633
4634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004635{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4636echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4637if test "${ac_cv_build_exeext+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004639else
4640 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4641 ac_cv_build_exeext=.exe
4642else
4643 ac_build_prefix=${build_alias}-
4644
4645 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4646set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004651else
4652 if test -n "$BUILD_CC"; then
4653 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 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 +00004662 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004664 break 2
4665 fi
4666done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004667done
Reid Spencera773bd52006-08-04 18:18:08 +00004668IFS=$as_save_IFS
4669
4670fi
4671fi
4672BUILD_CC=$ac_cv_prog_BUILD_CC
4673if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4675echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 { echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004679fi
4680
4681
4682 if test -z "$BUILD_CC"; then
4683 # Extract the first word of "gcc", so it can be a program name with args.
4684set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4687if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004689else
4690 if test -n "$BUILD_CC"; then
4691 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4692else
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 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 +00004700 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004702 break 2
4703 fi
4704done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705done
Reid Spencera773bd52006-08-04 18:18:08 +00004706IFS=$as_save_IFS
4707
4708fi
4709fi
4710BUILD_CC=$ac_cv_prog_BUILD_CC
4711if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4713echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 { echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004717fi
4718
4719
4720 if test -z "$BUILD_CC"; then
4721 # Extract the first word of "cc", so it can be a program name with args.
4722set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004727else
4728 if test -n "$BUILD_CC"; then
4729 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4730else
4731 ac_prog_rejected=no
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 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 +00004739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4740 ac_prog_rejected=yes
4741 continue
4742 fi
4743 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004745 break 2
4746 fi
4747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748done
Reid Spencera773bd52006-08-04 18:18:08 +00004749IFS=$as_save_IFS
4750
4751if test $ac_prog_rejected = yes; then
4752 # We found a bogon in the path, so make sure we never use it.
4753 set dummy $ac_cv_prog_BUILD_CC
4754 shift
4755 if test $# != 0; then
4756 # We chose a different compiler from the bogus one.
4757 # However, it has the same basename, so the bogon will be chosen
4758 # first if we set BUILD_CC to just the basename; use the full file name.
4759 shift
4760 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4761 fi
4762fi
4763fi
4764fi
4765BUILD_CC=$ac_cv_prog_BUILD_CC
4766if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770 { echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004772fi
4773
4774
4775 fi
4776 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004777 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4778echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4779 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004780 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4781 rm -f conftest*
4782 echo 'int main () { return 0; }' > conftest.$ac_ext
4783 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004785 (eval $ac_build_link) 2>&5
4786 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004789 for file in conftest.*; do
4790 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004791 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004792 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4793 esac
4794 done
4795 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004796 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4797echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4798 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004799 fi
4800 rm -f conftest*
4801 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4802fi
4803fi
4804
4805BUILD_EXEEXT=""
4806test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4808echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004809ac_build_exeext=$BUILD_EXEEXT
4810
Jim Grosbach673612e2008-10-02 22:56:44 +00004811 ac_build_prefix=${build_alias}-
4812 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4813set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004818else
4819 if test -n "$BUILD_CXX"; then
4820 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 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 +00004829 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004831 break 2
4832 fi
4833done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834done
Jim Grosbach673612e2008-10-02 22:56:44 +00004835IFS=$as_save_IFS
4836
4837fi
4838fi
4839BUILD_CXX=$ac_cv_prog_BUILD_CXX
4840if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4842echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844 { echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004846fi
4847
4848
4849 if test -z "$BUILD_CXX"; then
4850 # Extract the first word of "g++", so it can be a program name with args.
4851set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004856else
4857 if test -n "$BUILD_CXX"; then
4858 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 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 +00004867 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004869 break 2
4870 fi
4871done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872done
Jim Grosbach673612e2008-10-02 22:56:44 +00004873IFS=$as_save_IFS
4874
4875fi
4876fi
4877BUILD_CXX=$ac_cv_prog_BUILD_CXX
4878if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4880echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 { echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004884fi
4885
4886
4887 if test -z "$BUILD_CXX"; then
4888 # Extract the first word of "c++", so it can be a program name with args.
4889set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4892if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004894else
4895 if test -n "$BUILD_CXX"; then
4896 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4897else
4898 ac_prog_rejected=no
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 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 +00004906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4907 ac_prog_rejected=yes
4908 continue
4909 fi
4910 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004912 break 2
4913 fi
4914done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915done
Jim Grosbach673612e2008-10-02 22:56:44 +00004916IFS=$as_save_IFS
4917
4918if test $ac_prog_rejected = yes; then
4919 # We found a bogon in the path, so make sure we never use it.
4920 set dummy $ac_cv_prog_BUILD_CXX
4921 shift
4922 if test $# != 0; then
4923 # We chose a different compiler from the bogus one.
4924 # However, it has the same basename, so the bogon will be chosen
4925 # first if we set BUILD_CXX to just the basename; use the full file name.
4926 shift
4927 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4928 fi
4929fi
4930fi
4931fi
4932BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004934 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 { echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004939fi
4940
4941
4942 fi
4943 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004944else
4945 LLVM_CROSS_COMPILING=0
4946
4947fi
4948
Dan Gohman56fb5f92010-08-04 16:25:01 +00004949if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004950 cvsbuild="yes"
4951 optimize="no"
4952 CVSBUILD=CVSBUILD=1
4953
4954else
4955 cvsbuild="no"
4956 optimize="yes"
4957fi
4958
4959
4960# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004961if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004962 enableval=$enable_optimized;
4963else
4964 enableval=$optimize
4965fi
4966
4967if test ${enableval} = "no" ; then
4968 ENABLE_OPTIMIZED=
4969
4970else
4971 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4972
4973fi
4974
David Greene2a5a12c2009-04-17 14:50:39 +00004975# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004976if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004977 enableval=$enable_profiling;
4978else
4979 enableval="no"
4980fi
4981
4982if test ${enableval} = "no" ; then
4983 ENABLE_PROFILING=
4984
4985else
4986 ENABLE_PROFILING=ENABLE_PROFILING=1
4987
4988fi
4989
Reid Spencera773bd52006-08-04 18:18:08 +00004990# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004991if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004992 enableval=$enable_assertions;
4993else
4994 enableval="yes"
4995fi
4996
4997if test ${enableval} = "yes" ; then
4998 DISABLE_ASSERTIONS=
4999
5000else
5001 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5002
5003fi
5004
David Greenea696d242007-06-28 19:36:08 +00005005# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005006if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005007 enableval=$enable_expensive_checks;
5008else
5009 enableval="no"
5010fi
5011
5012if test ${enableval} = "yes" ; then
5013 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5014
5015 EXPENSIVE_CHECKS=yes
5016
5017else
5018 ENABLE_EXPENSIVE_CHECKS=
5019
5020 EXPENSIVE_CHECKS=no
5021
5022fi
5023
Reid Spencer8b2e1412006-11-17 03:32:33 +00005024# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005025if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005026 enableval=$enable_debug_runtime;
5027else
5028 enableval=no
5029fi
5030
5031if test ${enableval} = "no" ; then
5032 DEBUG_RUNTIME=
5033
5034else
5035 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5036
5037fi
5038
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005039# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005040if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005041 enableval=$enable_debug_symbols;
5042else
5043 enableval=no
5044fi
5045
5046if test ${enableval} = "no" ; then
5047 DEBUG_SYMBOLS=
5048
5049else
5050 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5051
5052fi
5053
Reid Spencera773bd52006-08-04 18:18:08 +00005054# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005056 enableval=$enable_jit;
5057else
5058 enableval=default
5059fi
5060
5061if test ${enableval} = "no"
5062then
5063 JIT=
5064
5065else
5066 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005067 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005068 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005069 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005070 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005071 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005072 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005073 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005074 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005075 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005076 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005077 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005078 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005079 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005080 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005081 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005082 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005083 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005084 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005085 MBlaze) TARGET_HAS_JIT=0
5086 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005087 PTX) TARGET_HAS_JIT=0
5088 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005089 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005090 ;;
5091 esac
5092fi
5093
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005094# Check whether --enable-docs was given.
5095if test "${enable_docs+set}" = set; then
5096 enableval=$enable_docs;
5097else
5098 enableval=default
5099fi
5100
5101case "$enableval" in
5102 yes) ENABLE_DOCS=1
5103 ;;
5104 no) ENABLE_DOCS=0
5105 ;;
5106 default) ENABLE_DOCS=1
5107 ;;
5108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5109echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5110 { (exit 1); exit 1; }; } ;;
5111esac
5112
Reid Spencera773bd52006-08-04 18:18:08 +00005113# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005114if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005115 enableval=$enable_doxygen;
5116else
5117 enableval=default
5118fi
5119
5120case "$enableval" in
5121 yes) ENABLE_DOXYGEN=1
5122 ;;
5123 no) ENABLE_DOXYGEN=0
5124 ;;
5125 default) ENABLE_DOXYGEN=0
5126 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005127 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5128echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5129 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005130esac
5131
5132# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005133if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005134 enableval=$enable_threads;
5135else
Reid Spencer65c5d752006-11-05 17:08:18 +00005136 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005137fi
5138
5139case "$enableval" in
5140 yes) ENABLE_THREADS=1
5141 ;;
5142 no) ENABLE_THREADS=0
5143 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005144 default) ENABLE_THREADS=1
5145 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5147echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005149esac
5150
Owen Andersona8603702009-05-19 22:18:56 +00005151cat >>confdefs.h <<_ACEOF
5152#define ENABLE_THREADS $ENABLE_THREADS
5153_ACEOF
5154
5155
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005156# Check whether --enable-pthreads was given.
5157if test "${enable_pthreads+set}" = set; then
5158 enableval=$enable_pthreads;
5159else
5160 enableval=default
5161fi
5162
5163case "$enableval" in
5164 yes) ENABLE_PTHREADS=1
5165 ;;
5166 no) ENABLE_PTHREADS=0
5167 ;;
5168 default) ENABLE_PTHREADS=1
5169 ;;
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5171echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5173esac
5174
Reid Spencer89b0d992006-12-16 22:07:52 +00005175# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005176if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005177 enableval=$enable_pic;
5178else
5179 enableval=default
5180fi
5181
5182case "$enableval" in
5183 yes) ENABLE_PIC=1
5184 ;;
5185 no) ENABLE_PIC=0
5186 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005187 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005188 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5190echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005192esac
5193
5194cat >>confdefs.h <<_ACEOF
5195#define ENABLE_PIC $ENABLE_PIC
5196_ACEOF
5197
5198
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005199# Check whether --enable-shared was given.
5200if test "${enable_shared+set}" = set; then
5201 enableval=$enable_shared;
5202else
5203 enableval=default
5204fi
5205
5206case "$enableval" in
5207 yes) ENABLE_SHARED=1
5208 ;;
5209 no) ENABLE_SHARED=0
5210 ;;
5211 default) ENABLE_SHARED=0
5212 ;;
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5214echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5216esac
5217
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005218# Check whether --enable-embed-stdcxx was given.
5219if test "${enable_embed_stdcxx+set}" = set; then
5220 enableval=$enable_embed_stdcxx;
5221else
5222 enableval=default
5223fi
5224
5225case "$enableval" in
5226 yes) ENABLE_EMBED_STDCXX=1
5227 ;;
5228 no) ENABLE_EMBED_STDCXX=0
5229 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005230 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005231 ;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5233echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5235esac
5236
Daniel Dunbardd464df2010-05-10 20:11:56 +00005237# Check whether --enable-timestamps was given.
5238if test "${enable_timestamps+set}" = set; then
5239 enableval=$enable_timestamps;
5240else
5241 enableval=default
5242fi
5243
5244case "$enableval" in
5245 yes) ENABLE_TIMESTAMPS=1
5246 ;;
5247 no) ENABLE_TIMESTAMPS=0
5248 ;;
5249 default) ENABLE_TIMESTAMPS=1
5250 ;;
5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5252echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5254esac
5255
5256cat >>confdefs.h <<_ACEOF
5257#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5258_ACEOF
5259
5260
Reid Spencera773bd52006-08-04 18:18:08 +00005261TARGETS_TO_BUILD=""
5262# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005263if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005264 enableval=$enable_targets;
5265else
5266 enableval=all
5267fi
5268
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005269if test "$enableval" = host-only ; then
5270 enableval=host
5271fi
Reid Spencera773bd52006-08-04 18:18:08 +00005272case "$enableval" in
Dan Gohmanfef5ff02011-10-25 00:36:31 +00005273 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005274 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5275 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005276 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5279 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5280 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5281 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5282 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005284 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5285 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005286 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005287 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005288 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005289 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005290 host) case "$llvm_cv_target_arch" in
5291 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5294 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5295 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5296 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5297 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005298 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005299 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005300 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5301 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005302 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005303 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5304echo "$as_me: error: Can not set target to build" >&2;}
5305 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005306 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005307 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5308echo "$as_me: error: Unrecognized target $a_target" >&2;}
5309 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005310 esac
5311 done
5312 ;;
5313esac
Reid Spencera773bd52006-08-04 18:18:08 +00005314TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5315
5316
Douglas Gregor0711c302009-06-17 00:43:20 +00005317# Determine whether we are building LLVM support for the native architecture.
5318# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5319for a_target in $TARGETS_TO_BUILD; do
5320 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5321
5322cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005323#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5324_ACEOF
5325
5326 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5327 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005328 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005329 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005330 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5331 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5332 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005333
5334cat >>confdefs.h <<_ACEOF
5335#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005336_ACEOF
5337
5338
5339cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005340#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5341_ACEOF
5342
5343
5344cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005345#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005346_ACEOF
5347
5348
5349cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005350#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005351_ACEOF
5352
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005353 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005354
5355cat >>confdefs.h <<_ACEOF
5356#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5357_ACEOF
5358
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005359 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005360 fi
5361done
5362
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005363# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5364# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005365LLVM_ENUM_TARGETS=""
5366LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005367LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005368LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005369for target_to_build in $TARGETS_TO_BUILD; do
5370 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005371 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005372 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5373 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005374 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5375 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5376 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005377 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5378 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5379 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005380done
5381
5382
5383
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005384
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005385
Reid Spencer65c5d752006-11-05 17:08:18 +00005386# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005388 enableval=$enable_cbe_printf_a;
5389else
5390 enableval=default
5391fi
5392
5393case "$enableval" in
5394 yes) ENABLE_CBE_PRINTF_A=1
5395 ;;
5396 no) ENABLE_CBE_PRINTF_A=0
5397 ;;
5398 default) ENABLE_CBE_PRINTF_A=1
5399 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005400 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5401echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5402 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005403esac
5404
5405cat >>confdefs.h <<_ACEOF
5406#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5407_ACEOF
5408
5409
Reid Spencera773bd52006-08-04 18:18:08 +00005410
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005411# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005412if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005413 withval=$with_optimize_option;
5414else
5415 withval=default
5416fi
5417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005418{ echo "$as_me:$LINENO: checking optimization flags" >&5
5419echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005420case "$withval" in
5421 default)
5422 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005423 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005424 MingW) optimize_option=-O2 ;;
5425 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005426 esac ;;
5427 *) optimize_option="$withval" ;;
5428esac
5429OPTIMIZE_OPTION=$optimize_option
5430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5432echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005433
5434
Reid Spencera773bd52006-08-04 18:18:08 +00005435# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005437 withval=$with_extra_options;
5438else
5439 withval=default
5440fi
5441
5442case "$withval" in
5443 default) EXTRA_OPTIONS= ;;
5444 *) EXTRA_OPTIONS=$withval ;;
5445esac
5446EXTRA_OPTIONS=$EXTRA_OPTIONS
5447
5448
Daniel Dunbared344d22011-06-16 22:30:41 +00005449
5450# Check whether --with-extra-ld-options was given.
5451if test "${with_extra_ld_options+set}" = set; then
5452 withval=$with_extra_ld_options;
5453else
5454 withval=default
5455fi
5456
5457case "$withval" in
5458 default) EXTRA_LD_OPTIONS= ;;
5459 *) EXTRA_LD_OPTIONS=$withval ;;
5460esac
5461EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5462
5463
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005464# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005465if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005466 enableval=$enable_bindings;
5467else
5468 enableval=default
5469fi
5470
5471BINDINGS_TO_BUILD=""
5472case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005473 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005474 all ) BINDINGS_TO_BUILD="ocaml" ;;
5475 none | no) BINDINGS_TO_BUILD="" ;;
5476 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5477 case "$a_binding" in
5478 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005479 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5480echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5481 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005482 esac
5483 done
5484 ;;
5485esac
5486
Reid Spencera773bd52006-08-04 18:18:08 +00005487
Gordon Henriksenf0915682007-10-02 16:42:22 +00005488# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005490 withval=$with_ocaml_libdir;
5491else
5492 withval=auto
5493fi
5494
5495case "$withval" in
5496 auto) with_ocaml_libdir="$withval" ;;
5497 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5499echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5500 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005501esac
5502
5503
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005504# Check whether --with-clang-srcdir was given.
5505if test "${with_clang_srcdir+set}" = set; then
5506 withval=$with_clang_srcdir;
5507else
5508 withval="-"
5509fi
5510
5511case "$withval" in
5512 -) clang_src_root="" ;;
5513 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5514 *) clang_src_root="$ac_pwd/$withval" ;;
5515esac
5516CLANG_SRC_ROOT=$clang_src_root
5517
5518
5519
Chandler Carruth6b241162010-10-19 08:21:25 +00005520# Check whether --with-clang-resource-dir was given.
5521if test "${with_clang_resource_dir+set}" = set; then
5522 withval=$with_clang_resource_dir;
5523else
5524 withval=""
5525fi
5526
5527
5528cat >>confdefs.h <<_ACEOF
5529#define CLANG_RESOURCE_DIR "$withval"
5530_ACEOF
5531
5532
5533
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005534# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005536 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005537else
5538 withval=""
5539fi
5540
5541
5542cat >>confdefs.h <<_ACEOF
5543#define C_INCLUDE_DIRS "$withval"
5544_ACEOF
5545
5546
5547
Rafael Espindola420d23c2009-11-16 19:46:55 +00005548# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005549if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005550 withval=$with_cxx_include_root;
5551else
5552 withval=""
5553fi
5554
5555
5556cat >>confdefs.h <<_ACEOF
5557#define CXX_INCLUDE_ROOT "$withval"
5558_ACEOF
5559
5560
5561
5562# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005564 withval=$with_cxx_include_arch;
5565else
5566 withval=""
5567fi
5568
5569
5570cat >>confdefs.h <<_ACEOF
5571#define CXX_INCLUDE_ARCH "$withval"
5572_ACEOF
5573
5574
5575
5576# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005578 withval=$with_cxx_include_32bit_dir;
5579else
5580 withval=""
5581fi
5582
5583
5584cat >>confdefs.h <<_ACEOF
5585#define CXX_INCLUDE_32BIT_DIR "$withval"
5586_ACEOF
5587
5588
5589
5590# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005591if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005592 withval=$with_cxx_include_64bit_dir;
5593else
5594 withval=""
5595fi
5596
5597
5598cat >>confdefs.h <<_ACEOF
5599#define CXX_INCLUDE_64BIT_DIR "$withval"
5600_ACEOF
5601
5602
5603
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005604# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005606 withval=$with_binutils_include;
5607else
5608 withval=default
5609fi
5610
5611case "$withval" in
5612 default) WITH_BINUTILS_INCDIR=default ;;
5613 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5615echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5616 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005617esac
5618if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5619 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5620
5621 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5622 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5624echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5625 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005626 fi
5627fi
5628
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005629
5630# Check whether --with-bug-report-url was given.
5631if test "${with_bug_report_url+set}" = set; then
5632 withval=$with_bug_report_url;
5633else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005634 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005635fi
5636
5637
5638cat >>confdefs.h <<_ACEOF
5639#define BUG_REPORT_URL "$withval"
5640_ACEOF
5641
5642
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005643# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005645 enableval=$enable_libffi; case "$enableval" in
5646 yes) llvm_cv_enable_libffi="yes" ;;
5647 no) llvm_cv_enable_libffi="no" ;;
5648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5650 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005651 esac
5652else
5653 llvm_cv_enable_libffi=no
5654fi
5655
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005656
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005658{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5659echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5660if test "${lt_cv_path_NM+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005662else
5663 if test -n "$NM"; then
5664 # Let the user override the test.
5665 lt_cv_path_NM="$NM"
5666else
5667 lt_nm_to_check="${ac_tool_prefix}nm"
5668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5669 lt_nm_to_check="$lt_nm_to_check nm"
5670 fi
5671 for lt_tmp_nm in $lt_nm_to_check; do
5672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5674 IFS="$lt_save_ifs"
5675 test -z "$ac_dir" && ac_dir=.
5676 tmp_nm="$ac_dir/$lt_tmp_nm"
5677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5678 # Check to see if the nm accepts a BSD-compat flag.
5679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5680 # nm: unknown option "B" ignored
5681 # Tru64's nm complains that /dev/null is an invalid object file
5682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5683 */dev/null* | *'Invalid file or object type'*)
5684 lt_cv_path_NM="$tmp_nm -B"
5685 break
5686 ;;
5687 *)
5688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5689 */dev/null*)
5690 lt_cv_path_NM="$tmp_nm -p"
5691 break
5692 ;;
5693 *)
5694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5695 continue # so that we can try to find one that supports BSD flags
5696 ;;
5697 esac
5698 ;;
5699 esac
5700 fi
5701 done
5702 IFS="$lt_save_ifs"
5703 done
5704 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5705fi
5706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005707{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5708echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005709NM="$lt_cv_path_NM"
5710
5711
5712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713{ echo "$as_me:$LINENO: checking for GNU make" >&5
5714echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5715if test "${llvm_cv_gnu_make_command+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005717else
5718 llvm_cv_gnu_make_command=''
5719 for a in "$MAKE" make gmake gnumake ; do
5720 if test -z "$a" ; then continue ; fi ;
5721 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5722 then
5723 llvm_cv_gnu_make_command=$a ;
5724 break;
5725 fi
5726 done
5727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5729echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005730 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5731 ifGNUmake='' ;
5732 else
5733 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5735echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005736 fi
5737
5738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005741LN_S=$as_ln_s
5742if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743 { echo "$as_me:$LINENO: result: yes" >&5
5744echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005745else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005748fi
5749
5750# Extract the first word of "cmp", so it can be a program name with args.
5751set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754if test "${ac_cv_path_CMP+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005756else
5757 case $CMP in
5758 [\\/]* | ?:[\\/]*)
5759 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5760 ;;
5761 *)
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 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 +00005769 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005771 break 2
5772 fi
5773done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774done
Reid Spencera773bd52006-08-04 18:18:08 +00005775IFS=$as_save_IFS
5776
5777 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5778 ;;
5779esac
5780fi
5781CMP=$ac_cv_path_CMP
5782if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 { echo "$as_me:$LINENO: result: $CMP" >&5
5784echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786 { echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005788fi
5789
5790
5791# Extract the first word of "cp", so it can be a program name with args.
5792set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795if test "${ac_cv_path_CP+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005797else
5798 case $CP in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5801 ;;
5802 *)
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 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 +00005810 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005812 break 2
5813 fi
5814done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815done
Reid Spencera773bd52006-08-04 18:18:08 +00005816IFS=$as_save_IFS
5817
5818 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5819 ;;
5820esac
5821fi
5822CP=$ac_cv_path_CP
5823if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824 { echo "$as_me:$LINENO: result: $CP" >&5
5825echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827 { echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005829fi
5830
5831
5832# Extract the first word of "date", so it can be a program name with args.
5833set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5836if test "${ac_cv_path_DATE+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005838else
5839 case $DATE in
5840 [\\/]* | ?:[\\/]*)
5841 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5842 ;;
5843 *)
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 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 +00005851 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005853 break 2
5854 fi
5855done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856done
Reid Spencera773bd52006-08-04 18:18:08 +00005857IFS=$as_save_IFS
5858
5859 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5860 ;;
5861esac
5862fi
5863DATE=$ac_cv_path_DATE
5864if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865 { echo "$as_me:$LINENO: result: $DATE" >&5
5866echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868 { echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005870fi
5871
5872
5873# Extract the first word of "find", so it can be a program name with args.
5874set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5877if test "${ac_cv_path_FIND+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005879else
5880 case $FIND in
5881 [\\/]* | ?:[\\/]*)
5882 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5883 ;;
5884 *)
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 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 +00005892 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005894 break 2
5895 fi
5896done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897done
Reid Spencera773bd52006-08-04 18:18:08 +00005898IFS=$as_save_IFS
5899
5900 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5901 ;;
5902esac
5903fi
5904FIND=$ac_cv_path_FIND
5905if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906 { echo "$as_me:$LINENO: result: $FIND" >&5
5907echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909 { echo "$as_me:$LINENO: result: no" >&5
5910echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005911fi
5912
5913
5914# Extract the first word of "grep", so it can be a program name with args.
5915set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918if test "${ac_cv_path_GREP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005920else
5921 case $GREP in
5922 [\\/]* | ?:[\\/]*)
5923 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5924 ;;
5925 *)
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 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 +00005933 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005935 break 2
5936 fi
5937done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938done
Reid Spencera773bd52006-08-04 18:18:08 +00005939IFS=$as_save_IFS
5940
5941 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5942 ;;
5943esac
5944fi
5945GREP=$ac_cv_path_GREP
5946if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947 { echo "$as_me:$LINENO: result: $GREP" >&5
5948echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005950 { echo "$as_me:$LINENO: result: no" >&5
5951echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005952fi
5953
5954
5955# Extract the first word of "mkdir", so it can be a program name with args.
5956set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959if test "${ac_cv_path_MKDIR+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005961else
5962 case $MKDIR in
5963 [\\/]* | ?:[\\/]*)
5964 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5965 ;;
5966 *)
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 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 +00005974 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005976 break 2
5977 fi
5978done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979done
Reid Spencera773bd52006-08-04 18:18:08 +00005980IFS=$as_save_IFS
5981
5982 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5983 ;;
5984esac
5985fi
5986MKDIR=$ac_cv_path_MKDIR
5987if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5989echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991 { echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005993fi
5994
5995
5996# Extract the first word of "mv", so it can be a program name with args.
5997set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6000if test "${ac_cv_path_MV+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006002else
6003 case $MV in
6004 [\\/]* | ?:[\\/]*)
6005 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6006 ;;
6007 *)
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 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 +00006015 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006017 break 2
6018 fi
6019done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020done
Reid Spencera773bd52006-08-04 18:18:08 +00006021IFS=$as_save_IFS
6022
6023 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6024 ;;
6025esac
6026fi
6027MV=$ac_cv_path_MV
6028if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029 { echo "$as_me:$LINENO: result: $MV" >&5
6030echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032 { echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006034fi
6035
6036
6037if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6039set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042if test "${ac_cv_prog_RANLIB+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006044else
6045 if test -n "$RANLIB"; then
6046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 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 +00006055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006057 break 2
6058 fi
6059done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060done
Reid Spencera773bd52006-08-04 18:18:08 +00006061IFS=$as_save_IFS
6062
6063fi
6064fi
6065RANLIB=$ac_cv_prog_RANLIB
6066if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6068echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006069else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070 { echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006072fi
6073
6074
6075fi
6076if test -z "$ac_cv_prog_RANLIB"; then
6077 ac_ct_RANLIB=$RANLIB
6078 # Extract the first word of "ranlib", so it can be a program name with args.
6079set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006084else
6085 if test -n "$ac_ct_RANLIB"; then
6086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 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 +00006095 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006097 break 2
6098 fi
6099done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100done
Reid Spencera773bd52006-08-04 18:18:08 +00006101IFS=$as_save_IFS
6102
6103fi
6104fi
6105ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6106if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6108echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110 { echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006112fi
6113
6114 if test "x$ac_ct_RANLIB" = x; then
6115 RANLIB=":"
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120whose name does not start with the host triplet. If you think this
6121configuration is useful to you, please write to autoconf@gnu.org." >&5
6122echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123whose name does not start with the host triplet. If you think this
6124configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006125ac_tool_warned=yes ;;
6126esac
6127 RANLIB=$ac_ct_RANLIB
6128 fi
6129else
6130 RANLIB="$ac_cv_prog_RANLIB"
6131fi
6132
Torok Edwin871384f2010-01-26 08:50:50 +00006133if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_prog_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006140else
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 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 +00006151 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006153 break 2
6154 fi
6155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156done
Torok Edwin871384f2010-01-26 08:50:50 +00006157IFS=$as_save_IFS
6158
6159fi
6160fi
6161AR=$ac_cv_prog_AR
6162if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 { echo "$as_me:$LINENO: result: $AR" >&5
6164echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166 { echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006168fi
6169
6170
6171fi
6172if test -z "$ac_cv_prog_AR"; then
6173 ac_ct_AR=$AR
6174 # Extract the first word of "ar", so it can be a program name with args.
6175set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006180else
6181 if test -n "$ac_ct_AR"; then
6182 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 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 +00006191 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006193 break 2
6194 fi
6195done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196done
Torok Edwin871384f2010-01-26 08:50:50 +00006197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 { echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006208fi
6209
6210 if test "x$ac_ct_AR" = x; then
6211 AR="false"
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006215{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216whose name does not start with the host triplet. If you think this
6217configuration is useful to you, please write to autoconf@gnu.org." >&5
6218echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219whose name does not start with the host triplet. If you think this
6220configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006221ac_tool_warned=yes ;;
6222esac
6223 AR=$ac_ct_AR
6224 fi
6225else
6226 AR="$ac_cv_prog_AR"
6227fi
6228
Reid Spencera773bd52006-08-04 18:18:08 +00006229# Extract the first word of "rm", so it can be a program name with args.
6230set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233if test "${ac_cv_path_RM+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006235else
6236 case $RM in
6237 [\\/]* | ?:[\\/]*)
6238 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6239 ;;
6240 *)
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 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 +00006248 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006250 break 2
6251 fi
6252done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253done
Reid Spencera773bd52006-08-04 18:18:08 +00006254IFS=$as_save_IFS
6255
6256 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6257 ;;
6258esac
6259fi
6260RM=$ac_cv_path_RM
6261if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 { echo "$as_me:$LINENO: result: $RM" >&5
6263echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 { echo "$as_me:$LINENO: result: no" >&5
6266echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006267fi
6268
6269
6270# Extract the first word of "sed", so it can be a program name with args.
6271set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274if test "${ac_cv_path_SED+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006276else
6277 case $SED in
6278 [\\/]* | ?:[\\/]*)
6279 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6280 ;;
6281 *)
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 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 +00006289 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006291 break 2
6292 fi
6293done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294done
Reid Spencera773bd52006-08-04 18:18:08 +00006295IFS=$as_save_IFS
6296
6297 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6298 ;;
6299esac
6300fi
6301SED=$ac_cv_path_SED
6302if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 { echo "$as_me:$LINENO: result: $SED" >&5
6304echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 { echo "$as_me:$LINENO: result: no" >&5
6307echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006308fi
6309
6310
6311# Extract the first word of "tar", so it can be a program name with args.
6312set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315if test "${ac_cv_path_TAR+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006317else
6318 case $TAR in
6319 [\\/]* | ?:[\\/]*)
6320 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6321 ;;
6322 *)
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 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 +00006330 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006332 break 2
6333 fi
6334done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335done
Reid Spencera773bd52006-08-04 18:18:08 +00006336IFS=$as_save_IFS
6337
6338 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6339 ;;
6340esac
6341fi
6342TAR=$ac_cv_path_TAR
6343if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344 { echo "$as_me:$LINENO: result: $TAR" >&5
6345echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347 { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006349fi
6350
6351
6352# Extract the first word of "pwd", so it can be a program name with args.
6353set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356if test "${ac_cv_path_BINPWD+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006358else
6359 case $BINPWD in
6360 [\\/]* | ?:[\\/]*)
6361 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6362 ;;
6363 *)
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 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 +00006371 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006373 break 2
6374 fi
6375done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376done
Reid Spencera773bd52006-08-04 18:18:08 +00006377IFS=$as_save_IFS
6378
6379 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6380 ;;
6381esac
6382fi
6383BINPWD=$ac_cv_path_BINPWD
6384if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6386echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388 { echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006390fi
6391
6392
6393
6394# Extract the first word of "Graphviz", so it can be a program name with args.
6395set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006400else
6401 case $GRAPHVIZ in
6402 [\\/]* | ?:[\\/]*)
6403 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6404 ;;
6405 *)
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 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 +00006413 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006415 break 2
6416 fi
6417done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418done
Reid Spencera773bd52006-08-04 18:18:08 +00006419IFS=$as_save_IFS
6420
6421 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6422 ;;
6423esac
6424fi
6425GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6426if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6428echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430 { echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006432fi
6433
6434
6435if test "$GRAPHVIZ" != "echo Graphviz" ; then
6436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437cat >>confdefs.h <<\_ACEOF
6438#define HAVE_GRAPHVIZ 1
6439_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006440
Jeff Cohen28783c32007-01-12 18:22:38 +00006441 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006442 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6443 fi
6444
6445cat >>confdefs.h <<_ACEOF
6446#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6447_ACEOF
6448
6449fi
6450# Extract the first word of "dot", so it can be a program name with args.
6451set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454if test "${ac_cv_path_DOT+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006456else
6457 case $DOT in
6458 [\\/]* | ?:[\\/]*)
6459 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6460 ;;
6461 *)
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 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 +00006469 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006471 break 2
6472 fi
6473done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474done
Reid Spencera773bd52006-08-04 18:18:08 +00006475IFS=$as_save_IFS
6476
6477 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6478 ;;
6479esac
6480fi
6481DOT=$ac_cv_path_DOT
6482if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483 { echo "$as_me:$LINENO: result: $DOT" >&5
6484echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486 { echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006488fi
6489
6490
6491if test "$DOT" != "echo dot" ; then
6492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493cat >>confdefs.h <<\_ACEOF
6494#define HAVE_DOT 1
6495_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006496
Jeff Cohen28783c32007-01-12 18:22:38 +00006497 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006498 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6499 fi
6500
6501cat >>confdefs.h <<_ACEOF
6502#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6503_ACEOF
6504
6505fi
David Greenef0b9eff2009-07-09 17:16:26 +00006506# Extract the first word of "fdp", so it can be a program name with args.
6507set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510if test "${ac_cv_path_FDP+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006512else
6513 case $FDP in
6514 [\\/]* | ?:[\\/]*)
6515 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6516 ;;
6517 *)
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 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 +00006525 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006527 break 2
6528 fi
6529done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530done
David Greenef0b9eff2009-07-09 17:16:26 +00006531IFS=$as_save_IFS
6532
6533 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6534 ;;
6535esac
6536fi
6537FDP=$ac_cv_path_FDP
6538if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539 { echo "$as_me:$LINENO: result: $FDP" >&5
6540echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 { echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006544fi
6545
6546
6547if test "$FDP" != "echo fdp" ; then
6548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549cat >>confdefs.h <<\_ACEOF
6550#define HAVE_FDP 1
6551_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006552
6553 if test "$llvm_cv_os_type" = "MingW" ; then
6554 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6555 fi
6556
6557cat >>confdefs.h <<_ACEOF
6558#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6559_ACEOF
6560
6561fi
6562# Extract the first word of "neato", so it can be a program name with args.
6563set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566if test "${ac_cv_path_NEATO+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006568else
6569 case $NEATO in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 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 +00006581 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006583 break 2
6584 fi
6585done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586done
David Greenef0b9eff2009-07-09 17:16:26 +00006587IFS=$as_save_IFS
6588
6589 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6590 ;;
6591esac
6592fi
6593NEATO=$ac_cv_path_NEATO
6594if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595 { echo "$as_me:$LINENO: result: $NEATO" >&5
6596echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598 { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006600fi
6601
6602
6603if test "$NEATO" != "echo neato" ; then
6604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605cat >>confdefs.h <<\_ACEOF
6606#define HAVE_NEATO 1
6607_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006608
6609 if test "$llvm_cv_os_type" = "MingW" ; then
6610 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6611 fi
6612
6613cat >>confdefs.h <<_ACEOF
6614#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6615_ACEOF
6616
6617fi
6618# Extract the first word of "twopi", so it can be a program name with args.
6619set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622if test "${ac_cv_path_TWOPI+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006624else
6625 case $TWOPI in
6626 [\\/]* | ?:[\\/]*)
6627 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6628 ;;
6629 *)
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 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 +00006637 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006639 break 2
6640 fi
6641done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642done
David Greenef0b9eff2009-07-09 17:16:26 +00006643IFS=$as_save_IFS
6644
6645 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6646 ;;
6647esac
6648fi
6649TWOPI=$ac_cv_path_TWOPI
6650if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6652echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654 { echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006656fi
6657
6658
6659if test "$TWOPI" != "echo twopi" ; then
6660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661cat >>confdefs.h <<\_ACEOF
6662#define HAVE_TWOPI 1
6663_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006664
6665 if test "$llvm_cv_os_type" = "MingW" ; then
6666 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6667 fi
6668
6669cat >>confdefs.h <<_ACEOF
6670#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6671_ACEOF
6672
6673fi
6674# Extract the first word of "circo", so it can be a program name with args.
6675set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678if test "${ac_cv_path_CIRCO+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006680else
6681 case $CIRCO in
6682 [\\/]* | ?:[\\/]*)
6683 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6684 ;;
6685 *)
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 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 +00006693 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006695 break 2
6696 fi
6697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698done
David Greenef0b9eff2009-07-09 17:16:26 +00006699IFS=$as_save_IFS
6700
6701 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6702 ;;
6703esac
6704fi
6705CIRCO=$ac_cv_path_CIRCO
6706if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6708echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710 { echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006712fi
6713
6714
6715if test "$CIRCO" != "echo circo" ; then
6716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717cat >>confdefs.h <<\_ACEOF
6718#define HAVE_CIRCO 1
6719_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006720
6721 if test "$llvm_cv_os_type" = "MingW" ; then
6722 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6723 fi
6724
6725cat >>confdefs.h <<_ACEOF
6726#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6727_ACEOF
6728
6729fi
Reid Spencera773bd52006-08-04 18:18:08 +00006730for ac_prog in gv gsview32
6731do
6732 # Extract the first word of "$ac_prog", so it can be a program name with args.
6733set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_path_GV+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006738else
6739 case $GV in
6740 [\\/]* | ?:[\\/]*)
6741 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6742 ;;
6743 *)
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 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 +00006751 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006753 break 2
6754 fi
6755done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756done
Reid Spencera773bd52006-08-04 18:18:08 +00006757IFS=$as_save_IFS
6758
6759 ;;
6760esac
6761fi
6762GV=$ac_cv_path_GV
6763if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764 { echo "$as_me:$LINENO: result: $GV" >&5
6765echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767 { echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006769fi
6770
6771
6772 test -n "$GV" && break
6773done
6774test -n "$GV" || GV="echo gv"
6775
6776if test "$GV" != "echo gv" ; then
6777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778cat >>confdefs.h <<\_ACEOF
6779#define HAVE_GV 1
6780_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006781
Jeff Cohen28783c32007-01-12 18:22:38 +00006782 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006783 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6784 fi
6785
6786cat >>confdefs.h <<_ACEOF
6787#define LLVM_PATH_GV "$GV${EXEEXT}"
6788_ACEOF
6789
6790fi
6791# Extract the first word of "dotty", so it can be a program name with args.
6792set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795if test "${ac_cv_path_DOTTY+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006797else
6798 case $DOTTY in
6799 [\\/]* | ?:[\\/]*)
6800 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6801 ;;
6802 *)
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 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 +00006810 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006812 break 2
6813 fi
6814done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815done
Reid Spencera773bd52006-08-04 18:18:08 +00006816IFS=$as_save_IFS
6817
6818 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6819 ;;
6820esac
6821fi
6822DOTTY=$ac_cv_path_DOTTY
6823if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6825echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 { echo "$as_me:$LINENO: result: no" >&5
6828echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006829fi
6830
6831
6832if test "$DOTTY" != "echo dotty" ; then
6833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834cat >>confdefs.h <<\_ACEOF
6835#define HAVE_DOTTY 1
6836_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006837
Jeff Cohen28783c32007-01-12 18:22:38 +00006838 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006839 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6840 fi
6841
6842cat >>confdefs.h <<_ACEOF
6843#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6844_ACEOF
6845
6846fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006847# Extract the first word of "xdot.py", so it can be a program name with args.
6848set dummy xdot.py; ac_word=$2
6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_XDOT_PY+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 case $XDOT_PY in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6875 ;;
6876esac
6877fi
6878XDOT_PY=$ac_cv_path_XDOT_PY
6879if test -n "$XDOT_PY"; then
6880 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6881echo "${ECHO_T}$XDOT_PY" >&6; }
6882else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888if test "$XDOT_PY" != "echo xdot.py" ; then
6889
6890cat >>confdefs.h <<\_ACEOF
6891#define HAVE_XDOT_PY 1
6892_ACEOF
6893
6894 if test "$llvm_cv_os_type" = "MingW" ; then
6895 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6896 fi
6897
6898cat >>confdefs.h <<_ACEOF
6899#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6900_ACEOF
6901
6902fi
Reid Spencera773bd52006-08-04 18:18:08 +00006903
6904
6905# Extract the first word of "perl", so it can be a program name with args.
6906set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_PERL+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006911else
6912 case $PERL in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 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 +00006924 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006926 break 2
6927 fi
6928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929done
Reid Spencera773bd52006-08-04 18:18:08 +00006930IFS=$as_save_IFS
6931
6932 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6933 ;;
6934esac
6935fi
6936PERL=$ac_cv_path_PERL
6937if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: $PERL" >&5
6939echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006943fi
6944
6945
6946if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6948echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 { echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006952 else
6953 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 { echo "$as_me:$LINENO: result: not found" >&5
6955echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956 fi
6957fi
6958
6959
6960if test x"$PERL" = xnone; then
6961 HAVE_PERL=0
6962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6964echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6965 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006966else
6967 HAVE_PERL=1
6968
6969fi
6970
6971# Find a good install program. We prefer a C program (faster),
6972# so one script is as good as another. But avoid the broken or
6973# incompatible versions:
6974# SysV /etc/install, /usr/sbin/install
6975# SunOS /usr/etc/install
6976# IRIX /sbin/install
6977# AIX /bin/install
6978# AmigaOS /C/install, which installs bootblocks on floppy discs
6979# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6980# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6981# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6982# OS/2's system install, which has a completely different semantic
6983# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6985echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006986if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987if test "${ac_cv_path_install+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006989else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995 # Account for people who put trailing slashes in PATH elements.
6996case $as_dir/ in
6997 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007000 /usr/ucb/* ) ;;
7001 *)
7002 # OSF1 and SCO ODT 3.0 have their own names for install.
7003 # Don't use installbsd from OSF since it installs stuff as root
7004 # by default.
7005 for ac_prog in ginstall scoinst install; do
7006 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 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 +00007008 if test $ac_prog = install &&
7009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7010 # AIX install. It has an incompatible calling convention.
7011 :
7012 elif test $ac_prog = install &&
7013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # program-specific install script used by HP pwplus--don't use.
7015 :
7016 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7018 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007019 fi
7020 fi
7021 done
7022 done
7023 ;;
7024esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025done
Reid Spencera773bd52006-08-04 18:18:08 +00007026IFS=$as_save_IFS
7027
7028
7029fi
7030 if test "${ac_cv_path_install+set}" = set; then
7031 INSTALL=$ac_cv_path_install
7032 else
7033 # As a last resort, use the slow shell script. Don't cache a
7034 # value for INSTALL within a source directory, because that will
7035 # break other packages using the cache if that directory is
7036 # removed, or if the value is a relative name.
7037 INSTALL=$ac_install_sh
7038 fi
7039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007040{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7041echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007042
7043# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7044# It thinks the first close brace ends the variable substitution.
7045test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7046
7047test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7048
7049test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7050
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007051case "$INSTALL" in
7052 [\\/$]* | ?:[\\/]* ) ;;
7053 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7054esac
Reid Spencera773bd52006-08-04 18:18:08 +00007055
7056# Extract the first word of "bzip2", so it can be a program name with args.
7057set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_BZIP2+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007062else
7063 case $BZIP2 in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 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 +00007075 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007077 break 2
7078 fi
7079done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080done
Reid Spencera773bd52006-08-04 18:18:08 +00007081IFS=$as_save_IFS
7082
Reid Spencera773bd52006-08-04 18:18:08 +00007083 ;;
7084esac
7085fi
7086BZIP2=$ac_cv_path_BZIP2
7087if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7089echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007093fi
7094
7095
mike-m68cb3192010-05-06 23:45:43 +00007096# Extract the first word of "cat", so it can be a program name with args.
7097set dummy cat; ac_word=$2
7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_CAT+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 case $CAT in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123 ;;
7124esac
7125fi
7126CAT=$ac_cv_path_CAT
7127if test -n "$CAT"; then
7128 { echo "$as_me:$LINENO: result: $CAT" >&5
7129echo "${ECHO_T}$CAT" >&6; }
7130else
7131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
7133fi
7134
7135
Reid Spencera773bd52006-08-04 18:18:08 +00007136# Extract the first word of "doxygen", so it can be a program name with args.
7137set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_path_DOXYGEN+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007142else
7143 case $DOXYGEN in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 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 +00007155 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007157 break 2
7158 fi
7159done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160done
Reid Spencera773bd52006-08-04 18:18:08 +00007161IFS=$as_save_IFS
7162
Reid Spencera773bd52006-08-04 18:18:08 +00007163 ;;
7164esac
7165fi
7166DOXYGEN=$ac_cv_path_DOXYGEN
7167if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7169echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007173fi
7174
7175
Reid Spencera773bd52006-08-04 18:18:08 +00007176# Extract the first word of "groff", so it can be a program name with args.
7177set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180if test "${ac_cv_path_GROFF+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007182else
7183 case $GROFF in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 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 +00007195 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007197 break 2
7198 fi
7199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200done
Reid Spencera773bd52006-08-04 18:18:08 +00007201IFS=$as_save_IFS
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203 ;;
7204esac
7205fi
7206GROFF=$ac_cv_path_GROFF
7207if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 { echo "$as_me:$LINENO: result: $GROFF" >&5
7209echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213fi
7214
7215
7216# Extract the first word of "gzip", so it can be a program name with args.
7217set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007220if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007222else
Eric Christopher031d3072010-12-10 01:31:51 +00007223 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007224 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007225 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 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 +00007235 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007237 break 2
7238 fi
7239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240done
Reid Spencera773bd52006-08-04 18:18:08 +00007241IFS=$as_save_IFS
7242
Reid Spencera773bd52006-08-04 18:18:08 +00007243 ;;
7244esac
7245fi
Eric Christopher031d3072010-12-10 01:31:51 +00007246GZIPBIN=$ac_cv_path_GZIPBIN
7247if test -n "$GZIPBIN"; then
7248 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7249echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007253fi
7254
7255
7256# Extract the first word of "pod2html", so it can be a program name with args.
7257set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260if test "${ac_cv_path_POD2HTML+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007262else
7263 case $POD2HTML in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 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 +00007275 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007277 break 2
7278 fi
7279done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280done
Reid Spencera773bd52006-08-04 18:18:08 +00007281IFS=$as_save_IFS
7282
Reid Spencera773bd52006-08-04 18:18:08 +00007283 ;;
7284esac
7285fi
7286POD2HTML=$ac_cv_path_POD2HTML
7287if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7289echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007293fi
7294
7295
7296# Extract the first word of "pod2man", so it can be a program name with args.
7297set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_POD2MAN+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007302else
7303 case $POD2MAN in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 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 +00007315 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007317 break 2
7318 fi
7319done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320done
Reid Spencera773bd52006-08-04 18:18:08 +00007321IFS=$as_save_IFS
7322
Reid Spencera773bd52006-08-04 18:18:08 +00007323 ;;
7324esac
7325fi
7326POD2MAN=$ac_cv_path_POD2MAN
7327if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7329echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007333fi
7334
7335
mike-m68cb3192010-05-06 23:45:43 +00007336# Extract the first word of "pdfroff", so it can be a program name with args.
7337set dummy pdfroff; ac_word=$2
7338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340if test "${ac_cv_path_PDFROFF+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343 case $PDFROFF in
7344 [\\/]* | ?:[\\/]*)
7345 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7346 ;;
7347 *)
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360done
7361IFS=$as_save_IFS
7362
7363 ;;
7364esac
7365fi
7366PDFROFF=$ac_cv_path_PDFROFF
7367if test -n "$PDFROFF"; then
7368 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7369echo "${ECHO_T}$PDFROFF" >&6; }
7370else
7371 { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
7373fi
7374
7375
Reid Spencera773bd52006-08-04 18:18:08 +00007376# Extract the first word of "runtest", so it can be a program name with args.
7377set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380if test "${ac_cv_path_RUNTEST+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007382else
7383 case $RUNTEST in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 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 +00007395 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007397 break 2
7398 fi
7399done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400done
Reid Spencera773bd52006-08-04 18:18:08 +00007401IFS=$as_save_IFS
7402
Reid Spencera773bd52006-08-04 18:18:08 +00007403 ;;
7404esac
7405fi
7406RUNTEST=$ac_cv_path_RUNTEST
7407if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7409echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411 { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413fi
7414
7415
7416
7417no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7419echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007420
7421# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007423 withval=$with_tclinclude; with_tclinclude=${withval}
7424else
7425 with_tclinclude=''
7426fi
7427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428if test "${ac_cv_path_tclsh+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007430else
7431
7432if test x"${with_tclinclude}" != x ; then
7433 if test -f ${with_tclinclude}/tclsh ; then
7434 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7435 elif test -f ${with_tclinclude}/src/tclsh ; then
7436 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7437 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7439echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7440 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007441 fi
7442fi
Torok Edwin871384f2010-01-26 08:50:50 +00007443fi
7444
Reid Spencera773bd52006-08-04 18:18:08 +00007445
7446if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: none" >&5
7448echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007449 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
7450do
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455if test "${ac_cv_path_TCLSH+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007457else
7458 case $TCLSH in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7461 ;;
7462 *)
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 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 +00007470 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007472 break 2
7473 fi
7474done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475done
Reid Spencera773bd52006-08-04 18:18:08 +00007476IFS=$as_save_IFS
7477
7478 ;;
7479esac
7480fi
7481TCLSH=$ac_cv_path_TCLSH
7482if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7484echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007488fi
7489
7490
7491 test -n "$TCLSH" && break
7492done
7493
7494 if test x"${TCLSH}" = x ; then
7495 ac_cv_path_tclsh='';
7496 else
7497 ac_cv_path_tclsh="${TCLSH}";
7498 fi
7499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7501echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007502 TCLSH="${ac_cv_path_tclsh}"
7503
7504fi
7505
Reid Spencera773bd52006-08-04 18:18:08 +00007506# Extract the first word of "zip", so it can be a program name with args.
7507set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510if test "${ac_cv_path_ZIP+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007512else
7513 case $ZIP in
7514 [\\/]* | ?:[\\/]*)
7515 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7516 ;;
7517 *)
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519for as_dir in $PATH
7520do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 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 +00007525 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007527 break 2
7528 fi
7529done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530done
Reid Spencera773bd52006-08-04 18:18:08 +00007531IFS=$as_save_IFS
7532
Reid Spencera773bd52006-08-04 18:18:08 +00007533 ;;
7534esac
7535fi
7536ZIP=$ac_cv_path_ZIP
7537if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538 { echo "$as_me:$LINENO: result: $ZIP" >&5
7539echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 { echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007543fi
7544
7545
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007546for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007547do
7548 # Extract the first word of "$ac_prog", so it can be a program name with args.
7549set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_OCAMLC+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007554else
7555 case $OCAMLC in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7558 ;;
7559 *)
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 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 +00007567 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007569 break 2
7570 fi
7571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007573IFS=$as_save_IFS
7574
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007575 ;;
7576esac
7577fi
7578OCAMLC=$ac_cv_path_OCAMLC
7579if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7581echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007585fi
7586
7587
Gordon Henriksene7072162008-03-07 18:20:01 +00007588 test -n "$OCAMLC" && break
7589done
7590
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007591for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007592do
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007599else
7600 case $OCAMLOPT in
7601 [\\/]* | ?:[\\/]*)
7602 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7603 ;;
7604 *)
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 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 +00007612 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007614 break 2
7615 fi
7616done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007618IFS=$as_save_IFS
7619
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007620 ;;
7621esac
7622fi
7623OCAMLOPT=$ac_cv_path_OCAMLOPT
7624if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7626echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007630fi
7631
7632
Gordon Henriksene7072162008-03-07 18:20:01 +00007633 test -n "$OCAMLOPT" && break
7634done
7635
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007636for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007637do
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007644else
7645 case $OCAMLDEP in
7646 [\\/]* | ?:[\\/]*)
7647 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7648 ;;
7649 *)
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 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 +00007657 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007659 break 2
7660 fi
7661done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007663IFS=$as_save_IFS
7664
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007665 ;;
7666esac
7667fi
7668OCAMLDEP=$ac_cv_path_OCAMLDEP
7669if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007670 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7671echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 { echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007675fi
7676
7677
Gordon Henriksene7072162008-03-07 18:20:01 +00007678 test -n "$OCAMLDEP" && break
7679done
7680
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007681for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007682do
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007689else
7690 case $OCAMLDOC in
7691 [\\/]* | ?:[\\/]*)
7692 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7693 ;;
7694 *)
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 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 +00007702 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007704 break 2
7705 fi
7706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007708IFS=$as_save_IFS
7709
7710 ;;
7711esac
7712fi
7713OCAMLDOC=$ac_cv_path_OCAMLDOC
7714if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7716echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 { echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007720fi
7721
7722
7723 test -n "$OCAMLDOC" && break
7724done
7725
Torok Edwincc499a42008-10-22 09:56:27 +00007726for ac_prog in gas as
7727do
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732if test "${ac_cv_path_GAS+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007734else
7735 case $GAS in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7738 ;;
7739 *)
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 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 +00007747 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007749 break 2
7750 fi
7751done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752done
Torok Edwincc499a42008-10-22 09:56:27 +00007753IFS=$as_save_IFS
7754
7755 ;;
7756esac
7757fi
7758GAS=$ac_cv_path_GAS
7759if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760 { echo "$as_me:$LINENO: result: $GAS" >&5
7761echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763 { echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007765fi
7766
7767
7768 test -n "$GAS" && break
7769done
7770
Reid Spencera773bd52006-08-04 18:18:08 +00007771
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007772{ echo "$as_me:$LINENO: checking for linker version" >&5
7773echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7774if test "${llvm_cv_link_version+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777
7778 version_string="$(ld -v 2>&1 | head -1)"
7779
7780 # Check for ld64.
7781 if (echo "$version_string" | grep -q "ld64"); then
7782 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7783 else
7784 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7785 fi
7786
7787fi
7788{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7789echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7790
7791cat >>confdefs.h <<_ACEOF
7792#define HOST_LINK_VERSION "$llvm_cv_link_version"
7793_ACEOF
7794
7795
7796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7798echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7799if test "${llvm_cv_link_use_r+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007801else
7802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808 oldcflags="$CFLAGS"
7809 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810 cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h. */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007815/* end confdefs.h. */
7816
7817int
7818main ()
7819{
Dan Gohman39ed6782010-04-25 00:12:20 +00007820
Reid Spencera773bd52006-08-04 18:18:08 +00007821 ;
7822 return 0;
7823}
7824_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825rm -f conftest.$ac_objext conftest$ac_exeext
7826if { (ac_try="$ac_link"
7827case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_link") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843esac
7844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853esac
7854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_try") 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007859 llvm_cv_link_use_r=yes
7860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007861 echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866
Bill Wendlingebcceee2009-04-18 11:20:33 +00007867rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007869 CFLAGS="$oldcflags"
7870 ac_ext=c
7871ac_cpp='$CPP $CPPFLAGS'
7872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
7876
7877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007878{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7879echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007880if test "$llvm_cv_link_use_r" = yes ; then
7881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882cat >>confdefs.h <<\_ACEOF
7883#define HAVE_LINK_R 1
7884_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007885
7886 fi
7887
7888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7890echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7891if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007893else
7894 ac_ext=c
7895ac_cpp='$CPP $CPPFLAGS'
7896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900 oldcflags="$CFLAGS"
7901 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007902 cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007907/* end confdefs.h. */
7908
7909int
7910main ()
7911{
Dan Gohman39ed6782010-04-25 00:12:20 +00007912
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007913 ;
7914 return 0;
7915}
7916_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007917rm -f conftest.$ac_objext conftest$ac_exeext
7918if { (ac_try="$ac_link"
7919case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922esac
7923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_link") 2>conftest.er1
7925 ac_status=$?
7926 grep -v '^ *+' conftest.er1 >conftest.err
7927 rm -f conftest.er1
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_try") 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945esac
7946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_try") 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007951 llvm_cv_link_use_export_dynamic=yes
7952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953 echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958
Bill Wendlingebcceee2009-04-18 11:20:33 +00007959rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007961 CFLAGS="$oldcflags"
7962 ac_ext=c
7963ac_cpp='$CPP $CPPFLAGS'
7964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7966ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967
7968
7969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7971echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007972if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974cat >>confdefs.h <<\_ACEOF
7975#define HAVE_LINK_EXPORT_DYNAMIC 1
7976_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007977
7978 fi
7979
7980
Dan Gohmanda612d62010-06-01 14:56:56 +00007981{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7982echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7983if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986 ac_ext=c
7987ac_cpp='$CPP $CPPFLAGS'
7988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7990ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991
7992 oldcflags="$CFLAGS"
7993
7994 # The following code is from the autoconf manual,
7995 # "11.13: Limitations of Usual Tools".
7996 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7997 # Use mktemp if possible; otherwise fall back on mkdir,
7998 # with $RANDOM to make collisions less likely.
7999 : ${TMPDIR=/tmp}
8000 {
8001 tmp=`
8002 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8003 ` &&
8004 test -n "$tmp" && test -d "$tmp"
8005 } || {
8006 tmp=$TMPDIR/foo$$-$RANDOM
8007 (umask 077 && mkdir "$tmp")
8008 } || exit $?
8009
Dan Gohmanda612d62010-06-01 14:56:56 +00008010 echo "{" > "$tmp/export.map"
8011 echo " global: main;" >> "$tmp/export.map"
8012 echo " local: *;" >> "$tmp/export.map"
8013 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008014
Dan Gohmanda612d62010-06-01 14:56:56 +00008015 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008016 cat >conftest.$ac_ext <<_ACEOF
8017/* confdefs.h. */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h. */
8022
8023int
8024main ()
8025{
Dan Gohman39ed6782010-04-25 00:12:20 +00008026
Dan Gohman391569c2010-04-16 22:59:06 +00008027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext conftest$ac_exeext
8032if { (ac_try="$ac_link"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008065 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
Dan Gohman943005e2010-06-01 16:22:27 +00008070 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008071fi
8072
8073rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008075 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008076 rmdir "$tmp"
8077 CFLAGS="$oldcflags"
8078 ac_ext=c
8079ac_cpp='$CPP $CPPFLAGS'
8080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8082ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083
8084
8085fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008086{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8087echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8088if test "$llvm_cv_link_use_version_script" = yes ; then
8089 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008090
8091 fi
8092
8093
Reid Spencera773bd52006-08-04 18:18:08 +00008094
8095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8097echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8098if test "${ac_cv_c_const+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008101 cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008106/* end confdefs.h. */
8107
8108int
8109main ()
8110{
8111/* FIXME: Include the comments suggested by Paul. */
8112#ifndef __cplusplus
8113 /* Ultrix mips cc rejects this. */
8114 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008116 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 char const *const *ccp;
8118 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008119 /* NEC SVR4.0.2 mips cc rejects this. */
8120 struct point {int x, y;};
8121 static struct point const zero = {0,0};
8122 /* AIX XL C 1.02.0.0 rejects this.
8123 It does not let you subtract one const X* pointer from another in
8124 an arm of an if-expression whose if-part is not a constant
8125 expression */
8126 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008128 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 ++ccp;
8130 p = (char**) ccp;
8131 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008132 { /* SCO 3.2v4 cc rejects this. */
8133 char *t;
8134 char const *s = 0 ? (char *) 0 : (char const *) 0;
8135
8136 *t++ = 0;
8137 if (s) return 0;
8138 }
8139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8140 int x[] = {25, 17};
8141 const int *foo = &x[0];
8142 ++foo;
8143 }
8144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8145 typedef const int *iptr;
8146 iptr p = 0;
8147 ++p;
8148 }
8149 { /* AIX XL C 1.02.0.0 rejects this saying
8150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8151 struct s { int j; const int *ap[3]; };
8152 struct s *b; b->j = 5;
8153 }
8154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8155 const int foo = 10;
8156 if (!foo) return 0;
8157 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008159#endif
8160
8161 ;
8162 return 0;
8163}
8164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165rm -f conftest.$ac_objext
8166if { (ac_try="$ac_compile"
8167case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest.$ac_objext'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193esac
8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008199 ac_cv_c_const=yes
8200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206
Reid Spencera773bd52006-08-04 18:18:08 +00008207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8210echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008211if test $ac_cv_c_const = no; then
8212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213cat >>confdefs.h <<\_ACEOF
8214#define const
8215_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008216
8217fi
8218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219
8220
8221
8222
8223
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224ac_header_dirent=no
8225for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8227{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8228echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 cat >conftest.$ac_ext <<_ACEOF
8233/* confdefs.h. */
8234_ACEOF
8235cat confdefs.h >>conftest.$ac_ext
8236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008237/* end confdefs.h. */
8238#include <sys/types.h>
8239#include <$ac_hdr>
8240
8241int
8242main ()
8243{
8244if ((DIR *) 0)
8245return 0;
8246 ;
8247 return 0;
8248}
8249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250rm -f conftest.$ac_objext
8251if { (ac_try="$ac_compile"
8252case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255esac
8256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268esac
8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278esac
8279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_try") 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008284 eval "$as_ac_Header=yes"
8285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008291
Reid Spencera773bd52006-08-04 18:18:08 +00008292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294ac_res=`eval echo '${'$as_ac_Header'}'`
8295 { echo "$as_me:$LINENO: result: $ac_res" >&5
8296echo "${ECHO_T}$ac_res" >&6; }
8297if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008298 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008299#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008300_ACEOF
8301
8302ac_header_dirent=$ac_hdr; break
8303fi
8304
8305done
8306# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8307if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008308 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8309echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8310if test "${ac_cv_search_opendir+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008312else
8313 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314cat >conftest.$ac_ext <<_ACEOF
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008319/* end confdefs.h. */
8320
Reid Spencera773bd52006-08-04 18:18:08 +00008321/* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008324#ifdef __cplusplus
8325extern "C"
8326#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008327char opendir ();
8328int
8329main ()
8330{
Reid Spencera773bd52006-08-04 18:18:08 +00008331return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008332 ;
8333 return 0;
8334}
8335_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008336for ac_lib in '' dir; do
8337 if test -z "$ac_lib"; then
8338 ac_res="none required"
8339 else
8340 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008342 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343 rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (ac_try="$ac_link"
8345case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348esac
8349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_link") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008377 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384
Bill Wendlingebcceee2009-04-18 11:20:33 +00008385rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386 conftest$ac_exeext
8387 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008388 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008389fi
John Criswell7a73b802003-06-30 21:59:07 +00008390done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391if test "${ac_cv_search_opendir+set}" = set; then
8392 :
Reid Spencera773bd52006-08-04 18:18:08 +00008393else
8394 ac_cv_search_opendir=no
8395fi
8396rm conftest.$ac_ext
8397LIBS=$ac_func_search_save_LIBS
8398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8400echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008401ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008404
Reid Spencera773bd52006-08-04 18:18:08 +00008405fi
8406
8407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8410if test "${ac_cv_search_opendir+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008412else
8413 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414cat >conftest.$ac_ext <<_ACEOF
8415/* confdefs.h. */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008419/* end confdefs.h. */
8420
8421/* Override any GCC internal prototype to avoid an error.
8422 Use char because int might match the return type of a GCC
8423 builtin and then its argument prototype would still apply. */
8424#ifdef __cplusplus
8425extern "C"
8426#endif
8427char opendir ();
8428int
8429main ()
8430{
8431return opendir ();
8432 ;
8433 return 0;
8434}
8435_ACEOF
8436for ac_lib in '' x; do
8437 if test -z "$ac_lib"; then
8438 ac_res="none required"
8439 else
8440 ac_res=-l$ac_lib
8441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8442 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 rm -f conftest.$ac_objext conftest$ac_exeext
8444if { (ac_try="$ac_link"
8445case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448esac
8449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_link") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_try") 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008477 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008478else
8479 echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
8482
Reid Spencera773bd52006-08-04 18:18:08 +00008483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484
Bill Wendlingebcceee2009-04-18 11:20:33 +00008485rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486 conftest$ac_exeext
8487 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008488 break
8489fi
8490done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008491if test "${ac_cv_search_opendir+set}" = set; then
8492 :
Reid Spencera773bd52006-08-04 18:18:08 +00008493else
8494 ac_cv_search_opendir=no
8495fi
8496rm conftest.$ac_ext
8497LIBS=$ac_func_search_save_LIBS
8498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8500echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008501ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8504
8505fi
8506
8507fi
John Criswell7a73b802003-06-30 21:59:07 +00008508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509
John Criswell7a73b802003-06-30 21:59:07 +00008510for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511do
8512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518fi
8519ac_res=`eval echo '${'$as_ac_Header'}'`
8520 { echo "$as_me:$LINENO: result: $ac_res" >&5
8521echo "${ECHO_T}$ac_res" >&6; }
8522else
8523 # Is the header compilable?
8524{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532$ac_includes_default
8533#include <$ac_header>
8534_ACEOF
8535rm -f conftest.$ac_objext
8536if { (ac_try="$ac_compile"
8537case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540esac
8541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_compile") 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
8554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_try") 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_header_compiler=yes
8570else
8571 echo "$as_me: failed program was:" >&5
8572sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 ac_header_compiler=no
8575fi
8576
8577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8579echo "${ECHO_T}$ac_header_compiler" >&6; }
8580
8581# Is the header present?
8582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8584cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
8590#include <$ac_header>
8591_ACEOF
8592if { (ac_try="$ac_cpp conftest.$ac_ext"
8593case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596esac
8597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } >/dev/null; then
8605 if test -s conftest.err; then
8606 ac_cpp_err=$ac_c_preproc_warn_flag
8607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8608 else
8609 ac_cpp_err=
8610 fi
8611else
8612 ac_cpp_err=yes
8613fi
8614if test -z "$ac_cpp_err"; then
8615 ac_header_preproc=yes
8616else
8617 echo "$as_me: failed program was:" >&5
8618sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_header_preproc=no
8621fi
8622
8623rm -f conftest.err conftest.$ac_ext
8624{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8625echo "${ECHO_T}$ac_header_preproc" >&6; }
8626
8627# So? What about this header?
8628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8629 yes:no: )
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8634 ac_header_preproc=yes
8635 ;;
8636 no:yes:* )
8637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8649 ( cat <<\_ASBOX
8650## ----------------------------------- ##
8651## Report this to llvmbugs@cs.uiuc.edu ##
8652## ----------------------------------- ##
8653_ASBOX
8654 ) | sed "s/^/$as_me: WARNING: /" >&2
8655 ;;
8656esac
8657{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661else
8662 eval "$as_ac_Header=\$ac_header_preproc"
8663fi
8664ac_res=`eval echo '${'$as_ac_Header'}'`
8665 { echo "$as_me:$LINENO: result: $ac_res" >&5
8666echo "${ECHO_T}$ac_res" >&6; }
8667
8668fi
8669if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008670 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008672_ACEOF
8673
8674fi
8675
8676done
8677
Reid Spencera773bd52006-08-04 18:18:08 +00008678# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008680 enableval=$enable_ltdl_install;
8681fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008682
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684
8685
8686if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008687 INSTALL_LTDL_TRUE=
8688 INSTALL_LTDL_FALSE='#'
8689else
8690 INSTALL_LTDL_TRUE='#'
8691 INSTALL_LTDL_FALSE=
8692fi
8693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008694
8695
8696if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008697 CONVENIENCE_LTDL_TRUE=
8698 CONVENIENCE_LTDL_FALSE='#'
8699else
8700 CONVENIENCE_LTDL_TRUE='#'
8701 CONVENIENCE_LTDL_FALSE=
8702fi
8703
8704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008705{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8706echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008707library_names_spec=
8708libname_spec='lib$name'
8709soname_spec=
8710shrext_cmds=".so"
8711postinstall_cmds=
8712postuninstall_cmds=
8713finish_cmds=
8714finish_eval=
8715shlibpath_var=
8716shlibpath_overrides_runpath=unknown
8717version_type=none
8718dynamic_linker="$host_os ld.so"
8719sys_lib_dlsearch_path_spec="/lib /usr/lib"
8720if test "$GCC" = yes; then
8721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8722 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8723 # if the path contains ";" then we assume it to be the separator
8724 # otherwise default to the standard path separator (i.e. ":") - it is
8725 # assumed that no part of a normal pathname contains ";" but that should
8726 # okay in the real world where ";" in dirpaths is itself problematic.
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8728 else
8729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8730 fi
8731else
8732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8733fi
8734need_lib_prefix=unknown
8735hardcode_into_libs=no
8736
8737# when you set need_version to no, make sure it does not cause -set_version
8738# flags to be left without arguments
8739need_version=unknown
8740
8741case $host_os in
8742aix3*)
8743 version_type=linux
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8745 shlibpath_var=LIBPATH
8746
8747 # AIX 3 has no versioning support, so we append a major version to the name.
8748 soname_spec='${libname}${release}${shared_ext}$major'
8749 ;;
8750
8751aix4* | aix5*)
8752 version_type=linux
8753 need_lib_prefix=no
8754 need_version=no
8755 hardcode_into_libs=yes
8756 if test "$host_cpu" = ia64; then
8757 # AIX 5 supports IA64
8758 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 else
8761 # With GCC up to 2.95.x, collect2 would create an import file
8762 # for dependence libraries. The import file would start with
8763 # the line `#! .'. This would cause the generated library to
8764 # depend on `.', always an invalid library. This was fixed in
8765 # development snapshots of GCC prior to 3.0.
8766 case $host_os in
8767 aix4 | aix4.[01] | aix4.[01].*)
8768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8769 echo ' yes '
8770 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8771 :
8772 else
8773 can_build_shared=no
8774 fi
8775 ;;
8776 esac
8777 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8778 # soname into executable. Probably we can add versioning support to
8779 # collect2, so additional links can be useful in future.
8780 if test "$aix_use_runtimelinking" = yes; then
8781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8782 # instead of lib<name>.a to let people know that these are not
8783 # typical AIX shared libraries.
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 else
8786 # We preserve .a as extension for shared libraries through AIX4.2
8787 # and later when we are not doing run time linking.
8788 library_names_spec='${libname}${release}.a $libname.a'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 fi
8791 shlibpath_var=LIBPATH
8792 fi
8793 ;;
8794
8795amigaos*)
8796 library_names_spec='$libname.ixlibrary $libname.a'
8797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8798 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'
8799 ;;
8800
8801beos*)
8802 library_names_spec='${libname}${shared_ext}'
8803 dynamic_linker="$host_os ld.so"
8804 shlibpath_var=LIBRARY_PATH
8805 ;;
8806
8807bsdi[45]*)
8808 version_type=linux
8809 need_version=no
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8816 # the default ld.so.conf also contains /usr/contrib/lib and
8817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8818 # libtool to hard-code these into programs
8819 ;;
8820
8821cygwin* | mingw* | pw32*)
8822 version_type=windows
8823 shrext_cmds=".dll"
8824 need_version=no
8825 need_lib_prefix=no
8826
8827 case $GCC,$host_os in
8828 yes,cygwin* | yes,mingw* | yes,pw32*)
8829 library_names_spec='$libname.dll.a'
8830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8831 postinstall_cmds='base_file=`basename \${file}`~
8832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8833 dldir=$destdir/`dirname \$dlpath`~
8834 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008835 $install_prog $dir/$dlname \$dldir/$dlname~
8836 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8838 dlpath=$dir/\$dldll~
8839 $rm \$dlpath'
8840 shlibpath_overrides_runpath=yes
8841
8842 case $host_os in
8843 cygwin*)
8844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8847 ;;
8848 mingw*)
8849 # MinGW DLLs use traditional 'lib' prefix
8850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8853 # It is most probably a Windows format PATH printed by
8854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8855 # path with ; separators, and with drive letters. We can handle the
8856 # drive letters (cygwin fileutils understands them), so leave them,
8857 # especially as we might pass files found there to a mingw objdump,
8858 # which wouldn't understand a cygwinified path. Ahh.
8859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8860 else
8861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8862 fi
8863 ;;
8864 pw32*)
8865 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008866 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 +00008867 ;;
8868 esac
8869 ;;
8870
8871 *)
8872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8873 ;;
8874 esac
8875 dynamic_linker='Win32 ld.exe'
8876 # FIXME: first we should search . and the directory the executable is in
8877 shlibpath_var=PATH
8878 ;;
8879
8880darwin* | rhapsody*)
8881 dynamic_linker="$host_os dyld"
8882 version_type=darwin
8883 need_lib_prefix=no
8884 need_version=no
8885 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8886 soname_spec='${libname}${release}${major}$shared_ext'
8887 shlibpath_overrides_runpath=yes
8888 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008889 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8891 if test "$GCC" = yes; then
8892 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"`
8893 else
8894 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8895 fi
8896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8897 ;;
8898
8899dgux*)
8900 version_type=linux
8901 need_lib_prefix=no
8902 need_version=no
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 ;;
8907
Eric Christopher360fa9a2011-10-26 00:42:12 +00008908freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008909 dynamic_linker=no
8910 ;;
8911
8912kfreebsd*-gnu)
8913 version_type=linux
8914 need_lib_prefix=no
8915 need_version=no
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 shlibpath_overrides_runpath=no
8920 hardcode_into_libs=yes
8921 dynamic_linker='GNU ld.so'
8922 ;;
8923
Reid Spencera773bd52006-08-04 18:18:08 +00008924freebsd* | dragonfly*)
8925 # DragonFly does not have aout. When/if they implement a new
8926 # versioning mechanism, adjust this.
8927 if test -x /usr/bin/objformat; then
8928 objformat=`/usr/bin/objformat`
8929 else
8930 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008931 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008932 *) objformat=elf ;;
8933 esac
8934 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008935 version_type=freebsd-$objformat
8936 case $version_type in
8937 freebsd-elf*)
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8939 need_version=no
8940 need_lib_prefix=no
8941 ;;
8942 freebsd-*)
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8944 need_version=yes
8945 ;;
8946 esac
8947 shlibpath_var=LD_LIBRARY_PATH
8948 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008949 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008950 shlibpath_overrides_runpath=yes
8951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008952 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008953 shlibpath_overrides_runpath=yes
8954 hardcode_into_libs=yes
8955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008958 shlibpath_overrides_runpath=no
8959 hardcode_into_libs=yes
8960 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008961 freebsd*) # from 4.6 on
8962 shlibpath_overrides_runpath=yes
8963 hardcode_into_libs=yes
8964 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008965 esac
8966 ;;
8967
8968gnu*)
8969 version_type=linux
8970 need_lib_prefix=no
8971 need_version=no
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 hardcode_into_libs=yes
8976 ;;
8977
8978hpux9* | hpux10* | hpux11*)
8979 # Give a soname corresponding to the major version so that dld.sl refuses to
8980 # link against other versions.
8981 version_type=sunos
8982 need_lib_prefix=no
8983 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008984 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008985 ia64*)
8986 shrext_cmds='.so'
8987 hardcode_into_libs=yes
8988 dynamic_linker="$host_os dld.so"
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 if test "X$HPUX_IA64_MODE" = X32; then
8994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8995 else
8996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8997 fi
8998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8999 ;;
9000 hppa*64*)
9001 shrext_cmds='.sl'
9002 hardcode_into_libs=yes
9003 dynamic_linker="$host_os dld.sl"
9004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9010 ;;
9011 *)
9012 shrext_cmds='.sl'
9013 dynamic_linker="$host_os dld.sl"
9014 shlibpath_var=SHLIB_PATH
9015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 ;;
9019 esac
9020 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9021 postinstall_cmds='chmod 555 $lib'
9022 ;;
9023
Reid Spencera773bd52006-08-04 18:18:08 +00009024interix3*)
9025 version_type=linux
9026 need_lib_prefix=no
9027 need_version=no
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 hardcode_into_libs=yes
9034 ;;
9035
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009036irix5* | irix6* | nonstopux*)
9037 case $host_os in
9038 nonstopux*) version_type=nonstopux ;;
9039 *)
9040 if test "$lt_cv_prog_gnu_ld" = yes; then
9041 version_type=linux
9042 else
9043 version_type=irix
9044 fi ;;
9045 esac
9046 need_lib_prefix=no
9047 need_version=no
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9050 case $host_os in
9051 irix5* | nonstopux*)
9052 libsuff= shlibsuff=
9053 ;;
9054 *)
9055 case $LD in # libtool.m4 will add one of these switches to LD
9056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9057 libsuff= shlibsuff= libmagic=32-bit;;
9058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9059 libsuff=32 shlibsuff=N32 libmagic=N32;;
9060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9062 *) libsuff= shlibsuff= libmagic=never-match;;
9063 esac
9064 ;;
9065 esac
9066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9067 shlibpath_overrides_runpath=no
9068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9070 hardcode_into_libs=yes
9071 ;;
9072
9073# No shared lib support for Linux oldld, aout, or coff.
9074linux*oldld* | linux*aout* | linux*coff*)
9075 dynamic_linker=no
9076 ;;
9077
9078# This must be Linux ELF.
9079linux*)
9080 version_type=linux
9081 need_lib_prefix=no
9082 need_version=no
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=no
9088 # This implies no fast_install, which is unacceptable.
9089 # Some rework will be needed to allow for fast_install
9090 # before this can be enabled.
9091 hardcode_into_libs=yes
9092
9093 # Append ld.so.conf contents to the search path
9094 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009095 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 +00009096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9097 fi
9098
9099 # We used to test for /lib/ld.so.1 and disable shared libraries on
9100 # powerpc, because MkLinux only supported shared libraries with the
9101 # GNU dynamic linker. Since this was broken with cross compilers,
9102 # most powerpc-linux boxes support dynamic linking these days and
9103 # people can always --disable-shared, the test was removed, and we
9104 # assume the GNU/Linux dynamic linker is in use.
9105 dynamic_linker='GNU/Linux ld.so'
9106 ;;
9107
9108knetbsd*-gnu)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=no
9116 hardcode_into_libs=yes
9117 dynamic_linker='GNU ld.so'
9118 ;;
9119
9120netbsd*)
9121 version_type=sunos
9122 need_lib_prefix=no
9123 need_version=no
9124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9127 dynamic_linker='NetBSD (a.out) ld.so'
9128 else
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 dynamic_linker='NetBSD ld.elf_so'
9132 fi
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 hardcode_into_libs=yes
9136 ;;
9137
9138newsos6)
9139 version_type=linux
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9143 ;;
9144
9145nto-qnx*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 ;;
9154
9155openbsd*)
9156 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009157 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9160 case $host_os in
9161 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9162 *) need_version=no ;;
9163 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9168 case $host_os in
9169 openbsd2.[89] | openbsd2.[89].*)
9170 shlibpath_overrides_runpath=no
9171 ;;
9172 *)
9173 shlibpath_overrides_runpath=yes
9174 ;;
9175 esac
9176 else
9177 shlibpath_overrides_runpath=yes
9178 fi
9179 ;;
9180
9181os2*)
9182 libname_spec='$name'
9183 shrext_cmds=".dll"
9184 need_lib_prefix=no
9185 library_names_spec='$libname${shared_ext} $libname.a'
9186 dynamic_linker='OS/2 ld.exe'
9187 shlibpath_var=LIBPATH
9188 ;;
9189
9190osf3* | osf4* | osf5*)
9191 version_type=osf
9192 need_lib_prefix=no
9193 need_version=no
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9199 ;;
9200
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009201solaris*)
9202 version_type=linux
9203 need_lib_prefix=no
9204 need_version=no
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 hardcode_into_libs=yes
9210 # ldd complains unless libraries are executable
9211 postinstall_cmds='chmod +x $lib'
9212 ;;
9213
9214sunos4*)
9215 version_type=sunos
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9217 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 if test "$with_gnu_ld" = yes; then
9221 need_lib_prefix=no
9222 fi
9223 need_version=yes
9224 ;;
9225
Reid Spencera773bd52006-08-04 18:18:08 +00009226sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227 version_type=linux
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 case $host_vendor in
9232 sni)
9233 shlibpath_overrides_runpath=no
9234 need_lib_prefix=no
9235 export_dynamic_flag_spec='${wl}-Blargedynsym'
9236 runpath_var=LD_RUN_PATH
9237 ;;
9238 siemens)
9239 need_lib_prefix=no
9240 ;;
9241 motorola)
9242 need_lib_prefix=no
9243 need_version=no
9244 shlibpath_overrides_runpath=no
9245 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9246 ;;
9247 esac
9248 ;;
9249
9250sysv4*MP*)
9251 if test -d /usr/nec ;then
9252 version_type=linux
9253 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9254 soname_spec='$libname${shared_ext}.$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 fi
9257 ;;
9258
Reid Spencera773bd52006-08-04 18:18:08 +00009259sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9260 version_type=freebsd-elf
9261 need_lib_prefix=no
9262 need_version=no
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 hardcode_into_libs=yes
9267 if test "$with_gnu_ld" = yes; then
9268 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9269 shlibpath_overrides_runpath=no
9270 else
9271 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9272 shlibpath_overrides_runpath=yes
9273 case $host_os in
9274 sco3.2v5*)
9275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9276 ;;
9277 esac
9278 fi
9279 sys_lib_dlsearch_path_spec='/usr/lib'
9280 ;;
9281
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282uts4*)
9283 version_type=linux
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 ;;
9288
9289*)
9290 dynamic_linker=no
9291 ;;
9292esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009293{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9294echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009295test "$dynamic_linker" = no && can_build_shared=no
9296
Reid Spencera773bd52006-08-04 18:18:08 +00009297variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9298if test "$GCC" = yes; then
9299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9300fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301
Reid Spencera773bd52006-08-04 18:18:08 +00009302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009303{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9304echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9305if test "${libltdl_cv_shlibext+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307else
9308
9309module=yes
9310eval libltdl_cv_shlibext=$shrext_cmds
9311
9312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009313{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9314echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009315if test -n "$libltdl_cv_shlibext"; then
9316
9317cat >>confdefs.h <<_ACEOF
9318#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9319_ACEOF
9320
9321fi
9322
9323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009324{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9325echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9326if test "${libltdl_cv_shlibpath_var+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328else
9329 libltdl_cv_shlibpath_var="$shlibpath_var"
9330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009331{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9332echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009333if test -n "$libltdl_cv_shlibpath_var"; then
9334
9335cat >>confdefs.h <<_ACEOF
9336#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9337_ACEOF
9338
9339fi
9340
9341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9343echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9344if test "${libltdl_cv_sys_search_path+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009346else
9347 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009349{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9350echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351if test -n "$libltdl_cv_sys_search_path"; then
9352 sys_search_path=
9353 for dir in $libltdl_cv_sys_search_path; do
9354 if test -z "$sys_search_path"; then
9355 sys_search_path="$dir"
9356 else
9357 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9358 fi
9359 done
9360
9361cat >>confdefs.h <<_ACEOF
9362#define LTDL_SYSSEARCHPATH "$sys_search_path"
9363_ACEOF
9364
9365fi
9366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367{ echo "$as_me:$LINENO: checking for objdir" >&5
9368echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9369if test "${libltdl_cv_objdir+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371else
9372 libltdl_cv_objdir="$objdir"
9373 if test -n "$objdir"; then
9374 :
9375 else
9376 rm -f .libs 2>/dev/null
9377 mkdir .libs 2>/dev/null
9378 if test -d .libs; then
9379 libltdl_cv_objdir=.libs
9380 else
9381 # MS-DOS does not allow filenames that begin with a dot.
9382 libltdl_cv_objdir=_libs
9383 fi
9384 rmdir .libs 2>/dev/null
9385 fi
9386
9387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009388{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9389echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390
9391cat >>confdefs.h <<_ACEOF
9392#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9393_ACEOF
9394
9395
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396
9397
9398
9399
9400# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9402echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9403if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405else
9406
9407# These are sane defaults that work on at least a few old systems.
9408# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9409
9410# Character class describing NM global symbol codes.
9411symcode='[BCDEGRST]'
9412
9413# Regexp to match symbols that can be accessed directly from C.
9414sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9415
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009416# Transform an extracted symbol line into a proper C declaration
9417lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9418
9419# Transform an extracted symbol line into symbol name and symbol address
9420lt_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'"
9421
9422# Define system-specific variables.
9423case $host_os in
9424aix*)
9425 symcode='[BCDT]'
9426 ;;
9427cygwin* | mingw* | pw32*)
9428 symcode='[ABCDGISTW]'
9429 ;;
9430hpux*) # Its linker distinguishes data from code symbols
9431 if test "$host_cpu" = ia64; then
9432 symcode='[ABCDEGRST]'
9433 fi
9434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9435 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'"
9436 ;;
9437linux*)
9438 if test "$host_cpu" = ia64; then
9439 symcode='[ABCDGIRSTW]'
9440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9441 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'"
9442 fi
9443 ;;
9444irix* | nonstopux*)
9445 symcode='[BCDEGRST]'
9446 ;;
9447osf*)
9448 symcode='[BCDEGQRST]'
9449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009450solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451 symcode='[BDRT]'
9452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009453sco3.2v5*)
9454 symcode='[DT]'
9455 ;;
9456sysv4.2uw2*)
9457 symcode='[DT]'
9458 ;;
9459sysv5* | sco5v6* | unixware* | OpenUNIX*)
9460 symcode='[ABDT]'
9461 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462sysv4)
9463 symcode='[DFNSTU]'
9464 ;;
9465esac
9466
9467# Handle CRLF in mingw tool chain
9468opt_cr=
9469case $build_os in
9470mingw*)
9471 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9472 ;;
9473esac
9474
9475# If we're using GNU nm, then use its standard symbol codes.
9476case `$NM -V 2>&1` in
9477*GNU* | *'with BFD'*)
9478 symcode='[ABCDGIRSTW]' ;;
9479esac
9480
9481# Try without a prefix undercore, then with it.
9482for ac_symprfx in "" "_"; do
9483
Reid Spencera773bd52006-08-04 18:18:08 +00009484 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9485 symxfrm="\\1 $ac_symprfx\\2 \\2"
9486
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009488 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 +00009489
9490 # Check to see that the pipe works correctly.
9491 pipe_works=no
9492
9493 rm -f conftest*
9494 cat > conftest.$ac_ext <<EOF
9495#ifdef __cplusplus
9496extern "C" {
9497#endif
9498char nm_test_var;
9499void nm_test_func(){}
9500#ifdef __cplusplus
9501}
9502#endif
9503int main(){nm_test_var='a';nm_test_func();return(0);}
9504EOF
9505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507 (eval $ac_compile) 2>&5
9508 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 # Now try to grab the symbols.
9512 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009513 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 +00009514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9515 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518 # Try sorting and uniquifying the output.
9519 if sort "$nlist" | uniq > "$nlist"T; then
9520 mv -f "$nlist"T "$nlist"
9521 else
9522 rm -f "$nlist"T
9523 fi
9524
9525 # Make sure that we snagged all the symbols we need.
9526 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9527 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9528 cat <<EOF > conftest.$ac_ext
9529#ifdef __cplusplus
9530extern "C" {
9531#endif
9532
9533EOF
9534 # Now generate the symbol file.
9535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9536
9537 cat <<EOF >> conftest.$ac_ext
9538#if defined (__STDC__) && __STDC__
9539# define lt_ptr_t void *
9540#else
9541# define lt_ptr_t char *
9542# define const
9543#endif
9544
9545/* The mapping between symbol names and symbols. */
9546const struct {
9547 const char *name;
9548 lt_ptr_t address;
9549}
9550lt_preloaded_symbols[] =
9551{
9552EOF
9553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9554 cat <<\EOF >> conftest.$ac_ext
9555 {0, (lt_ptr_t) 0}
9556};
9557
9558#ifdef __cplusplus
9559}
9560#endif
9561EOF
9562 # Now try linking the two files.
9563 mv conftest.$ac_objext conftstm.$ac_objext
9564 lt_save_LIBS="$LIBS"
9565 lt_save_CFLAGS="$CFLAGS"
9566 LIBS="conftstm.$ac_objext"
9567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569 (eval $ac_link) 2>&5
9570 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573 pipe_works=yes
9574 fi
9575 LIBS="$lt_save_LIBS"
9576 CFLAGS="$lt_save_CFLAGS"
9577 else
9578 echo "cannot find nm_test_func in $nlist" >&5
9579 fi
9580 else
9581 echo "cannot find nm_test_var in $nlist" >&5
9582 fi
9583 else
9584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9585 fi
9586 else
9587 echo "$progname: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 fi
9590 rm -f conftest* conftst*
9591
9592 # Do not use the global_symbol_pipe unless it works.
9593 if test "$pipe_works" = yes; then
9594 break
9595 else
9596 lt_cv_sys_global_symbol_pipe=
9597 fi
9598done
9599
9600fi
9601
9602if test -z "$lt_cv_sys_global_symbol_pipe"; then
9603 lt_cv_sys_global_symbol_to_cdecl=
9604fi
9605if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606 { echo "$as_me:$LINENO: result: failed" >&5
9607echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009609 { echo "$as_me:$LINENO: result: ok" >&5
9610echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611fi
9612
9613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009614{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9615echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9616if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618else
9619 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9620 libltdl_cv_preloaded_symbols=yes
9621 else
9622 libltdl_cv_preloaded_symbols=no
9623 fi
9624
9625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009626{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9627echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630cat >>confdefs.h <<\_ACEOF
9631#define HAVE_PRELOADED_SYMBOLS 1
9632_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633
9634fi
9635
9636LIBADD_DL=
9637
9638ac_ext=c
9639ac_cpp='$CPP $CPPFLAGS'
9640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9642ac_compiler_gnu=$ac_cv_c_compiler_gnu
9643
9644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009645{ echo "$as_me:$LINENO: checking for shl_load" >&5
9646echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9647if test "${ac_cv_func_shl_load+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650 cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
9656/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009660/* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char shl_load (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
9664
9665#ifdef __STDC__
9666# include <limits.h>
9667#else
9668# include <assert.h>
9669#endif
9670
9671#undef shl_load
9672
9673/* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9676#ifdef __cplusplus
9677extern "C"
9678#endif
9679char shl_load ();
9680/* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683#if defined __stub_shl_load || defined __stub___shl_load
9684choke me
9685#endif
9686
9687int
9688main ()
9689{
9690return shl_load ();
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695rm -f conftest.$ac_objext conftest$ac_exeext
9696if { (ac_try="$ac_link"
9697case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700esac
9701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723esac
9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_try") 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_func_shl_load=yes
9730else
9731 echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_cv_func_shl_load=no
9735fi
9736
9737rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739fi
9740{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9741echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9742if test $ac_cv_func_shl_load = yes; then
9743
9744cat >>confdefs.h <<\_ACEOF
9745#define HAVE_SHL_LOAD 1
9746_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009747
9748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009749 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9750echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9751if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753else
9754 ac_check_lib_save_LIBS=$LIBS
9755LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009756cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h. */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761/* end confdefs.h. */
9762
Reid Spencera773bd52006-08-04 18:18:08 +00009763/* Override any GCC internal prototype to avoid an error.
9764 Use char because int might match the return type of a GCC
9765 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766#ifdef __cplusplus
9767extern "C"
9768#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769char shl_load ();
9770int
9771main ()
9772{
Reid Spencera773bd52006-08-04 18:18:08 +00009773return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774 ;
9775 return 0;
9776}
9777_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009778rm -f conftest.$ac_objext conftest$ac_exeext
9779if { (ac_try="$ac_link"
9780case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783esac
9784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806esac
9807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_try") 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 ac_cv_lib_dld_shl_load=yes
9813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009819
Bill Wendlingebcceee2009-04-18 11:20:33 +00009820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009821 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822LIBS=$ac_check_lib_save_LIBS
9823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009824{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9825echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9826if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009828cat >>confdefs.h <<\_ACEOF
9829#define HAVE_SHL_LOAD 1
9830_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831
9832 LIBADD_DL="$LIBADD_DL -ldld"
9833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9835echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9836if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838else
9839 ac_check_lib_save_LIBS=$LIBS
9840LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846/* end confdefs.h. */
9847
Reid Spencera773bd52006-08-04 18:18:08 +00009848/* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851#ifdef __cplusplus
9852extern "C"
9853#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854char dlopen ();
9855int
9856main ()
9857{
Reid Spencera773bd52006-08-04 18:18:08 +00009858return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859 ;
9860 return 0;
9861}
9862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863rm -f conftest.$ac_objext conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 ac_cv_lib_dl_dlopen=yes
9898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009904
Bill Wendlingebcceee2009-04-18 11:20:33 +00009905rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907LIBS=$ac_check_lib_save_LIBS
9908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009909{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9910echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9911if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009913cat >>confdefs.h <<\_ACEOF
9914#define HAVE_LIBDL 1
9915_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916
9917 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009919 cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924/* end confdefs.h. */
9925#if HAVE_DLFCN_H
9926# include <dlfcn.h>
9927#endif
9928
9929int
9930main ()
9931{
9932dlopen(0, 0);
9933 ;
9934 return 0;
9935}
9936_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (ac_try="$ac_link"
9939case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942esac
9943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_link") 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009972cat >>confdefs.h <<\_ACEOF
9973#define HAVE_LIBDL 1
9974_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975 libltdl_cv_func_dlopen="yes"
9976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9981echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9982if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009984else
9985 ac_check_lib_save_LIBS=$LIBS
9986LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009987cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992/* end confdefs.h. */
9993
Reid Spencera773bd52006-08-04 18:18:08 +00009994/* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997#ifdef __cplusplus
9998extern "C"
9999#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000char dlopen ();
10001int
10002main ()
10003{
Reid Spencera773bd52006-08-04 18:18:08 +000010004return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005 ;
10006 return 0;
10007}
10008_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (ac_try="$ac_link"
10011case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014esac
10015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043 ac_cv_lib_svld_dlopen=yes
10044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010045 echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010050
Bill Wendlingebcceee2009-04-18 11:20:33 +000010051rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010052 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053LIBS=$ac_check_lib_save_LIBS
10054fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010055{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10056echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10057if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010059cat >>confdefs.h <<\_ACEOF
10060#define HAVE_LIBDL 1
10061_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062
10063 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010065 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10066echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10067if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069else
10070 ac_check_lib_save_LIBS=$LIBS
10071LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010072cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077/* end confdefs.h. */
10078
Reid Spencera773bd52006-08-04 18:18:08 +000010079/* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082#ifdef __cplusplus
10083extern "C"
10084#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085char dld_link ();
10086int
10087main ()
10088{
Reid Spencera773bd52006-08-04 18:18:08 +000010089return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090 ;
10091 return 0;
10092}
10093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010094rm -f conftest.$ac_objext conftest$ac_exeext
10095if { (ac_try="$ac_link"
10096case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122esac
10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_try") 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128 ac_cv_lib_dld_dld_link=yes
10129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010130 echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010135
Bill Wendlingebcceee2009-04-18 11:20:33 +000010136rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010137 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138LIBS=$ac_check_lib_save_LIBS
10139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010140{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10141echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10142if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010144cat >>confdefs.h <<\_ACEOF
10145#define HAVE_DLD 1
10146_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147
10148 LIBADD_DL="$LIBADD_DL -ldld"
10149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010150 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10151echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10152if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010165/* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char _dyld_func_lookup (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010170#ifdef __STDC__
10171# include <limits.h>
10172#else
10173# include <assert.h>
10174#endif
10175
10176#undef _dyld_func_lookup
10177
10178/* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181#ifdef __cplusplus
10182extern "C"
10183#endif
10184char _dyld_func_lookup ();
10185/* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10189choke me
10190#endif
10191
10192int
10193main ()
10194{
10195return _dyld_func_lookup ();
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (ac_try="$ac_link"
10202case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_try") 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 ac_cv_func__dyld_func_lookup=yes
10235else
10236 echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240fi
Reid Spencera773bd52006-08-04 18:18:08 +000010241
Bill Wendlingebcceee2009-04-18 11:20:33 +000010242rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010243 conftest$ac_exeext conftest.$ac_ext
10244fi
10245{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10246echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10247if test $ac_cv_func__dyld_func_lookup = yes; then
10248
10249cat >>confdefs.h <<\_ACEOF
10250#define HAVE_DYLD 1
10251_ACEOF
10252
10253fi
10254
10255
10256fi
10257
10258
10259fi
10260
10261
10262fi
10263
10264rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266
10267fi
10268
10269
10270fi
10271
10272
10273fi
10274
10275
10276if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10277then
10278 lt_save_LIBS="$LIBS"
10279 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010280
10281for ac_func in dlerror
10282do
10283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10284{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10286if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288else
10289 cat >conftest.$ac_ext <<_ACEOF
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
10295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10297#define $ac_func innocuous_$ac_func
10298
10299/* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func (); below.
10301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10302 <limits.h> exists even on freestanding compilers. */
10303
10304#ifdef __STDC__
10305# include <limits.h>
10306#else
10307# include <assert.h>
10308#endif
10309
10310#undef $ac_func
10311
10312/* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
10315#ifdef __cplusplus
10316extern "C"
10317#endif
10318char $ac_func ();
10319/* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322#if defined __stub_$ac_func || defined __stub___$ac_func
10323choke me
10324#endif
10325
10326int
10327main ()
10328{
10329return $ac_func ();
10330 ;
10331 return 0;
10332}
10333_ACEOF
10334rm -f conftest.$ac_objext conftest$ac_exeext
10335if { (ac_try="$ac_link"
10336case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339esac
10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_link") 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10352esac
10353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 eval "$as_ac_var=yes"
10369else
10370 echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 eval "$as_ac_var=no"
10374fi
10375
10376rm -f core conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10378fi
10379ac_res=`eval echo '${'$as_ac_var'}'`
10380 { echo "$as_me:$LINENO: result: $ac_res" >&5
10381echo "${ECHO_T}$ac_res" >&6; }
10382if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010385_ACEOF
10386
10387fi
10388done
10389
10390 LIBS="$lt_save_LIBS"
10391fi
10392ac_ext=c
10393ac_cpp='$CPP $CPPFLAGS'
10394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10396ac_compiler_gnu=$ac_cv_c_compiler_gnu
10397
10398
10399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010400{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10401echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10402if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404else
10405 ac_cv_sys_symbol_underscore=no
10406 cat > conftest.$ac_ext <<EOF
10407void nm_test_func(){}
10408int main(){nm_test_func;return 0;}
10409EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 (eval $ac_compile) 2>&5
10412 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 # Now try to grab the symbols.
10416 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010417 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 +000010418 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10419 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422 # See whether the symbols have a leading underscore.
10423 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10424 ac_cv_sys_symbol_underscore=yes
10425 else
10426 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10427 :
10428 else
10429 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10430 fi
10431 fi
10432 else
10433 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10434 fi
10435 else
10436 echo "configure: failed program was:" >&5
10437 cat conftest.c >&5
10438 fi
10439 rm -rf conftest*
10440
10441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10443echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444
10445
10446if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10447 if test x"$libltdl_cv_func_dlopen" = xyes ||
10448 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010449 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10450echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10451if test "${libltdl_cv_need_uscore+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453else
10454 libltdl_cv_need_uscore=unknown
10455 save_LIBS="$LIBS"
10456 LIBS="$LIBS $LIBADD_DL"
10457 if test "$cross_compiling" = yes; then :
10458 libltdl_cv_need_uscore=cross
10459else
10460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10461 lt_status=$lt_dlunknown
10462 cat > conftest.$ac_ext <<EOF
Charles Davis13460c92011-10-26 02:28:32 +000010463#line 10463 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464#include "confdefs.h"
10465
10466#if HAVE_DLFCN_H
10467#include <dlfcn.h>
10468#endif
10469
10470#include <stdio.h>
10471
10472#ifdef RTLD_GLOBAL
10473# define LT_DLGLOBAL RTLD_GLOBAL
10474#else
10475# ifdef DL_GLOBAL
10476# define LT_DLGLOBAL DL_GLOBAL
10477# else
10478# define LT_DLGLOBAL 0
10479# endif
10480#endif
10481
10482/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10483 find out it does not work in some platform. */
10484#ifndef LT_DLLAZY_OR_NOW
10485# ifdef RTLD_LAZY
10486# define LT_DLLAZY_OR_NOW RTLD_LAZY
10487# else
10488# ifdef DL_LAZY
10489# define LT_DLLAZY_OR_NOW DL_LAZY
10490# else
10491# ifdef RTLD_NOW
10492# define LT_DLLAZY_OR_NOW RTLD_NOW
10493# else
10494# ifdef DL_NOW
10495# define LT_DLLAZY_OR_NOW DL_NOW
10496# else
10497# define LT_DLLAZY_OR_NOW 0
10498# endif
10499# endif
10500# endif
10501# endif
10502#endif
10503
10504#ifdef __cplusplus
10505extern "C" void exit (int);
10506#endif
10507
10508void fnord() { int i=42;}
10509int main ()
10510{
10511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10512 int status = $lt_dlunknown;
10513
10514 if (self)
10515 {
10516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518 /* dlclose (self); */
10519 }
Reid Spencera773bd52006-08-04 18:18:08 +000010520 else
10521 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522
10523 exit (status);
10524}
10525EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527 (eval $ac_link) 2>&5
10528 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010531 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532 lt_status=$?
10533 case x$lt_status in
10534 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10535 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010536 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537 esac
10538 else :
10539 # compilation failed
10540
10541 fi
10542fi
10543rm -fr conftest*
10544
10545 LIBS="$save_LIBS"
10546
10547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10549echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 fi
10551fi
10552
10553if test x"$libltdl_cv_need_uscore" = xyes; then
10554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010555cat >>confdefs.h <<\_ACEOF
10556#define NEED_USCORE 1
10557_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558
10559fi
10560
10561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010562{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10563echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10564if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566else
10567 # PORTME does your system automatically load deplibs for dlopen?
10568 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10569 # For now, we just catch OSes we know something about -- in the
10570 # future, we'll try test this programmatically.
10571 libltdl_cv_sys_dlopen_deplibs=unknown
10572 case "$host_os" in
10573 aix3*|aix4.1.*|aix4.2.*)
10574 # Unknown whether this is true for these versions of AIX, but
10575 # we want this `case' here to explicitly catch those versions.
10576 libltdl_cv_sys_dlopen_deplibs=unknown
10577 ;;
10578 aix[45]*)
10579 libltdl_cv_sys_dlopen_deplibs=yes
10580 ;;
10581 darwin*)
10582 # Assuming the user has installed a libdl from somewhere, this is true
10583 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10584 libltdl_cv_sys_dlopen_deplibs=yes
10585 ;;
10586 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10587 # GNU and its variants, using gnu ld.so (Glibc)
10588 libltdl_cv_sys_dlopen_deplibs=yes
10589 ;;
10590 hpux10*|hpux11*)
10591 libltdl_cv_sys_dlopen_deplibs=yes
10592 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010593 interix*)
10594 libltdl_cv_sys_dlopen_deplibs=yes
10595 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010596 irix[12345]*|irix6.[01]*)
10597 # Catch all versions of IRIX before 6.2, and indicate that we don't
10598 # know how it worked for any of those versions.
10599 libltdl_cv_sys_dlopen_deplibs=unknown
10600 ;;
10601 irix*)
10602 # The case above catches anything before 6.2, and it's known that
10603 # at 6.2 and later dlopen does load deplibs.
10604 libltdl_cv_sys_dlopen_deplibs=yes
10605 ;;
10606 netbsd*)
10607 libltdl_cv_sys_dlopen_deplibs=yes
10608 ;;
10609 openbsd*)
10610 libltdl_cv_sys_dlopen_deplibs=yes
10611 ;;
10612 osf[1234]*)
10613 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10614 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010615 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616 libltdl_cv_sys_dlopen_deplibs=no
10617 ;;
10618 osf5.0|osf5.0a|osf5.1)
10619 # dlopen *does* load deplibs and with the right loader patch applied
10620 # it even uses RPATH in a shared library to search for shared objects
10621 # that the library depends on, but there's no easy way to know if that
10622 # patch is installed. Since this is the case, all we can really
10623 # say is unknown -- it depends on the patch being installed. If
10624 # it is, this changes to `yes'. Without it, it would be `no'.
10625 libltdl_cv_sys_dlopen_deplibs=unknown
10626 ;;
10627 osf*)
10628 # the two cases above should catch all versions of osf <= 5.1. Read
10629 # the comments above for what we know about them.
10630 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10631 # is used to find them so we can finally say `yes'.
10632 libltdl_cv_sys_dlopen_deplibs=yes
10633 ;;
10634 solaris*)
10635 libltdl_cv_sys_dlopen_deplibs=yes
10636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10638 libltdl_cv_sys_dlopen_deplibs=yes
10639 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640 esac
10641
10642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010643{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10644echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647cat >>confdefs.h <<\_ACEOF
10648#define LTDL_DLOPEN_DEPLIBS 1
10649_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650
10651fi
10652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010653
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010655do
10656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662fi
10663ac_res=`eval echo '${'$as_ac_Header'}'`
10664 { echo "$as_me:$LINENO: result: $ac_res" >&5
10665echo "${ECHO_T}$ac_res" >&6; }
10666else
10667 # Is the header compilable?
10668{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10670cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
10676$ac_includes_default
10677#include <$ac_header>
10678_ACEOF
10679rm -f conftest.$ac_objext
10680if { (ac_try="$ac_compile"
10681case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684esac
10685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_compile") 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; } &&
10703 { ac_try='test -s conftest.$ac_objext'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_header_compiler=yes
10714else
10715 echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 ac_header_compiler=no
10719fi
10720
10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723echo "${ECHO_T}$ac_header_compiler" >&6; }
10724
10725# Is the header present?
10726{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734#include <$ac_header>
10735_ACEOF
10736if { (ac_try="$ac_cpp conftest.$ac_ext"
10737case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743 ac_status=$?
10744 grep -v '^ *+' conftest.er1 >conftest.err
10745 rm -f conftest.er1
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } >/dev/null; then
10749 if test -s conftest.err; then
10750 ac_cpp_err=$ac_c_preproc_warn_flag
10751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10752 else
10753 ac_cpp_err=
10754 fi
10755else
10756 ac_cpp_err=yes
10757fi
10758if test -z "$ac_cpp_err"; then
10759 ac_header_preproc=yes
10760else
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_header_preproc=no
10765fi
10766
10767rm -f conftest.err conftest.$ac_ext
10768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769echo "${ECHO_T}$ac_header_preproc" >&6; }
10770
10771# So? What about this header?
10772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773 yes:no: )
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10779 ;;
10780 no:yes:* )
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10784echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10788echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793 ( cat <<\_ASBOX
10794## ----------------------------------- ##
10795## Report this to llvmbugs@cs.uiuc.edu ##
10796## ----------------------------------- ##
10797_ASBOX
10798 ) | sed "s/^/$as_me: WARNING: /" >&2
10799 ;;
10800esac
10801{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805else
10806 eval "$as_ac_Header=\$ac_header_preproc"
10807fi
10808ac_res=`eval echo '${'$as_ac_Header'}'`
10809 { echo "$as_me:$LINENO: result: $ac_res" >&5
10810echo "${ECHO_T}$ac_res" >&6; }
10811
10812fi
10813if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816_ACEOF
10817
10818fi
10819
10820done
10821
10822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010823{ echo "$as_me:$LINENO: checking for error_t" >&5
10824echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10825if test "${ac_cv_type_error_t+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 cat >conftest.$ac_ext <<_ACEOF
10829/* confdefs.h. */
10830_ACEOF
10831cat confdefs.h >>conftest.$ac_ext
10832cat >>conftest.$ac_ext <<_ACEOF
10833/* end confdefs.h. */
10834#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835# include <argz.h>
10836#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837
10838typedef error_t ac__type_new_;
10839int
10840main ()
10841{
10842if ((ac__type_new_ *) 0)
10843 return 0;
10844if (sizeof (ac__type_new_))
10845 return 0;
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext
10851if { (ac_try="$ac_compile"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest.$ac_objext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_type_error_t=yes
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889 ac_cv_type_error_t=no
10890fi
10891
10892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893fi
10894{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10895echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10896if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897
10898cat >>confdefs.h <<_ACEOF
10899#define HAVE_ERROR_T 1
10900_ACEOF
10901
10902
10903else
10904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010905cat >>confdefs.h <<\_ACEOF
10906#define error_t int
10907_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908
10909fi
10910
10911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010912
10913
10914
10915
10916
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010918do
10919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10933#define $ac_func innocuous_$ac_func
10934
10935/* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func (); below.
10937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938 <limits.h> exists even on freestanding compilers. */
10939
10940#ifdef __STDC__
10941# include <limits.h>
10942#else
10943# include <assert.h>
10944#endif
10945
10946#undef $ac_func
10947
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char $ac_func ();
10955/* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958#if defined __stub_$ac_func || defined __stub___$ac_func
10959choke me
10960#endif
10961
10962int
10963main ()
10964{
10965return $ac_func ();
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext conftest$ac_exeext
10971if { (ac_try="$ac_link"
10972case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest$ac_exeext'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 eval "$as_ac_var=yes"
11005else
11006 echo "$as_me: failed program was:" >&5
11007sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 eval "$as_ac_var=no"
11010fi
11011
11012rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014fi
11015ac_res=`eval echo '${'$as_ac_var'}'`
11016 { echo "$as_me:$LINENO: result: $ac_res" >&5
11017echo "${ECHO_T}$ac_res" >&6; }
11018if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011021_ACEOF
11022
11023fi
11024done
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011045
11046
11047
11048
11049
11050
11051
11052
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11054 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055do
11056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062fi
11063ac_res=`eval echo '${'$as_ac_Header'}'`
11064 { echo "$as_me:$LINENO: result: $ac_res" >&5
11065echo "${ECHO_T}$ac_res" >&6; }
11066else
11067 # Is the header compilable?
11068{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11070cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076$ac_includes_default
11077#include <$ac_header>
11078_ACEOF
11079rm -f conftest.$ac_objext
11080if { (ac_try="$ac_compile"
11081case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_compile") 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_header_compiler=yes
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_compiler=no
11119fi
11120
11121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11123echo "${ECHO_T}$ac_header_compiler" >&6; }
11124
11125# Is the header present?
11126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11128cat >conftest.$ac_ext <<_ACEOF
11129/* confdefs.h. */
11130_ACEOF
11131cat confdefs.h >>conftest.$ac_ext
11132cat >>conftest.$ac_ext <<_ACEOF
11133/* end confdefs.h. */
11134#include <$ac_header>
11135_ACEOF
11136if { (ac_try="$ac_cpp conftest.$ac_ext"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } >/dev/null; then
11149 if test -s conftest.err; then
11150 ac_cpp_err=$ac_c_preproc_warn_flag
11151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11152 else
11153 ac_cpp_err=
11154 fi
11155else
11156 ac_cpp_err=yes
11157fi
11158if test -z "$ac_cpp_err"; then
11159 ac_header_preproc=yes
11160else
11161 echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
11164 ac_header_preproc=no
11165fi
11166
11167rm -f conftest.err conftest.$ac_ext
11168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11169echo "${ECHO_T}$ac_header_preproc" >&6; }
11170
11171# So? What about this header?
11172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11173 yes:no: )
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11178 ac_header_preproc=yes
11179 ;;
11180 no:yes:* )
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11193 ( cat <<\_ASBOX
11194## ----------------------------------- ##
11195## Report this to llvmbugs@cs.uiuc.edu ##
11196## ----------------------------------- ##
11197_ASBOX
11198 ) | sed "s/^/$as_me: WARNING: /" >&2
11199 ;;
11200esac
11201{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205else
11206 eval "$as_ac_Header=\$ac_header_preproc"
11207fi
11208ac_res=`eval echo '${'$as_ac_Header'}'`
11209 { echo "$as_me:$LINENO: result: $ac_res" >&5
11210echo "${ECHO_T}$ac_res" >&6; }
11211
11212fi
11213if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011216_ACEOF
11217
11218fi
11219
11220done
11221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011222
11223
11224
11225
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011227do
11228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234fi
11235ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237echo "${ECHO_T}$ac_res" >&6; }
11238else
11239 # Is the header compilable?
11240{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249#include <$ac_header>
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (ac_try="$ac_compile"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_header_compiler=yes
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_header_compiler=no
11291fi
11292
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295echo "${ECHO_T}$ac_header_compiler" >&6; }
11296
11297# Is the header present?
11298{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306#include <$ac_header>
11307_ACEOF
11308if { (ac_try="$ac_cpp conftest.$ac_ext"
11309case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312esac
11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } >/dev/null; then
11321 if test -s conftest.err; then
11322 ac_cpp_err=$ac_c_preproc_warn_flag
11323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11324 else
11325 ac_cpp_err=
11326 fi
11327else
11328 ac_cpp_err=yes
11329fi
11330if test -z "$ac_cpp_err"; then
11331 ac_header_preproc=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 ac_header_preproc=no
11337fi
11338
11339rm -f conftest.err conftest.$ac_ext
11340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341echo "${ECHO_T}$ac_header_preproc" >&6; }
11342
11343# So? What about this header?
11344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 yes:no: )
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
11351 ;;
11352 no:yes:* )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365 ( cat <<\_ASBOX
11366## ----------------------------------- ##
11367## Report this to llvmbugs@cs.uiuc.edu ##
11368## ----------------------------------- ##
11369_ASBOX
11370 ) | sed "s/^/$as_me: WARNING: /" >&2
11371 ;;
11372esac
11373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 eval "$as_ac_Header=\$ac_header_preproc"
11379fi
11380ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382echo "${ECHO_T}$ac_res" >&6; }
11383
11384fi
11385if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011388_ACEOF
11389
11390fi
11391
11392done
11393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011394
11395
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011397do
11398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404fi
11405ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407echo "${ECHO_T}$ac_res" >&6; }
11408else
11409 # Is the header compilable?
11410{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418$ac_includes_default
11419#include <$ac_header>
11420_ACEOF
11421rm -f conftest.$ac_objext
11422if { (ac_try="$ac_compile"
11423case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
11427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_compile") 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439esac
11440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449esac
11450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_try") 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_header_compiler=yes
11456else
11457 echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_header_compiler=no
11461fi
11462
11463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465echo "${ECHO_T}$ac_header_compiler" >&6; }
11466
11467# Is the header present?
11468{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11470cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476#include <$ac_header>
11477_ACEOF
11478if { (ac_try="$ac_cpp conftest.$ac_ext"
11479case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev/null; then
11491 if test -s conftest.err; then
11492 ac_cpp_err=$ac_c_preproc_warn_flag
11493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494 else
11495 ac_cpp_err=
11496 fi
11497else
11498 ac_cpp_err=yes
11499fi
11500if test -z "$ac_cpp_err"; then
11501 ac_header_preproc=yes
11502else
11503 echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_header_preproc=no
11507fi
11508
11509rm -f conftest.err conftest.$ac_ext
11510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511echo "${ECHO_T}$ac_header_preproc" >&6; }
11512
11513# So? What about this header?
11514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11515 yes:no: )
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520 ac_header_preproc=yes
11521 ;;
11522 no:yes:* )
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11535 ( cat <<\_ASBOX
11536## ----------------------------------- ##
11537## Report this to llvmbugs@cs.uiuc.edu ##
11538## ----------------------------------- ##
11539_ASBOX
11540 ) | sed "s/^/$as_me: WARNING: /" >&2
11541 ;;
11542esac
11543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 eval "$as_ac_Header=\$ac_header_preproc"
11549fi
11550ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552echo "${ECHO_T}$ac_res" >&6; }
11553
11554fi
11555if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558_ACEOF
11559 break
11560fi
11561
11562done
11563
11564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011565
11566
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011568do
11569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11583#define $ac_func innocuous_$ac_func
11584
11585/* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11589
11590#ifdef __STDC__
11591# include <limits.h>
11592#else
11593# include <assert.h>
11594#endif
11595
11596#undef $ac_func
11597
11598/* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601#ifdef __cplusplus
11602extern "C"
11603#endif
11604char $ac_func ();
11605/* The GNU C library defines this for functions which it implements
11606 to always fail with ENOSYS. Some functions are actually named
11607 something starting with __ and the normal name is an alias. */
11608#if defined __stub_$ac_func || defined __stub___$ac_func
11609choke me
11610#endif
11611
11612int
11613main ()
11614{
11615return $ac_func ();
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (ac_try="$ac_link"
11622case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 eval "$as_ac_var=no"
11660fi
11661
11662rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664fi
11665ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667echo "${ECHO_T}$ac_res" >&6; }
11668if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671_ACEOF
11672 break
11673fi
11674done
11675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011676
11677
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011679do
11680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686 cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h. */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h. */
11692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11694#define $ac_func innocuous_$ac_func
11695
11696/* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11700
11701#ifdef __STDC__
11702# include <limits.h>
11703#else
11704# include <assert.h>
11705#endif
11706
11707#undef $ac_func
11708
11709/* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712#ifdef __cplusplus
11713extern "C"
11714#endif
11715char $ac_func ();
11716/* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719#if defined __stub_$ac_func || defined __stub___$ac_func
11720choke me
11721#endif
11722
11723int
11724main ()
11725{
11726return $ac_func ();
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext conftest$ac_exeext
11732if { (ac_try="$ac_link"
11733case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 eval "$as_ac_var=yes"
11766else
11767 echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 eval "$as_ac_var=no"
11771fi
11772
11773rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775fi
11776ac_res=`eval echo '${'$as_ac_var'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778echo "${ECHO_T}$ac_res" >&6; }
11779if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782_ACEOF
11783 break
11784fi
11785done
11786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011787
11788
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011790do
11791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797 cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805#define $ac_func innocuous_$ac_func
11806
11807/* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char $ac_func (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11811
11812#ifdef __STDC__
11813# include <limits.h>
11814#else
11815# include <assert.h>
11816#endif
11817
11818#undef $ac_func
11819
11820/* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11823#ifdef __cplusplus
11824extern "C"
11825#endif
11826char $ac_func ();
11827/* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830#if defined __stub_$ac_func || defined __stub___$ac_func
11831choke me
11832#endif
11833
11834int
11835main ()
11836{
11837return $ac_func ();
11838 ;
11839 return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext conftest$ac_exeext
11843if { (ac_try="$ac_link"
11844case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870esac
11871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 eval "$as_ac_var=yes"
11877else
11878 echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 eval "$as_ac_var=no"
11882fi
11883
11884rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886fi
11887ac_res=`eval echo '${'$as_ac_var'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889echo "${ECHO_T}$ac_res" >&6; }
11890if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893_ACEOF
11894 break
11895fi
11896done
11897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011898
11899
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011901do
11902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
11914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916#define $ac_func innocuous_$ac_func
11917
11918/* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923#ifdef __STDC__
11924# include <limits.h>
11925#else
11926# include <assert.h>
11927#endif
11928
11929#undef $ac_func
11930
11931/* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934#ifdef __cplusplus
11935extern "C"
11936#endif
11937char $ac_func ();
11938/* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941#if defined __stub_$ac_func || defined __stub___$ac_func
11942choke me
11943#endif
11944
11945int
11946main ()
11947{
11948return $ac_func ();
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (ac_try="$ac_link"
11955case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971esac
11972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981esac
11982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_try") 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 eval "$as_ac_var=yes"
11988else
11989 echo "$as_me: failed program was:" >&5
11990sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 eval "$as_ac_var=no"
11993fi
11994
11995rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997fi
11998ac_res=`eval echo '${'$as_ac_var'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000echo "${ECHO_T}$ac_res" >&6; }
12001if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004_ACEOF
12005
12006fi
12007done
12008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012009
12010
12011
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012013do
12014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12017if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
12026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12028#define $ac_func innocuous_$ac_func
12029
12030/* System header to define __stub macros and hopefully few prototypes,
12031 which can conflict with char $ac_func (); below.
12032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033 <limits.h> exists even on freestanding compilers. */
12034
12035#ifdef __STDC__
12036# include <limits.h>
12037#else
12038# include <assert.h>
12039#endif
12040
12041#undef $ac_func
12042
12043/* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049char $ac_func ();
12050/* The GNU C library defines this for functions which it implements
12051 to always fail with ENOSYS. Some functions are actually named
12052 something starting with __ and the normal name is an alias. */
12053#if defined __stub_$ac_func || defined __stub___$ac_func
12054choke me
12055#endif
12056
12057int
12058main ()
12059{
12060return $ac_func ();
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065rm -f conftest.$ac_objext conftest$ac_exeext
12066if { (ac_try="$ac_link"
12067case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_link") 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083esac
12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 eval "$as_ac_var=yes"
12100else
12101 echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104 eval "$as_ac_var=no"
12105fi
12106
12107rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109fi
12110ac_res=`eval echo '${'$as_ac_var'}'`
12111 { echo "$as_me:$LINENO: result: $ac_res" >&5
12112echo "${ECHO_T}$ac_res" >&6; }
12113if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012114 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116_ACEOF
12117
12118fi
12119done
12120
12121
Douglas Gregor01746742009-05-11 18:05:52 +000012122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012123{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12124echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012125
Reid Spencer86901802004-12-08 23:07:27 +000012126ICC=no
12127IXX=no
12128case $CC in
12129 icc*|icpc*)
12130 ICC=yes
12131 IXX=yes
12132 ;;
12133 *)
12134 ;;
12135esac
12136
Duraid Madina937c60a2006-02-15 07:57:42 +000012137if test "$GCC" != "yes" && test "$ICC" != "yes"
12138then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012139 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12140echo "$as_me: error: gcc|icc required but not found" >&2;}
12141 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012142fi
12143
12144if test "$GXX" != "yes" && test "$IXX" != "yes"
12145then
Eric Christopher73e36da2010-12-08 02:02:14 +000012146 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12147echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012149fi
12150
Reid Spencer86901802004-12-08 23:07:27 +000012151if test "$GCC" = "yes"
12152then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012153 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012154#if !defined(__GNUC__) || __GNUC__ < 3
12155#error Unsupported GCC version
12156#endif
12157
12158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012159rm -f conftest.$ac_objext
12160if { (ac_try="$ac_compile"
12161case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164esac
12165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012195 echo "$as_me: failed program was:" >&5
12196sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12199echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12200 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012202
Chris Lattner399c7c72008-02-05 19:43:53 +000012203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012204fi
12205
12206if test -z "$llvm_cv_gnu_make_command"
12207then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012208 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12209echo "$as_me: error: GNU Make required but not found" >&2;}
12210 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012211fi
12212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213{ echo "$as_me:$LINENO: result: ok" >&5
12214echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012216{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12217echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012218NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12219
12220NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012222{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12223echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012224
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012226
12227{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12228echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12229if test "${ac_cv_lib_m_sin+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012231else
12232 ac_check_lib_save_LIBS=$LIBS
12233LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012239/* end confdefs.h. */
12240
Reid Spencera773bd52006-08-04 18:18:08 +000012241/* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012244#ifdef __cplusplus
12245extern "C"
12246#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012247char sin ();
12248int
12249main ()
12250{
Reid Spencera773bd52006-08-04 18:18:08 +000012251return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012252 ;
12253 return 0;
12254}
12255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (ac_try="$ac_link"
12258case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
12275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest$ac_exeext'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012290 ac_cv_lib_m_sin=yes
12291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012297
Bill Wendlingebcceee2009-04-18 11:20:33 +000012298rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012299 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012300LIBS=$ac_check_lib_save_LIBS
12301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012302{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12303echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12304if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012305 cat >>confdefs.h <<_ACEOF
12306#define HAVE_LIBM 1
12307_ACEOF
12308
12309 LIBS="-lm $LIBS"
12310
12311fi
12312
Jeff Cohen28783c32007-01-12 18:22:38 +000012313if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314
12315{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12316echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12317if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012319else
12320 ac_check_lib_save_LIBS=$LIBS
12321LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012322cat >conftest.$ac_ext <<_ACEOF
12323/* confdefs.h. */
12324_ACEOF
12325cat confdefs.h >>conftest.$ac_ext
12326cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012327/* end confdefs.h. */
12328
Reid Spencer48fdf912006-06-01 19:03:21 +000012329
Reid Spencer484fc8e2006-06-01 16:55:59 +000012330int
12331main ()
12332{
Reid Spencera773bd52006-08-04 18:18:08 +000012333return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012334 ;
12335 return 0;
12336}
12337_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012338rm -f conftest.$ac_objext conftest$ac_exeext
12339if { (ac_try="$ac_link"
12340case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343esac
12344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_link") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356esac
12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366esac
12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_try") 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012372 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379
Bill Wendlingebcceee2009-04-18 11:20:33 +000012380rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012381 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012382LIBS=$ac_check_lib_save_LIBS
12383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012384{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12385echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12386if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012387 cat >>confdefs.h <<_ACEOF
12388#define HAVE_LIBIMAGEHLP 1
12389_ACEOF
12390
12391 LIBS="-limagehlp $LIBS"
12392
12393fi
12394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012395
12396{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12397echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12398if test "${ac_cv_lib_psapi_main+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012400else
12401 ac_check_lib_save_LIBS=$LIBS
12402LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012403cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012408/* end confdefs.h. */
12409
Reid Spencer48fdf912006-06-01 19:03:21 +000012410
Reid Spencer484fc8e2006-06-01 16:55:59 +000012411int
12412main ()
12413{
Reid Spencera773bd52006-08-04 18:18:08 +000012414return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012415 ;
12416 return 0;
12417}
12418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (ac_try="$ac_link"
12421case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424esac
12425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434 { (case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437esac
12438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_try") 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12447esac
12448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_try") 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012453 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012455 echo "$as_me: failed program was:" >&5
12456sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460
Bill Wendlingebcceee2009-04-18 11:20:33 +000012461rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012462 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012463LIBS=$ac_check_lib_save_LIBS
12464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012465{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12466echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12467if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012468 cat >>confdefs.h <<_ACEOF
12469#define HAVE_LIBPSAPI 1
12470_ACEOF
12471
12472 LIBS="-lpsapi $LIBS"
12473
12474fi
12475
12476fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012478{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12479echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12480if test "${ac_cv_search_dlopen+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012482else
12483 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012490
Reid Spencera773bd52006-08-04 18:18:08 +000012491/* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012494#ifdef __cplusplus
12495extern "C"
12496#endif
John Criswell7a73b802003-06-30 21:59:07 +000012497char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012498int
12499main ()
12500{
Reid Spencera773bd52006-08-04 18:18:08 +000012501return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012502 ;
12503 return 0;
12504}
12505_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012506for ac_lib in '' dl; do
12507 if test -z "$ac_lib"; then
12508 ac_res="none required"
12509 else
12510 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012512 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012513 rm -f conftest.$ac_objext conftest$ac_exeext
12514if { (ac_try="$ac_link"
12515case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518esac
12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541esac
12542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012547 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552
John Criswell7a73b802003-06-30 21:59:07 +000012553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012554
Bill Wendlingebcceee2009-04-18 11:20:33 +000012555rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012556 conftest$ac_exeext
12557 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012558 break
John Criswell7a73b802003-06-30 21:59:07 +000012559fi
Reid Spencera773bd52006-08-04 18:18:08 +000012560done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012561if test "${ac_cv_search_dlopen+set}" = set; then
12562 :
Reid Spencera773bd52006-08-04 18:18:08 +000012563else
12564 ac_cv_search_dlopen=no
12565fi
12566rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012567LIBS=$ac_func_search_save_LIBS
12568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012569{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12570echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012571ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575cat >>confdefs.h <<\_ACEOF
12576#define HAVE_DLOPEN 1
12577_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012578
12579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012580 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12581echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012582fi
12583
12584
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012585if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12587echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12588if test "${ac_cv_search_ffi_call+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012590else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012591 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012592cat >conftest.$ac_ext <<_ACEOF
12593/* confdefs.h. */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012597/* end confdefs.h. */
12598
12599/* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
12602#ifdef __cplusplus
12603extern "C"
12604#endif
12605char ffi_call ();
12606int
12607main ()
12608{
12609return ffi_call ();
12610 ;
12611 return 0;
12612}
12613_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012614for ac_lib in '' ffi; do
12615 if test -z "$ac_lib"; then
12616 ac_res="none required"
12617 else
12618 ac_res=-l$ac_lib
12619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12620 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012621 rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (ac_try="$ac_link"
12623case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639esac
12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012655 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656else
12657 echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012662
Bill Wendlingebcceee2009-04-18 11:20:33 +000012663rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664 conftest$ac_exeext
12665 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012666 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012667fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669if test "${ac_cv_search_ffi_call+set}" = set; then
12670 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012671else
12672 ac_cv_search_ffi_call=no
12673fi
12674rm conftest.$ac_ext
12675LIBS=$ac_func_search_save_LIBS
12676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012677{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12678echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012679ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012680if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012683cat >>confdefs.h <<\_ACEOF
12684#define HAVE_FFI_CALL 1
12685_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012686
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012687else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012688 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12689echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12690 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012691fi
12692
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012693fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012695{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12696echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12697if test "${ac_cv_search_mallinfo+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012699else
12700 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012707
Reid Spencera773bd52006-08-04 18:18:08 +000012708/* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012711#ifdef __cplusplus
12712extern "C"
12713#endif
John Criswell7a73b802003-06-30 21:59:07 +000012714char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012715int
12716main ()
12717{
Reid Spencera773bd52006-08-04 18:18:08 +000012718return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012719 ;
12720 return 0;
12721}
12722_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012723for ac_lib in '' malloc; do
12724 if test -z "$ac_lib"; then
12725 ac_res="none required"
12726 else
12727 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012729 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730 rm -f conftest.$ac_objext conftest$ac_exeext
12731if { (ac_try="$ac_link"
12732case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12735esac
12736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_link") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12745 { (case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748esac
12749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_try") 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12758esac
12759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_try") 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012764 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769
John Criswell7a73b802003-06-30 21:59:07 +000012770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771
Bill Wendlingebcceee2009-04-18 11:20:33 +000012772rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012773 conftest$ac_exeext
12774 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012775 break
John Criswell7a73b802003-06-30 21:59:07 +000012776fi
Reid Spencera773bd52006-08-04 18:18:08 +000012777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778if test "${ac_cv_search_mallinfo+set}" = set; then
12779 :
Reid Spencera773bd52006-08-04 18:18:08 +000012780else
12781 ac_cv_search_mallinfo=no
12782fi
12783rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012784LIBS=$ac_func_search_save_LIBS
12785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012786{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12787echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012788ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012792cat >>confdefs.h <<\_ACEOF
12793#define HAVE_MALLINFO 1
12794_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012795
12796fi
12797
12798
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012799if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012800
12801{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12802echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12803if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012805else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012806 ac_check_lib_save_LIBS=$LIBS
12807LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012813/* end confdefs.h. */
12814
Reid Spencera773bd52006-08-04 18:18:08 +000012815/* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012818#ifdef __cplusplus
12819extern "C"
12820#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012821char pthread_mutex_init ();
12822int
12823main ()
12824{
Reid Spencera773bd52006-08-04 18:18:08 +000012825return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012826 ;
12827 return 0;
12828}
12829_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830rm -f conftest.$ac_objext conftest$ac_exeext
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845 { (case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_try") 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12858esac
12859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_try") 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012864 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012865else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012871
Bill Wendlingebcceee2009-04-18 11:20:33 +000012872rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012873 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012874LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012876{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12877echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12878if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012879 cat >>confdefs.h <<_ACEOF
12880#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012881_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012882
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012883 LIBS="-lpthread $LIBS"
12884
Reid Spencer22177fe2005-07-12 15:24:20 +000012885fi
12886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12888echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12889if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012891else
12892 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012893cat >conftest.$ac_ext <<_ACEOF
12894/* confdefs.h. */
12895_ACEOF
12896cat confdefs.h >>conftest.$ac_ext
12897cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012898/* end confdefs.h. */
12899
Reid Spencera773bd52006-08-04 18:18:08 +000012900/* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012903#ifdef __cplusplus
12904extern "C"
12905#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012906char pthread_mutex_lock ();
12907int
12908main ()
12909{
Reid Spencera773bd52006-08-04 18:18:08 +000012910return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012911 ;
12912 return 0;
12913}
12914_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012915for ac_lib in '' pthread; do
12916 if test -z "$ac_lib"; then
12917 ac_res="none required"
12918 else
12919 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012921 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922 rm -f conftest.$ac_objext conftest$ac_exeext
12923if { (ac_try="$ac_link"
12924case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927esac
12928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_link") 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12937 { (case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12940esac
12941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942 (eval "$ac_try") 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest$ac_exeext'
12947 { (case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950esac
12951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_try") 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012956 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957else
12958 echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
12961
Brian Gaeke5f268f72003-12-05 19:29:01 +000012962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963
Bill Wendlingebcceee2009-04-18 11:20:33 +000012964rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012965 conftest$ac_exeext
12966 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012967 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012968fi
Reid Spencera773bd52006-08-04 18:18:08 +000012969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012970if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12971 :
Reid Spencera773bd52006-08-04 18:18:08 +000012972else
12973 ac_cv_search_pthread_mutex_lock=no
12974fi
12975rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012976LIBS=$ac_func_search_save_LIBS
12977fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012978{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12979echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012980ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984cat >>confdefs.h <<\_ACEOF
12985#define HAVE_PTHREAD_MUTEX_LOCK 1
12986_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012987
12988fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12991echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12992if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012994else
12995 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996cat >conftest.$ac_ext <<_ACEOF
12997/* confdefs.h. */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013001/* end confdefs.h. */
13002
13003/* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13006#ifdef __cplusplus
13007extern "C"
13008#endif
13009char pthread_rwlock_init ();
13010int
13011main ()
13012{
13013return pthread_rwlock_init ();
13014 ;
13015 return 0;
13016}
13017_ACEOF
13018for ac_lib in '' pthread; do
13019 if test -z "$ac_lib"; then
13020 ac_res="none required"
13021 else
13022 ac_res=-l$ac_lib
13023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13024 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025 rm -f conftest.$ac_objext conftest$ac_exeext
13026if { (ac_try="$ac_link"
13027case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030esac
13031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_link") 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043esac
13044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest$ac_exeext'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013059 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013060else
13061 echo "$as_me: failed program was:" >&5
13062sed 's/^/| /' conftest.$ac_ext >&5
13063
13064
Owen Andersonde8aed22009-06-16 18:20:20 +000013065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066
Owen Andersonde8aed22009-06-16 18:20:20 +000013067rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013068 conftest$ac_exeext
13069 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013070 break
13071fi
13072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013073if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13074 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013075else
13076 ac_cv_search_pthread_rwlock_init=no
13077fi
13078rm conftest.$ac_ext
13079LIBS=$ac_func_search_save_LIBS
13080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13082echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013083ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087cat >>confdefs.h <<\_ACEOF
13088#define HAVE_PTHREAD_RWLOCK_INIT 1
13089_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013090
13091fi
13092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13094echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13095if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013097else
13098 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013099cat >conftest.$ac_ext <<_ACEOF
13100/* confdefs.h. */
13101_ACEOF
13102cat confdefs.h >>conftest.$ac_ext
13103cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013104/* end confdefs.h. */
13105
13106/* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
13109#ifdef __cplusplus
13110extern "C"
13111#endif
13112char pthread_getspecific ();
13113int
13114main ()
13115{
13116return pthread_getspecific ();
13117 ;
13118 return 0;
13119}
13120_ACEOF
13121for ac_lib in '' pthread; do
13122 if test -z "$ac_lib"; then
13123 ac_res="none required"
13124 else
13125 ac_res=-l$ac_lib
13126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13127 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128 rm -f conftest.$ac_objext conftest$ac_exeext
13129if { (ac_try="$ac_link"
13130case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146esac
13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013162 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167
Owen Anderson27fcfe12009-06-25 23:10:26 +000013168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169
Owen Anderson27fcfe12009-06-25 23:10:26 +000013170rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171 conftest$ac_exeext
13172 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013173 break
13174fi
13175done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013176if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13177 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013178else
13179 ac_cv_search_pthread_getspecific=no
13180fi
13181rm conftest.$ac_ext
13182LIBS=$ac_func_search_save_LIBS
13183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013184{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13185echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013186ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190cat >>confdefs.h <<\_ACEOF
13191#define HAVE_PTHREAD_GETSPECIFIC 1
13192_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013193
13194fi
13195
Reid Spencer0a262ba2005-08-24 10:07:20 +000013196fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013197
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013198
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013199# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013201 withval=$with_udis86;
13202 USE_UDIS86=1
13203
13204 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013205 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013206 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13207 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208
13209{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13210echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13211if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013213else
13214 ac_check_lib_save_LIBS=$LIBS
13215LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013221/* end confdefs.h. */
13222
13223/* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226#ifdef __cplusplus
13227extern "C"
13228#endif
13229char ud_init ();
13230int
13231main ()
13232{
13233return ud_init ();
13234 ;
13235 return 0;
13236}
13237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238rm -f conftest.$ac_objext conftest$ac_exeext
13239if { (ac_try="$ac_link"
13240case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_link") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256esac
13257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
13263 { (case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_try") 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013272 ac_cv_lib_udis86_ud_init=yes
13273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274 echo "$as_me: failed program was:" >&5
13275sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279
Bill Wendlingebcceee2009-04-18 11:20:33 +000013280rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013282LIBS=$ac_check_lib_save_LIBS
13283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13285echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13286if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013287 cat >>confdefs.h <<_ACEOF
13288#define HAVE_LIBUDIS86 1
13289_ACEOF
13290
13291 LIBS="-ludis86 $LIBS"
13292
13293else
13294
13295 echo "Error! You need to have libudis86 around."
13296 exit -1
13297
13298fi
13299
13300
13301else
13302 USE_UDIS86=0
13303
13304fi
13305
13306
13307cat >>confdefs.h <<_ACEOF
13308#define USE_UDIS86 $USE_UDIS86
13309_ACEOF
13310
13311
13312
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013313# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013315 withval=$with_oprofile;
13316 USE_OPROFILE=1
13317
13318 case "$withval" in
13319 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013320 no) llvm_cv_oppath=
13321 USE_OPROFILE=0
13322 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013323 *) llvm_cv_oppath="${withval}/lib/oprofile"
13324 CPPFLAGS="-I${withval}/include";;
13325 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013326 if test -n "$llvm_cv_oppath" ; then
13327 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13329echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13330if test "${ac_cv_search_bfd_init+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013332else
13333 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334cat >conftest.$ac_ext <<_ACEOF
13335/* confdefs.h. */
13336_ACEOF
13337cat confdefs.h >>conftest.$ac_ext
13338cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013339/* end confdefs.h. */
13340
13341/* Override any GCC internal prototype to avoid an error.
13342 Use char because int might match the return type of a GCC
13343 builtin and then its argument prototype would still apply. */
13344#ifdef __cplusplus
13345extern "C"
13346#endif
13347char bfd_init ();
13348int
13349main ()
13350{
13351return bfd_init ();
13352 ;
13353 return 0;
13354}
13355_ACEOF
13356for ac_lib in '' bfd; do
13357 if test -z "$ac_lib"; then
13358 ac_res="none required"
13359 else
13360 ac_res=-l$ac_lib
13361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13362 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363 rm -f conftest.$ac_objext conftest$ac_exeext
13364if { (ac_try="$ac_link"
13365case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_link") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest$ac_exeext'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013397 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013398else
13399 echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013405rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013406 conftest$ac_exeext
13407 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013408 break
13409fi
13410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411if test "${ac_cv_search_bfd_init+set}" = set; then
13412 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013413else
13414 ac_cv_search_bfd_init=no
13415fi
13416rm conftest.$ac_ext
13417LIBS=$ac_func_search_save_LIBS
13418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013419{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13420echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013421ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13424
13425fi
13426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13428echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13429if test "${ac_cv_search_op_open_agent+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013431else
13432 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013438/* end confdefs.h. */
13439
13440/* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13443#ifdef __cplusplus
13444extern "C"
13445#endif
13446char op_open_agent ();
13447int
13448main ()
13449{
13450return op_open_agent ();
13451 ;
13452 return 0;
13453}
13454_ACEOF
13455for ac_lib in '' opagent; do
13456 if test -z "$ac_lib"; then
13457 ac_res="none required"
13458 else
13459 ac_res=-l$ac_lib
13460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13461 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462 rm -f conftest.$ac_objext conftest$ac_exeext
13463if { (ac_try="$ac_link"
13464case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467esac
13468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>conftest.er1
13470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480esac
13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest$ac_exeext'
13487 { (case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490esac
13491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_try") 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013496 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013497else
13498 echo "$as_me: failed program was:" >&5
13499sed 's/^/| /' conftest.$ac_ext >&5
13500
13501
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013504rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013505 conftest$ac_exeext
13506 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013507 break
13508fi
13509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013510if test "${ac_cv_search_op_open_agent+set}" = set; then
13511 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013512else
13513 ac_cv_search_op_open_agent=no
13514fi
13515rm conftest.$ac_ext
13516LIBS=$ac_func_search_save_LIBS
13517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013518{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13519echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013520ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13523
13524else
13525
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013526 echo "Error! You need to have libopagent around."
13527 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013528
13529fi
13530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531 if test "${ac_cv_header_opagent_h+set}" = set; then
13532 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13533echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13534if test "${ac_cv_header_opagent_h+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536fi
13537{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13538echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13539else
13540 # Is the header compilable?
13541{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13542echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13543cat >conftest.$ac_ext <<_ACEOF
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549$ac_includes_default
13550#include <opagent.h>
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (ac_try="$ac_compile"
13554case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557esac
13558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570esac
13571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580esac
13581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_try") 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_header_compiler=yes
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591 ac_header_compiler=no
13592fi
13593
13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596echo "${ECHO_T}$ac_header_compiler" >&6; }
13597
13598# Is the header present?
13599{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13600echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607#include <opagent.h>
13608_ACEOF
13609if { (ac_try="$ac_cpp conftest.$ac_ext"
13610case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } >/dev/null; then
13622 if test -s conftest.err; then
13623 ac_cpp_err=$ac_c_preproc_warn_flag
13624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13625 else
13626 ac_cpp_err=
13627 fi
13628else
13629 ac_cpp_err=yes
13630fi
13631if test -z "$ac_cpp_err"; then
13632 ac_header_preproc=yes
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_header_preproc=no
13638fi
13639
13640rm -f conftest.err conftest.$ac_ext
13641{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13642echo "${ECHO_T}$ac_header_preproc" >&6; }
13643
13644# So? What about this header?
13645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13646 yes:no: )
13647 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13648echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13650echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13651 ac_header_preproc=yes
13652 ;;
13653 no:yes:* )
13654 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13655echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13657echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13659echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13661echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13663echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13665echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13666 ( cat <<\_ASBOX
13667## ----------------------------------- ##
13668## Report this to llvmbugs@cs.uiuc.edu ##
13669## ----------------------------------- ##
13670_ASBOX
13671 ) | sed "s/^/$as_me: WARNING: /" >&2
13672 ;;
13673esac
13674{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13675echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13676if test "${ac_cv_header_opagent_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 ac_cv_header_opagent_h=$ac_header_preproc
13680fi
13681{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13682echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13683
13684fi
13685if test $ac_cv_header_opagent_h = yes; then
13686 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013687else
13688
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013689 echo "Error! You need to have opagent.h around."
13690 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013691
13692fi
13693
13694
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013695 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013696
13697else
13698
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013699 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013700
13701
13702fi
13703
13704
13705cat >>confdefs.h <<_ACEOF
13706#define USE_OPROFILE $USE_OPROFILE
13707_ACEOF
13708
13709
13710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711
13712
13713
13714
13715
Reid Spencer59473af2004-12-25 07:31:29 +000013716ac_header_dirent=no
13717for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013718 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13719{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13720echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013724 cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h. */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013729/* end confdefs.h. */
13730#include <sys/types.h>
13731#include <$ac_hdr>
13732
13733int
13734main ()
13735{
13736if ((DIR *) 0)
13737return 0;
13738 ;
13739 return 0;
13740}
13741_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013742rm -f conftest.$ac_objext
13743if { (ac_try="$ac_compile"
13744case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13747esac
13748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_compile") 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760esac
13761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest.$ac_objext'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013776 eval "$as_ac_Header=yes"
13777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778 echo "$as_me: failed program was:" >&5
13779sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013783
Reid Spencera773bd52006-08-04 18:18:08 +000013784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786ac_res=`eval echo '${'$as_ac_Header'}'`
13787 { echo "$as_me:$LINENO: result: $ac_res" >&5
13788echo "${ECHO_T}$ac_res" >&6; }
13789if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013790 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013791#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013792_ACEOF
13793
13794ac_header_dirent=$ac_hdr; break
13795fi
13796
13797done
13798# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13799if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013800 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13801echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13802if test "${ac_cv_search_opendir+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013804else
13805 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806cat >conftest.$ac_ext <<_ACEOF
13807/* confdefs.h. */
13808_ACEOF
13809cat confdefs.h >>conftest.$ac_ext
13810cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013811/* end confdefs.h. */
13812
Reid Spencera773bd52006-08-04 18:18:08 +000013813/* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013816#ifdef __cplusplus
13817extern "C"
13818#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013819char opendir ();
13820int
13821main ()
13822{
Reid Spencera773bd52006-08-04 18:18:08 +000013823return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013824 ;
13825 return 0;
13826}
13827_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013828for ac_lib in '' dir; do
13829 if test -z "$ac_lib"; then
13830 ac_res="none required"
13831 else
13832 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013834 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013835 rm -f conftest.$ac_objext conftest$ac_exeext
13836if { (ac_try="$ac_link"
13837case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853esac
13854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_try") 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863esac
13864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_try") 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013869 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013870else
13871 echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874
Reid Spencer59473af2004-12-25 07:31:29 +000013875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876
Bill Wendlingebcceee2009-04-18 11:20:33 +000013877rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878 conftest$ac_exeext
13879 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013880 break
Reid Spencer59473af2004-12-25 07:31:29 +000013881fi
Reid Spencera773bd52006-08-04 18:18:08 +000013882done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013883if test "${ac_cv_search_opendir+set}" = set; then
13884 :
Reid Spencera773bd52006-08-04 18:18:08 +000013885else
13886 ac_cv_search_opendir=no
13887fi
13888rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013889LIBS=$ac_func_search_save_LIBS
13890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013891{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13892echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013893ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013894if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013896
13897fi
13898
13899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13901echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13902if test "${ac_cv_search_opendir+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013904else
13905 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013906cat >conftest.$ac_ext <<_ACEOF
13907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013911/* end confdefs.h. */
13912
Reid Spencera773bd52006-08-04 18:18:08 +000013913/* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013916#ifdef __cplusplus
13917extern "C"
13918#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013919char opendir ();
13920int
13921main ()
13922{
Reid Spencera773bd52006-08-04 18:18:08 +000013923return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013924 ;
13925 return 0;
13926}
13927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013928for ac_lib in '' x; do
13929 if test -z "$ac_lib"; then
13930 ac_res="none required"
13931 else
13932 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013934 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935 rm -f conftest.$ac_objext conftest$ac_exeext
13936if { (ac_try="$ac_link"
13937case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940esac
13941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_link") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950 { (case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953esac
13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13963esac
13964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013969 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013970else
13971 echo "$as_me: failed program was:" >&5
13972sed 's/^/| /' conftest.$ac_ext >&5
13973
13974
Reid Spencer59473af2004-12-25 07:31:29 +000013975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976
Bill Wendlingebcceee2009-04-18 11:20:33 +000013977rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978 conftest$ac_exeext
13979 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013980 break
Reid Spencer59473af2004-12-25 07:31:29 +000013981fi
Reid Spencera773bd52006-08-04 18:18:08 +000013982done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013983if test "${ac_cv_search_opendir+set}" = set; then
13984 :
Reid Spencera773bd52006-08-04 18:18:08 +000013985else
13986 ac_cv_search_opendir=no
13987fi
13988rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013989LIBS=$ac_func_search_save_LIBS
13990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013991{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13992echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013993ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013996
13997fi
13998
13999fi
14000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014001{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14002echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14003if test "${ac_cv_header_mmap_anon+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014005else
14006 ac_ext=c
14007ac_cpp='$CPP $CPPFLAGS'
14008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012 cat >conftest.$ac_ext <<_ACEOF
14013/* confdefs.h. */
14014_ACEOF
14015cat confdefs.h >>conftest.$ac_ext
14016cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014017/* end confdefs.h. */
14018#include <sys/mman.h>
14019#include <unistd.h>
14020#include <fcntl.h>
14021int
14022main ()
14023{
14024mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14025 ;
14026 return 0;
14027}
14028_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029rm -f conftest.$ac_objext
14030if { (ac_try="$ac_compile"
14031case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034esac
14035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_compile") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14044 { (case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047esac
14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_try") 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057esac
14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_try") 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014063 ac_cv_header_mmap_anon=yes
14064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5
14067
14068 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070
Reid Spencera773bd52006-08-04 18:18:08 +000014071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014072 ac_ext=c
14073ac_cpp='$CPP $CPPFLAGS'
14074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077
14078
14079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014080{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14081echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014082if test "$ac_cv_header_mmap_anon" = yes; then
14083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014084cat >>confdefs.h <<\_ACEOF
14085#define HAVE_MMAP_ANONYMOUS 1
14086_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014087
14088fi
14089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14091echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14092if test "${ac_cv_header_stat_broken+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095 cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014100/* end confdefs.h. */
14101#include <sys/types.h>
14102#include <sys/stat.h>
14103
Reid Spencera773bd52006-08-04 18:18:08 +000014104#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105# if S_ISBLK (S_IFDIR)
14106You lose.
14107# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014108#endif
14109
Reid Spencera773bd52006-08-04 18:18:08 +000014110#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111# if S_ISBLK (S_IFCHR)
14112You lose.
14113# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014114#endif
14115
Reid Spencera773bd52006-08-04 18:18:08 +000014116#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117# if S_ISLNK (S_IFREG)
14118You lose.
14119# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014120#endif
14121
Reid Spencera773bd52006-08-04 18:18:08 +000014122#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123# if S_ISSOCK (S_IFREG)
14124You lose.
14125# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014126#endif
14127
14128_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014131 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132else
14133 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135rm -f conftest*
14136
Reid Spencer59473af2004-12-25 07:31:29 +000014137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14139echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014140if test $ac_cv_header_stat_broken = yes; then
14141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142cat >>confdefs.h <<\_ACEOF
14143#define STAT_MACROS_BROKEN 1
14144_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014145
14146fi
14147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14149echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14150if test "${ac_cv_header_sys_wait_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153 cat >conftest.$ac_ext <<_ACEOF
14154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014159#include <sys/types.h>
14160#include <sys/wait.h>
14161#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014162# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014163#endif
14164#ifndef WIFEXITED
14165# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14166#endif
14167
John Criswell7a73b802003-06-30 21:59:07 +000014168int
14169main ()
14170{
14171 int s;
14172 wait (&s);
14173 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14174 ;
14175 return 0;
14176}
14177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014178rm -f conftest.$ac_objext
14179if { (ac_try="$ac_compile"
14180case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183esac
14184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_compile") 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14193 { (case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196esac
14197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_try") 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206esac
14207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_try") 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014212 ac_cv_header_sys_wait_h=yes
14213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214 echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014219
Reid Spencera773bd52006-08-04 18:18:08 +000014220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14223echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014224if test $ac_cv_header_sys_wait_h = yes; then
14225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226cat >>confdefs.h <<\_ACEOF
14227#define HAVE_SYS_WAIT_H 1
14228_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014229
14230fi
14231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14233echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14234if test "${ac_cv_header_time+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237 cat >conftest.$ac_ext <<_ACEOF
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014242/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014243#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014244#include <sys/time.h>
14245#include <time.h>
14246
14247int
14248main ()
14249{
14250if ((struct tm *) 0)
14251return 0;
14252 ;
14253 return 0;
14254}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256rm -f conftest.$ac_objext
14257if { (ac_try="$ac_compile"
14258case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261esac
14262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_compile") 2>conftest.er1
14264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (case "(($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_try") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014290 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014297
Reid Spencera773bd52006-08-04 18:18:08 +000014298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14301echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014302if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014304cat >>confdefs.h <<\_ACEOF
14305#define TIME_WITH_SYS_TIME 1
14306_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014307
14308fi
14309
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311
14312
14313
14314
14315
14316
Reid Spencer59473af2004-12-25 07:31:29 +000014317for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318do
14319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325fi
14326ac_res=`eval echo '${'$as_ac_Header'}'`
14327 { echo "$as_me:$LINENO: result: $ac_res" >&5
14328echo "${ECHO_T}$ac_res" >&6; }
14329else
14330 # Is the header compilable?
14331{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14333cat >conftest.$ac_ext <<_ACEOF
14334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
14339$ac_includes_default
14340#include <$ac_header>
14341_ACEOF
14342rm -f conftest.$ac_objext
14343if { (ac_try="$ac_compile"
14344case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347esac
14348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_compile") 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14357 { (case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360esac
14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_try") 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest.$ac_objext'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370esac
14371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14377else
14378 echo "$as_me: failed program was:" >&5
14379sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 ac_header_compiler=no
14382fi
14383
14384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386echo "${ECHO_T}$ac_header_compiler" >&6; }
14387
14388# Is the header present?
14389{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397#include <$ac_header>
14398_ACEOF
14399if { (ac_try="$ac_cpp conftest.$ac_ext"
14400case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } >/dev/null; then
14412 if test -s conftest.err; then
14413 ac_cpp_err=$ac_c_preproc_warn_flag
14414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14415 else
14416 ac_cpp_err=
14417 fi
14418else
14419 ac_cpp_err=yes
14420fi
14421if test -z "$ac_cpp_err"; then
14422 ac_header_preproc=yes
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_header_preproc=no
14428fi
14429
14430rm -f conftest.err conftest.$ac_ext
14431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432echo "${ECHO_T}$ac_header_preproc" >&6; }
14433
14434# So? What about this header?
14435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14436 yes:no: )
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14441 ac_header_preproc=yes
14442 ;;
14443 no:yes:* )
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14456 ( cat <<\_ASBOX
14457## ----------------------------------- ##
14458## Report this to llvmbugs@cs.uiuc.edu ##
14459## ----------------------------------- ##
14460_ASBOX
14461 ) | sed "s/^/$as_me: WARNING: /" >&2
14462 ;;
14463esac
14464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468else
14469 eval "$as_ac_Header=\$ac_header_preproc"
14470fi
14471ac_res=`eval echo '${'$as_ac_Header'}'`
14472 { echo "$as_me:$LINENO: result: $ac_res" >&5
14473echo "${ECHO_T}$ac_res" >&6; }
14474
14475fi
14476if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014477 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014479_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014480
14481fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014482
Reid Spencer59473af2004-12-25 07:31:29 +000014483done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485
14486
14487
14488
14489
14490
Douglas Gregor071d73d2009-05-18 17:21:34 +000014491for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014492do
14493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499fi
14500ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502echo "${ECHO_T}$ac_res" >&6; }
14503else
14504 # Is the header compilable?
14505{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14507cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513$ac_includes_default
14514#include <$ac_header>
14515_ACEOF
14516rm -f conftest.$ac_objext
14517if { (ac_try="$ac_compile"
14518case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521esac
14522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_compile") 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534esac
14535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544esac
14545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550 ac_header_compiler=yes
14551else
14552 echo "$as_me: failed program was:" >&5
14553sed 's/^/| /' conftest.$ac_ext >&5
14554
14555 ac_header_compiler=no
14556fi
14557
14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14560echo "${ECHO_T}$ac_header_compiler" >&6; }
14561
14562# Is the header present?
14563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14565cat >conftest.$ac_ext <<_ACEOF
14566/* confdefs.h. */
14567_ACEOF
14568cat confdefs.h >>conftest.$ac_ext
14569cat >>conftest.$ac_ext <<_ACEOF
14570/* end confdefs.h. */
14571#include <$ac_header>
14572_ACEOF
14573if { (ac_try="$ac_cpp conftest.$ac_ext"
14574case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577esac
14578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } >/dev/null; then
14586 if test -s conftest.err; then
14587 ac_cpp_err=$ac_c_preproc_warn_flag
14588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14589 else
14590 ac_cpp_err=
14591 fi
14592else
14593 ac_cpp_err=yes
14594fi
14595if test -z "$ac_cpp_err"; then
14596 ac_header_preproc=yes
14597else
14598 echo "$as_me: failed program was:" >&5
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ac_header_preproc=no
14602fi
14603
14604rm -f conftest.err conftest.$ac_ext
14605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14606echo "${ECHO_T}$ac_header_preproc" >&6; }
14607
14608# So? What about this header?
14609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14610 yes:no: )
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14615 ac_header_preproc=yes
14616 ;;
14617 no:yes:* )
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14630 ( cat <<\_ASBOX
14631## ----------------------------------- ##
14632## Report this to llvmbugs@cs.uiuc.edu ##
14633## ----------------------------------- ##
14634_ASBOX
14635 ) | sed "s/^/$as_me: WARNING: /" >&2
14636 ;;
14637esac
14638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else
14643 eval "$as_ac_Header=\$ac_header_preproc"
14644fi
14645ac_res=`eval echo '${'$as_ac_Header'}'`
14646 { echo "$as_me:$LINENO: result: $ac_res" >&5
14647echo "${ECHO_T}$ac_res" >&6; }
14648
14649fi
14650if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014651 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014653_ACEOF
14654
14655fi
14656
14657done
14658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014659
14660
Douglas Gregor071d73d2009-05-18 17:21:34 +000014661for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662do
14663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669fi
14670ac_res=`eval echo '${'$as_ac_Header'}'`
14671 { echo "$as_me:$LINENO: result: $ac_res" >&5
14672echo "${ECHO_T}$ac_res" >&6; }
14673else
14674 # Is the header compilable?
14675{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14677cat >conftest.$ac_ext <<_ACEOF
14678/* confdefs.h. */
14679_ACEOF
14680cat confdefs.h >>conftest.$ac_ext
14681cat >>conftest.$ac_ext <<_ACEOF
14682/* end confdefs.h. */
14683$ac_includes_default
14684#include <$ac_header>
14685_ACEOF
14686rm -f conftest.$ac_objext
14687if { (ac_try="$ac_compile"
14688case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691esac
14692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_compile") 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701 { (case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704esac
14705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_try") 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714esac
14715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_try") 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_header_compiler=yes
14721else
14722 echo "$as_me: failed program was:" >&5
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
14725 ac_header_compiler=no
14726fi
14727
14728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730echo "${ECHO_T}$ac_header_compiler" >&6; }
14731
14732# Is the header present?
14733{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14735cat >conftest.$ac_ext <<_ACEOF
14736/* confdefs.h. */
14737_ACEOF
14738cat confdefs.h >>conftest.$ac_ext
14739cat >>conftest.$ac_ext <<_ACEOF
14740/* end confdefs.h. */
14741#include <$ac_header>
14742_ACEOF
14743if { (ac_try="$ac_cpp conftest.$ac_ext"
14744case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747esac
14748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } >/dev/null; then
14756 if test -s conftest.err; then
14757 ac_cpp_err=$ac_c_preproc_warn_flag
14758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14759 else
14760 ac_cpp_err=
14761 fi
14762else
14763 ac_cpp_err=yes
14764fi
14765if test -z "$ac_cpp_err"; then
14766 ac_header_preproc=yes
14767else
14768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 ac_header_preproc=no
14772fi
14773
14774rm -f conftest.err conftest.$ac_ext
14775{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776echo "${ECHO_T}$ac_header_preproc" >&6; }
14777
14778# So? What about this header?
14779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14780 yes:no: )
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14785 ac_header_preproc=yes
14786 ;;
14787 no:yes:* )
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14795echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14800 ( cat <<\_ASBOX
14801## ----------------------------------- ##
14802## Report this to llvmbugs@cs.uiuc.edu ##
14803## ----------------------------------- ##
14804_ASBOX
14805 ) | sed "s/^/$as_me: WARNING: /" >&2
14806 ;;
14807esac
14808{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812else
14813 eval "$as_ac_Header=\$ac_header_preproc"
14814fi
14815ac_res=`eval echo '${'$as_ac_Header'}'`
14816 { echo "$as_me:$LINENO: result: $ac_res" >&5
14817echo "${ECHO_T}$ac_res" >&6; }
14818
14819fi
14820if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014821 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014823_ACEOF
14824
14825fi
14826
14827done
Reid Spencer59473af2004-12-25 07:31:29 +000014828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014829
14830
14831
14832
Daniel Dunbar3e462932011-02-03 02:40:02 +000014833
14834for 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 +000014835do
14836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842fi
14843ac_res=`eval echo '${'$as_ac_Header'}'`
14844 { echo "$as_me:$LINENO: result: $ac_res" >&5
14845echo "${ECHO_T}$ac_res" >&6; }
14846else
14847 # Is the header compilable?
14848{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14850cat >conftest.$ac_ext <<_ACEOF
14851/* confdefs.h. */
14852_ACEOF
14853cat confdefs.h >>conftest.$ac_ext
14854cat >>conftest.$ac_ext <<_ACEOF
14855/* end confdefs.h. */
14856$ac_includes_default
14857#include <$ac_header>
14858_ACEOF
14859rm -f conftest.$ac_objext
14860if { (ac_try="$ac_compile"
14861case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_compile") 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874 { (case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_try") 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887esac
14888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_try") 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_header_compiler=yes
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 ac_header_compiler=no
14899fi
14900
14901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14903echo "${ECHO_T}$ac_header_compiler" >&6; }
14904
14905# Is the header present?
14906{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14908cat >conftest.$ac_ext <<_ACEOF
14909/* confdefs.h. */
14910_ACEOF
14911cat confdefs.h >>conftest.$ac_ext
14912cat >>conftest.$ac_ext <<_ACEOF
14913/* end confdefs.h. */
14914#include <$ac_header>
14915_ACEOF
14916if { (ac_try="$ac_cpp conftest.$ac_ext"
14917case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14920esac
14921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } >/dev/null; then
14929 if test -s conftest.err; then
14930 ac_cpp_err=$ac_c_preproc_warn_flag
14931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14932 else
14933 ac_cpp_err=
14934 fi
14935else
14936 ac_cpp_err=yes
14937fi
14938if test -z "$ac_cpp_err"; then
14939 ac_header_preproc=yes
14940else
14941 echo "$as_me: failed program was:" >&5
14942sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ac_header_preproc=no
14945fi
14946
14947rm -f conftest.err conftest.$ac_ext
14948{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14949echo "${ECHO_T}$ac_header_preproc" >&6; }
14950
14951# So? What about this header?
14952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14953 yes:no: )
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14958 ac_header_preproc=yes
14959 ;;
14960 no:yes:* )
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14968echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14973 ( cat <<\_ASBOX
14974## ----------------------------------- ##
14975## Report this to llvmbugs@cs.uiuc.edu ##
14976## ----------------------------------- ##
14977_ASBOX
14978 ) | sed "s/^/$as_me: WARNING: /" >&2
14979 ;;
14980esac
14981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985else
14986 eval "$as_ac_Header=\$ac_header_preproc"
14987fi
14988ac_res=`eval echo '${'$as_ac_Header'}'`
14989 { echo "$as_me:$LINENO: result: $ac_res" >&5
14990echo "${ECHO_T}$ac_res" >&6; }
14991
14992fi
14993if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014994 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000014996_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000014997
14998fi
John Criswell7ed43ad2004-07-19 16:12:29 +000014999
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015000done
15001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015002
15003
15004
15005
Douglas Gregor01746742009-05-11 18:05:52 +000015006for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015007do
15008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014fi
15015ac_res=`eval echo '${'$as_ac_Header'}'`
15016 { echo "$as_me:$LINENO: result: $ac_res" >&5
15017echo "${ECHO_T}$ac_res" >&6; }
15018else
15019 # Is the header compilable?
15020{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15022cat >conftest.$ac_ext <<_ACEOF
15023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
15027/* end confdefs.h. */
15028$ac_includes_default
15029#include <$ac_header>
15030_ACEOF
15031rm -f conftest.$ac_objext
15032if { (ac_try="$ac_compile"
15033case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036esac
15037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_compile") 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_try") 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059esac
15060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_try") 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 ac_header_compiler=yes
15066else
15067 echo "$as_me: failed program was:" >&5
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ac_header_compiler=no
15071fi
15072
15073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075echo "${ECHO_T}$ac_header_compiler" >&6; }
15076
15077# Is the header present?
15078{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15080cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086#include <$ac_header>
15087_ACEOF
15088if { (ac_try="$ac_cpp conftest.$ac_ext"
15089case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092esac
15093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev/null; then
15101 if test -s conftest.err; then
15102 ac_cpp_err=$ac_c_preproc_warn_flag
15103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15104 else
15105 ac_cpp_err=
15106 fi
15107else
15108 ac_cpp_err=yes
15109fi
15110if test -z "$ac_cpp_err"; then
15111 ac_header_preproc=yes
15112else
15113 echo "$as_me: failed program was:" >&5
15114sed 's/^/| /' conftest.$ac_ext >&5
15115
15116 ac_header_preproc=no
15117fi
15118
15119rm -f conftest.err conftest.$ac_ext
15120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121echo "${ECHO_T}$ac_header_preproc" >&6; }
15122
15123# So? What about this header?
15124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125 yes:no: )
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15130 ac_header_preproc=yes
15131 ;;
15132 no:yes:* )
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15145 ( cat <<\_ASBOX
15146## ----------------------------------- ##
15147## Report this to llvmbugs@cs.uiuc.edu ##
15148## ----------------------------------- ##
15149_ASBOX
15150 ) | sed "s/^/$as_me: WARNING: /" >&2
15151 ;;
15152esac
15153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15157else
15158 eval "$as_ac_Header=\$ac_header_preproc"
15159fi
15160ac_res=`eval echo '${'$as_ac_Header'}'`
15161 { echo "$as_me:$LINENO: result: $ac_res" >&5
15162echo "${ECHO_T}$ac_res" >&6; }
15163
15164fi
15165if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015166 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015168_ACEOF
15169
15170fi
15171
15172done
15173
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015174
15175for ac_header in valgrind/valgrind.h
15176do
15177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183fi
15184ac_res=`eval echo '${'$as_ac_Header'}'`
15185 { echo "$as_me:$LINENO: result: $ac_res" >&5
15186echo "${ECHO_T}$ac_res" >&6; }
15187else
15188 # Is the header compilable?
15189{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15191cat >conftest.$ac_ext <<_ACEOF
15192/* confdefs.h. */
15193_ACEOF
15194cat confdefs.h >>conftest.$ac_ext
15195cat >>conftest.$ac_ext <<_ACEOF
15196/* end confdefs.h. */
15197$ac_includes_default
15198#include <$ac_header>
15199_ACEOF
15200rm -f conftest.$ac_objext
15201if { (ac_try="$ac_compile"
15202case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205esac
15206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218esac
15219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_header_compiler=yes
15235else
15236 echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_header_compiler=no
15240fi
15241
15242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15244echo "${ECHO_T}$ac_header_compiler" >&6; }
15245
15246# Is the header present?
15247{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15249cat >conftest.$ac_ext <<_ACEOF
15250/* confdefs.h. */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h. */
15255#include <$ac_header>
15256_ACEOF
15257if { (ac_try="$ac_cpp conftest.$ac_ext"
15258case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } >/dev/null; then
15270 if test -s conftest.err; then
15271 ac_cpp_err=$ac_c_preproc_warn_flag
15272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15273 else
15274 ac_cpp_err=
15275 fi
15276else
15277 ac_cpp_err=yes
15278fi
15279if test -z "$ac_cpp_err"; then
15280 ac_header_preproc=yes
15281else
15282 echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_header_preproc=no
15286fi
15287
15288rm -f conftest.err conftest.$ac_ext
15289{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15290echo "${ECHO_T}$ac_header_preproc" >&6; }
15291
15292# So? What about this header?
15293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15294 yes:no: )
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15299 ac_header_preproc=yes
15300 ;;
15301 no:yes:* )
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15314 ( cat <<\_ASBOX
15315## ----------------------------------- ##
15316## Report this to llvmbugs@cs.uiuc.edu ##
15317## ----------------------------------- ##
15318_ASBOX
15319 ) | sed "s/^/$as_me: WARNING: /" >&2
15320 ;;
15321esac
15322{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15326else
15327 eval "$as_ac_Header=\$ac_header_preproc"
15328fi
15329ac_res=`eval echo '${'$as_ac_Header'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331echo "${ECHO_T}$ac_res" >&6; }
15332
15333fi
15334if test `eval echo '${'$as_ac_Header'}'` = yes; then
15335 cat >>confdefs.h <<_ACEOF
15336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15337_ACEOF
15338
15339fi
15340
15341done
15342
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015343
15344for ac_header in fenv.h
15345do
15346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352fi
15353ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355echo "${ECHO_T}$ac_res" >&6; }
15356else
15357 # Is the header compilable?
15358{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15360cat >conftest.$ac_ext <<_ACEOF
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366$ac_includes_default
15367#include <$ac_header>
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (ac_try="$ac_compile"
15371case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_compile") 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15387esac
15388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397esac
15398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_try") 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_header_compiler=no
15409fi
15410
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413echo "${ECHO_T}$ac_header_compiler" >&6; }
15414
15415# Is the header present?
15416{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15418cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424#include <$ac_header>
15425_ACEOF
15426if { (ac_try="$ac_cpp conftest.$ac_ext"
15427case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null; then
15439 if test -s conftest.err; then
15440 ac_cpp_err=$ac_c_preproc_warn_flag
15441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15442 else
15443 ac_cpp_err=
15444 fi
15445else
15446 ac_cpp_err=yes
15447fi
15448if test -z "$ac_cpp_err"; then
15449 ac_header_preproc=yes
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454 ac_header_preproc=no
15455fi
15456
15457rm -f conftest.err conftest.$ac_ext
15458{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15459echo "${ECHO_T}$ac_header_preproc" >&6; }
15460
15461# So? What about this header?
15462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15463 yes:no: )
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15468 ac_header_preproc=yes
15469 ;;
15470 no:yes:* )
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15478echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15483 ( cat <<\_ASBOX
15484## ----------------------------------- ##
15485## Report this to llvmbugs@cs.uiuc.edu ##
15486## ----------------------------------- ##
15487_ASBOX
15488 ) | sed "s/^/$as_me: WARNING: /" >&2
15489 ;;
15490esac
15491{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495else
15496 eval "$as_ac_Header=\$ac_header_preproc"
15497fi
15498ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500echo "${ECHO_T}$ac_res" >&6; }
15501
15502fi
15503if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15506_ACEOF
15507
15508fi
15509
15510done
15511
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015512if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015513
15514for ac_header in pthread.h
15515do
15516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522fi
15523ac_res=`eval echo '${'$as_ac_Header'}'`
15524 { echo "$as_me:$LINENO: result: $ac_res" >&5
15525echo "${ECHO_T}$ac_res" >&6; }
15526else
15527 # Is the header compilable?
15528{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15530cat >conftest.$ac_ext <<_ACEOF
15531/* confdefs.h. */
15532_ACEOF
15533cat confdefs.h >>conftest.$ac_ext
15534cat >>conftest.$ac_ext <<_ACEOF
15535/* end confdefs.h. */
15536$ac_includes_default
15537#include <$ac_header>
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (ac_try="$ac_compile"
15541case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544esac
15545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_compile") 2>conftest.er1
15547 ac_status=$?
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15554 { (case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557esac
15558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_try") 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest.$ac_objext'
15564 { (case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567esac
15568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_try") 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_header_compiler=yes
15574else
15575 echo "$as_me: failed program was:" >&5
15576sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_header_compiler=no
15579fi
15580
15581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15583echo "${ECHO_T}$ac_header_compiler" >&6; }
15584
15585# Is the header present?
15586{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15588cat >conftest.$ac_ext <<_ACEOF
15589/* confdefs.h. */
15590_ACEOF
15591cat confdefs.h >>conftest.$ac_ext
15592cat >>conftest.$ac_ext <<_ACEOF
15593/* end confdefs.h. */
15594#include <$ac_header>
15595_ACEOF
15596if { (ac_try="$ac_cpp conftest.$ac_ext"
15597case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600esac
15601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } >/dev/null; then
15609 if test -s conftest.err; then
15610 ac_cpp_err=$ac_c_preproc_warn_flag
15611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15612 else
15613 ac_cpp_err=
15614 fi
15615else
15616 ac_cpp_err=yes
15617fi
15618if test -z "$ac_cpp_err"; then
15619 ac_header_preproc=yes
15620else
15621 echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 ac_header_preproc=no
15625fi
15626
15627rm -f conftest.err conftest.$ac_ext
15628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15629echo "${ECHO_T}$ac_header_preproc" >&6; }
15630
15631# So? What about this header?
15632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15633 yes:no: )
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15638 ac_header_preproc=yes
15639 ;;
15640 no:yes:* )
15641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15653 ( cat <<\_ASBOX
15654## ----------------------------------- ##
15655## Report this to llvmbugs@cs.uiuc.edu ##
15656## ----------------------------------- ##
15657_ASBOX
15658 ) | sed "s/^/$as_me: WARNING: /" >&2
15659 ;;
15660esac
15661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665else
15666 eval "$as_ac_Header=\$ac_header_preproc"
15667fi
15668ac_res=`eval echo '${'$as_ac_Header'}'`
15669 { echo "$as_me:$LINENO: result: $ac_res" >&5
15670echo "${ECHO_T}$ac_res" >&6; }
15671
15672fi
15673if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015674 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015676_ACEOF
15677 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015678
15679else
15680 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015681
15682fi
15683
Reid Spencerbe3e4192007-08-17 05:45:26 +000015684done
Reid Spencer1000b732006-12-01 00:37:14 +000015685
15686else
15687 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015688
15689fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015690
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015691if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015692
15693
15694for ac_header in ffi.h ffi/ffi.h
15695do
15696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702fi
15703ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705echo "${ECHO_T}$ac_res" >&6; }
15706else
15707 # Is the header compilable?
15708{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15710cat >conftest.$ac_ext <<_ACEOF
15711/* confdefs.h. */
15712_ACEOF
15713cat confdefs.h >>conftest.$ac_ext
15714cat >>conftest.$ac_ext <<_ACEOF
15715/* end confdefs.h. */
15716$ac_includes_default
15717#include <$ac_header>
15718_ACEOF
15719rm -f conftest.$ac_objext
15720if { (ac_try="$ac_compile"
15721case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724esac
15725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_compile") 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737esac
15738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest.$ac_objext'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747esac
15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_header_compiler=yes
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 ac_header_compiler=no
15759fi
15760
15761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15763echo "${ECHO_T}$ac_header_compiler" >&6; }
15764
15765# Is the header present?
15766{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15768cat >conftest.$ac_ext <<_ACEOF
15769/* confdefs.h. */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h. */
15774#include <$ac_header>
15775_ACEOF
15776if { (ac_try="$ac_cpp conftest.$ac_ext"
15777case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15780esac
15781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15783 ac_status=$?
15784 grep -v '^ *+' conftest.er1 >conftest.err
15785 rm -f conftest.er1
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } >/dev/null; then
15789 if test -s conftest.err; then
15790 ac_cpp_err=$ac_c_preproc_warn_flag
15791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15792 else
15793 ac_cpp_err=
15794 fi
15795else
15796 ac_cpp_err=yes
15797fi
15798if test -z "$ac_cpp_err"; then
15799 ac_header_preproc=yes
15800else
15801 echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 ac_header_preproc=no
15805fi
15806
15807rm -f conftest.err conftest.$ac_ext
15808{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15809echo "${ECHO_T}$ac_header_preproc" >&6; }
15810
15811# So? What about this header?
15812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15813 yes:no: )
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15818 ac_header_preproc=yes
15819 ;;
15820 no:yes:* )
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15833 ( cat <<\_ASBOX
15834## ----------------------------------- ##
15835## Report this to llvmbugs@cs.uiuc.edu ##
15836## ----------------------------------- ##
15837_ASBOX
15838 ) | sed "s/^/$as_me: WARNING: /" >&2
15839 ;;
15840esac
15841{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845else
15846 eval "$as_ac_Header=\$ac_header_preproc"
15847fi
15848ac_res=`eval echo '${'$as_ac_Header'}'`
15849 { echo "$as_me:$LINENO: result: $ac_res" >&5
15850echo "${ECHO_T}$ac_res" >&6; }
15851
15852fi
15853if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015854 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015856_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015857
15858fi
15859
15860done
15861
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015862fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015863
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015864
Eric Christopher654dee42010-06-22 21:01:04 +000015865for ac_header in CrashReporterClient.h
15866do
15867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873fi
15874ac_res=`eval echo '${'$as_ac_Header'}'`
15875 { echo "$as_me:$LINENO: result: $ac_res" >&5
15876echo "${ECHO_T}$ac_res" >&6; }
15877else
15878 # Is the header compilable?
15879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15881cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888#include <$ac_header>
15889_ACEOF
15890rm -f conftest.$ac_objext
15891if { (ac_try="$ac_compile"
15892case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15895esac
15896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_compile") 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908esac
15909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918esac
15919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_header_compiler=yes
15925else
15926 echo "$as_me: failed program was:" >&5
15927sed 's/^/| /' conftest.$ac_ext >&5
15928
15929 ac_header_compiler=no
15930fi
15931
15932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934echo "${ECHO_T}$ac_header_compiler" >&6; }
15935
15936# Is the header present?
15937{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945#include <$ac_header>
15946_ACEOF
15947if { (ac_try="$ac_cpp conftest.$ac_ext"
15948case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951esac
15952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } >/dev/null; then
15960 if test -s conftest.err; then
15961 ac_cpp_err=$ac_c_preproc_warn_flag
15962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15963 else
15964 ac_cpp_err=
15965 fi
15966else
15967 ac_cpp_err=yes
15968fi
15969if test -z "$ac_cpp_err"; then
15970 ac_header_preproc=yes
15971else
15972 echo "$as_me: failed program was:" >&5
15973sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ac_header_preproc=no
15976fi
15977
15978rm -f conftest.err conftest.$ac_ext
15979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15980echo "${ECHO_T}$ac_header_preproc" >&6; }
15981
15982# So? What about this header?
15983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15984 yes:no: )
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15989 ac_header_preproc=yes
15990 ;;
15991 no:yes:* )
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16004 ( cat <<\_ASBOX
16005## ----------------------------------- ##
16006## Report this to llvmbugs@cs.uiuc.edu ##
16007## ----------------------------------- ##
16008_ASBOX
16009 ) | sed "s/^/$as_me: WARNING: /" >&2
16010 ;;
16011esac
16012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016else
16017 eval "$as_ac_Header=\$ac_header_preproc"
16018fi
16019ac_res=`eval echo '${'$as_ac_Header'}'`
16020 { echo "$as_me:$LINENO: result: $ac_res" >&5
16021echo "${ECHO_T}$ac_res" >&6; }
16022
16023fi
16024if test `eval echo '${'$as_ac_Header'}'` = yes; then
16025 cat >>confdefs.h <<_ACEOF
16026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16027_ACEOF
16028
16029fi
16030
16031done
16032
16033
Eric Christopher51e57132010-12-07 02:05:42 +000016034{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16035echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016036cat >conftest.$ac_ext <<_ACEOF
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016042extern const char *__crashreporter_info__;
16043 int main() {
16044 __crashreporter_info__ = "test";
16045 return 0;
16046 }
Eric Christopher481d4022010-12-03 07:45:22 +000016047
Eric Christopher481d4022010-12-03 07:45:22 +000016048_ACEOF
16049rm -f conftest.$ac_objext conftest$ac_exeext
16050if { (ac_try="$ac_link"
16051case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054esac
16055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_link") 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067esac
16068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16077esac
16078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_try") 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016083 { echo "$as_me:$LINENO: result: yes" >&5
16084echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016085
16086cat >>confdefs.h <<\_ACEOF
16087#define HAVE_CRASHREPORTER_INFO 1
16088_ACEOF
16089
Eric Christopher51e57132010-12-07 02:05:42 +000016090else
16091 echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
16094 { echo "$as_me:$LINENO: result: no" >&5
16095echo "${ECHO_T}no" >&6; }
16096
16097cat >>confdefs.h <<\_ACEOF
16098#define HAVE_CRASHREPORTER_INFO 0
16099_ACEOF
16100
Eric Christopher481d4022010-12-03 07:45:22 +000016101fi
Eric Christopher654dee42010-06-22 21:01:04 +000016102
Eric Christopher51e57132010-12-07 02:05:42 +000016103rm -f core conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16105
16106
Reid Spencer8085cff2005-01-16 02:58:39 +000016107
Torok Edwin871384f2010-01-26 08:50:50 +000016108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016109 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16110echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16111if test "${ac_cv_huge_val_sanity+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016113else
16114
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016115 ac_ext=cpp
16116ac_cpp='$CXXCPP $CPPFLAGS'
16117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016120
Eric Christopherc7718502010-03-02 05:06:54 +000016121 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016122 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016123 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016124 ac_cv_huge_val_sanity=yes
16125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016126 cat >conftest.$ac_ext <<_ACEOF
16127/* confdefs.h. */
16128_ACEOF
16129cat confdefs.h >>conftest.$ac_ext
16130cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016131/* end confdefs.h. */
16132#include <math.h>
16133int
16134main ()
16135{
16136double x = HUGE_VAL; return x != x;
16137 ;
16138 return 0;
16139}
16140_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016141rm -f conftest$ac_exeext
16142if { (ac_try="$ac_link"
16143case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_link") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16152 { (case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16155esac
16156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_try") 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016161 ac_cv_huge_val_sanity=yes
16162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016163 echo "$as_me: program exited with status $ac_status" >&5
16164echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167( exit $ac_status )
16168ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016170rm -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 +000016171fi
16172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016173
Eric Christopherc7718502010-03-02 05:06:54 +000016174 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016175 ac_ext=c
16176ac_cpp='$CPP $CPPFLAGS'
16177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16179ac_compiler_gnu=$ac_cv_c_compiler_gnu
16180
16181
16182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016183{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16184echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016185 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16186
16187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016188{ echo "$as_me:$LINENO: checking for pid_t" >&5
16189echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16190if test "${ac_cv_type_pid_t+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
16199$ac_includes_default
16200typedef pid_t ac__type_new_;
16201int
16202main ()
16203{
16204if ((ac__type_new_ *) 0)
16205 return 0;
16206if (sizeof (ac__type_new_))
16207 return 0;
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest.$ac_objext
16213if { (ac_try="$ac_compile"
16214case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16217esac
16218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_compile") 2>conftest.er1
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16227 { (case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16230esac
16231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_try") 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest.$ac_objext'
16237 { (case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240esac
16241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_try") 2>&5
16243 ac_status=$?
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_cv_type_pid_t=yes
16247else
16248 echo "$as_me: failed program was:" >&5
16249sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016251 ac_cv_type_pid_t=no
16252fi
16253
16254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255fi
16256{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16257echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16258if test $ac_cv_type_pid_t = yes; then
16259 :
John Criswell7a73b802003-06-30 21:59:07 +000016260else
16261
16262cat >>confdefs.h <<_ACEOF
16263#define pid_t int
16264_ACEOF
16265
16266fi
16267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016268{ echo "$as_me:$LINENO: checking for size_t" >&5
16269echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16270if test "${ac_cv_type_size_t+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272else
16273 cat >conftest.$ac_ext <<_ACEOF
16274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
16279$ac_includes_default
16280typedef size_t ac__type_new_;
16281int
16282main ()
16283{
16284if ((ac__type_new_ *) 0)
16285 return 0;
16286if (sizeof (ac__type_new_))
16287 return 0;
16288 ;
16289 return 0;
16290}
16291_ACEOF
16292rm -f conftest.$ac_objext
16293if { (ac_try="$ac_compile"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_compile") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307 { (case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310esac
16311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_try") 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320esac
16321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_cv_type_size_t=yes
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016331 ac_cv_type_size_t=no
16332fi
16333
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335fi
16336{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16337echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16338if test $ac_cv_type_size_t = yes; then
16339 :
John Criswell7a73b802003-06-30 21:59:07 +000016340else
16341
16342cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016343#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016344_ACEOF
16345
16346fi
16347
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016348
16349cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016350#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016351_ACEOF
16352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016353{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16354echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16355if test "${ac_cv_struct_tm+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016358 cat >conftest.$ac_ext <<_ACEOF
16359/* confdefs.h. */
16360_ACEOF
16361cat confdefs.h >>conftest.$ac_ext
16362cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016363/* end confdefs.h. */
16364#include <sys/types.h>
16365#include <time.h>
16366
16367int
16368main ()
16369{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016370struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016371 ;
16372 return 0;
16373}
16374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016375rm -f conftest.$ac_objext
16376if { (ac_try="$ac_compile"
16377case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390 { (case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_try") 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016409 ac_cv_struct_tm=time.h
16410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016411 echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016416
Reid Spencera773bd52006-08-04 18:18:08 +000016417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016419{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16420echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016421if test $ac_cv_struct_tm = sys/time.h; then
16422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016423cat >>confdefs.h <<\_ACEOF
16424#define TM_IN_SYS_TIME 1
16425_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016426
16427fi
16428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016429{ echo "$as_me:$LINENO: checking for int64_t" >&5
16430echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16431if test "${ac_cv_type_int64_t+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433else
16434 cat >conftest.$ac_ext <<_ACEOF
16435/* confdefs.h. */
16436_ACEOF
16437cat confdefs.h >>conftest.$ac_ext
16438cat >>conftest.$ac_ext <<_ACEOF
16439/* end confdefs.h. */
16440$ac_includes_default
16441typedef int64_t ac__type_new_;
16442int
16443main ()
16444{
16445if ((ac__type_new_ *) 0)
16446 return 0;
16447if (sizeof (ac__type_new_))
16448 return 0;
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext
16454if { (ac_try="$ac_compile"
16455case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_compile") 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_type_int64_t=yes
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_type_int64_t=no
16493fi
16494
16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496fi
16497{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16498echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16499if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016500
16501cat >>confdefs.h <<_ACEOF
16502#define HAVE_INT64_T 1
16503_ACEOF
16504
16505
16506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016507 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16508echo "$as_me: error: Type int64_t required but not found" >&2;}
16509 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016510fi
16511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016512{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16513echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16514if test "${ac_cv_type_uint64_t+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16516else
16517 cat >conftest.$ac_ext <<_ACEOF
16518/* confdefs.h. */
16519_ACEOF
16520cat confdefs.h >>conftest.$ac_ext
16521cat >>conftest.$ac_ext <<_ACEOF
16522/* end confdefs.h. */
16523$ac_includes_default
16524typedef uint64_t ac__type_new_;
16525int
16526main ()
16527{
16528if ((ac__type_new_ *) 0)
16529 return 0;
16530if (sizeof (ac__type_new_))
16531 return 0;
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext
16537if { (ac_try="$ac_compile"
16538case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16541esac
16542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_compile") 2>conftest.er1
16544 ac_status=$?
16545 grep -v '^ *+' conftest.er1 >conftest.err
16546 rm -f conftest.er1
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554esac
16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564esac
16565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_type_uint64_t=yes
16571else
16572 echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ac_cv_type_uint64_t=no
16576fi
16577
16578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579fi
16580{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16581echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16582if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016583
16584cat >>confdefs.h <<_ACEOF
16585#define HAVE_UINT64_T 1
16586_ACEOF
16587
16588
16589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016590 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16591echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16592if test "${ac_cv_type_u_int64_t+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 cat >conftest.$ac_ext <<_ACEOF
16596/* confdefs.h. */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h. */
16601$ac_includes_default
16602typedef u_int64_t ac__type_new_;
16603int
16604main ()
16605{
16606if ((ac__type_new_ *) 0)
16607 return 0;
16608if (sizeof (ac__type_new_))
16609 return 0;
16610 ;
16611 return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext
16615if { (ac_try="$ac_compile"
16616case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619esac
16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_type_u_int64_t=yes
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_cv_type_u_int64_t=no
16654fi
16655
16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657fi
16658{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16659echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16660if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016661
16662cat >>confdefs.h <<_ACEOF
16663#define HAVE_U_INT64_T 1
16664_ACEOF
16665
16666
Misha Brukmanceca9042004-09-02 23:02:30 +000016667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016668 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16669echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16670 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016671fi
16672
John Criswell679ff312004-09-02 18:44:44 +000016673fi
16674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016675
16676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016677
16678
16679
16680
16681
16682
16683
Reid Spencerdf3be822006-01-23 08:15:53 +000016684for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016685do
16686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692 cat >conftest.$ac_ext <<_ACEOF
16693/* confdefs.h. */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h. */
16698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16700#define $ac_func innocuous_$ac_func
16701
16702/* System header to define __stub macros and hopefully few prototypes,
16703 which can conflict with char $ac_func (); below.
16704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16705 <limits.h> exists even on freestanding compilers. */
16706
16707#ifdef __STDC__
16708# include <limits.h>
16709#else
16710# include <assert.h>
16711#endif
16712
16713#undef $ac_func
16714
16715/* Override any GCC internal prototype to avoid an error.
16716 Use char because int might match the return type of a GCC
16717 builtin and then its argument prototype would still apply. */
16718#ifdef __cplusplus
16719extern "C"
16720#endif
16721char $ac_func ();
16722/* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725#if defined __stub_$ac_func || defined __stub___$ac_func
16726choke me
16727#endif
16728
16729int
16730main ()
16731{
16732return $ac_func ();
16733 ;
16734 return 0;
16735}
16736_ACEOF
16737rm -f conftest.$ac_objext conftest$ac_exeext
16738if { (ac_try="$ac_link"
16739case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest$ac_exeext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 eval "$as_ac_var=yes"
16772else
16773 echo "$as_me: failed program was:" >&5
16774sed 's/^/| /' conftest.$ac_ext >&5
16775
16776 eval "$as_ac_var=no"
16777fi
16778
16779rm -f core conftest.err conftest.$ac_objext \
16780 conftest$ac_exeext conftest.$ac_ext
16781fi
16782ac_res=`eval echo '${'$as_ac_var'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784echo "${ECHO_T}$ac_res" >&6; }
16785if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016786 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016788_ACEOF
16789
16790fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016791done
John Criswell7a73b802003-06-30 21:59:07 +000016792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016793
16794
16795
16796
Reid Spencer96cf5872007-07-13 10:05:30 +000016797for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016798do
16799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804else
16805 cat >conftest.$ac_ext <<_ACEOF
16806/* confdefs.h. */
16807_ACEOF
16808cat confdefs.h >>conftest.$ac_ext
16809cat >>conftest.$ac_ext <<_ACEOF
16810/* end confdefs.h. */
16811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16813#define $ac_func innocuous_$ac_func
16814
16815/* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char $ac_func (); below.
16817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818 <limits.h> exists even on freestanding compilers. */
16819
16820#ifdef __STDC__
16821# include <limits.h>
16822#else
16823# include <assert.h>
16824#endif
16825
16826#undef $ac_func
16827
16828/* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16831#ifdef __cplusplus
16832extern "C"
16833#endif
16834char $ac_func ();
16835/* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838#if defined __stub_$ac_func || defined __stub___$ac_func
16839choke me
16840#endif
16841
16842int
16843main ()
16844{
16845return $ac_func ();
16846 ;
16847 return 0;
16848}
16849_ACEOF
16850rm -f conftest.$ac_objext conftest$ac_exeext
16851if { (ac_try="$ac_link"
16852case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855esac
16856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
16864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868esac
16869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest$ac_exeext'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878esac
16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 eval "$as_ac_var=yes"
16885else
16886 echo "$as_me: failed program was:" >&5
16887sed 's/^/| /' conftest.$ac_ext >&5
16888
16889 eval "$as_ac_var=no"
16890fi
16891
16892rm -f core conftest.err conftest.$ac_objext \
16893 conftest$ac_exeext conftest.$ac_ext
16894fi
16895ac_res=`eval echo '${'$as_ac_var'}'`
16896 { echo "$as_me:$LINENO: result: $ac_res" >&5
16897echo "${ECHO_T}$ac_res" >&6; }
16898if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016899 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016901_ACEOF
16902
16903fi
16904done
16905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016906
16907
16908
16909
16910
Reid Spencerb90645c2007-02-16 19:17:20 +000016911for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016912do
16913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16916if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918else
16919 cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16927#define $ac_func innocuous_$ac_func
16928
16929/* System header to define __stub macros and hopefully few prototypes,
16930 which can conflict with char $ac_func (); below.
16931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16932 <limits.h> exists even on freestanding compilers. */
16933
16934#ifdef __STDC__
16935# include <limits.h>
16936#else
16937# include <assert.h>
16938#endif
16939
16940#undef $ac_func
16941
16942/* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945#ifdef __cplusplus
16946extern "C"
16947#endif
16948char $ac_func ();
16949/* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952#if defined __stub_$ac_func || defined __stub___$ac_func
16953choke me
16954#endif
16955
16956int
16957main ()
16958{
16959return $ac_func ();
16960 ;
16961 return 0;
16962}
16963_ACEOF
16964rm -f conftest.$ac_objext conftest$ac_exeext
16965if { (ac_try="$ac_link"
16966case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969esac
16970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_link") 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16979 { (case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982esac
16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_try") 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try='test -s conftest$ac_exeext'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992esac
16993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 eval "$as_ac_var=yes"
16999else
17000 echo "$as_me: failed program was:" >&5
17001sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 eval "$as_ac_var=no"
17004fi
17005
17006rm -f core conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17008fi
17009ac_res=`eval echo '${'$as_ac_var'}'`
17010 { echo "$as_me:$LINENO: result: $ac_res" >&5
17011echo "${ECHO_T}$ac_res" >&6; }
17012if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017013 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017015_ACEOF
17016
17017fi
17018done
17019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017020
17021
17022
Reid Spencerb90645c2007-02-16 19:17:20 +000017023for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017024do
17025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17039#define $ac_func innocuous_$ac_func
17040
17041/* System header to define __stub macros and hopefully few prototypes,
17042 which can conflict with char $ac_func (); below.
17043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044 <limits.h> exists even on freestanding compilers. */
17045
17046#ifdef __STDC__
17047# include <limits.h>
17048#else
17049# include <assert.h>
17050#endif
17051
17052#undef $ac_func
17053
17054/* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17057#ifdef __cplusplus
17058extern "C"
17059#endif
17060char $ac_func ();
17061/* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064#if defined __stub_$ac_func || defined __stub___$ac_func
17065choke me
17066#endif
17067
17068int
17069main ()
17070{
17071return $ac_func ();
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076rm -f conftest.$ac_objext conftest$ac_exeext
17077if { (ac_try="$ac_link"
17078case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081esac
17082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094esac
17095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 eval "$as_ac_var=yes"
17111else
17112 echo "$as_me: failed program was:" >&5
17113sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 eval "$as_ac_var=no"
17116fi
17117
17118rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120fi
17121ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123echo "${ECHO_T}$ac_res" >&6; }
17124if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017125 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017127_ACEOF
17128
17129fi
17130done
17131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017132
17133
17134
17135
17136
Eric Christophere4291822010-04-16 05:14:21 +000017137
17138for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017139do
17140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145else
17146 cat >conftest.$ac_ext <<_ACEOF
17147/* confdefs.h. */
17148_ACEOF
17149cat confdefs.h >>conftest.$ac_ext
17150cat >>conftest.$ac_ext <<_ACEOF
17151/* end confdefs.h. */
17152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154#define $ac_func innocuous_$ac_func
17155
17156/* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17160
17161#ifdef __STDC__
17162# include <limits.h>
17163#else
17164# include <assert.h>
17165#endif
17166
17167#undef $ac_func
17168
17169/* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172#ifdef __cplusplus
17173extern "C"
17174#endif
17175char $ac_func ();
17176/* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179#if defined __stub_$ac_func || defined __stub___$ac_func
17180choke me
17181#endif
17182
17183int
17184main ()
17185{
17186return $ac_func ();
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext conftest$ac_exeext
17192if { (ac_try="$ac_link"
17193case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17219esac
17220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_var=yes"
17226else
17227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 eval "$as_ac_var=no"
17231fi
17232
17233rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235fi
17236ac_res=`eval echo '${'$as_ac_var'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238echo "${ECHO_T}$ac_res" >&6; }
17239if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017240 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017242_ACEOF
17243
17244fi
17245done
Reid Spencerdf3be822006-01-23 08:15:53 +000017246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017247
17248
17249
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017250for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017251do
17252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17253{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17255if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257else
17258 cat >conftest.$ac_ext <<_ACEOF
17259/* confdefs.h. */
17260_ACEOF
17261cat confdefs.h >>conftest.$ac_ext
17262cat >>conftest.$ac_ext <<_ACEOF
17263/* end confdefs.h. */
17264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17266#define $ac_func innocuous_$ac_func
17267
17268/* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func (); below.
17270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271 <limits.h> exists even on freestanding compilers. */
17272
17273#ifdef __STDC__
17274# include <limits.h>
17275#else
17276# include <assert.h>
17277#endif
17278
17279#undef $ac_func
17280
17281/* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17284#ifdef __cplusplus
17285extern "C"
17286#endif
17287char $ac_func ();
17288/* The GNU C library defines this for functions which it implements
17289 to always fail with ENOSYS. Some functions are actually named
17290 something starting with __ and the normal name is an alias. */
17291#if defined __stub_$ac_func || defined __stub___$ac_func
17292choke me
17293#endif
17294
17295int
17296main ()
17297{
17298return $ac_func ();
17299 ;
17300 return 0;
17301}
17302_ACEOF
17303rm -f conftest.$ac_objext conftest$ac_exeext
17304if { (ac_try="$ac_link"
17305case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308esac
17309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331esac
17332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_try") 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 eval "$as_ac_var=yes"
17338else
17339 echo "$as_me: failed program was:" >&5
17340sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 eval "$as_ac_var=no"
17343fi
17344
17345rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347fi
17348ac_res=`eval echo '${'$as_ac_var'}'`
17349 { echo "$as_me:$LINENO: result: $ac_res" >&5
17350echo "${ECHO_T}$ac_res" >&6; }
17351if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017352 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017354_ACEOF
17355
17356fi
17357done
17358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017359
17360
17361
17362
Chris Lattner511f11d2005-11-14 07:25:50 +000017363for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017364do
17365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17366{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17370else
17371 cat >conftest.$ac_ext <<_ACEOF
17372/* confdefs.h. */
17373_ACEOF
17374cat confdefs.h >>conftest.$ac_ext
17375cat >>conftest.$ac_ext <<_ACEOF
17376/* end confdefs.h. */
17377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17379#define $ac_func innocuous_$ac_func
17380
17381/* System header to define __stub macros and hopefully few prototypes,
17382 which can conflict with char $ac_func (); below.
17383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17384 <limits.h> exists even on freestanding compilers. */
17385
17386#ifdef __STDC__
17387# include <limits.h>
17388#else
17389# include <assert.h>
17390#endif
17391
17392#undef $ac_func
17393
17394/* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17397#ifdef __cplusplus
17398extern "C"
17399#endif
17400char $ac_func ();
17401/* The GNU C library defines this for functions which it implements
17402 to always fail with ENOSYS. Some functions are actually named
17403 something starting with __ and the normal name is an alias. */
17404#if defined __stub_$ac_func || defined __stub___$ac_func
17405choke me
17406#endif
17407
17408int
17409main ()
17410{
17411return $ac_func ();
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416rm -f conftest.$ac_objext conftest$ac_exeext
17417if { (ac_try="$ac_link"
17418case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_link") 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17431 { (case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434esac
17435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_try") 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
17441 { (case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17444esac
17445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_try") 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 eval "$as_ac_var=yes"
17451else
17452 echo "$as_me: failed program was:" >&5
17453sed 's/^/| /' conftest.$ac_ext >&5
17454
17455 eval "$as_ac_var=no"
17456fi
17457
17458rm -f core conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
17460fi
17461ac_res=`eval echo '${'$as_ac_var'}'`
17462 { echo "$as_me:$LINENO: result: $ac_res" >&5
17463echo "${ECHO_T}$ac_res" >&6; }
17464if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017465 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017467_ACEOF
17468
17469fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017470done
John Criswell7a73b802003-06-30 21:59:07 +000017471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017472
17473
17474
17475
Daniel Dunbar3e462932011-02-03 02:40:02 +000017476
17477for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017478do
17479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17480{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17482if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485 cat >conftest.$ac_ext <<_ACEOF
17486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
17491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493#define $ac_func innocuous_$ac_func
17494
17495/* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char $ac_func (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
17499
17500#ifdef __STDC__
17501# include <limits.h>
17502#else
17503# include <assert.h>
17504#endif
17505
17506#undef $ac_func
17507
17508/* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17511#ifdef __cplusplus
17512extern "C"
17513#endif
17514char $ac_func ();
17515/* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518#if defined __stub_$ac_func || defined __stub___$ac_func
17519choke me
17520#endif
17521
17522int
17523main ()
17524{
17525return $ac_func ();
17526 ;
17527 return 0;
17528}
17529_ACEOF
17530rm -f conftest.$ac_objext conftest$ac_exeext
17531if { (ac_try="$ac_link"
17532case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535esac
17536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548esac
17549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558esac
17559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17565else
17566 echo "$as_me: failed program was:" >&5
17567sed 's/^/| /' conftest.$ac_ext >&5
17568
17569 eval "$as_ac_var=no"
17570fi
17571
17572rm -f core conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17574fi
17575ac_res=`eval echo '${'$as_ac_var'}'`
17576 { echo "$as_me:$LINENO: result: $ac_res" >&5
17577echo "${ECHO_T}$ac_res" >&6; }
17578if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017579 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017581_ACEOF
17582
17583fi
17584done
17585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017586{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17587echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17588if test "${llvm_cv_c_printf_a+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017590else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017591 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017592ac_cpp='$CPP $CPPFLAGS'
17593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017598 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017600 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017602 /* confdefs.h. */
17603_ACEOF
17604cat confdefs.h >>conftest.$ac_ext
17605cat >>conftest.$ac_ext <<_ACEOF
17606/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017607
John Criswella0137d32003-10-13 16:22:01 +000017608#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017609#include <stdlib.h>
17610
John Criswella0137d32003-10-13 16:22:01 +000017611int
17612main ()
17613{
17614
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615volatile double A, B;
17616char Buffer[100];
17617A = 1;
17618A /= 10.0;
17619sprintf(Buffer, "%a", A);
17620B = atof(Buffer);
17621if (A != B)
17622 return (1);
17623if (A != 0x1.999999999999ap-4)
17624 return (1);
17625return (0);
John Criswella0137d32003-10-13 16:22:01 +000017626 ;
17627 return 0;
17628}
17629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630rm -f conftest$ac_exeext
17631if { (ac_try="$ac_link"
17632case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635esac
17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641 { (case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17644esac
17645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_try") 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017650 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017652 echo "$as_me: program exited with status $ac_status" >&5
17653echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656( exit $ac_status )
17657llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017659rm -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 +000017660fi
Reid Spencera773bd52006-08-04 18:18:08 +000017661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017662
Reid Spencer2706f8c2004-09-19 23:53:36 +000017663 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017664ac_cpp='$CPP $CPPFLAGS'
17665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017670{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17671echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017672 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017674cat >>confdefs.h <<\_ACEOF
17675#define HAVE_PRINTF_A 1
17676_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017677
Reid Spencer2706f8c2004-09-19 23:53:36 +000017678 fi
John Criswella0137d32003-10-13 16:22:01 +000017679
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17682echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17683if test "${ac_cv_func_rand48+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017685else
Reid Spencera773bd52006-08-04 18:18:08 +000017686 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017687ac_cpp='$CXXCPP $CPPFLAGS'
17688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017692 cat >conftest.$ac_ext <<_ACEOF
17693/* confdefs.h. */
17694_ACEOF
17695cat confdefs.h >>conftest.$ac_ext
17696cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017697/* end confdefs.h. */
17698#include <stdlib.h>
17699int
17700main ()
17701{
17702srand48(0);lrand48();drand48();
17703 ;
17704 return 0;
17705}
17706_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017707rm -f conftest.$ac_objext
17708if { (ac_try="$ac_compile"
17709case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712esac
17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_compile") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest.$ac_objext'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017741 ac_cv_func_rand48=yes
17742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017743 echo "$as_me: failed program was:" >&5
17744sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017748
Reid Spencera773bd52006-08-04 18:18:08 +000017749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017750 ac_ext=c
17751ac_cpp='$CPP $CPPFLAGS'
17752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17754ac_compiler_gnu=$ac_cv_c_compiler_gnu
17755
17756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017757{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17758echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017759
17760if test "$ac_cv_func_rand48" = "yes" ; then
17761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017762cat >>confdefs.h <<\_ACEOF
17763#define HAVE_RAND48 1
17764_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017765
17766fi
John Criswell0021c312004-02-13 21:57:29 +000017767
17768
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017769{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17770echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17771if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773else
17774 cat >conftest.$ac_ext <<_ACEOF
17775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
17780$ac_includes_default
17781int
17782main ()
17783{
17784#ifndef strerror_s
17785 char *p = (char *) strerror_s;
17786 return !p;
17787#endif
17788
17789 ;
17790 return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext
17794if { (ac_try="$ac_compile"
17795case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798esac
17799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_compile") 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808 { (case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811esac
17812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_try") 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
17818 { (case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821esac
17822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_try") 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_have_decl_strerror_s=yes
17828else
17829 echo "$as_me: failed program was:" >&5
17830sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 ac_cv_have_decl_strerror_s=no
17833fi
17834
17835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836fi
17837{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17838echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17839if test $ac_cv_have_decl_strerror_s = yes; then
17840
17841cat >>confdefs.h <<_ACEOF
17842#define HAVE_DECL_STRERROR_S 1
17843_ACEOF
17844
17845
17846else
17847 cat >>confdefs.h <<_ACEOF
17848#define HAVE_DECL_STRERROR_S 0
17849_ACEOF
17850
17851
17852fi
17853
17854
17855
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017856if test "$llvm_cv_os_type" = "MingW" ; then
17857 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17858echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17859if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861else
17862 ac_check_lib_save_LIBS=$LIBS
17863LIBS="-lgcc $LIBS"
17864cat >conftest.$ac_ext <<_ACEOF
17865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
17870
17871/* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17874#ifdef __cplusplus
17875extern "C"
17876#endif
17877char _alloca ();
17878int
17879main ()
17880{
17881return _alloca ();
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext conftest$ac_exeext
17887if { (ac_try="$ac_link"
17888case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_link") 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17904esac
17905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (case "(($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_try") 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_gcc__alloca=yes
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925 ac_cv_lib_gcc__alloca=no
17926fi
17927
17928rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930LIBS=$ac_check_lib_save_LIBS
17931fi
17932{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17933echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17934if test $ac_cv_lib_gcc__alloca = yes; then
17935
17936cat >>confdefs.h <<\_ACEOF
17937#define HAVE__ALLOCA 1
17938_ACEOF
17939
17940fi
17941
17942 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17943echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17944if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946else
17947 ac_check_lib_save_LIBS=$LIBS
17948LIBS="-lgcc $LIBS"
17949cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955
17956/* Override any GCC internal prototype to avoid an error.
17957 Use char because int might match the return type of a GCC
17958 builtin and then its argument prototype would still apply. */
17959#ifdef __cplusplus
17960extern "C"
17961#endif
17962char __alloca ();
17963int
17964main ()
17965{
17966return __alloca ();
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext conftest$ac_exeext
17972if { (ac_try="$ac_link"
17973case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17976esac
17977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_link") 2>conftest.er1
17979 ac_status=$?
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989esac
17990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (case "(($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_try") 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_lib_gcc___alloca=yes
18006else
18007 echo "$as_me: failed program was:" >&5
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 ac_cv_lib_gcc___alloca=no
18011fi
18012
18013rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015LIBS=$ac_check_lib_save_LIBS
18016fi
18017{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18018echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18019if test $ac_cv_lib_gcc___alloca = yes; then
18020
18021cat >>confdefs.h <<\_ACEOF
18022#define HAVE___ALLOCA 1
18023_ACEOF
18024
18025fi
18026
18027 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18028echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18029if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031else
18032 ac_check_lib_save_LIBS=$LIBS
18033LIBS="-lgcc $LIBS"
18034cat >conftest.$ac_ext <<_ACEOF
18035/* confdefs.h. */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h. */
18040
18041/* Override any GCC internal prototype to avoid an error.
18042 Use char because int might match the return type of a GCC
18043 builtin and then its argument prototype would still apply. */
18044#ifdef __cplusplus
18045extern "C"
18046#endif
18047char __chkstk ();
18048int
18049main ()
18050{
18051return __chkstk ();
18052 ;
18053 return 0;
18054}
18055_ACEOF
18056rm -f conftest.$ac_objext conftest$ac_exeext
18057if { (ac_try="$ac_link"
18058case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest$ac_exeext'
18081 { (case "(($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_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 ac_cv_lib_gcc___chkstk=yes
18091else
18092 echo "$as_me: failed program was:" >&5
18093sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 ac_cv_lib_gcc___chkstk=no
18096fi
18097
18098rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18100LIBS=$ac_check_lib_save_LIBS
18101fi
18102{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18103echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18104if test $ac_cv_lib_gcc___chkstk = yes; then
18105
18106cat >>confdefs.h <<\_ACEOF
18107#define HAVE___CHKSTK 1
18108_ACEOF
18109
18110fi
18111
18112 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18113echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18114if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116else
18117 ac_check_lib_save_LIBS=$LIBS
18118LIBS="-lgcc $LIBS"
18119cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h. */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h. */
18125
18126/* Override any GCC internal prototype to avoid an error.
18127 Use char because int might match the return type of a GCC
18128 builtin and then its argument prototype would still apply. */
18129#ifdef __cplusplus
18130extern "C"
18131#endif
18132char ___chkstk ();
18133int
18134main ()
18135{
18136return ___chkstk ();
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext conftest$ac_exeext
18142if { (ac_try="$ac_link"
18143case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146esac
18147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest$ac_exeext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_lib_gcc____chkstk=yes
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 ac_cv_lib_gcc____chkstk=no
18181fi
18182
18183rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185LIBS=$ac_check_lib_save_LIBS
18186fi
18187{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18188echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18189if test $ac_cv_lib_gcc____chkstk = yes; then
18190
18191cat >>confdefs.h <<\_ACEOF
18192#define HAVE____CHKSTK 1
18193_ACEOF
18194
18195fi
18196
18197
18198 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18199echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18200if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18202else
18203 ac_check_lib_save_LIBS=$LIBS
18204LIBS="-lgcc $LIBS"
18205cat >conftest.$ac_ext <<_ACEOF
18206/* confdefs.h. */
18207_ACEOF
18208cat confdefs.h >>conftest.$ac_ext
18209cat >>conftest.$ac_ext <<_ACEOF
18210/* end confdefs.h. */
18211
18212/* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18215#ifdef __cplusplus
18216extern "C"
18217#endif
18218char __ashldi3 ();
18219int
18220main ()
18221{
18222return __ashldi3 ();
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext conftest$ac_exeext
18228if { (ac_try="$ac_link"
18229case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_link") 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245esac
18246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try='test -s conftest$ac_exeext'
18252 { (case "(($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_try") 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_cv_lib_gcc___ashldi3=yes
18262else
18263 echo "$as_me: failed program was:" >&5
18264sed 's/^/| /' conftest.$ac_ext >&5
18265
18266 ac_cv_lib_gcc___ashldi3=no
18267fi
18268
18269rm -f core conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18271LIBS=$ac_check_lib_save_LIBS
18272fi
18273{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18274echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18275if test $ac_cv_lib_gcc___ashldi3 = yes; then
18276
18277cat >>confdefs.h <<\_ACEOF
18278#define HAVE___ASHLDI3 1
18279_ACEOF
18280
18281fi
18282
18283 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18284echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18285if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287else
18288 ac_check_lib_save_LIBS=$LIBS
18289LIBS="-lgcc $LIBS"
18290cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
18296
18297/* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18300#ifdef __cplusplus
18301extern "C"
18302#endif
18303char __ashrdi3 ();
18304int
18305main ()
18306{
18307return __ashrdi3 ();
18308 ;
18309 return 0;
18310}
18311_ACEOF
18312rm -f conftest.$ac_objext conftest$ac_exeext
18313if { (ac_try="$ac_link"
18314case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18317esac
18318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_link") 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18327 { (case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330esac
18331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_try") 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } &&
18336 { ac_try='test -s conftest$ac_exeext'
18337 { (case "(($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_try") 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_cv_lib_gcc___ashrdi3=yes
18347else
18348 echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 ac_cv_lib_gcc___ashrdi3=no
18352fi
18353
18354rm -f core conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356LIBS=$ac_check_lib_save_LIBS
18357fi
18358{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18359echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18360if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18361
18362cat >>confdefs.h <<\_ACEOF
18363#define HAVE___ASHRDI3 1
18364_ACEOF
18365
18366fi
18367
18368 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18369echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18370if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18371 echo $ECHO_N "(cached) $ECHO_C" >&6
18372else
18373 ac_check_lib_save_LIBS=$LIBS
18374LIBS="-lgcc $LIBS"
18375cat >conftest.$ac_ext <<_ACEOF
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
18380/* end confdefs.h. */
18381
18382/* Override any GCC internal prototype to avoid an error.
18383 Use char because int might match the return type of a GCC
18384 builtin and then its argument prototype would still apply. */
18385#ifdef __cplusplus
18386extern "C"
18387#endif
18388char __divdi3 ();
18389int
18390main ()
18391{
18392return __divdi3 ();
18393 ;
18394 return 0;
18395}
18396_ACEOF
18397rm -f conftest.$ac_objext conftest$ac_exeext
18398if { (ac_try="$ac_link"
18399case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_link") 2>conftest.er1
18405 ac_status=$?
18406 grep -v '^ *+' conftest.er1 >conftest.err
18407 rm -f conftest.er1
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
18411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415esac
18416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest$ac_exeext'
18422 { (case "(($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_try") 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_lib_gcc___divdi3=yes
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ac_cv_lib_gcc___divdi3=no
18437fi
18438
18439rm -f core conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
18441LIBS=$ac_check_lib_save_LIBS
18442fi
18443{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18444echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18445if test $ac_cv_lib_gcc___divdi3 = yes; then
18446
18447cat >>confdefs.h <<\_ACEOF
18448#define HAVE___DIVDI3 1
18449_ACEOF
18450
18451fi
18452
18453 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18454echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18455if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18457else
18458 ac_check_lib_save_LIBS=$LIBS
18459LIBS="-lgcc $LIBS"
18460cat >conftest.$ac_ext <<_ACEOF
18461/* confdefs.h. */
18462_ACEOF
18463cat confdefs.h >>conftest.$ac_ext
18464cat >>conftest.$ac_ext <<_ACEOF
18465/* end confdefs.h. */
18466
18467/* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18470#ifdef __cplusplus
18471extern "C"
18472#endif
18473char __fixdfdi ();
18474int
18475main ()
18476{
18477return __fixdfdi ();
18478 ;
18479 return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext conftest$ac_exeext
18483if { (ac_try="$ac_link"
18484case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($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_try") 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_lib_gcc___fixdfdi=yes
18517else
18518 echo "$as_me: failed program was:" >&5
18519sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 ac_cv_lib_gcc___fixdfdi=no
18522fi
18523
18524rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526LIBS=$ac_check_lib_save_LIBS
18527fi
18528{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18529echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18530if test $ac_cv_lib_gcc___fixdfdi = yes; then
18531
18532cat >>confdefs.h <<\_ACEOF
18533#define HAVE___FIXDFDI 1
18534_ACEOF
18535
18536fi
18537
18538 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18539echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18540if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18542else
18543 ac_check_lib_save_LIBS=$LIBS
18544LIBS="-lgcc $LIBS"
18545cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551
18552/* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555#ifdef __cplusplus
18556extern "C"
18557#endif
18558char __fixsfdi ();
18559int
18560main ()
18561{
18562return __fixsfdi ();
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext conftest$ac_exeext
18568if { (ac_try="$ac_link"
18569case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572esac
18573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (case "(($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_try") 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_gcc___fixsfdi=yes
18602else
18603 echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_cv_lib_gcc___fixsfdi=no
18607fi
18608
18609rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18611LIBS=$ac_check_lib_save_LIBS
18612fi
18613{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18614echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18615if test $ac_cv_lib_gcc___fixsfdi = yes; then
18616
18617cat >>confdefs.h <<\_ACEOF
18618#define HAVE___FIXSFDI 1
18619_ACEOF
18620
18621fi
18622
18623 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18624echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18625if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627else
18628 ac_check_lib_save_LIBS=$LIBS
18629LIBS="-lgcc $LIBS"
18630cat >conftest.$ac_ext <<_ACEOF
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
18635/* end confdefs.h. */
18636
18637/* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18640#ifdef __cplusplus
18641extern "C"
18642#endif
18643char __floatdidf ();
18644int
18645main ()
18646{
18647return __floatdidf ();
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext conftest$ac_exeext
18653if { (ac_try="$ac_link"
18654case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670esac
18671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($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_try") 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 ac_cv_lib_gcc___floatdidf=yes
18687else
18688 echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691 ac_cv_lib_gcc___floatdidf=no
18692fi
18693
18694rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696LIBS=$ac_check_lib_save_LIBS
18697fi
18698{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18699echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18700if test $ac_cv_lib_gcc___floatdidf = yes; then
18701
18702cat >>confdefs.h <<\_ACEOF
18703#define HAVE___FLOATDIDF 1
18704_ACEOF
18705
18706fi
18707
18708 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18709echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18710if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712else
18713 ac_check_lib_save_LIBS=$LIBS
18714LIBS="-lgcc $LIBS"
18715cat >conftest.$ac_ext <<_ACEOF
18716/* confdefs.h. */
18717_ACEOF
18718cat confdefs.h >>conftest.$ac_ext
18719cat >>conftest.$ac_ext <<_ACEOF
18720/* end confdefs.h. */
18721
18722/* Override any GCC internal prototype to avoid an error.
18723 Use char because int might match the return type of a GCC
18724 builtin and then its argument prototype would still apply. */
18725#ifdef __cplusplus
18726extern "C"
18727#endif
18728char __lshrdi3 ();
18729int
18730main ()
18731{
18732return __lshrdi3 ();
18733 ;
18734 return 0;
18735}
18736_ACEOF
18737rm -f conftest.$ac_objext conftest$ac_exeext
18738if { (ac_try="$ac_link"
18739case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755esac
18756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($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_try") 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_lib_gcc___lshrdi3=yes
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_lib_gcc___lshrdi3=no
18777fi
18778
18779rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781LIBS=$ac_check_lib_save_LIBS
18782fi
18783{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18784echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18785if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18786
18787cat >>confdefs.h <<\_ACEOF
18788#define HAVE___LSHRDI3 1
18789_ACEOF
18790
18791fi
18792
18793 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18794echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18795if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797else
18798 ac_check_lib_save_LIBS=$LIBS
18799LIBS="-lgcc $LIBS"
18800cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806
18807/* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810#ifdef __cplusplus
18811extern "C"
18812#endif
18813char __moddi3 ();
18814int
18815main ()
18816{
18817return __moddi3 ();
18818 ;
18819 return 0;
18820}
18821_ACEOF
18822rm -f conftest.$ac_objext conftest$ac_exeext
18823if { (ac_try="$ac_link"
18824case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827esac
18828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18840esac
18841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (case "(($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_try") 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_gcc___moddi3=yes
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861 ac_cv_lib_gcc___moddi3=no
18862fi
18863
18864rm -f core conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
18866LIBS=$ac_check_lib_save_LIBS
18867fi
18868{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18869echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18870if test $ac_cv_lib_gcc___moddi3 = yes; then
18871
18872cat >>confdefs.h <<\_ACEOF
18873#define HAVE___MODDI3 1
18874_ACEOF
18875
18876fi
18877
18878 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18879echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18880if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882else
18883 ac_check_lib_save_LIBS=$LIBS
18884LIBS="-lgcc $LIBS"
18885cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
18891
18892/* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18895#ifdef __cplusplus
18896extern "C"
18897#endif
18898char __udivdi3 ();
18899int
18900main ()
18901{
18902return __udivdi3 ();
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907rm -f conftest.$ac_objext conftest$ac_exeext
18908if { (ac_try="$ac_link"
18909case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18912esac
18913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_link") 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (case "(($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_try") 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_lib_gcc___udivdi3=yes
18942else
18943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_lib_gcc___udivdi3=no
18947fi
18948
18949rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951LIBS=$ac_check_lib_save_LIBS
18952fi
18953{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18954echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18955if test $ac_cv_lib_gcc___udivdi3 = yes; then
18956
18957cat >>confdefs.h <<\_ACEOF
18958#define HAVE___UDIVDI3 1
18959_ACEOF
18960
18961fi
18962
18963 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18964echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18965if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967else
18968 ac_check_lib_save_LIBS=$LIBS
18969LIBS="-lgcc $LIBS"
18970cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976
18977/* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18980#ifdef __cplusplus
18981extern "C"
18982#endif
18983char __umoddi3 ();
18984int
18985main ()
18986{
18987return __umoddi3 ();
18988 ;
18989 return 0;
18990}
18991_ACEOF
18992rm -f conftest.$ac_objext conftest$ac_exeext
18993if { (ac_try="$ac_link"
18994case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997esac
18998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007 { (case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010esac
19011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_try") 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest$ac_exeext'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020esac
19021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_cv_lib_gcc___umoddi3=yes
19027else
19028 echo "$as_me: failed program was:" >&5
19029sed 's/^/| /' conftest.$ac_ext >&5
19030
19031 ac_cv_lib_gcc___umoddi3=no
19032fi
19033
19034rm -f core conftest.err conftest.$ac_objext \
19035 conftest$ac_exeext conftest.$ac_ext
19036LIBS=$ac_check_lib_save_LIBS
19037fi
19038{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19039echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19040if test $ac_cv_lib_gcc___umoddi3 = yes; then
19041
19042cat >>confdefs.h <<\_ACEOF
19043#define HAVE___UMODDI3 1
19044_ACEOF
19045
19046fi
19047
19048
19049 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19050echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19051if test "${ac_cv_lib_gcc___main+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053else
19054 ac_check_lib_save_LIBS=$LIBS
19055LIBS="-lgcc $LIBS"
19056cat >conftest.$ac_ext <<_ACEOF
19057/* confdefs.h. */
19058_ACEOF
19059cat confdefs.h >>conftest.$ac_ext
19060cat >>conftest.$ac_ext <<_ACEOF
19061/* end confdefs.h. */
19062
19063/* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19066#ifdef __cplusplus
19067extern "C"
19068#endif
19069char __main ();
19070int
19071main ()
19072{
19073return __main ();
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext conftest$ac_exeext
19079if { (ac_try="$ac_link"
19080case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_link") 2>conftest.er1
19086 ac_status=$?
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest$ac_exeext'
19103 { (case "(($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_try") 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_cv_lib_gcc___main=yes
19113else
19114 echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ac_cv_lib_gcc___main=no
19118fi
19119
19120rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122LIBS=$ac_check_lib_save_LIBS
19123fi
19124{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19125echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19126if test $ac_cv_lib_gcc___main = yes; then
19127
19128cat >>confdefs.h <<\_ACEOF
19129#define HAVE___MAIN 1
19130_ACEOF
19131
19132fi
19133
19134 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19135echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19136if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138else
19139 ac_check_lib_save_LIBS=$LIBS
19140LIBS="-lgcc $LIBS"
19141cat >conftest.$ac_ext <<_ACEOF
19142/* confdefs.h. */
19143_ACEOF
19144cat confdefs.h >>conftest.$ac_ext
19145cat >>conftest.$ac_ext <<_ACEOF
19146/* end confdefs.h. */
19147
19148/* Override any GCC internal prototype to avoid an error.
19149 Use char because int might match the return type of a GCC
19150 builtin and then its argument prototype would still apply. */
19151#ifdef __cplusplus
19152extern "C"
19153#endif
19154char __cmpdi2 ();
19155int
19156main ()
19157{
19158return __cmpdi2 ();
19159 ;
19160 return 0;
19161}
19162_ACEOF
19163rm -f conftest.$ac_objext conftest$ac_exeext
19164if { (ac_try="$ac_link"
19165case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_link") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest$ac_exeext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191esac
19192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_lib_gcc___cmpdi2=yes
19198else
19199 echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 ac_cv_lib_gcc___cmpdi2=no
19203fi
19204
19205rm -f core conftest.err conftest.$ac_objext \
19206 conftest$ac_exeext conftest.$ac_ext
19207LIBS=$ac_check_lib_save_LIBS
19208fi
19209{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19210echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19211if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19212
19213cat >>confdefs.h <<\_ACEOF
19214#define HAVE___CMPDI2 1
19215_ACEOF
19216
19217fi
19218
19219fi
19220
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019221if test "$llvm_cv_os_type" = "MingW" ; then
19222 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19223echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19224 cat >conftest.$ac_ext <<_ACEOF
19225#include <windows.h>
19226#include <imagehlp.h>
19227extern void foo(PENUMLOADED_MODULES_CALLBACK);
19228extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (ac_try="$ac_compile"
19232case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19235esac
19236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_compile") 2>conftest.er1
19238 ac_status=$?
19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
19244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248esac
19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (case "(($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_try") 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264
19265 { echo "$as_me:$LINENO: result: yes" >&5
19266echo "${ECHO_T}yes" >&6; }
19267 llvm_cv_win32_elmcb_pcstr="PCSTR"
19268
19269else
19270 echo "$as_me: failed program was:" >&5
19271sed 's/^/| /' conftest.$ac_ext >&5
19272
19273
19274 { echo "$as_me:$LINENO: result: no" >&5
19275echo "${ECHO_T}no" >&6; }
19276 llvm_cv_win32_elmcb_pcstr="PSTR"
19277
19278fi
19279
19280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281
19282cat >>confdefs.h <<_ACEOF
19283#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19284_ACEOF
19285
19286fi
19287
Torok Edwin871384f2010-01-26 08:50:50 +000019288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019289{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19290echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19291if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019293else
Reid Spencera773bd52006-08-04 18:18:08 +000019294 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019295ac_cpp='$CXXCPP $CPPFLAGS'
19296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019300 cat >conftest.$ac_ext <<_ACEOF
19301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019305/* end confdefs.h. */
19306#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019307int
19308main ()
19309{
19310float f; isnan(f);
19311 ;
19312 return 0;
19313}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019314_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019315rm -f conftest.$ac_objext
19316if { (ac_try="$ac_compile"
19317case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320esac
19321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19323 ac_status=$?
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330 { (case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19333esac
19334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_try") 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
19340 { (case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343esac
19344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_try") 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019349 ac_cv_func_isnan_in_math_h=yes
19350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019351 echo "$as_me: failed program was:" >&5
19352sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019356
Reid Spencera773bd52006-08-04 18:18:08 +000019357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019358 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019359ac_cpp='$CPP $CPPFLAGS'
19360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362ac_compiler_gnu=$ac_cv_c_compiler_gnu
19363
19364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019365{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19366echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019367
19368
19369if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019371cat >>confdefs.h <<\_ACEOF
19372#define HAVE_ISNAN_IN_MATH_H 1
19373_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019374
Reid Spencerabec8f92004-10-27 23:03:44 +000019375fi
19376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19378echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19379if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019381else
Reid Spencera773bd52006-08-04 18:18:08 +000019382 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019383ac_cpp='$CXXCPP $CPPFLAGS'
19384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019388 cat >conftest.$ac_ext <<_ACEOF
19389/* confdefs.h. */
19390_ACEOF
19391cat confdefs.h >>conftest.$ac_ext
19392cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019393/* end confdefs.h. */
19394#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019395int
19396main ()
19397{
19398float f; isnan(f);
19399 ;
19400 return 0;
19401}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019402_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019403rm -f conftest.$ac_objext
19404if { (ac_try="$ac_compile"
19405case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408esac
19409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
19417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19418 { (case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19421esac
19422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_try") 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431esac
19432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019437 ac_cv_func_isnan_in_cmath=yes
19438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019439 echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019444
Reid Spencera773bd52006-08-04 18:18:08 +000019445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019446 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019447ac_cpp='$CPP $CPPFLAGS'
19448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450ac_compiler_gnu=$ac_cv_c_compiler_gnu
19451
19452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019453{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19454echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019455
19456if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019458cat >>confdefs.h <<\_ACEOF
19459#define HAVE_ISNAN_IN_CMATH 1
19460_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019461
Reid Spencerabec8f92004-10-27 23:03:44 +000019462fi
19463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19465echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19466if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019468else
Reid Spencera773bd52006-08-04 18:18:08 +000019469 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019470ac_cpp='$CXXCPP $CPPFLAGS'
19471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475 cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019480/* end confdefs.h. */
19481#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019482int
19483main ()
19484{
19485float f; std::isnan(f);
19486 ;
19487 return 0;
19488}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019489_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019490rm -f conftest.$ac_objext
19491if { (ac_try="$ac_compile"
19492case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495esac
19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508esac
19509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019524 ac_cv_func_std_isnan_in_cmath=yes
19525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019526 echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019531
Reid Spencera773bd52006-08-04 18:18:08 +000019532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019533 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019534ac_cpp='$CPP $CPPFLAGS'
19535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537ac_compiler_gnu=$ac_cv_c_compiler_gnu
19538
19539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19541echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019542
19543if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019545cat >>confdefs.h <<\_ACEOF
19546#define HAVE_STD_ISNAN_IN_CMATH 1
19547_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019548
Reid Spencerabec8f92004-10-27 23:03:44 +000019549fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019550
19551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019552{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19553echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19554if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019556else
Reid Spencera773bd52006-08-04 18:18:08 +000019557 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019558ac_cpp='$CXXCPP $CPPFLAGS'
19559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019563 cat >conftest.$ac_ext <<_ACEOF
19564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019568/* end confdefs.h. */
19569#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019570int
19571main ()
19572{
19573float f; isinf(f);
19574 ;
19575 return 0;
19576}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019578rm -f conftest.$ac_objext
19579if { (ac_try="$ac_compile"
19580case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_compile") 2>conftest.er1
19586 ac_status=$?
19587 grep -v '^ *+' conftest.er1 >conftest.err
19588 rm -f conftest.er1
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019612 ac_cv_func_isinf_in_math_h=yes
19613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619
Reid Spencera773bd52006-08-04 18:18:08 +000019620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019621 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019622ac_cpp='$CPP $CPPFLAGS'
19623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625ac_compiler_gnu=$ac_cv_c_compiler_gnu
19626
19627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19629echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019630
19631if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019633cat >>confdefs.h <<\_ACEOF
19634#define HAVE_ISINF_IN_MATH_H 1
19635_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019636
Reid Spencerabec8f92004-10-27 23:03:44 +000019637fi
19638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019639{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19640echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19641if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019643else
Reid Spencera773bd52006-08-04 18:18:08 +000019644 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019645ac_cpp='$CXXCPP $CPPFLAGS'
19646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650 cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019655/* end confdefs.h. */
19656#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019657int
19658main ()
19659{
19660float f; isinf(f);
19661 ;
19662 return 0;
19663}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019664_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019665rm -f conftest.$ac_objext
19666if { (ac_try="$ac_compile"
19667case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670esac
19671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19680 { (case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683esac
19684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_try") 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019699 ac_cv_func_isinf_in_cmath=yes
19700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019701 echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
19704 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706
Reid Spencera773bd52006-08-04 18:18:08 +000019707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019708 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019709ac_cpp='$CPP $CPPFLAGS'
19710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712ac_compiler_gnu=$ac_cv_c_compiler_gnu
19713
19714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19716echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019717
19718if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019720cat >>confdefs.h <<\_ACEOF
19721#define HAVE_ISINF_IN_CMATH 1
19722_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019723
Reid Spencerabec8f92004-10-27 23:03:44 +000019724fi
19725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019726{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19727echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19728if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019730else
Reid Spencera773bd52006-08-04 18:18:08 +000019731 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019732ac_cpp='$CXXCPP $CPPFLAGS'
19733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737 cat >conftest.$ac_ext <<_ACEOF
19738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019742/* end confdefs.h. */
19743#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019744int
19745main ()
19746{
19747float f; std::isinf(f)}
19748 ;
19749 return 0;
19750}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019752rm -f conftest.$ac_objext
19753if { (ac_try="$ac_compile"
19754case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757esac
19758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19767 { (case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19770esac
19771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_try") 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest.$ac_objext'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780esac
19781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019786 ac_cv_func_std_isinf_in_cmath=yes
19787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019788 echo "$as_me: failed program was:" >&5
19789sed 's/^/| /' conftest.$ac_ext >&5
19790
19791 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019793
Reid Spencera773bd52006-08-04 18:18:08 +000019794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019795 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019796ac_cpp='$CPP $CPPFLAGS'
19797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800
19801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019802{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19803echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019804
19805if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019807cat >>confdefs.h <<\_ACEOF
19808#define HAVE_STD_ISINF_IN_CMATH 1
19809_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019810
Reid Spencerabec8f92004-10-27 23:03:44 +000019811fi
19812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019813{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19814echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19815if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019817else
Reid Spencera773bd52006-08-04 18:18:08 +000019818 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019819ac_cpp='$CXXCPP $CPPFLAGS'
19820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824 cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h. */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019829/* end confdefs.h. */
19830#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019831int
19832main ()
19833{
19834float f; finite(f);
19835 ;
19836 return 0;
19837}
Brian Gaeked59a6472004-07-21 03:33:58 +000019838_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019839rm -f conftest.$ac_objext
19840if { (ac_try="$ac_compile"
19841case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19844esac
19845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_compile") 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857esac
19858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019873 ac_cv_func_finite_in_ieeefp_h=yes
19874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019875 echo "$as_me: failed program was:" >&5
19876sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019880
Reid Spencera773bd52006-08-04 18:18:08 +000019881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019882 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019883ac_cpp='$CPP $CPPFLAGS'
19884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19886ac_compiler_gnu=$ac_cv_c_compiler_gnu
19887
19888fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019889{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19890echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019891
Brian Gaeke6802b552004-10-28 05:06:45 +000019892if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019894cat >>confdefs.h <<\_ACEOF
19895#define HAVE_FINITE_IN_IEEEFP_H 1
19896_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019897
Reid Spencerabec8f92004-10-27 23:03:44 +000019898fi
19899
19900
19901
Reid Spencer30fe5262007-01-20 07:48:49 +000019902if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019903
19904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905for ac_header in stdlib.h unistd.h
19906do
19907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913fi
19914ac_res=`eval echo '${'$as_ac_Header'}'`
19915 { echo "$as_me:$LINENO: result: $ac_res" >&5
19916echo "${ECHO_T}$ac_res" >&6; }
19917else
19918 # Is the header compilable?
19919{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
19927$ac_includes_default
19928#include <$ac_header>
19929_ACEOF
19930rm -f conftest.$ac_objext
19931if { (ac_try="$ac_compile"
19932case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935esac
19936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948esac
19949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } &&
19954 { ac_try='test -s conftest.$ac_objext'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19958esac
19959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_try") 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19964 ac_header_compiler=yes
19965else
19966 echo "$as_me: failed program was:" >&5
19967sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019969 ac_header_compiler=no
19970fi
19971
19972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19974echo "${ECHO_T}$ac_header_compiler" >&6; }
19975
19976# Is the header present?
19977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19979cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
19985#include <$ac_header>
19986_ACEOF
19987if { (ac_try="$ac_cpp conftest.$ac_ext"
19988case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991esac
19992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } >/dev/null; then
20000 if test -s conftest.err; then
20001 ac_cpp_err=$ac_c_preproc_warn_flag
20002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20003 else
20004 ac_cpp_err=
20005 fi
20006else
20007 ac_cpp_err=yes
20008fi
20009if test -z "$ac_cpp_err"; then
20010 ac_header_preproc=yes
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_header_preproc=no
20016fi
20017
20018rm -f conftest.err conftest.$ac_ext
20019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20020echo "${ECHO_T}$ac_header_preproc" >&6; }
20021
20022# So? What about this header?
20023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20024 yes:no: )
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20029 ac_header_preproc=yes
20030 ;;
20031 no:yes:* )
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20044 ( cat <<\_ASBOX
20045## ----------------------------------- ##
20046## Report this to llvmbugs@cs.uiuc.edu ##
20047## ----------------------------------- ##
20048_ASBOX
20049 ) | sed "s/^/$as_me: WARNING: /" >&2
20050 ;;
20051esac
20052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057 eval "$as_ac_Header=\$ac_header_preproc"
20058fi
20059ac_res=`eval echo '${'$as_ac_Header'}'`
20060 { echo "$as_me:$LINENO: result: $ac_res" >&5
20061echo "${ECHO_T}$ac_res" >&6; }
20062
20063fi
20064if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020065 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020067_ACEOF
20068
20069fi
20070
20071done
20072
20073
20074for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020075do
20076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20077{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081else
20082 cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
20088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20090#define $ac_func innocuous_$ac_func
20091
20092/* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char $ac_func (); below.
20094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20095 <limits.h> exists even on freestanding compilers. */
20096
20097#ifdef __STDC__
20098# include <limits.h>
20099#else
20100# include <assert.h>
20101#endif
20102
20103#undef $ac_func
20104
20105/* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20108#ifdef __cplusplus
20109extern "C"
20110#endif
20111char $ac_func ();
20112/* The GNU C library defines this for functions which it implements
20113 to always fail with ENOSYS. Some functions are actually named
20114 something starting with __ and the normal name is an alias. */
20115#if defined __stub_$ac_func || defined __stub___$ac_func
20116choke me
20117#endif
20118
20119int
20120main ()
20121{
20122return $ac_func ();
20123 ;
20124 return 0;
20125}
20126_ACEOF
20127rm -f conftest.$ac_objext conftest$ac_exeext
20128if { (ac_try="$ac_link"
20129case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145esac
20146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155esac
20156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 eval "$as_ac_var=yes"
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 eval "$as_ac_var=no"
20167fi
20168
20169rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171fi
20172ac_res=`eval echo '${'$as_ac_var'}'`
20173 { echo "$as_me:$LINENO: result: $ac_res" >&5
20174echo "${ECHO_T}$ac_res" >&6; }
20175if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020176 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020178_ACEOF
20179
20180fi
20181done
20182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183{ echo "$as_me:$LINENO: checking for working mmap" >&5
20184echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20185if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020189 ac_cv_func_mmap_fixed_mapped=no
20190else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020196/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020197$ac_includes_default
20198/* malloc might have been renamed as rpl_malloc. */
20199#undef malloc
20200
20201/* Thanks to Mike Haertel and Jim Avera for this test.
20202 Here is a matrix of mmap possibilities:
20203 mmap private not fixed
20204 mmap private fixed at somewhere currently unmapped
20205 mmap private fixed at somewhere already mapped
20206 mmap shared not fixed
20207 mmap shared fixed at somewhere currently unmapped
20208 mmap shared fixed at somewhere already mapped
20209 For private mappings, we should verify that changes cannot be read()
20210 back from the file, nor mmap's back from the file at a different
20211 address. (There have been systems where private was not correctly
20212 implemented like the infamous i386 svr4.0, and systems where the
20213 VM page cache was not coherent with the file system buffer cache
20214 like early versions of FreeBSD and possibly contemporary NetBSD.)
20215 For shared mappings, we should conversely verify that changes get
20216 propagated back to all the places they're supposed to be.
20217
20218 Grep wants private fixed already mapped.
20219 The main things grep needs to know about mmap are:
20220 * does it exist and is it safe to write into the mmap'd area
20221 * how to use it (BSD variants) */
20222
20223#include <fcntl.h>
20224#include <sys/mman.h>
20225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020227char *malloc ();
20228#endif
20229
20230/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231#if !HAVE_GETPAGESIZE
20232/* Assume that all systems that can run configure have sys/param.h. */
20233# if !HAVE_SYS_PARAM_H
20234# define HAVE_SYS_PARAM_H 1
20235# endif
20236
John Criswell7a73b802003-06-30 21:59:07 +000020237# ifdef _SC_PAGESIZE
20238# define getpagesize() sysconf(_SC_PAGESIZE)
20239# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020240# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020241# include <sys/param.h>
20242# ifdef EXEC_PAGESIZE
20243# define getpagesize() EXEC_PAGESIZE
20244# else /* no EXEC_PAGESIZE */
20245# ifdef NBPG
20246# define getpagesize() NBPG * CLSIZE
20247# ifndef CLSIZE
20248# define CLSIZE 1
20249# endif /* no CLSIZE */
20250# else /* no NBPG */
20251# ifdef NBPC
20252# define getpagesize() NBPC
20253# else /* no NBPC */
20254# ifdef PAGESIZE
20255# define getpagesize() PAGESIZE
20256# endif /* PAGESIZE */
20257# endif /* no NBPC */
20258# endif /* no NBPG */
20259# endif /* no EXEC_PAGESIZE */
20260# else /* no HAVE_SYS_PARAM_H */
20261# define getpagesize() 8192 /* punt totally */
20262# endif /* no HAVE_SYS_PARAM_H */
20263# endif /* no _SC_PAGESIZE */
20264
20265#endif /* no HAVE_GETPAGESIZE */
20266
20267int
20268main ()
20269{
20270 char *data, *data2, *data3;
20271 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020272 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020273
20274 pagesize = getpagesize ();
20275
20276 /* First, make a file with some known garbage in it. */
20277 data = (char *) malloc (pagesize);
20278 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020279 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020280 for (i = 0; i < pagesize; ++i)
20281 *(data + i) = rand ();
20282 umask (0);
20283 fd = creat ("conftest.mmap", 0600);
20284 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020285 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020286 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020287 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020288 close (fd);
20289
20290 /* Next, try to mmap the file at a fixed address which already has
20291 something else allocated at it. If we can, also make sure that
20292 we see the same garbage. */
20293 fd = open ("conftest.mmap", O_RDWR);
20294 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020295 return 1;
20296 data2 = (char *) malloc (2 * pagesize);
20297 if (!data2)
20298 return 1;
20299 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020300 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020301 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020303 for (i = 0; i < pagesize; ++i)
20304 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020305 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020306
20307 /* Finally, make sure that changes to the mapped area do not
20308 percolate back to the file as seen by read(). (This is a bug on
20309 some variants of i386 svr4.0.) */
20310 for (i = 0; i < pagesize; ++i)
20311 *(data2 + i) = *(data2 + i) + 1;
20312 data3 = (char *) malloc (pagesize);
20313 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020314 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020315 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020316 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020317 for (i = 0; i < pagesize; ++i)
20318 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020319 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020320 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020321 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020322}
20323_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020324rm -f conftest$ac_exeext
20325if { (ac_try="$ac_link"
20326case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329esac
20330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20335 { (case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338esac
20339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020344 ac_cv_func_mmap_fixed_mapped=yes
20345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346 echo "$as_me: program exited with status $ac_status" >&5
20347echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350( exit $ac_status )
20351ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020353rm -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 +000020354fi
Reid Spencera773bd52006-08-04 18:18:08 +000020355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020356
John Criswell7a73b802003-06-30 21:59:07 +000020357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020358{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20359echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020360if test $ac_cv_func_mmap_fixed_mapped = yes; then
20361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362cat >>confdefs.h <<\_ACEOF
20363#define HAVE_MMAP 1
20364_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020365
20366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20370echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20371if test "${ac_cv_func_mmap_file+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020373else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020374 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020375ac_cpp='$CPP $CPPFLAGS'
20376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020381 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020383 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385 /* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020390
John Criswell7a73b802003-06-30 21:59:07 +000020391#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020392#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020393#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020394
20395int
20396main ()
20397{
John Criswell7a73b802003-06-30 21:59:07 +000020398
20399 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020400 fd = creat ("foo",0777);
20401 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20402 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020403 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020404 ;
20405 return 0;
20406}
John Criswell7a73b802003-06-30 21:59:07 +000020407_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020408rm -f conftest$ac_exeext
20409if { (ac_try="$ac_link"
20410case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413esac
20414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20419 { (case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422esac
20423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_try") 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020428 ac_cv_func_mmap_file=yes
20429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020430 echo "$as_me: program exited with status $ac_status" >&5
20431echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434( exit $ac_status )
20435ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020437rm -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 +000020438fi
Reid Spencera773bd52006-08-04 18:18:08 +000020439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020440
John Criswell7a73b802003-06-30 21:59:07 +000020441 ac_ext=c
20442ac_cpp='$CPP $CPPFLAGS'
20443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445ac_compiler_gnu=$ac_cv_c_compiler_gnu
20446
20447
20448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20450echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020451if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453cat >>confdefs.h <<\_ACEOF
20454#define HAVE_MMAP_FILE
20455_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020456
20457 MMAP_FILE=yes
20458
20459fi
20460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20462echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20463if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020465else
Reid Spencer582a23c2004-12-29 07:07:57 +000020466 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020467 ac_cv_need_dev_zero_for_mmap=yes
20468 else
20469 ac_cv_need_dev_zero_for_mmap=no
20470 fi
20471
20472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020473{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20474echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020475if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477cat >>confdefs.h <<\_ACEOF
20478#define NEED_DEV_ZERO_FOR_MMAP 1
20479_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020480
20481fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020482
Reid Spencer30fe5262007-01-20 07:48:49 +000020483 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20484 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20486echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020487 fi
20488 if test "$ac_cv_func_mmap_file" = "no"
20489 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020490 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20491echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020492 fi
John Criswellb13092b2003-07-22 21:00:24 +000020493fi
John Criswell7a73b802003-06-30 21:59:07 +000020494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020495{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20496echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020497ac_ext=cpp
20498ac_cpp='$CXXCPP $CPPFLAGS'
20499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503cat >conftest.$ac_ext <<_ACEOF
20504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020508/* end confdefs.h. */
20509int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020510 volatile unsigned long val = 1;
20511 __sync_synchronize();
20512 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020513 __sync_add_and_fetch(&val, 1);
20514 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020515 return 0;
20516 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020517
20518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020519rm -f conftest.$ac_objext conftest$ac_exeext
20520if { (ac_try="$ac_link"
20521case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524esac
20525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_link") 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537esac
20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest$ac_exeext'
20544 { (case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20547esac
20548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_try") 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020553 ac_ext=c
20554ac_cpp='$CPP $CPPFLAGS'
20555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559 { echo "$as_me:$LINENO: result: yes" >&5
20560echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020563#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020564_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020565
Owen Andersond4b272b2009-05-18 23:58:51 +000020566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567 echo "$as_me: failed program was:" >&5
20568sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570 { echo "$as_me:$LINENO: result: no" >&5
20571echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020574#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575_ACEOF
20576
20577 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20578echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020580
Owen Andersond4b272b2009-05-18 23:58:51 +000020581rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020582 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020583
John Criswell7a73b802003-06-30 21:59:07 +000020584
Nick Lewycky4372e692009-09-29 06:18:23 +000020585if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20587echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20588if test "${llvm_cv_linux_mixed+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020590else
20591 ac_ext=c
20592ac_cpp='$CPP $CPPFLAGS'
20593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595ac_compiler_gnu=$ac_cv_c_compiler_gnu
20596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597 cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020602/* end confdefs.h. */
20603#ifndef __x86_64__
20604 error: Not x86-64 even if uname says so!
20605 #endif
20606
20607int
20608main ()
20609{
20610
20611 ;
20612 return 0;
20613}
20614_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615rm -f conftest.$ac_objext
20616if { (ac_try="$ac_compile"
20617case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620esac
20621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_compile") 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630 { (case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633esac
20634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_try") 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest.$ac_objext'
20640 { (case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643esac
20644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_try") 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020649 llvm_cv_linux_mixed=no
20650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020651 echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656
Nick Lewycky4372e692009-09-29 06:18:23 +000020657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 ac_ext=c
20659ac_cpp='$CPP $CPPFLAGS'
20660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662ac_compiler_gnu=$ac_cv_c_compiler_gnu
20663
20664
20665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20667echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020668
20669 if test "$llvm_cv_linux_mixed" = "yes"; then
20670 llvm_cv_target_arch="x86"
20671 ARCH="x86"
20672 fi
20673fi
20674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020675
Reid Spencer9372f152007-07-30 20:13:24 +000020676for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677do
20678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683else
20684 cat >conftest.$ac_ext <<_ACEOF
20685/* confdefs.h. */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h. */
20690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20692#define $ac_func innocuous_$ac_func
20693
20694/* System header to define __stub macros and hopefully few prototypes,
20695 which can conflict with char $ac_func (); below.
20696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20697 <limits.h> exists even on freestanding compilers. */
20698
20699#ifdef __STDC__
20700# include <limits.h>
20701#else
20702# include <assert.h>
20703#endif
20704
20705#undef $ac_func
20706
20707/* Override any GCC internal prototype to avoid an error.
20708 Use char because int might match the return type of a GCC
20709 builtin and then its argument prototype would still apply. */
20710#ifdef __cplusplus
20711extern "C"
20712#endif
20713char $ac_func ();
20714/* The GNU C library defines this for functions which it implements
20715 to always fail with ENOSYS. Some functions are actually named
20716 something starting with __ and the normal name is an alias. */
20717#if defined __stub_$ac_func || defined __stub___$ac_func
20718choke me
20719#endif
20720
20721int
20722main ()
20723{
20724return $ac_func ();
20725 ;
20726 return 0;
20727}
20728_ACEOF
20729rm -f conftest.$ac_objext conftest$ac_exeext
20730if { (ac_try="$ac_link"
20731case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734esac
20735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_link") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747esac
20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest$ac_exeext'
20754 { (case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20757esac
20758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_try") 2>&5
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 eval "$as_ac_var=yes"
20764else
20765 echo "$as_me: failed program was:" >&5
20766sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 eval "$as_ac_var=no"
20769fi
20770
20771rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20773fi
20774ac_res=`eval echo '${'$as_ac_var'}'`
20775 { echo "$as_me:$LINENO: result: $ac_res" >&5
20776echo "${ECHO_T}$ac_res" >&6; }
20777if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020778 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020780_ACEOF
20781
20782fi
20783done
20784
20785
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020786SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020787
20788
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020789SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20790
20791
Reid Spencere9de0912004-08-20 09:03:57 +000020792# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020793# information into substitutions that will end up in Makefile.config.in
20794# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020795if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020796 prefix="/usr/local"
20797fi
Reid Spencere9de0912004-08-20 09:03:57 +000020798eval LLVM_PREFIX="${prefix}";
20799eval LLVM_BINDIR="${prefix}/bin";
20800eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020801eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020802eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020803eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020804eval LLVM_INCLUDEDIR="${prefix}/include";
20805eval LLVM_INFODIR="${prefix}/info";
20806eval LLVM_MANDIR="${prefix}/man";
20807LLVM_CONFIGTIME=`date`
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020819# Place the various directores into the config.h file as #defines so that we
20820# can know about the installation paths within LLVM.
20821
Reid Spencere9de0912004-08-20 09:03:57 +000020822cat >>confdefs.h <<_ACEOF
20823#define LLVM_PREFIX "$LLVM_PREFIX"
20824_ACEOF
20825
20826
20827cat >>confdefs.h <<_ACEOF
20828#define LLVM_BINDIR "$LLVM_BINDIR"
20829_ACEOF
20830
20831
20832cat >>confdefs.h <<_ACEOF
20833#define LLVM_LIBDIR "$LLVM_LIBDIR"
20834_ACEOF
20835
20836
20837cat >>confdefs.h <<_ACEOF
20838#define LLVM_DATADIR "$LLVM_DATADIR"
20839_ACEOF
20840
20841
20842cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020843#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020844_ACEOF
20845
20846
20847cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020848#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020849_ACEOF
20850
20851
20852cat >>confdefs.h <<_ACEOF
20853#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20854_ACEOF
20855
20856
20857cat >>confdefs.h <<_ACEOF
20858#define LLVM_INFODIR "$LLVM_INFODIR"
20859_ACEOF
20860
20861
20862cat >>confdefs.h <<_ACEOF
20863#define LLVM_MANDIR "$LLVM_MANDIR"
20864_ACEOF
20865
20866
20867cat >>confdefs.h <<_ACEOF
20868#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20869_ACEOF
20870
20871
Eric Christopher790e11c2007-12-01 00:34:39 +000020872cat >>confdefs.h <<_ACEOF
20873#define LLVM_HOSTTRIPLE "$host"
20874_ACEOF
20875
20876
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020877# Determine which bindings to build.
20878if test "$BINDINGS_TO_BUILD" = auto ; then
20879 BINDINGS_TO_BUILD=""
20880 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20881 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20882 fi
20883fi
20884BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20885
20886
20887# This isn't really configurey, but it avoids having to repeat the list in
20888# other files.
20889ALL_BINDINGS=ocaml
20890
20891
Gordon Henriksenf0915682007-10-02 16:42:22 +000020892# Do any work necessary to ensure that bindings have what they need.
20893binding_prereqs_failed=0
20894for a_binding in $BINDINGS_TO_BUILD ; do
20895 case "$a_binding" in
20896 ocaml)
20897 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20899echo "$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 +000020900 binding_prereqs_failed=1
20901 fi
20902 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20904echo "$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 +000020905 binding_prereqs_failed=1
20906 fi
20907 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020908 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20909echo "$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 +000020910 fi
20911 if test "x$with_ocaml_libdir" != xauto ; then
20912 OCAML_LIBDIR=$with_ocaml_libdir
20913
20914 else
20915 ocaml_stdlib="`"$OCAMLC" -where`"
20916 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20917 then
20918 # ocaml stdlib is beneath our prefix; use stdlib
20919 OCAML_LIBDIR=$ocaml_stdlib
20920
20921 else
20922 # ocaml stdlib is outside our prefix; use libdir/ocaml
20923 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20924
20925 fi
20926 fi
20927 ;;
20928 esac
20929done
20930if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020931 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20932echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20933 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020934fi
20935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020936{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20937echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20938if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020940else
20941 ac_ext=cpp
20942ac_cpp='$CXXCPP $CPPFLAGS'
20943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20946
20947 oldcxxflags="$CXXFLAGS"
20948 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949 cat >conftest.$ac_ext <<_ACEOF
20950/* confdefs.h. */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020954/* end confdefs.h. */
20955
20956int
20957main ()
20958{
20959
20960 ;
20961 return 0;
20962}
20963_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964rm -f conftest.$ac_objext
20965if { (ac_try="$ac_compile"
20966case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969esac
20970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20979 { (case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20982esac
20983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_try") 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest.$ac_objext'
20989 { (case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992esac
20993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_try") 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020998 llvm_cv_cxx_visibility_inlines_hidden=yes
20999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000 echo "$as_me: failed program was:" >&5
21001sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021005
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 CXXFLAGS="$oldcxxflags"
21008 ac_ext=c
21009ac_cpp='$CPP $CPPFLAGS'
21010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014
21015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021016{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21017echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021018if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21019 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21020
21021else
21022 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21023
21024fi
21025
Gordon Henriksenf0915682007-10-02 16:42:22 +000021026
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021027if test "$llvm_cv_link_use_r" = "yes" ; then
21028 RPATH="-Wl,-R"
21029else
21030 RPATH="-Wl,-rpath"
21031fi
21032
21033
21034if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21035 RDYNAMIC="-Wl,-export-dynamic"
21036else
21037 RDYNAMIC=""
21038fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021039
21040
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021041
Eric Christophera1cba682010-08-08 02:44:25 +000021042ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021043
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021044
21045
21046
21047
21048
Douglas Gregor1555a232009-06-16 20:12:29 +000021049ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21050
21051ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21052
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021053ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21054
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021055ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21056
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021057ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021058
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021059
Reid Spencera773bd52006-08-04 18:18:08 +000021060ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021061
Eric Christopher360fa9a2011-10-26 00:42:12 +000021062
Reid Spencerea949cf2006-08-16 00:45:38 +000021063ac_config_files="$ac_config_files llvm.spec"
21064
21065
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021066ac_config_files="$ac_config_files docs/doxygen.cfg"
21067
21068if test -f ${srcdir}/tools/clang/README.txt; then
21069 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21070
21071fi
21072
Reid Spencera773bd52006-08-04 18:18:08 +000021073ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021074
Eric Christopher360fa9a2011-10-26 00:42:12 +000021075
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021076ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021077
Eric Christopher360fa9a2011-10-26 00:42:12 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021080
Reid Spencera773bd52006-08-04 18:18:08 +000021081ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021082
21083
Reid Spencera773bd52006-08-04 18:18:08 +000021084ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021085
21086
Reid Spencera773bd52006-08-04 18:18:08 +000021087ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021088
21089
Reid Spencera773bd52006-08-04 18:18:08 +000021090ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021091
21092
Reid Spencer8b2e1412006-11-17 03:32:33 +000021093ac_config_commands="$ac_config_commands runtime/Makefile"
21094
21095
Reid Spencera773bd52006-08-04 18:18:08 +000021096ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021097
21098
Reid Spencera773bd52006-08-04 18:18:08 +000021099ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021100
21101
Bill Wendlingf24eb392009-01-04 23:12:30 +000021102ac_config_commands="$ac_config_commands unittests/Makefile"
21103
21104
Reid Spencera773bd52006-08-04 18:18:08 +000021105ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021106
21107
Reid Spencera773bd52006-08-04 18:18:08 +000021108ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021109
21110
Reid Spencera773bd52006-08-04 18:18:08 +000021111ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021112
21113
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021114ac_config_commands="$ac_config_commands bindings/Makefile"
21115
21116
21117ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21118
21119
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021120
John Criswell7a73b802003-06-30 21:59:07 +000021121cat >confcache <<\_ACEOF
21122# This file is a shell script that caches the results of configure
21123# tests run on this system so they can be shared between configure
21124# scripts and configure runs, see configure's option --config-cache.
21125# It is not useful on other systems. If it contains results you don't
21126# want to keep, you may remove or edit it.
21127#
21128# config.status only pays attention to the cache file if you give it
21129# the --recheck option to rerun configure.
21130#
John Criswell0c38eaf2003-09-10 15:17:25 +000021131# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021132# loading this file, other *unset* `ac_cv_foo' will be assigned the
21133# following values.
21134
21135_ACEOF
21136
21137# The following way of writing the cache mishandles newlines in values,
21138# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021139# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021140# Ultrix sh set writes to stderr and can't be redirected directly,
21141# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021142(
21143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21144 eval ac_val=\$$ac_var
21145 case $ac_val in #(
21146 *${as_nl}*)
21147 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21149echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021150 esac
21151 case $ac_var in #(
21152 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021153 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021154 esac ;;
21155 esac
21156 done
21157
John Criswell7a73b802003-06-30 21:59:07 +000021158 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21160 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 # `set' does not quote correctly, so add quotes (double-quote
21162 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021163 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 "s/'/'\\\\''/g;
21165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021166 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021167 *)
21168 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021171 esac |
21172 sort
21173) |
John Criswell7a73b802003-06-30 21:59:07 +000021174 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021175 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021176 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021177 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21179 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21181 :end' >>confcache
21182if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21183 if test -w "$cache_file"; then
21184 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21186echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021187 cat confcache >$cache_file
21188 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21190echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021191 fi
21192fi
21193rm -f confcache
21194
21195test "x$prefix" = xNONE && prefix=$ac_default_prefix
21196# Let make expand exec_prefix.
21197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21198
John Criswell7a73b802003-06-30 21:59:07 +000021199DEFS=-DHAVE_CONFIG_H
21200
John Criswell0c38eaf2003-09-10 15:17:25 +000021201ac_libobjs=
21202ac_ltlibobjs=
21203for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021206 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21208 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21210 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021211done
21212LIBOBJS=$ac_libobjs
21213
21214LTLIBOBJS=$ac_ltlibobjs
21215
21216
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021217if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21219Usually this means the macro was only invoked conditionally." >&5
21220echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21221Usually this means the macro was only invoked conditionally." >&2;}
21222 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021223fi
21224if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226Usually this means the macro was only invoked conditionally." >&5
21227echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21228Usually this means the macro was only invoked conditionally." >&2;}
21229 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021230fi
John Criswell7a73b802003-06-30 21:59:07 +000021231
21232: ${CONFIG_STATUS=./config.status}
21233ac_clean_files_save=$ac_clean_files
21234ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21236echo "$as_me: creating $CONFIG_STATUS" >&6;}
21237cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021238#! $SHELL
21239# Generated by $as_me.
21240# Run this file to recreate the current configuration.
21241# Compiler output produced by configure, useful for debugging
21242# configure, is in config.log if it exists.
21243
21244debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021245ac_cs_recheck=false
21246ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021247SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021248_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250cat >>$CONFIG_STATUS <<\_ACEOF
21251## --------------------- ##
21252## M4sh Initialization. ##
21253## --------------------- ##
21254
21255# Be Bourne compatible
21256if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021257 emulate sh
21258 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021260 # is contrary to our usage. Disable this feature.
21261 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021262 setopt NO_GLOB_SUBST
21263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266BIN_SH=xpg4; export BIN_SH # for Tru64
21267DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021268
John Criswell7a73b802003-06-30 21:59:07 +000021269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021270# PATH needs CR
21271# Avoid depending upon Character Ranges.
21272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275as_cr_digits='0123456789'
21276as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021277
21278# The user is always right.
21279if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280 echo "#! /bin/sh" >conf$$.sh
21281 echo "exit 0" >>conf$$.sh
21282 chmod +x conf$$.sh
21283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21284 PATH_SEPARATOR=';'
21285 else
21286 PATH_SEPARATOR=:
21287 fi
21288 rm -f conf$$.sh
21289fi
21290
21291# Support unset when possible.
21292if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21293 as_unset=unset
21294else
21295 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021296fi
John Criswell7a73b802003-06-30 21:59:07 +000021297
Reid Spencera773bd52006-08-04 18:18:08 +000021298
21299# IFS
21300# We need space, tab and new line, in precisely that order. Quoting is
21301# there to prevent editors from complaining about space-tab.
21302# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21303# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304as_nl='
21305'
Reid Spencera773bd52006-08-04 18:18:08 +000021306IFS=" "" $as_nl"
21307
21308# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021310 *[\\/]* ) as_myself=$0 ;;
21311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021312for as_dir in $PATH
21313do
21314 IFS=$as_save_IFS
21315 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21317done
Reid Spencera773bd52006-08-04 18:18:08 +000021318IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021319
Reid Spencera773bd52006-08-04 18:18:08 +000021320 ;;
21321esac
21322# We did not find ourselves, most probably we were run as `sh COMMAND'
21323# in which case we are not to be found in the path.
21324if test "x$as_myself" = x; then
21325 as_myself=$0
21326fi
21327if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021330fi
21331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332# Work around bugs in pre-3.0 UWIN ksh.
21333for as_var in ENV MAIL MAILPATH
21334do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021335done
21336PS1='$ '
21337PS2='> '
21338PS4='+ '
21339
21340# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341for as_var in \
21342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21344 LC_TELEPHONE LC_TIME
21345do
21346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21347 eval $as_var=C; export $as_var
21348 else
21349 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021350 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021351done
Torok Edwin871384f2010-01-26 08:50:50 +000021352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021353# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021354if expr a : '\(a\)' >/dev/null 2>&1 &&
21355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21356 as_expr=expr
21357else
21358 as_expr=false
21359fi
21360
21361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21362 as_basename=basename
21363else
21364 as_basename=false
21365fi
21366
21367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021369as_me=`$as_basename -- "$0" ||
21370$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21371 X"$0" : 'X\(//\)$' \| \
21372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021374 sed '/^.*\/\([^/][^/]*\)\/*$/{
21375 s//\1/
21376 q
21377 }
21378 /^X\/\(\/\/\)$/{
21379 s//\1/
21380 q
21381 }
21382 /^X\/\(\/\).*/{
21383 s//\1/
21384 q
21385 }
21386 s/.*/./; q'`
21387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388# CDPATH.
21389$as_unset CDPATH
21390
21391
21392
21393 as_lineno_1=$LINENO
21394 as_lineno_2=$LINENO
21395 test "x$as_lineno_1" != "x$as_lineno_2" &&
21396 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21397
21398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21399 # uniformly replaced by the line number. The first 'sed' inserts a
21400 # line-number line after each line using $LINENO; the second 'sed'
21401 # does the real work. The second script uses 'N' to pair each
21402 # line-number line with the line containing $LINENO, and appends
21403 # trailing '-' during substitution so that $LINENO is not a special
21404 # case at line end.
21405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21406 # scripts with optimization help from Paolo Bonzini. Blame Lee
21407 # E. McMahon (1931-1989) for sed's syntax. :-)
21408 sed -n '
21409 p
21410 /[$]LINENO/=
21411 ' <$as_myself |
21412 sed '
21413 s/[$]LINENO.*/&-/
21414 t lineno
21415 b
21416 :lineno
21417 N
21418 :loop
21419 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21420 t loop
21421 s/-\n.*//
21422 ' >$as_me.lineno &&
21423 chmod +x "$as_me.lineno" ||
21424 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21425 { (exit 1); exit 1; }; }
21426
21427 # Don't try to exec as it changes $[0], causing all sort of problems
21428 # (the dirname of $[0] is not the place where we might find the
21429 # original and so on. Autoconf is especially sensitive to this).
21430 . "./$as_me.lineno"
21431 # Exit status is that of the last command.
21432 exit
21433}
21434
21435
21436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21437 as_dirname=dirname
21438else
21439 as_dirname=false
21440fi
Reid Spencera773bd52006-08-04 18:18:08 +000021441
21442ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021444-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021447 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021448 esac;;
21449*)
21450 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021451esac
21452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021453if expr a : '\(a\)' >/dev/null 2>&1 &&
21454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21455 as_expr=expr
21456else
21457 as_expr=false
21458fi
21459
John Criswell7a73b802003-06-30 21:59:07 +000021460rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021461if test -d conf$$.dir; then
21462 rm -f conf$$.dir/conf$$.file
21463else
21464 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467echo >conf$$.file
21468if ln -s conf$$.file conf$$ 2>/dev/null; then
21469 as_ln_s='ln -s'
21470 # ... but there are two gotchas:
21471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21473 # In both cases, we have to default to `cp -p'.
21474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021475 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476elif ln conf$$.file conf$$ 2>/dev/null; then
21477 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021478else
21479 as_ln_s='cp -p'
21480fi
Reid Spencera773bd52006-08-04 18:18:08 +000021481rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21482rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021483
John Criswell0c38eaf2003-09-10 15:17:25 +000021484if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021486else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021487 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021488 as_mkdir_p=false
21489fi
21490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21492# systems may use methods other than mode bits to determine executability.
21493cat >conf$$.file <<_ASEOF
21494#! /bin/sh
21495exit 0
21496_ASEOF
21497chmod +x conf$$.file
21498if test -x conf$$.file >/dev/null 2>&1; then
21499 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021504
21505# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021507
21508# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021510
21511
John Criswell7a73b802003-06-30 21:59:07 +000021512exec 6>&1
21513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021515# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021516# values after options handling.
21517ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021518This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021520
21521 CONFIG_FILES = $CONFIG_FILES
21522 CONFIG_HEADERS = $CONFIG_HEADERS
21523 CONFIG_LINKS = $CONFIG_LINKS
21524 CONFIG_COMMANDS = $CONFIG_COMMANDS
21525 $ $0 $@
21526
Reid Spencera773bd52006-08-04 18:18:08 +000021527on `(hostname || uname -n) 2>/dev/null | sed 1q`
21528"
21529
John Criswell7a73b802003-06-30 21:59:07 +000021530_ACEOF
21531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021532cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021533# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021534config_files="$ac_config_files"
21535config_headers="$ac_config_headers"
21536config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021537
Reid Spencera773bd52006-08-04 18:18:08 +000021538_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021541ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542\`$as_me' instantiates files from templates according to the
21543current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021546
21547 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548 -V, --version print version number, then exit
21549 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021550 -d, --debug don't remove temporary files
21551 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 --file=FILE[:TEMPLATE]
21553 instantiate the configuration file FILE
21554 --header=FILE[:TEMPLATE]
21555 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021556
21557Configuration files:
21558$config_files
21559
21560Configuration headers:
21561$config_headers
21562
John Criswellc764fbc2003-09-06 15:17:13 +000021563Configuration commands:
21564$config_commands
21565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021566Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021567
Reid Spencera773bd52006-08-04 18:18:08 +000021568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021570ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021571llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572configured by $0, generated by GNU Autoconf 2.60,
21573 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021576This config.status script is free software; the Free Software Foundation
21577gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021578
21579ac_pwd='$ac_pwd'
21580srcdir='$srcdir'
21581INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021582_ACEOF
21583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021584cat >>$CONFIG_STATUS <<\_ACEOF
21585# If no file are specified by the user, then we need to provide default
21586# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021587ac_need_defaults=:
21588while test $# != 0
21589do
21590 case $1 in
21591 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021594 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021596 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021597 ac_option=$1
21598 ac_optarg=$2
21599 ac_shift=shift
21600 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021601 esac
21602
John Criswell0c38eaf2003-09-10 15:17:25 +000021603 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021604 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21606 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021609 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021610 debug=: ;;
21611 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021612 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021614 ac_need_defaults=false;;
21615 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021616 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021618 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021619 --he | --h)
21620 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621 { echo "$as_me: error: ambiguous option: $1
21622Try \`$0 --help' for more information." >&2
21623 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021624 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21628 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021629
21630 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631 -*) { echo "$as_me: error: unrecognized option: $1
21632Try \`$0 --help' for more information." >&2
21633 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021635 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021636 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021637
21638 esac
21639 shift
21640done
21641
John Criswell0c38eaf2003-09-10 15:17:25 +000021642ac_configure_extra_args=
21643
21644if $ac_cs_silent; then
21645 exec 6>/dev/null
21646 ac_configure_extra_args="$ac_configure_extra_args --silent"
21647fi
21648
21649_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021651if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21653 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021654 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021656fi
21657
John Criswell7a73b802003-06-30 21:59:07 +000021658_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021660exec 5>>config.log
21661{
21662 echo
21663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21664## Running $as_me. ##
21665_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021667} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021668
Reid Spencera773bd52006-08-04 18:18:08 +000021669_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021671#
Reid Spencera773bd52006-08-04 18:18:08 +000021672# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021673#
Reid Spencerc0682832005-02-24 19:05:19 +000021674llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021675
21676_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021679
21680# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021681for ac_config_target in $ac_config_targets
21682do
Reid Spencera773bd52006-08-04 18:18:08 +000021683 case $ac_config_target in
21684 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021685 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021686 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21687 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021688 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021689 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021690 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021691 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021692 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021693 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21694 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021695 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021696 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021697 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021702 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021705 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021706 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021709 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021715 esac
21716done
21717
Reid Spencera773bd52006-08-04 18:18:08 +000021718
John Criswell7a73b802003-06-30 21:59:07 +000021719# If the user did not use the arguments to specify the items to instantiate,
21720# then the envvar interface is used. Set only those that are not.
21721# We use the long form for the default assignment because of an extremely
21722# bizarre bug on SunOS 4.1.3.
21723if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021727fi
21728
John Criswell0c38eaf2003-09-10 15:17:25 +000021729# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021730# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021731# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021732# Hook for its removal unless debugging.
21733# Note that there is a small window in which the directory will not be cleaned:
21734# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021735$debug ||
21736{
Reid Spencera773bd52006-08-04 18:18:08 +000021737 tmp=
21738 trap 'exit_status=$?
21739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21740' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021742}
John Criswell7a73b802003-06-30 21:59:07 +000021743# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021744
John Criswell7a73b802003-06-30 21:59:07 +000021745{
Reid Spencera773bd52006-08-04 18:18:08 +000021746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021747 test -n "$tmp" && test -d "$tmp"
21748} ||
21749{
Reid Spencera773bd52006-08-04 18:18:08 +000021750 tmp=./conf$$-$RANDOM
21751 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752} ||
21753{
21754 echo "$me: cannot create a temporary directory in ." >&2
21755 { (exit 1); exit 1; }
21756}
John Criswell7a73b802003-06-30 21:59:07 +000021757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758#
21759# Set up the sed scripts for CONFIG_FILES section.
21760#
21761
21762# No need to generate the scripts if there are no CONFIG_FILES.
21763# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021764if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021765
21766_ACEOF
21767
Reid Spencera773bd52006-08-04 18:18:08 +000021768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769
Reid Spencera773bd52006-08-04 18:18:08 +000021770ac_delim='%!_!# '
21771for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 cat >conf$$subs.sed <<_ACEOF
21773SHELL!$SHELL$ac_delim
21774PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780exec_prefix!$exec_prefix$ac_delim
21781prefix!$prefix$ac_delim
21782program_transform_name!$program_transform_name$ac_delim
21783bindir!$bindir$ac_delim
21784sbindir!$sbindir$ac_delim
21785libexecdir!$libexecdir$ac_delim
21786datarootdir!$datarootdir$ac_delim
21787datadir!$datadir$ac_delim
21788sysconfdir!$sysconfdir$ac_delim
21789sharedstatedir!$sharedstatedir$ac_delim
21790localstatedir!$localstatedir$ac_delim
21791includedir!$includedir$ac_delim
21792oldincludedir!$oldincludedir$ac_delim
21793docdir!$docdir$ac_delim
21794infodir!$infodir$ac_delim
21795htmldir!$htmldir$ac_delim
21796dvidir!$dvidir$ac_delim
21797pdfdir!$pdfdir$ac_delim
21798psdir!$psdir$ac_delim
21799libdir!$libdir$ac_delim
21800localedir!$localedir$ac_delim
21801mandir!$mandir$ac_delim
21802DEFS!$DEFS$ac_delim
21803ECHO_C!$ECHO_C$ac_delim
21804ECHO_N!$ECHO_N$ac_delim
21805ECHO_T!$ECHO_T$ac_delim
21806LIBS!$LIBS$ac_delim
21807build_alias!$build_alias$ac_delim
21808host_alias!$host_alias$ac_delim
21809target_alias!$target_alias$ac_delim
21810LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021811CC!$CC$ac_delim
21812CFLAGS!$CFLAGS$ac_delim
21813LDFLAGS!$LDFLAGS$ac_delim
21814CPPFLAGS!$CPPFLAGS$ac_delim
21815ac_ct_CC!$ac_ct_CC$ac_delim
21816EXEEXT!$EXEEXT$ac_delim
21817OBJEXT!$OBJEXT$ac_delim
21818CXX!$CXX$ac_delim
21819CXXFLAGS!$CXXFLAGS$ac_delim
21820ac_ct_CXX!$ac_ct_CXX$ac_delim
21821CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021823ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825build!$build$ac_delim
21826build_cpu!$build_cpu$ac_delim
21827build_vendor!$build_vendor$ac_delim
21828build_os!$build_os$ac_delim
21829host!$host$ac_delim
21830host_cpu!$host_cpu$ac_delim
21831host_vendor!$host_vendor$ac_delim
21832host_os!$host_os$ac_delim
21833target!$target$ac_delim
21834target_cpu!$target_cpu$ac_delim
21835target_vendor!$target_vendor$ac_delim
21836target_os!$target_os$ac_delim
21837OS!$OS$ac_delim
21838HOST_OS!$HOST_OS$ac_delim
21839TARGET_OS!$TARGET_OS$ac_delim
21840LINKALL!$LINKALL$ac_delim
21841NOLINKALL!$NOLINKALL$ac_delim
21842LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844ARCH!$ARCH$ac_delim
21845ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846GREP!$GREP$ac_delim
21847EGREP!$EGREP$ac_delim
21848LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849BUILD_CC!$BUILD_CC$ac_delim
21850BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851BUILD_CXX!$BUILD_CXX$ac_delim
21852CVSBUILD!$CVSBUILD$ac_delim
21853ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21854ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21855DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21856ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21857EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21858DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21859DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21860JIT!$JIT$ac_delim
21861TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021862ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21864ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021865ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021866ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021867ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021868ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021869ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021873 break
21874 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021878 else
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021880 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021881done
21882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21887fi
21888
21889cat >>$CONFIG_STATUS <<_ACEOF
21890cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893sed '
21894s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895s/^/s,@/; s/!/@,|#_!!_#|/
21896:n
21897t n
21898s/'"$ac_delim"'$/,g/; t
21899s/$/\\/; p
21900N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901' >>$CONFIG_STATUS <conf$$subs.sed
21902rm -f conf$$subs.sed
21903cat >>$CONFIG_STATUS <<_ACEOF
21904CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906
21907
21908ac_delim='%!_!# '
21909for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000021911TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21912LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21913LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021914LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021915LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021916ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021917OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021918EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021919EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021920CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021921BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922NM!$NM$ac_delim
21923ifGNUmake!$ifGNUmake$ac_delim
21924LN_S!$LN_S$ac_delim
21925CMP!$CMP$ac_delim
21926CP!$CP$ac_delim
21927DATE!$DATE$ac_delim
21928FIND!$FIND$ac_delim
21929MKDIR!$MKDIR$ac_delim
21930MV!$MV$ac_delim
21931RANLIB!$RANLIB$ac_delim
21932AR!$AR$ac_delim
21933RM!$RM$ac_delim
21934SED!$SED$ac_delim
21935TAR!$TAR$ac_delim
21936BINPWD!$BINPWD$ac_delim
21937GRAPHVIZ!$GRAPHVIZ$ac_delim
21938DOT!$DOT$ac_delim
21939FDP!$FDP$ac_delim
21940NEATO!$NEATO$ac_delim
21941TWOPI!$TWOPI$ac_delim
21942CIRCO!$CIRCO$ac_delim
21943GV!$GV$ac_delim
21944DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021945XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946PERL!$PERL$ac_delim
21947HAVE_PERL!$HAVE_PERL$ac_delim
21948INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21949INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21950INSTALL_DATA!$INSTALL_DATA$ac_delim
21951BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021952CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953DOXYGEN!$DOXYGEN$ac_delim
21954GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021955GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956POD2HTML!$POD2HTML$ac_delim
21957POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021958PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959RUNTEST!$RUNTEST$ac_delim
21960TCLSH!$TCLSH$ac_delim
21961ZIP!$ZIP$ac_delim
21962OCAMLC!$OCAMLC$ac_delim
21963OCAMLOPT!$OCAMLOPT$ac_delim
21964OCAMLDEP!$OCAMLDEP$ac_delim
21965OCAMLDOC!$OCAMLDOC$ac_delim
21966GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021967HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21969INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21970CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21971CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21972LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21974NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21975USE_UDIS86!$USE_UDIS86$ac_delim
21976USE_OPROFILE!$USE_OPROFILE$ac_delim
21977HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21978HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21979MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021981SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21983LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21984LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21985LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21986LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21987LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21988LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21989LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21990LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21991LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21992BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21993ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021994OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21995ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21996RPATH!$RPATH$ac_delim
21997RDYNAMIC!$RDYNAMIC$ac_delim
21998LIBOBJS!$LIBOBJS$ac_delim
21999LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022000_ACEOF
22001
Charles Davis13460c92011-10-26 02:28:32 +000022002 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022003 break
22004 elif $ac_last_try; then
22005 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22006echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22007 { (exit 1); exit 1; }; }
22008 else
22009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22010 fi
22011done
22012
22013ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22014if test -n "$ac_eof"; then
22015 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22016 ac_eof=`expr $ac_eof + 1`
22017fi
22018
22019cat >>$CONFIG_STATUS <<_ACEOF
22020cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022021/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22022_ACEOF
22023sed '
22024s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22025s/^/s,@/; s/!/@,|#_!!_#|/
22026:n
22027t n
22028s/'"$ac_delim"'$/,g/; t
22029s/$/\\/; p
22030N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22031' >>$CONFIG_STATUS <conf$$subs.sed
22032rm -f conf$$subs.sed
22033cat >>$CONFIG_STATUS <<_ACEOF
22034:end
22035s/|#_!!_#|//g
22036CEOF$ac_eof
22037_ACEOF
22038
22039
Reid Spencera773bd52006-08-04 18:18:08 +000022040# VPATH may cause trouble with some makes, so we remove $(srcdir),
22041# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042# trailing colons and then remove the whole line if VPATH becomes empty
22043# (actually we leave an empty line to preserve line numbers).
22044if test "x$srcdir" = x.; then
22045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22046s/:*\$(srcdir):*/:/
22047s/:*\${srcdir}:*/:/
22048s/:*@srcdir@:*/:/
22049s/^\([^=]*=[ ]*\):*/\1/
22050s/:*$//
22051s/^[^=]*=[ ]*$//
22052}'
22053fi
22054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022056fi # test -n "$CONFIG_FILES"
22057
Reid Spencera773bd52006-08-04 18:18:08 +000022058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022060do
22061 case $ac_tag in
22062 :[FHLC]) ac_mode=$ac_tag; continue;;
22063 esac
22064 case $ac_mode$ac_tag in
22065 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22067echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22068 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022069 :[FH]-) ac_tag=-:-;;
22070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22071 esac
22072 ac_save_IFS=$IFS
22073 IFS=:
22074 set x $ac_tag
22075 IFS=$ac_save_IFS
22076 shift
22077 ac_file=$1
22078 shift
22079
22080 case $ac_mode in
22081 :L) ac_source=$1;;
22082 :[FH])
22083 ac_file_inputs=
22084 for ac_f
22085 do
22086 case $ac_f in
22087 -) ac_f="$tmp/stdin";;
22088 *) # Look for the file first in the build tree, then in the source tree
22089 # (if the path is not absolute). The absolute path cannot be DOS-style,
22090 # because $ac_f cannot contain `:'.
22091 test -f "$ac_f" ||
22092 case $ac_f in
22093 [\\/$]*) false;;
22094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22095 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22097echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22098 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022099 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022101 done
22102
22103 # Let's still pretend it is `configure' which instantiates (i.e., don't
22104 # use $as_me), people would be surprised to read:
22105 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106 configure_input="Generated from "`IFS=:
22107 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022108 if test x"$ac_file" != x-; then
22109 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110 { echo "$as_me:$LINENO: creating $ac_file" >&5
22111echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022112 fi
22113
22114 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022115 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022116 esac
22117 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022118 esac
22119
Reid Spencera773bd52006-08-04 18:18:08 +000022120 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022121$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022122 X"$ac_file" : 'X\(//\)[^/]' \| \
22123 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22127 s//\1/
22128 q
22129 }
22130 /^X\(\/\/\)[^/].*/{
22131 s//\1/
22132 q
22133 }
22134 /^X\(\/\/\)$/{
22135 s//\1/
22136 q
22137 }
22138 /^X\(\/\).*/{
22139 s//\1/
22140 q
22141 }
22142 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143 { as_dir="$ac_dir"
22144 case $as_dir in #(
22145 -*) as_dir=./$as_dir;;
22146 esac
22147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22148 as_dirs=
22149 while :; do
22150 case $as_dir in #(
22151 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22152 *) as_qdir=$as_dir;;
22153 esac
22154 as_dirs="'$as_qdir' $as_dirs"
22155 as_dir=`$as_dirname -- "$as_dir" ||
22156$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22160echo X"$as_dir" |
22161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162 s//\1/
22163 q
22164 }
22165 /^X\(\/\/\)[^/].*/{
22166 s//\1/
22167 q
22168 }
22169 /^X\(\/\/\)$/{
22170 s//\1/
22171 q
22172 }
22173 /^X\(\/\).*/{
22174 s//\1/
22175 q
22176 }
22177 s/.*/./; q'`
22178 test -d "$as_dir" && break
22179 done
22180 test -z "$as_dirs" || eval "mkdir $as_dirs"
22181 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22182echo "$as_me: error: cannot create directory $as_dir" >&2;}
22183 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022184 ac_builddir=.
22185
Reid Spencera773bd52006-08-04 18:18:08 +000022186case "$ac_dir" in
22187.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22188*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022190 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022191 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022192 case $ac_top_builddir_sub in
22193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22195 esac ;;
22196esac
22197ac_abs_top_builddir=$ac_pwd
22198ac_abs_builddir=$ac_pwd$ac_dir_suffix
22199# for backward compatibility:
22200ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022201
22202case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022203 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022204 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022205 ac_top_srcdir=$ac_top_builddir_sub
22206 ac_abs_top_srcdir=$ac_pwd ;;
22207 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022208 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022209 ac_top_srcdir=$srcdir
22210 ac_abs_top_srcdir=$srcdir ;;
22211 *) # Relative name.
22212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22213 ac_top_srcdir=$ac_top_build_prefix$srcdir
22214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022215esac
Reid Spencera773bd52006-08-04 18:18:08 +000022216ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022217
John Criswell7a73b802003-06-30 21:59:07 +000022218
Reid Spencera773bd52006-08-04 18:18:08 +000022219 case $ac_mode in
22220 :F)
22221 #
22222 # CONFIG_FILE
22223 #
John Criswell7a73b802003-06-30 21:59:07 +000022224
22225 case $INSTALL in
22226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022228 esac
John Criswell7a73b802003-06-30 21:59:07 +000022229_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022232# If the template does not know about datarootdir, expand it.
22233# FIXME: This hack should be removed a few years after 2.60.
22234ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022235
22236case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022237 p
22238 q
22239}
22240/@datadir@/p
22241/@docdir@/p
22242/@infodir@/p
22243/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022244/@mandir@/p
22245' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022246*datarootdir*) ac_datarootdir_seen=yes;;
22247*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22249echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022250_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022252 ac_datarootdir_hack='
22253 s&@datadir@&$datadir&g
22254 s&@docdir@&$docdir&g
22255 s&@infodir@&$infodir&g
22256 s&@localedir@&$localedir&g
22257 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022259esac
22260_ACEOF
22261
22262# Neutralize VPATH when `$srcdir' = `.'.
22263# Shell code in configure.ac might set extrasub.
22264# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265cat >>$CONFIG_STATUS <<_ACEOF
22266 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022267$extrasub
22268_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022270:t
22271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022273s&@top_builddir@&$ac_top_builddir_sub&;t t
22274s&@srcdir@&$ac_srcdir&;t t
22275s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276s&@top_srcdir@&$ac_top_srcdir&;t t
22277s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278s&@builddir@&$ac_builddir&;t t
22279s&@abs_builddir@&$ac_abs_builddir&;t t
22280s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281s&@INSTALL@&$ac_INSTALL&;t t
22282$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022283" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022284
Reid Spencera773bd52006-08-04 18:18:08 +000022285test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22286 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022288 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022289which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022291which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022292
Reid Spencera773bd52006-08-04 18:18:08 +000022293 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022294 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022295 -) cat "$tmp/out"; rm -f "$tmp/out";;
22296 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22297 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022298 ;;
22299 :H)
22300 #
22301 # CONFIG_HEADER
22302 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303_ACEOF
22304
22305# Transform confdefs.h into a sed script `conftest.defines', that
22306# substitutes the proper values into config.h.in to produce config.h.
22307rm -f conftest.defines conftest.tail
22308# First, append a space to every undef/define line, to ease matching.
22309echo 's/$/ /' >conftest.defines
22310# Then, protect against being on the right side of a sed subst, or in
22311# an unquoted here document, in config.status. If some macros were
22312# called several times there might be several #defines for the same
22313# symbol, which is useless. But do not sort them, since the last
22314# AC_DEFINE must be honored.
22315ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22316# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22317# NAME is the cpp macro being defined, VALUE is the value it is being given.
22318# PARAMS is the parameter list in the macro definition--in most cases, it's
22319# just an empty string.
22320ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22321ac_dB='\\)[ (].*,\\1define\\2'
22322ac_dC=' '
22323ac_dD=' ,'
22324
22325uniq confdefs.h |
22326 sed -n '
22327 t rset
22328 :rset
22329 s/^[ ]*#[ ]*define[ ][ ]*//
22330 t ok
22331 d
22332 :ok
22333 s/[\\&,]/\\&/g
22334 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22335 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22336 ' >>conftest.defines
22337
22338# Remove the space that was appended to ease matching.
22339# Then replace #undef with comments. This is necessary, for
22340# example, in the case of _POSIX_SOURCE, which is predefined and required
22341# on some systems where configure will not decide to define it.
22342# (The regexp can be short, since the line contains either #define or #undef.)
22343echo 's/ $//
22344s,^[ #]*u.*,/* & */,' >>conftest.defines
22345
22346# Break up conftest.defines:
22347ac_max_sed_lines=50
22348
22349# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22350# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22351# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22352# et cetera.
22353ac_in='$ac_file_inputs'
22354ac_out='"$tmp/out1"'
22355ac_nxt='"$tmp/out2"'
22356
22357while :
22358do
22359 # Write a here document:
22360 cat >>$CONFIG_STATUS <<_ACEOF
22361 # First, check the format of the line:
22362 cat >"\$tmp/defines.sed" <<\\CEOF
22363/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22364/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22365b
22366:def
22367_ACEOF
22368 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22369 echo 'CEOF
22370 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22371 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22372 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22373 grep . conftest.tail >/dev/null || break
22374 rm -f conftest.defines
22375 mv conftest.tail conftest.defines
22376done
22377rm -f conftest.defines conftest.tail
22378
22379echo "ac_result=$ac_in" >>$CONFIG_STATUS
22380cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022381 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022382 echo "/* $configure_input */" >"$tmp/config.h"
22383 cat "$ac_result" >>"$tmp/config.h"
22384 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22386echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022387 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022388 rm -f $ac_file
22389 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022390 fi
22391 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392 echo "/* $configure_input */"
22393 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022394 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022396 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22399echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022400 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022401 esac
John Criswell7a73b802003-06-30 21:59:07 +000022402
Reid Spencera773bd52006-08-04 18:18:08 +000022403
22404 case $ac_file$ac_mode in
22405 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022406 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022407 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022409 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022411 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022413 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022415 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022417 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022419 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022421 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022423 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022425 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022427 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022429 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022430 ${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 +000022431
22432 esac
22433done # for ac_tag
22434
John Criswell7a73b802003-06-30 21:59:07 +000022435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022436{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022438chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022439ac_clean_files=$ac_clean_files_save
22440
22441
22442# configure is writing to config.log, and then calls config.status.
22443# config.status does its own redirection, appending to config.log.
22444# Unfortunately, on DOS this fails, as config.log is still kept open
22445# by configure, so config.status won't be able to write to it; its
22446# output is simply discarded. So we exec the FD to /dev/null,
22447# effectively closing config.log, so it can be properly (re)opened and
22448# appended to by config.status. When coming back to configure, we
22449# need to make the FD available again.
22450if test "$no_create" != yes; then
22451 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022452 ac_config_status_args=
22453 test "$silent" = yes &&
22454 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022455 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022457 exec 5>>config.log
22458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022461fi
22462
John Criswell12399a12003-09-30 15:55:44 +000022463#
22464# CONFIG_SUBDIRS section.
22465#
22466if test "$no_recursion" != yes; then
22467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022469 ac_sub_configure_args=
22470 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022471 eval "set x $ac_configure_args"
22472 shift
22473 for ac_arg
22474 do
John Criswell12399a12003-09-30 15:55:44 +000022475 if test -n "$ac_prev"; then
22476 ac_prev=
22477 continue
22478 fi
22479 case $ac_arg in
22480 -cache-file | --cache-file | --cache-fil | --cache-fi \
22481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22482 ac_prev=cache_file ;;
22483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22485 | --c=*)
22486 ;;
22487 --config-cache | -C)
22488 ;;
22489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22490 ac_prev=srcdir ;;
22491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22492 ;;
22493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22494 ac_prev=prefix ;;
22495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022497 *)
22498 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022500 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022502 esac
22503 done
22504
22505 # Always prepend --prefix to ensure using the same prefix
22506 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022507 ac_arg="--prefix=$prefix"
22508 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022509 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022510 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022512
22513 ac_popdir=`pwd`
22514 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22515
22516 # Do not complain, so a configure script can configure whichever
22517 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022518 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022519
Reid Spencera773bd52006-08-04 18:18:08 +000022520 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022521 echo "$as_me:$LINENO: $ac_msg" >&5
22522 echo "$ac_msg" >&6
22523 { as_dir="$ac_dir"
22524 case $as_dir in #(
22525 -*) as_dir=./$as_dir;;
22526 esac
22527 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528 as_dirs=
22529 while :; do
22530 case $as_dir in #(
22531 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22532 *) as_qdir=$as_dir;;
22533 esac
22534 as_dirs="'$as_qdir' $as_dirs"
22535 as_dir=`$as_dirname -- "$as_dir" ||
22536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537 X"$as_dir" : 'X\(//\)[^/]' \| \
22538 X"$as_dir" : 'X\(//\)$' \| \
22539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22540echo X"$as_dir" |
22541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542 s//\1/
22543 q
22544 }
22545 /^X\(\/\/\)[^/].*/{
22546 s//\1/
22547 q
22548 }
22549 /^X\(\/\/\)$/{
22550 s//\1/
22551 q
22552 }
22553 /^X\(\/\).*/{
22554 s//\1/
22555 q
22556 }
22557 s/.*/./; q'`
22558 test -d "$as_dir" && break
22559 done
22560 test -z "$as_dirs" || eval "mkdir $as_dirs"
22561 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22562echo "$as_me: error: cannot create directory $as_dir" >&2;}
22563 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022564 ac_builddir=.
22565
Reid Spencera773bd52006-08-04 18:18:08 +000022566case "$ac_dir" in
22567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22568*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022570 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022572 case $ac_top_builddir_sub in
22573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22575 esac ;;
22576esac
22577ac_abs_top_builddir=$ac_pwd
22578ac_abs_builddir=$ac_pwd$ac_dir_suffix
22579# for backward compatibility:
22580ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022581
22582case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022583 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022584 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022585 ac_top_srcdir=$ac_top_builddir_sub
22586 ac_abs_top_srcdir=$ac_pwd ;;
22587 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022588 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022589 ac_top_srcdir=$srcdir
22590 ac_abs_top_srcdir=$srcdir ;;
22591 *) # Relative name.
22592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22593 ac_top_srcdir=$ac_top_build_prefix$srcdir
22594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022595esac
Reid Spencera773bd52006-08-04 18:18:08 +000022596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022597
22598
Reid Spencera773bd52006-08-04 18:18:08 +000022599 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022600
22601 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022602 if test -f "$ac_srcdir/configure.gnu"; then
22603 ac_sub_configure=$ac_srcdir/configure.gnu
22604 elif test -f "$ac_srcdir/configure"; then
22605 ac_sub_configure=$ac_srcdir/configure
22606 elif test -f "$ac_srcdir/configure.in"; then
22607 # This should be Cygnus configure.
22608 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022609 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22611echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022612 ac_sub_configure=
22613 fi
22614
22615 # The recursion is here.
22616 if test -n "$ac_sub_configure"; then
22617 # Make the cache file name correct relative to the subdirectory.
22618 case $cache_file in
22619 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022620 *) # Relative name.
22621 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022622 esac
22623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022624 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22625echo "$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 +000022626 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022627 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22628 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022629 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22630echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22631 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022632 fi
22633
Reid Spencera773bd52006-08-04 18:18:08 +000022634 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022635 done
22636fi
22637