blob: dd61dab6bb847297e6cfbc0ebaa62d32724b8de6 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 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-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
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
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
706ENABLE_LLVMC_DYNAMIC
707ENABLE_LLVMC_DYNAMIC_PLUGINS
708CXX
709CXXFLAGS
710ac_ct_CXX
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
734PERL
735HAVE_PERL
736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000740CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000741DOXYGEN
742GROFF
743GZIP
744POD2HTML
745POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000746PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000755HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761LLVMGCCCOMMAND
762LLVMGXXCOMMAND
763LLVMGCC
764LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000765LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
773LLVMCC1
774LLVMCC1PLUS
775LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVMGCC_LANGS
777SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000778SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_LIBDIR
782LLVM_DATADIR
783LLVM_DOCSDIR
784LLVM_ETCDIR
785LLVM_INCLUDEDIR
786LLVM_INFODIR
787LLVM_MANDIR
788LLVM_CONFIGTIME
789BINDINGS_TO_BUILD
790ALL_BINDINGS
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
795LIBOBJS
796LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000797ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804CPPFLAGS
805CPP
806CXX
807CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000808CCC'
John Criswell0157f502010-03-19 21:31:39 +0000809ac_subdirs_all='projects/llvm-gcc
810projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000816projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-java
819projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000820projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000821projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000848# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000857includedir='${prefix}/include'
858oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000868
869ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000870ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000875 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000876 ac_prev=
877 continue
878 fi
879
Reid Spencera773bd52006-08-04 18:18:08 +0000880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
Reid Spencera773bd52006-08-04 18:18:08 +0000887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000912 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000914 datadir=$ac_optarg ;;
915
Reid Spencera773bd52006-08-04 18:18:08 +0000916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
John Criswell7a73b802003-06-30 21:59:07 +0000923 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000925 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000941
942 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000944 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
Reid Spencera773bd52006-08-04 18:18:08 +0000976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
John Criswell7a73b802003-06-30 21:59:07 +0000982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
Reid Spencera773bd52006-08-04 18:18:08 +00001006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
John Criswell7a73b802003-06-30 21:59:07 +00001011 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
Reid Spencera773bd52006-08-04 18:18:08 +00001080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
John Criswell7a73b802003-06-30 21:59:07 +00001090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001147
1148 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001186 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001204fi
1205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001211do
Reid Spencera773bd52006-08-04 18:18:08 +00001212 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001213 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001216 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
Reid Spencera773bd52006-08-04 18:18:08 +00001245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001253
1254
John Criswell7a73b802003-06-30 21:59:07 +00001255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001258 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001283 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001293fi
Reid Spencera773bd52006-08-04 18:18:08 +00001294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
John Criswell7a73b802003-06-30 21:59:07 +00001315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001323\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
John Criswell7a73b802003-06-30 21:59:07 +00001343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001390 esac
1391 cat <<\_ACEOF
1392
1393Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
David Greenea696d242007-06-28 19:36:08 +00001400 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
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,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1427 Win32)
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001430 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001431
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001437 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 searches PATH)
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001441 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang)
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001445 --with-optimize-option Select the compiler options to use for optimized
1446 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001447 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001450 --with-c-include-dirs Colon separated list of directories clang will
1451 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001460 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001463 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CC C compiler command
1469 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001473 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001474 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <llvmbugs@cs.uiuc.edu>.
1482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001483ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001490 ac_builddir=.
1491
Reid Spencera773bd52006-08-04 18:18:08 +00001492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001496 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001507
1508case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001509 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001510 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001514 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001521esac
Reid Spencera773bd52006-08-04 18:18:08 +00001522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001523
Reid Spencera773bd52006-08-04 18:18:08 +00001524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001532 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001536 done
1537fi
1538
Reid Spencera773bd52006-08-04 18:18:08 +00001539test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001540if $ac_init_version; then
1541 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001542llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001543generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001549
John Criswell5a129712010-03-19 21:04:16 +00001550Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001551_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001552 exit
John Criswell7a73b802003-06-30 21:59:07 +00001553fi
Reid Spencera773bd52006-08-04 18:18:08 +00001554cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001555This file contains any messages produced by compilers while
1556running configure, to aid debugging if configure makes a mistake.
1557
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001558It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561 $ $0 $@
1562
1563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001564exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001565{
1566cat <<_ASUNAME
1567## --------- ##
1568## Platform. ##
1569## --------- ##
1570
1571hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579
1580/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001583/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001584/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1587
1588_ASUNAME
1589
1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001595 echo "PATH: $as_dir"
1596done
Reid Spencera773bd52006-08-04 18:18:08 +00001597IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599} >&5
1600
1601cat >&5 <<_ACEOF
1602
1603
1604## ----------- ##
1605## Core tests. ##
1606## ----------- ##
1607
1608_ACEOF
1609
1610
1611# Keep a trace of the command line.
1612# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001613# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001614# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001615# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001616ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001617ac_configure_args0=
1618ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001619ac_must_keep_next=false
1620for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001621do
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 for ac_arg
1623 do
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001629 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 esac
1632 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001637 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1647 ;;
1648 -* ) ac_must_keep_next=true ;;
1649 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ;;
1653 esac
1654 done
John Criswell7a73b802003-06-30 21:59:07 +00001655done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001656$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001658
1659# When interrupted or exit'd, cleanup temporary files, and complete
1660# config.log. We remove comments because anyway the quotes in there
1661# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001662# WARNING: Use '\'' to represent an apostrophe within the trap.
1663# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001664trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1666 {
1667 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001668
John Criswell7a73b802003-06-30 21:59:07 +00001669 cat <<\_ASBOX
1670## ---------------- ##
1671## Cache variables. ##
1672## ---------------- ##
1673_ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001676(
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001687 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001688 esac ;;
1689 esac
1690 done
John Criswell7a73b802003-06-30 21:59:07 +00001691 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001694 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001698 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001701 esac |
1702 sort
1703)
John Criswell7a73b802003-06-30 21:59:07 +00001704 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001705
1706 cat <<\_ASBOX
1707## ----------------- ##
1708## Output variables. ##
1709## ----------------- ##
1710_ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1713 do
Reid Spencera773bd52006-08-04 18:18:08 +00001714 eval ac_val=\$$ac_var
1715 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001718 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 done | sort
1720 echo
1721
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001724## ------------------- ##
1725## File substitutions. ##
1726## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1730 do
Reid Spencera773bd52006-08-04 18:18:08 +00001731 eval ac_val=\$$ac_var
1732 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001734 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001735 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 done | sort
1737 echo
1738 fi
1739
John Criswell7a73b802003-06-30 21:59:07 +00001740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742## ----------- ##
1743## confdefs.h. ##
1744## ----------- ##
1745_ASBOX
1746 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001747 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001748 echo
1749 fi
1750 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001753 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001756 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001757' 0
John Criswell7a73b802003-06-30 21:59:07 +00001758for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001760done
1761ac_signal=0
1762
1763# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001764rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001765
1766# Predefined preprocessor variables.
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_NAME "$PACKAGE_NAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_VERSION "$PACKAGE_VERSION"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_STRING "$PACKAGE_STRING"
1785_ACEOF
1786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787
John Criswell7a73b802003-06-30 21:59:07 +00001788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790_ACEOF
1791
1792
1793# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001795if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001797elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803shift
1804for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001805do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1811 fi
1812done
1813
1814if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001823 esac
1824 fi
1825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001828 >$cache_file
1829fi
1830
1831# Check that the precious variables saved in the cache have kept the same
1832# value.
1833ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001834for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001839 case $ac_old_set,$ac_new_set in
1840 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001843 ac_cache_corrupted=: ;;
1844 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001847 ac_cache_corrupted=: ;;
1848 ,);;
1849 *)
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001869 esac
1870 fi
1871done
1872if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
Reid Spencera773bd52006-08-04 18:18:08 +00001903
John Criswell7a73b802003-06-30 21:59:07 +00001904ac_ext=c
1905ac_cpp='$CPP $CPPFLAGS'
1906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
John Criswell5a129712010-03-19 21:04:16 +00001912LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001913
1914
1915
1916
1917
1918
1919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001921for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
John Criswell7a73b802003-06-30 21:59:07 +00001935done
1936if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001940fi
Reid Spencera773bd52006-08-04 18:18:08 +00001941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
John Criswell7a73b802003-06-30 21:59:07 +00001950
John Criswell392aaa32003-07-22 19:18:09 +00001951
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001957 fi
John Criswell93e1c722003-09-15 17:04:06 +00001958fi
1959
John Criswell0157f502010-03-19 21:31:39 +00001960
1961
1962if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1979
1980fi
1981
1982if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1984
1985fi
1986
John Criswell33a911a2003-11-25 20:36:46 +00001987for i in `ls ${srcdir}/projects`
1988do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001989 if test -d ${srcdir}/projects/${i} ; then
1990 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001992 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001997 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001998;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002000 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002001 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002002 ;;
John Criswell7def2932010-02-25 22:57:19 +00002003 safecode) subdirs="$subdirs projects/safecode"
2004 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002005 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002006 ;;
John Criswell52c02862010-03-25 13:59:09 +00002007 llvm-gcc) ;;
2008 test-suite) ;;
2009 llvm-test) ;;
2010 poolalloc) ;;
2011 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2014echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002015 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002016 esac
John Criswell33a911a2003-11-25 20:36:46 +00002017 fi
2018done
John Criswell559a6c12003-09-30 16:31:48 +00002019
John Criswell7a73b802003-06-30 21:59:07 +00002020
2021# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002022$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002023 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027{ echo "$as_me:$LINENO: checking build system type" >&5
2028echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029if test "${ac_cv_build+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002031else
Reid Spencera773bd52006-08-04 18:18:08 +00002032 ac_build_alias=$build_alias
2033test "x$ac_build_alias" = x &&
2034 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002039ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002043
2044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002047case $ac_cv_build in
2048*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002049*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050echo "$as_me: error: invalid value of canonical build" >&2;}
2051 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002052esac
John Criswell7a73b802003-06-30 21:59:07 +00002053build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002054ac_save_IFS=$IFS; IFS='-'
2055set x $ac_cv_build
2056shift
2057build_cpu=$1
2058build_vendor=$2
2059shift; shift
2060# Remember, the first character of IFS is used to create $*,
2061# except with old shells:
2062build_os=$*
2063IFS=$ac_save_IFS
2064case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002065
2066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002067{ echo "$as_me:$LINENO: checking host system type" >&5
2068echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069if test "${ac_cv_host+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002071else
Reid Spencera773bd52006-08-04 18:18:08 +00002072 if test "x$host_alias" = x; then
2073 ac_cv_host=$ac_cv_build
2074else
2075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079fi
John Criswell7a73b802003-06-30 21:59:07 +00002080
2081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002082{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002084case $ac_cv_host in
2085*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087echo "$as_me: error: invalid value of canonical host" >&2;}
2088 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002089esac
John Criswell7a73b802003-06-30 21:59:07 +00002090host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002091ac_save_IFS=$IFS; IFS='-'
2092set x $ac_cv_host
2093shift
2094host_cpu=$1
2095host_vendor=$2
2096shift; shift
2097# Remember, the first character of IFS is used to create $*,
2098# except with old shells:
2099host_os=$*
2100IFS=$ac_save_IFS
2101case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002102
2103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002104{ echo "$as_me:$LINENO: checking target system type" >&5
2105echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2106if test "${ac_cv_target+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002108else
Reid Spencera773bd52006-08-04 18:18:08 +00002109 if test "x$target_alias" = x; then
2110 ac_cv_target=$ac_cv_host
2111else
2112 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2114echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116fi
John Criswell7a73b802003-06-30 21:59:07 +00002117
2118fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2120echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002121case $ac_cv_target in
2122*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2124echo "$as_me: error: invalid value of canonical target" >&2;}
2125 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002126esac
John Criswell7a73b802003-06-30 21:59:07 +00002127target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002128ac_save_IFS=$IFS; IFS='-'
2129set x $ac_cv_target
2130shift
2131target_cpu=$1
2132target_vendor=$2
2133shift; shift
2134# Remember, the first character of IFS is used to create $*,
2135# except with old shells:
2136target_os=$*
2137IFS=$ac_save_IFS
2138case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002139
2140
2141# The aliases save the names the user supplied, while $host etc.
2142# will get canonicalized.
2143test -n "$target_alias" &&
2144 test "$program_prefix$program_suffix$program_transform_name" = \
2145 NONENONEs,x,x, &&
2146 program_prefix=${target_alias}-
2147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2149echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2150if test "${llvm_cv_os_type+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002152else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002153 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002154 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002157 llvm_cv_os_type="AIX"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002159 *-*-irix*)
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="IRIX"
2163 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002164 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="Cygwin"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002170 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002171 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002172 llvm_cv_os_type="Darwin"
2173 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002174 *-*-minix*)
2175 llvm_cv_link_all_option="-Wl,-all_load"
2176 llvm_cv_no_link_all_option="-Wl,-noall_load"
2177 llvm_cv_os_type="Minix"
2178 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002179 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002182 llvm_cv_os_type="FreeBSD"
2183 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002184 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002187 llvm_cv_os_type="OpenBSD"
2188 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002189 *-*-netbsd*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="NetBSD"
2193 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002194 *-*-dragonfly*)
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="DragonFly"
2198 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002199 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002202 llvm_cv_os_type="HP-UX"
2203 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002204 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 llvm_cv_os_type="Interix"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 llvm_cv_os_type="Linux"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002217 llvm_cv_os_type="SunOS"
2218 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002219 *-*-auroraux*)
2220 llvm_cv_link_all_option="-Wl,-z,allextract"
2221 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2222 llvm_cv_os_type="AuroraUX"
2223 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002224 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002227 llvm_cv_os_type="Win32"
2228 llvm_cv_platform_type="Win32" ;;
2229 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232 llvm_cv_os_type="MingW"
2233 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002234 *-*-haiku*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Haiku"
2238 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002239 *-unknown-eabi*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
2244 *-unknown-elf*)
2245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247 llvm_cv_os_type="Freestanding"
2248 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option=""
2251 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="Unknown"
2253 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002254esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002256{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2257echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002259{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2260echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2261if test "${llvm_cv_target_os_type+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002263else
2264 case $target in
2265 *-*-aix*)
2266 llvm_cv_target_os_type="AIX" ;;
2267 *-*-irix*)
2268 llvm_cv_target_os_type="IRIX" ;;
2269 *-*-cygwin*)
2270 llvm_cv_target_os_type="Cygwin" ;;
2271 *-*-darwin*)
2272 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002273 *-*-minix*)
2274 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002275 *-*-freebsd*)
2276 llvm_cv_target_os_type="FreeBSD" ;;
2277 *-*-openbsd*)
2278 llvm_cv_target_os_type="OpenBSD" ;;
2279 *-*-netbsd*)
2280 llvm_cv_target_os_type="NetBSD" ;;
2281 *-*-dragonfly*)
2282 llvm_cv_target_os_type="DragonFly" ;;
2283 *-*-hpux*)
2284 llvm_cv_target_os_type="HP-UX" ;;
2285 *-*-interix*)
2286 llvm_cv_target_os_type="Interix" ;;
2287 *-*-linux*)
2288 llvm_cv_target_os_type="Linux" ;;
2289 *-*-solaris*)
2290 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002291 *-*-auroraux*)
2292 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002293 *-*-win32*)
2294 llvm_cv_target_os_type="Win32" ;;
2295 *-*-mingw*)
2296 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002297 *-*-haiku*)
2298 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002299 *-unknown-eabi*)
2300 llvm_cv_target_os_type="Freestanding" ;;
2301 *)
2302 llvm_cv_target_os_type="Unknown" ;;
2303esac
2304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2306echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2311 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002312fi
2313
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002315
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002316HOST_OS=$llvm_cv_os_type
2317
2318TARGET_OS=$llvm_cv_target_os_type
2319
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002320
Reid Spencera773bd52006-08-04 18:18:08 +00002321LINKALL=$llvm_cv_link_all_option
2322
2323NOLINKALL=$llvm_cv_no_link_all_option
2324
2325
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326case $llvm_cv_platform_type in
2327 Unix)
2328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002329cat >>confdefs.h <<\_ACEOF
2330#define LLVM_ON_UNIX 1
2331_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002333 LLVM_ON_UNIX=1
2334
2335 LLVM_ON_WIN32=0
2336
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337 ;;
2338 Win32)
2339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340cat >>confdefs.h <<\_ACEOF
2341#define LLVM_ON_WIN32 1
2342_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002344 LLVM_ON_UNIX=0
2345
2346 LLVM_ON_WIN32=1
2347
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348 ;;
2349esac
2350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: checking target architecture" >&5
2352echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2353if test "${llvm_cv_target_arch+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355else
2356 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002357 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002358 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002359 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2360 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002361 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002362 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002363 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002364 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002365 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002366 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002367 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002368 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002369 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002370 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002371esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002375
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002376if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002377 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379fi
John Criswell76595452003-07-01 22:07:39 +00002380
Nick Lewycky83fc4472009-09-29 05:48:51 +00002381# Determine the LLVM native architecture for the target
2382case "$llvm_cv_target_arch" in
2383 x86) LLVM_NATIVE_ARCH="X86" ;;
2384 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2385 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2386esac
2387
2388ARCH=$llvm_cv_target_arch
2389
2390
2391ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002396if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 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 +00002414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416 break 2
2417 fi
2418done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419done
Reid Spencera773bd52006-08-04 18:18:08 +00002420IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426 { echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429 { echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431fi
2432
Reid Spencera773bd52006-08-04 18:18:08 +00002433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434fi
2435if test -z "$ac_cv_prog_CC"; then
2436 ac_ct_CC=$CC
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 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 +00002454 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456 break 2
2457 fi
2458done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002459done
Reid Spencera773bd52006-08-04 18:18:08 +00002460IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461
2462fi
2463fi
2464ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002469 { echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471fi
2472
Reid Spencera773bd52006-08-04 18:18:08 +00002473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 CC="$ac_cv_prog_CC"
2490fi
2491
2492if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 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 +00002511 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513 break 2
2514 fi
2515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002516done
Reid Spencera773bd52006-08-04 18:18:08 +00002517IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518
2519fi
2520fi
2521CC=$ac_cv_prog_CC
2522if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002523 { echo "$as_me:$LINENO: result: $CC" >&5
2524echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002526 { echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529
Reid Spencera773bd52006-08-04 18:18:08 +00002530
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532fi
2533if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544 ac_prog_rejected=no
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 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 +00002552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2554 continue
2555 fi
2556 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558 break 2
2559 fi
2560done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2567 shift
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2572 shift
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 fi
2575fi
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002580 { echo "$as_me:$LINENO: result: $CC" >&5
2581echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583 { echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585fi
2586
Reid Spencera773bd52006-08-04 18:18:08 +00002587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588fi
2589if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002592 do
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002599else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 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 +00002610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002612 break 2
2613 fi
2614done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615done
Reid Spencera773bd52006-08-04 18:18:08 +00002616IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002617
2618fi
2619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622 { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002627fi
2628
Reid Spencera773bd52006-08-04 18:18:08 +00002629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002631 done
2632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633if test -z "$CC"; then
2634 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002635 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002636do
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002643else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 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 +00002654 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002656 break 2
2657 fi
2658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002659done
Reid Spencera773bd52006-08-04 18:18:08 +00002660IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002661
2662fi
2663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002675done
John Criswell7a73b802003-06-30 21:59:07 +00002676
Reid Spencera773bd52006-08-04 18:18:08 +00002677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683whose name does not start with the host triplet. If you think this
2684configuration is useful to you, please write to autoconf@gnu.org." >&5
2685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686whose name does not start with the host triplet. If you think this
2687configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002688ac_tool_warned=yes ;;
2689esac
2690 CC=$ac_ct_CC
2691 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692fi
2693
John Criswell7a73b802003-06-30 21:59:07 +00002694fi
2695
2696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002697test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&5
2699echo "$as_me: error: no acceptable C compiler found in \$PATH
2700See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702
John Criswell7a73b802003-06-30 21:59:07 +00002703# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002704echo "$as_me:$LINENO: checking for C compiler version" >&5
2705ac_compiler=`set X $ac_compile; echo $2`
2706{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002713 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716{ (ac_try="$ac_compiler -v >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726{ (ac_try="$ac_compiler -V >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002743
John Criswell7a73b802003-06-30 21:59:07 +00002744int
2745main ()
2746{
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002754# Try to create an executable without -o first, disregard a.out.
2755# It will help us diagnose broken compilers, and finding out an intuition
2756# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2760#
2761# List of possible output files, starting from the most likely.
2762# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763# only as a last resort. b.out is created by i960 compilers.
2764ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765#
2766# The IRIX 6 linker writes into existing files which may not be
2767# executable, retaining their permissions. Remove them first so a
2768# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002769ac_rmfiles=
2770for ac_file in $ac_files
2771do
2772 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 esac
2776done
2777rm -f $ac_rmfiles
2778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002779if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002785 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002786 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791# in a Makefile. We should not override ac_cv_exeext if it was cached,
2792# so that the user can short-circuit this test for compilers unknown to
2793# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002794for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002795do
2796 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002797 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002815 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002817 esac
2818done
Reid Spencera773bd52006-08-04 18:18:08 +00002819test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
John Criswell7a73b802003-06-30 21:59:07 +00002821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002823sed 's/^/| /' conftest.$ac_ext >&5
2824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826See \`config.log' for more details." >&5
2827echo "$as_me: error: C compiler cannot create executables
2828See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002830fi
John Criswell7a73b802003-06-30 21:59:07 +00002831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002832ac_exeext=$ac_cv_exeext
2833{ echo "$as_me:$LINENO: result: $ac_file" >&5
2834echo "${ECHO_T}$ac_file" >&6; }
2835
2836# Check that the compiler produces executables we can run. If not, either
2837# the compiler is broken, or we cross compile.
2838{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841# If not cross compiling, check that we can run a simple program.
2842if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 cross_compiling=no
2854 else
2855 if test "$cross_compiling" = maybe; then
2856 cross_compiling=yes
2857 else
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&5
2861echo "$as_me: error: cannot run C compiled programs.
2862If you meant to cross compile, use \`--host'.
2863See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866 fi
2867fi
2868{ echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6; }
2870
2871rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002872ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002873# Check that the compiler produces executables we can run. If not, either
2874# the compiler is broken, or we cross compile.
2875{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878echo "${ECHO_T}$cross_compiling" >&6; }
2879
2880{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002888 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002889 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002896for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002898 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002901 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002902 * ) break;;
2903 esac
2904done
2905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002912
2913rm -f conftest$ac_cv_exeext
2914{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002916
2917rm -f conftest.$ac_ext
2918EXEEXT=$ac_cv_exeext
2919ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002920{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002925 cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002931
John Criswell7a73b802003-06-30 21:59:07 +00002932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002941if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002947 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002948 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002953 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 break;;
2957 esac
2958done
2959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002969
John Criswell7a73b802003-06-30 21:59:07 +00002970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002972{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002976{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002987
John Criswell7a73b802003-06-30 21:59:07 +00002988int
2989main ()
2990{
2991#ifndef __GNUC__
2992 choke me
2993#endif
2994
2995 ;
2996 return 0;
2997}
2998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999rm -f conftest.$ac_objext
3000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003033 ac_compiler_gnu=yes
3034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003040
Reid Spencera773bd52006-08-04 18:18:08 +00003041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003043
3044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003045{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003050{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052if test "${ac_cv_prog_cc_g+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003054else
Reid Spencera773bd52006-08-04 18:18:08 +00003055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3057 ac_cv_prog_cc_g=no
3058 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003059 cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003065
John Criswell7a73b802003-06-30 21:59:07 +00003066int
3067main ()
3068{
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074rm -f conftest.$ac_objext
3075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003108 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 :
Torok Edwin871384f2010-01-26 08:50:50 +00003164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003169 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003219 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220else
3221 echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
John Criswell7a73b802003-06-30 21:59:07 +00003225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226
Reid Spencera773bd52006-08-04 18:18:08 +00003227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003229
Reid Spencera773bd52006-08-04 18:18:08 +00003230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232
Reid Spencera773bd52006-08-04 18:18:08 +00003233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003236{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003249 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003251 fi
3252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003253{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257else
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
3268#include <sys/types.h>
3269#include <sys/stat.h>
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003292 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003295 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
Reid Spencera773bd52006-08-04 18:18:08 +00003298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319do
3320 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321 rm -f conftest.$ac_objext
3322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($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_try") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003355 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003362
Reid Spencera773bd52006-08-04 18:18:08 +00003363rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365done
Reid Spencera773bd52006-08-04 18:18:08 +00003366rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367CC=$ac_save_CC
3368
3369fi
Reid Spencera773bd52006-08-04 18:18:08 +00003370# AC_CACHE_VAL
3371case "x$ac_cv_prog_cc_c89" in
3372 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003373 { echo "$as_me:$LINENO: result: none needed" >&5
3374echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003375 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003379 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382esac
3383
John Criswell0c38eaf2003-09-10 15:17:25 +00003384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399# On Suns, sometimes $CPP names a directory.
3400if test -n "$CPP" && test -d "$CPP"; then
3401 CPP=
3402fi
3403if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406else
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 do
3410 ac_preproc_ok=false
3411for ac_c_preproc_warn_flag in '' yes
3412do
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424/* end confdefs.h. */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430 Syntax error
3431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460 # Broken: fails on valid input.
3461continue
3462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003463
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464rm -f conftest.err conftest.$ac_ext
3465
Reid Spencera773bd52006-08-04 18:18:08 +00003466 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003468 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h. */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473/* end confdefs.h. */
3474#include <ac_nonexistent.h>
3475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003476if { (ac_try="$ac_cpp conftest.$ac_ext"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 else
3493 ac_cpp_err=
3494 fi
3495else
3496 ac_cpp_err=yes
3497fi
3498if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Broken: success on invalid input.
3500continue
3501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505 # Passes both tests.
3506ac_preproc_ok=:
3507break
3508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003509
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003515if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516 break
3517fi
3518
3519 done
3520 ac_cv_prog_CPP=$CPP
3521
3522fi
3523 CPP=$ac_cv_prog_CPP
3524else
3525 ac_cv_prog_CPP=$CPP
3526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003527{ echo "$as_me:$LINENO: result: $CPP" >&5
3528echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003543/* end confdefs.h. */
3544#ifdef __STDC__
3545# include <limits.h>
3546#else
3547# include <assert.h>
3548#endif
3549 Syntax error
3550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
3574 :
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 # Broken: fails on valid input.
3580continue
3581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583rm -f conftest.err conftest.$ac_ext
3584
Reid Spencera773bd52006-08-04 18:18:08 +00003585 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592/* end confdefs.h. */
3593#include <ac_nonexistent.h>
3594_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003595if { (ac_try="$ac_cpp conftest.$ac_ext"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614else
3615 ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Broken: success on invalid input.
3619continue
3620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003634if $ac_preproc_ok; then
3635 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&5
3639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003642fi
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
John Criswell7a73b802003-06-30 21:59:07 +00003650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003656 # Extract the first word of "grep ggrep" to use in msg output
3657if test -z "$GREP"; then
3658set dummy grep ggrep; ac_prog_name=$2
3659if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
Reid Spencera773bd52006-08-04 18:18:08 +00003662 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663# Loop through the user's path and test for each of PROGNAME-LIST
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003674 # Check for GNU $ac_path_GREP
3675case `"$ac_path_GREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678*)
3679 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003686 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003689 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699esac
3700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003701
3702 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003703 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003704done
3705
3706done
Reid Spencera773bd52006-08-04 18:18:08 +00003707IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003708
3709
3710fi
3711
3712GREP="$ac_cv_path_GREP"
3713if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3717fi
3718
Reid Spencera773bd52006-08-04 18:18:08 +00003719else
3720 ac_cv_path_GREP=$GREP
3721fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723
Reid Spencera773bd52006-08-04 18:18:08 +00003724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003727 GREP="$ac_cv_path_GREP"
3728
3729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003730{ echo "$as_me:$LINENO: checking for egrep" >&5
3731echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003734else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003738 # Extract the first word of "egrep" to use in msg output
3739if test -z "$EGREP"; then
3740set dummy egrep; ac_prog_name=$2
3741if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
Reid Spencera773bd52006-08-04 18:18:08 +00003744 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745# Loop through the user's path and test for each of PROGNAME-LIST
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003756 # Check for GNU $ac_path_EGREP
3757case `"$ac_path_EGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760*)
3761 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003771 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003783
3784 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003785 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003786done
3787
3788done
Reid Spencera773bd52006-08-04 18:18:08 +00003789IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003790
3791
3792fi
3793
3794EGREP="$ac_cv_path_EGREP"
3795if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3799fi
3800
Reid Spencera773bd52006-08-04 18:18:08 +00003801else
3802 ac_cv_path_EGREP=$EGREP
3803fi
3804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805
Reid Spencera773bd52006-08-04 18:18:08 +00003806 fi
3807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003808{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003810 EGREP="$ac_cv_path_EGREP"
3811
3812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003813{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003818 cat >conftest.$ac_ext <<_ACEOF
3819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003824#include <stdlib.h>
3825#include <stdarg.h>
3826#include <string.h>
3827#include <float.h>
3828
John Criswell0c38eaf2003-09-10 15:17:25 +00003829int
3830main ()
3831{
3832
3833 ;
3834 return 0;
3835}
John Criswell7a73b802003-06-30 21:59:07 +00003836_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003837rm -f conftest.$ac_objext
3838if { (ac_try="$ac_compile"
3839case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003871 ac_cv_header_stdc=yes
3872else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003873 echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878
Reid Spencera773bd52006-08-04 18:18:08 +00003879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003880
3881if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003893 $EGREP "memchr" >/dev/null 2>&1; then
3894 :
John Criswell7a73b802003-06-30 21:59:07 +00003895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003904 cat >conftest.$ac_ext <<_ACEOF
3905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003910#include <stdlib.h>
3911
3912_ACEOF
3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003914 $EGREP "free" >/dev/null 2>&1; then
3915 :
John Criswell7a73b802003-06-30 21:59:07 +00003916else
3917 ac_cv_header_stdc=no
3918fi
3919rm -f conftest*
3920
3921fi
3922
3923if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003925 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003926 :
3927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003934#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003935#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003936#if ((' ' & 0x0FF) == 0x020)
3937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003940# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945#endif
3946
3947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948int
3949main ()
3950{
3951 int i;
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003954 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003955 return 2;
3956 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003957}
3958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959rm -f conftest$ac_exeext
3960if { (ac_try="$ac_link"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 :
John Criswell7a73b802003-06-30 21:59:07 +00003980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981 echo "$as_me: program exited with status $ac_status" >&5
3982echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985( exit $ac_status )
3986ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988rm -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 +00003989fi
3990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991
John Criswell7a73b802003-06-30 21:59:07 +00003992fi
3993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003996if test $ac_cv_header_stdc = yes; then
3997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003998cat >>confdefs.h <<\_ACEOF
3999#define STDC_HEADERS 1
4000_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004001
4002fi
4003
Reid Spencera773bd52006-08-04 18:18:08 +00004004# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005
4006
4007
4008
4009
4010
4011
4012
4013
Reid Spencera773bd52006-08-04 18:18:08 +00004014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004016do
4017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029$ac_includes_default
4030
4031#include <$ac_header>
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (ac_try="$ac_compile"
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_Header=no"
4073fi
4074
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079echo "${ECHO_T}$ac_res" >&6; }
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004081 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004083_ACEOF
4084
4085fi
4086
4087done
4088
4089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004095 # See if sys/param.h defines the BYTE_ORDER macro.
4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004101/* end confdefs.h. */
4102#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004104
4105int
4106main ()
4107{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109 bogus endian macros
4110#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004111
4112 ;
4113 return 0;
4114}
4115_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116rm -f conftest.$ac_objext
4117if { (ac_try="$ac_compile"
4118case "(($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_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004150 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004156/* end confdefs.h. */
4157#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004158#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004159
4160int
4161main ()
4162{
4163#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004164 not big endian
4165#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004166
4167 ;
4168 return 0;
4169}
4170_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171rm -f conftest.$ac_objext
4172if { (ac_try="$ac_compile"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004205 ac_cv_c_bigendian=yes
4206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210 ac_cv_c_bigendian=no
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 # It does not; compile a test program.
4219if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004234int
4235main ()
4236{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004237 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004238 ;
4239 return 0;
4240}
4241_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004242rm -f conftest.$ac_objext
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004277 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004278fi
4279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4282 else
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4285 fi
4286fi
Reid Spencera773bd52006-08-04 18:18:08 +00004287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291
Torok Edwin871384f2010-01-26 08:50:50 +00004292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004293
Reid Spencera773bd52006-08-04 18:18:08 +00004294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004301/* end confdefs.h. */
4302$ac_includes_default
4303int
4304main ()
4305{
4306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004307 /* Are we little or big endian? From Harbison&Steele. */
4308 union
4309 {
4310 long int l;
4311 char c[sizeof (long int)];
4312 } u;
4313 u.l = 1;
4314 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004315
4316 ;
4317 return 0;
4318}
4319_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004320rm -f conftest$ac_exeext
4321if { (ac_try="$ac_link"
4322case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004340 ac_cv_c_bigendian=no
4341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004342 echo "$as_me: program exited with status $ac_status" >&5
4343echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346( exit $ac_status )
4347ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349rm -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 +00004350fi
4351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352
Reid Spencera773bd52006-08-04 18:18:08 +00004353fi
4354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359case $ac_cv_c_bigendian in
4360 yes)
4361 ENDIAN=big
4362 ;;
4363 no)
4364 ENDIAN=little
4365 ;;
4366 *)
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369echo "$as_me: error: unknown endianness
4370presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4372esac
Reid Spencera773bd52006-08-04 18:18:08 +00004373
4374
4375if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4377
4378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004383else
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4386else
4387 ac_build_prefix=${build_alias}-
4388
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004395else
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 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 +00004406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004408 break 2
4409 fi
4410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411done
Reid Spencera773bd52006-08-04 18:18:08 +00004412IFS=$as_save_IFS
4413
4414fi
4415fi
4416BUILD_CC=$ac_cv_prog_BUILD_CC
4417if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004423fi
4424
4425
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 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 +00004444 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004446 break 2
4447 fi
4448done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449done
Reid Spencera773bd52006-08-04 18:18:08 +00004450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475 ac_prog_rejected=no
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 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 +00004483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004489 break 2
4490 fi
4491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492done
Reid Spencera773bd52006-08-04 18:18:08 +00004493IFS=$as_save_IFS
4494
4495if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506fi
4507fi
4508fi
4509BUILD_CC=$ac_cv_prog_BUILD_CC
4510if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514 { echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004516fi
4517
4518
4519 fi
4520 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4527 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004529 (eval $ac_build_link) 2>&5
4530 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004533 for file in conftest.*; do
4534 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004535 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537 esac
4538 done
4539 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004543 fi
4544 rm -f conftest*
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546fi
4547fi
4548
4549BUILD_EXEEXT=""
4550test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004551{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004553ac_build_exeext=$BUILD_EXEEXT
4554
Jim Grosbach673612e2008-10-02 22:56:44 +00004555 ac_build_prefix=${build_alias}-
4556 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4557set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004562else
4563 if test -n "$BUILD_CXX"; then
4564 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 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 +00004573 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004575 break 2
4576 fi
4577done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004578done
Jim Grosbach673612e2008-10-02 22:56:44 +00004579IFS=$as_save_IFS
4580
4581fi
4582fi
4583BUILD_CXX=$ac_cv_prog_BUILD_CXX
4584if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4586echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004588 { echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004590fi
4591
4592
4593 if test -z "$BUILD_CXX"; then
4594 # Extract the first word of "g++", so it can be a program name with args.
4595set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004600else
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 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 +00004611 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004613 break 2
4614 fi
4615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616done
Jim Grosbach673612e2008-10-02 22:56:44 +00004617IFS=$as_save_IFS
4618
4619fi
4620fi
4621BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626 { echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004628fi
4629
4630
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "c++", so it can be a program name with args.
4633set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004638else
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641else
4642 ac_prog_rejected=no
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 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 +00004650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4651 ac_prog_rejected=yes
4652 continue
4653 fi
4654 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004656 break 2
4657 fi
4658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659done
Jim Grosbach673612e2008-10-02 22:56:44 +00004660IFS=$as_save_IFS
4661
4662if test $ac_prog_rejected = yes; then
4663 # We found a bogon in the path, so make sure we never use it.
4664 set dummy $ac_cv_prog_BUILD_CXX
4665 shift
4666 if test $# != 0; then
4667 # We chose a different compiler from the bogus one.
4668 # However, it has the same basename, so the bogon will be chosen
4669 # first if we set BUILD_CXX to just the basename; use the full file name.
4670 shift
4671 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 fi
4673fi
4674fi
4675fi
4676BUILD_CXX=$ac_cv_prog_BUILD_CXX
4677if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4679echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681 { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004683fi
4684
4685
4686 fi
4687 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004688else
4689 LLVM_CROSS_COMPILING=0
4690
4691fi
4692
Dan Gohman56fb5f92010-08-04 16:25:01 +00004693if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004694 cvsbuild="yes"
4695 optimize="no"
4696 CVSBUILD=CVSBUILD=1
4697
4698else
4699 cvsbuild="no"
4700 optimize="yes"
4701fi
4702
4703
4704# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004706 enableval=$enable_optimized;
4707else
4708 enableval=$optimize
4709fi
4710
4711if test ${enableval} = "no" ; then
4712 ENABLE_OPTIMIZED=
4713
4714else
4715 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4716
4717fi
4718
David Greene2a5a12c2009-04-17 14:50:39 +00004719# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004721 enableval=$enable_profiling;
4722else
4723 enableval="no"
4724fi
4725
4726if test ${enableval} = "no" ; then
4727 ENABLE_PROFILING=
4728
4729else
4730 ENABLE_PROFILING=ENABLE_PROFILING=1
4731
4732fi
4733
Reid Spencera773bd52006-08-04 18:18:08 +00004734# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004735if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004736 enableval=$enable_assertions;
4737else
4738 enableval="yes"
4739fi
4740
4741if test ${enableval} = "yes" ; then
4742 DISABLE_ASSERTIONS=
4743
4744else
4745 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4746
4747fi
4748
David Greenea696d242007-06-28 19:36:08 +00004749# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004751 enableval=$enable_expensive_checks;
4752else
4753 enableval="no"
4754fi
4755
4756if test ${enableval} = "yes" ; then
4757 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758
4759 EXPENSIVE_CHECKS=yes
4760
4761else
4762 ENABLE_EXPENSIVE_CHECKS=
4763
4764 EXPENSIVE_CHECKS=no
4765
4766fi
4767
Reid Spencer8b2e1412006-11-17 03:32:33 +00004768# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004770 enableval=$enable_debug_runtime;
4771else
4772 enableval=no
4773fi
4774
4775if test ${enableval} = "no" ; then
4776 DEBUG_RUNTIME=
4777
4778else
4779 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4780
4781fi
4782
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004783# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004785 enableval=$enable_debug_symbols;
4786else
4787 enableval=no
4788fi
4789
4790if test ${enableval} = "no" ; then
4791 DEBUG_SYMBOLS=
4792
4793else
4794 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4795
4796fi
4797
Reid Spencera773bd52006-08-04 18:18:08 +00004798# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004800 enableval=$enable_jit;
4801else
4802 enableval=default
4803fi
4804
4805if test ${enableval} = "no"
4806then
4807 JIT=
4808
4809else
4810 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004820 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004821 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004828 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004829 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004830 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004831 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004832 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004833 Blackfin) TARGET_HAS_JIT=0
4834 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004835 MBlaze) TARGET_HAS_JIT=0
4836 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004837 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004838 ;;
4839 esac
4840fi
4841
4842# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004843if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004844 enableval=$enable_doxygen;
4845else
4846 enableval=default
4847fi
4848
4849case "$enableval" in
4850 yes) ENABLE_DOXYGEN=1
4851 ;;
4852 no) ENABLE_DOXYGEN=0
4853 ;;
4854 default) ENABLE_DOXYGEN=0
4855 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4857echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4858 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004859esac
4860
4861# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004863 enableval=$enable_threads;
4864else
Reid Spencer65c5d752006-11-05 17:08:18 +00004865 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_THREADS=1
4870 ;;
4871 no) ENABLE_THREADS=0
4872 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004873 default) ENABLE_THREADS=1
4874 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004878esac
4879
Owen Andersona8603702009-05-19 22:18:56 +00004880cat >>confdefs.h <<_ACEOF
4881#define ENABLE_THREADS $ENABLE_THREADS
4882_ACEOF
4883
4884
Reid Spencer89b0d992006-12-16 22:07:52 +00004885# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004887 enableval=$enable_pic;
4888else
4889 enableval=default
4890fi
4891
4892case "$enableval" in
4893 yes) ENABLE_PIC=1
4894 ;;
4895 no) ENABLE_PIC=0
4896 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004897 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004898 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4900echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004902esac
4903
4904cat >>confdefs.h <<_ACEOF
4905#define ENABLE_PIC $ENABLE_PIC
4906_ACEOF
4907
4908
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004909# Check whether --enable-shared was given.
4910if test "${enable_shared+set}" = set; then
4911 enableval=$enable_shared;
4912else
4913 enableval=default
4914fi
4915
4916case "$enableval" in
4917 yes) ENABLE_SHARED=1
4918 ;;
4919 no) ENABLE_SHARED=0
4920 ;;
4921 default) ENABLE_SHARED=0
4922 ;;
4923 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4924echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4926esac
4927
Daniel Dunbardd464df2010-05-10 20:11:56 +00004928# Check whether --enable-timestamps was given.
4929if test "${enable_timestamps+set}" = set; then
4930 enableval=$enable_timestamps;
4931else
4932 enableval=default
4933fi
4934
4935case "$enableval" in
4936 yes) ENABLE_TIMESTAMPS=1
4937 ;;
4938 no) ENABLE_TIMESTAMPS=0
4939 ;;
4940 default) ENABLE_TIMESTAMPS=1
4941 ;;
4942 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4943echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4944 { (exit 1); exit 1; }; } ;;
4945esac
4946
4947cat >>confdefs.h <<_ACEOF
4948#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4949_ACEOF
4950
4951
Reid Spencera773bd52006-08-04 18:18:08 +00004952TARGETS_TO_BUILD=""
4953# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004954if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004955 enableval=$enable_targets;
4956else
4957 enableval=all
4958fi
4959
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004960if test "$enableval" = host-only ; then
4961 enableval=host
4962fi
Reid Spencera773bd52006-08-04 18:18:08 +00004963case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004964 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004965 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4966 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004967 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4968 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4970 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4971 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4972 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4973 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4974 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4975 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4976 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4977 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4978 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4979 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4980 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4981 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4982 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004983 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004984 host) case "$llvm_cv_target_arch" in
4985 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4986 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4988 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4989 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4990 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4991 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004992 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004993 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4994 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4995 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4996 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004997 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004998 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004999 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5000echo "$as_me: error: Can not set target to build" >&2;}
5001 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005002 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005003 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5004echo "$as_me: error: Unrecognized target $a_target" >&2;}
5005 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005006 esac
5007 done
5008 ;;
5009esac
Reid Spencera773bd52006-08-04 18:18:08 +00005010TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5011
5012
Douglas Gregor0711c302009-06-17 00:43:20 +00005013# Determine whether we are building LLVM support for the native architecture.
5014# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5015for a_target in $TARGETS_TO_BUILD; do
5016 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005017 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005018
5019cat >>confdefs.h <<_ACEOF
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005020#define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5021_ACEOF
5022
5023
5024cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005025#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005026_ACEOF
5027
5028 fi
5029done
5030
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005031# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5032# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005033LLVM_ENUM_TARGETS=""
5034LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005035LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005036LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005037for target_to_build in $TARGETS_TO_BUILD; do
5038 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5039 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5040 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5041 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005042 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5043 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5044 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005045 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5046 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5047 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005048done
5049
5050
5051
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005052
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005053
Reid Spencer65c5d752006-11-05 17:08:18 +00005054# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005056 enableval=$enable_cbe_printf_a;
5057else
5058 enableval=default
5059fi
5060
5061case "$enableval" in
5062 yes) ENABLE_CBE_PRINTF_A=1
5063 ;;
5064 no) ENABLE_CBE_PRINTF_A=0
5065 ;;
5066 default) ENABLE_CBE_PRINTF_A=1
5067 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005068 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5069echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5070 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005071esac
5072
5073cat >>confdefs.h <<_ACEOF
5074#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5075_ACEOF
5076
5077
Reid Spencera773bd52006-08-04 18:18:08 +00005078
5079# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005080if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005081 withval=$with_llvmgccdir;
5082else
5083 withval=default
5084fi
5085
5086case "$withval" in
5087 default) WITH_LLVMGCCDIR=default ;;
5088 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005089 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5090echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5091 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005092esac
5093
5094
Devang Patel5d28b882007-12-04 22:54:47 +00005095# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005096if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005097 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5098 WITH_LLVMGCCDIR=""
5099fi
5100
5101
5102
5103# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005104if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005105 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5106 WITH_LLVMGCCDIR=""
5107fi
5108
Douglas Gregor01746742009-05-11 18:05:52 +00005109
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005110if test -n "$LLVMGCC"; then
5111 LLVMGCCCOMMAND="$LLVMGCC"
5112fi
5113
5114if test -n "$LLVMGXX"; then
5115 LLVMGXXCOMMAND="$LLVMGXX"
5116fi
Devang Patel5d28b882007-12-04 22:54:47 +00005117
5118if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005119 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5120echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5121 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005122fi
5123
5124if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005125 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5126echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5127 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005128fi
5129
5130
Daniel Dunbar98515672010-02-23 10:00:49 +00005131# Check whether --with-clang was given.
5132if test "${with_clang+set}" = set; then
5133 withval=$with_clang;
5134else
5135 with_clang=default
5136fi
5137
5138
5139
5140# Check whether --with-built-clang was given.
5141if test "${with_built_clang+set}" = set; then
5142 withval=$with_built_clang;
5143else
5144 with_built_clang=check
5145fi
5146
5147
5148{ echo "$as_me:$LINENO: checking clang compiler" >&5
5149echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5150WITH_CLANGPATH=""
5151WITH_BUILT_CLANG=0
5152if test "$with_clang" != "default"; then
5153 WITH_CLANGPATH="$with_clang"
5154 if ! test -x "$WITH_CLANGPATH"; then
5155 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5156echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5157 { (exit 1); exit 1; }; }
5158 fi
5159elif test "$with_built_clang" = "yes"; then
5160 WITH_BUILT_CLANG=1
5161elif test "$with_built_clang" = "no"; then
5162 WITH_BUILT_CLANG=0
5163else
5164 if test "$with_built_clang" != "check"; then
5165 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5166echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5167 { (exit 1); exit 1; }; }
5168 fi
5169
5170 if test -f ${srcdir}/tools/clang/README.txt; then
5171 WITH_BUILT_CLANG=1
5172 fi
5173fi
5174
5175if ! test -z "$WITH_CLANGPATH"; then
5176 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5177echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5178 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5179elif test "$WITH_BUILT_CLANG" = "1"; then
5180 { echo "$as_me:$LINENO: result: built" >&5
5181echo "${ECHO_T}built" >&6; }
5182else
5183 { echo "$as_me:$LINENO: result: none" >&5
5184echo "${ECHO_T}none" >&6; }
5185fi
5186CLANGPATH=$WITH_CLANGPATH
5187
5188CLANGXXPATH=$WITH_CLANGXXPATH
5189
5190ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5191
5192
5193
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005194# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005196 withval=$with_optimize_option;
5197else
5198 withval=default
5199fi
5200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005201{ echo "$as_me:$LINENO: checking optimization flags" >&5
5202echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005203case "$withval" in
5204 default)
5205 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005206 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005207 MingW) optimize_option=-O2 ;;
5208 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005209 esac ;;
5210 *) optimize_option="$withval" ;;
5211esac
5212OPTIMIZE_OPTION=$optimize_option
5213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005214{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5215echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005216
5217
Reid Spencera773bd52006-08-04 18:18:08 +00005218# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005219if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005220 withval=$with_extra_options;
5221else
5222 withval=default
5223fi
5224
5225case "$withval" in
5226 default) EXTRA_OPTIONS= ;;
5227 *) EXTRA_OPTIONS=$withval ;;
5228esac
5229EXTRA_OPTIONS=$EXTRA_OPTIONS
5230
5231
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005232# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005233if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005234 enableval=$enable_bindings;
5235else
5236 enableval=default
5237fi
5238
5239BINDINGS_TO_BUILD=""
5240case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005241 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005242 all ) BINDINGS_TO_BUILD="ocaml" ;;
5243 none | no) BINDINGS_TO_BUILD="" ;;
5244 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5245 case "$a_binding" in
5246 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005247 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5248echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5249 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005250 esac
5251 done
5252 ;;
5253esac
5254
Reid Spencera773bd52006-08-04 18:18:08 +00005255
Gordon Henriksenf0915682007-10-02 16:42:22 +00005256# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005257if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005258 withval=$with_ocaml_libdir;
5259else
5260 withval=auto
5261fi
5262
5263case "$withval" in
5264 auto) with_ocaml_libdir="$withval" ;;
5265 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005266 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5267echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5268 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005269esac
5270
5271
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005272# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005273if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005274 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005275else
5276 withval=""
5277fi
5278
5279
5280cat >>confdefs.h <<_ACEOF
5281#define C_INCLUDE_DIRS "$withval"
5282_ACEOF
5283
5284
5285
Rafael Espindola420d23c2009-11-16 19:46:55 +00005286# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005287if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005288 withval=$with_cxx_include_root;
5289else
5290 withval=""
5291fi
5292
5293
5294cat >>confdefs.h <<_ACEOF
5295#define CXX_INCLUDE_ROOT "$withval"
5296_ACEOF
5297
5298
5299
5300# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005301if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005302 withval=$with_cxx_include_arch;
5303else
5304 withval=""
5305fi
5306
5307
5308cat >>confdefs.h <<_ACEOF
5309#define CXX_INCLUDE_ARCH "$withval"
5310_ACEOF
5311
5312
5313
5314# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005315if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005316 withval=$with_cxx_include_32bit_dir;
5317else
5318 withval=""
5319fi
5320
5321
5322cat >>confdefs.h <<_ACEOF
5323#define CXX_INCLUDE_32BIT_DIR "$withval"
5324_ACEOF
5325
5326
5327
5328# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005329if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005330 withval=$with_cxx_include_64bit_dir;
5331else
5332 withval=""
5333fi
5334
5335
5336cat >>confdefs.h <<_ACEOF
5337#define CXX_INCLUDE_64BIT_DIR "$withval"
5338_ACEOF
5339
5340
5341
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005342# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005343if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005344 withval=$with_binutils_include;
5345else
5346 withval=default
5347fi
5348
5349case "$withval" in
5350 default) WITH_BINUTILS_INCDIR=default ;;
5351 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005352 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5353echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5354 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005355esac
5356if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5357 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5358
5359 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5360 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005361 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5362echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5363 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005364 fi
5365fi
5366
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005367# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005368if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005369 enableval=$enable_libffi; case "$enableval" in
5370 yes) llvm_cv_enable_libffi="yes" ;;
5371 no) llvm_cv_enable_libffi="no" ;;
5372 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005373echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5374 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005375 esac
5376else
5377 llvm_cv_enable_libffi=no
5378fi
5379
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005380
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005381if test "$llvm_cv_os_type" = "Win32" ; then
5382 llvmc_dynamic="yes"
5383else
5384 llvmc_dynamic="no"
5385fi
5386
5387# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005389 enableval=$enable_llvmc_dynamic;
5390else
5391 enableval=$llvmc_dynamic
5392fi
5393
5394if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5395 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5396
5397else
5398 ENABLE_LLVMC_DYNAMIC=
5399
5400fi
5401
5402# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005404 enableval=$enable_llvmc_dynamic_plugins;
5405else
5406 enableval=yes
5407fi
5408
5409if test ${enableval} = "yes" ; then
5410 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5411
5412else
5413 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5414
5415fi
5416
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005417
Reid Spencera773bd52006-08-04 18:18:08 +00005418ac_ext=c
5419ac_cpp='$CPP $CPPFLAGS'
5420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005425# On Suns, sometimes $CPP names a directory.
5426if test -n "$CPP" && test -d "$CPP"; then
5427 CPP=
5428fi
5429if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005430 if test "${ac_cv_prog_CPP+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005432else
5433 # Double quotes because CPP needs to be expanded
5434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5435 do
5436 ac_preproc_ok=false
5437for ac_c_preproc_warn_flag in '' yes
5438do
5439 # Use a header file that comes with gcc, so configuring glibc
5440 # with a fresh cross-compiler works.
5441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 # <limits.h> exists even on freestanding compilers.
5443 # On the NeXT, cc -E runs the code through the compiler's parser,
5444 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445 cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005450/* end confdefs.h. */
5451#ifdef __STDC__
5452# include <limits.h>
5453#else
5454# include <assert.h>
5455#endif
5456 Syntax error
5457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005458if { (ac_try="$ac_cpp conftest.$ac_ext"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev/null; then
5471 if test -s conftest.err; then
5472 ac_cpp_err=$ac_c_preproc_warn_flag
5473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5474 else
5475 ac_cpp_err=
5476 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005478 ac_cpp_err=yes
5479fi
5480if test -z "$ac_cpp_err"; then
5481 :
5482else
5483 echo "$as_me: failed program was:" >&5
5484sed 's/^/| /' conftest.$ac_ext >&5
5485
Reid Spencera773bd52006-08-04 18:18:08 +00005486 # Broken: fails on valid input.
5487continue
5488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489
Reid Spencera773bd52006-08-04 18:18:08 +00005490rm -f conftest.err conftest.$ac_ext
5491
5492 # OK, works on sane cases. Now check whether nonexistent headers
5493 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494 cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h. */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005499/* end confdefs.h. */
5500#include <ac_nonexistent.h>
5501_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502if { (ac_try="$ac_cpp conftest.$ac_ext"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } >/dev/null; then
5515 if test -s conftest.err; then
5516 ac_cpp_err=$ac_c_preproc_warn_flag
5517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5518 else
5519 ac_cpp_err=
5520 fi
5521else
5522 ac_cpp_err=yes
5523fi
5524if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005525 # Broken: success on invalid input.
5526continue
5527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005528 echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
Reid Spencera773bd52006-08-04 18:18:08 +00005531 # Passes both tests.
5532ac_preproc_ok=:
5533break
5534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535
Reid Spencera773bd52006-08-04 18:18:08 +00005536rm -f conftest.err conftest.$ac_ext
5537
5538done
5539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005541if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005542 break
5543fi
5544
5545 done
5546 ac_cv_prog_CPP=$CPP
5547
5548fi
5549 CPP=$ac_cv_prog_CPP
5550else
5551 ac_cv_prog_CPP=$CPP
5552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005553{ echo "$as_me:$LINENO: result: $CPP" >&5
5554echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005555ac_preproc_ok=false
5556for ac_c_preproc_warn_flag in '' yes
5557do
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564 cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005569/* end confdefs.h. */
5570#ifdef __STDC__
5571# include <limits.h>
5572#else
5573# include <assert.h>
5574#endif
5575 Syntax error
5576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577if { (ac_try="$ac_cpp conftest.$ac_ext"
5578case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581esac
5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } >/dev/null; then
5590 if test -s conftest.err; then
5591 ac_cpp_err=$ac_c_preproc_warn_flag
5592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5593 else
5594 ac_cpp_err=
5595 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597 ac_cpp_err=yes
5598fi
5599if test -z "$ac_cpp_err"; then
5600 :
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
Reid Spencera773bd52006-08-04 18:18:08 +00005605 # Broken: fails on valid input.
5606continue
5607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005608
Reid Spencera773bd52006-08-04 18:18:08 +00005609rm -f conftest.err conftest.$ac_ext
5610
5611 # OK, works on sane cases. Now check whether nonexistent headers
5612 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005613 cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h. */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005618/* end confdefs.h. */
5619#include <ac_nonexistent.h>
5620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621if { (ac_try="$ac_cpp conftest.$ac_ext"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637 else
5638 ac_cpp_err=
5639 fi
5640else
5641 ac_cpp_err=yes
5642fi
5643if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005644 # Broken: success on invalid input.
5645continue
5646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
Reid Spencera773bd52006-08-04 18:18:08 +00005650 # Passes both tests.
5651ac_preproc_ok=:
5652break
5653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654
Reid Spencera773bd52006-08-04 18:18:08 +00005655rm -f conftest.err conftest.$ac_ext
5656
5657done
5658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660if $ac_preproc_ok; then
5661 :
Reid Spencera773bd52006-08-04 18:18:08 +00005662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5664See \`config.log' for more details." >&5
5665echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5666See \`config.log' for more details." >&2;}
5667 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005668fi
5669
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681if test -n "$ac_tool_prefix"; then
5682 for ac_prog in gcc
5683 do
5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5688if test "${ac_cv_prog_CC+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005690else
5691 if test -n "$CC"; then
5692 ac_cv_prog_CC="$CC" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 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 +00005701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005703 break 2
5704 fi
5705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706done
Reid Spencera773bd52006-08-04 18:18:08 +00005707IFS=$as_save_IFS
5708
5709fi
5710fi
5711CC=$ac_cv_prog_CC
5712if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713 { echo "$as_me:$LINENO: result: $CC" >&5
5714echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005716 { echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005718fi
5719
5720
5721 test -n "$CC" && break
5722 done
5723fi
5724if test -z "$CC"; then
5725 ac_ct_CC=$CC
5726 for ac_prog in gcc
5727do
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005734else
5735 if test -n "$ac_ct_CC"; then
5736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 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 +00005745 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005747 break 2
5748 fi
5749done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750done
Reid Spencera773bd52006-08-04 18:18:08 +00005751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_CC=$ac_cv_prog_ac_ct_CC
5756if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5758echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760 { echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005762fi
5763
5764
5765 test -n "$ac_ct_CC" && break
5766done
5767
5768 if test "x$ac_ct_CC" = x; then
5769 CC=""
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5774whose name does not start with the host triplet. If you think this
5775configuration is useful to you, please write to autoconf@gnu.org." >&5
5776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5777whose name does not start with the host triplet. If you think this
5778configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005779ac_tool_warned=yes ;;
5780esac
5781 CC=$ac_ct_CC
5782 fi
5783fi
5784
5785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5787See \`config.log' for more details." >&5
5788echo "$as_me: error: no acceptable C compiler found in \$PATH
5789See \`config.log' for more details." >&2;}
5790 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005791
5792# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005793echo "$as_me:$LINENO: checking for C compiler version" >&5
5794ac_compiler=`set X $ac_compile; echo $2`
5795{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005802 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5805{ (ac_try="$ac_compiler -v >&5"
5806case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809esac
5810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compiler -v >&5") 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }
5815{ (ac_try="$ac_compiler -V >&5"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compiler -V >&5") 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005826{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5827echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5828if test "${ac_cv_c_compiler_gnu+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831 cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h. */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005836/* end confdefs.h. */
5837
5838int
5839main ()
5840{
5841#ifndef __GNUC__
5842 choke me
5843#endif
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005883 ac_compiler_gnu=yes
5884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885 echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005890
Reid Spencera773bd52006-08-04 18:18:08 +00005891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892ac_cv_c_compiler_gnu=$ac_compiler_gnu
5893
5894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5896echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5897GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005898ac_test_CFLAGS=${CFLAGS+set}
5899ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5901echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5902if test "${ac_cv_prog_cc_g+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005904else
5905 ac_save_c_werror_flag=$ac_c_werror_flag
5906 ac_c_werror_flag=yes
5907 ac_cv_prog_cc_g=no
5908 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005914/* end confdefs.h. */
5915
5916int
5917main ()
5918{
5919
5920 ;
5921 return 0;
5922}
5923_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924rm -f conftest.$ac_objext
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929esac
5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005958 ac_cv_prog_cc_g=yes
5959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 CFLAGS=""
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005969/* end confdefs.h. */
5970
5971int
5972main ()
5973{
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979rm -f conftest.$ac_objext
5980if { (ac_try="$ac_compile"
5981case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
Torok Edwin871384f2010-01-26 08:50:50 +00006014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006019 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020 cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h. */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006025/* end confdefs.h. */
6026
6027int
6028main ()
6029{
6030
6031 ;
6032 return 0;
6033}
6034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035rm -f conftest.$ac_objext
6036if { (ac_try="$ac_compile"
6037case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063esac
6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006069 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074
Reid Spencera773bd52006-08-04 18:18:08 +00006075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076
Reid Spencera773bd52006-08-04 18:18:08 +00006077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006079
Reid Spencera773bd52006-08-04 18:18:08 +00006080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082
Reid Spencera773bd52006-08-04 18:18:08 +00006083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_c_werror_flag=$ac_save_c_werror_flag
6085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6087echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006088if test "$ac_test_CFLAGS" = set; then
6089 CFLAGS=$ac_save_CFLAGS
6090elif test $ac_cv_prog_cc_g = yes; then
6091 if test "$GCC" = yes; then
6092 CFLAGS="-g -O2"
6093 else
6094 CFLAGS="-g"
6095 fi
6096else
6097 if test "$GCC" = yes; then
6098 CFLAGS="-O2"
6099 else
6100 CFLAGS=
6101 fi
6102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006103{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6104echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6105if test "${ac_cv_prog_cc_c89+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006107else
6108 ac_cv_prog_cc_c89=no
6109ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006115/* end confdefs.h. */
6116#include <stdarg.h>
6117#include <stdio.h>
6118#include <sys/types.h>
6119#include <sys/stat.h>
6120/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6121struct buf { int x; };
6122FILE * (*rcsopen) (struct buf *, struct stat *, int);
6123static char *e (p, i)
6124 char **p;
6125 int i;
6126{
6127 return p[i];
6128}
6129static char *f (char * (*g) (char **, int), char **p, ...)
6130{
6131 char *s;
6132 va_list v;
6133 va_start (v,p);
6134 s = g (p, va_arg (v,int));
6135 va_end (v);
6136 return s;
6137}
6138
6139/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6140 function prototypes and stuff, but not '\xHH' hex character constants.
6141 These don't provoke an error unfortunately, instead are silently treated
6142 as 'x'. The following induces an error, until -std is added to get
6143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6144 array size at least. It's necessary to write '\x00'==0 to get something
6145 that's true only with -std. */
6146int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6147
6148/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6149 inside strings and character constants. */
6150#define FOO(x) 'x'
6151int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6152
6153int test (int i, double x);
6154struct s1 {int (*f) (int a);};
6155struct s2 {int (*f) (double a);};
6156int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6157int argc;
6158char **argv;
6159int
6160main ()
6161{
6162return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6169do
6170 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171 rm -f conftest.$ac_objext
6172if { (ac_try="$ac_compile"
6173case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199esac
6200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_try") 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006205 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210
Reid Spencera773bd52006-08-04 18:18:08 +00006211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212
Reid Spencera773bd52006-08-04 18:18:08 +00006213rm -f core conftest.err conftest.$ac_objext
6214 test "x$ac_cv_prog_cc_c89" != "xno" && break
6215done
6216rm -f conftest.$ac_ext
6217CC=$ac_save_CC
6218
6219fi
6220# AC_CACHE_VAL
6221case "x$ac_cv_prog_cc_c89" in
6222 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006223 { echo "$as_me:$LINENO: result: none needed" >&5
6224echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006225 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 { echo "$as_me:$LINENO: result: unsupported" >&5
6227echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006228 *)
6229 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6231echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006232esac
6233
6234
6235ac_ext=c
6236ac_cpp='$CPP $CPPFLAGS'
6237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239ac_compiler_gnu=$ac_cv_c_compiler_gnu
6240
6241ac_ext=cpp
6242ac_cpp='$CXXCPP $CPPFLAGS'
6243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6246if test -z "$CXX"; then
6247 if test -n "$CCC"; then
6248 CXX=$CCC
6249 else
6250 if test -n "$ac_tool_prefix"; then
6251 for ac_prog in g++
6252 do
6253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257if test "${ac_cv_prog_CXX+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006259else
6260 if test -n "$CXX"; then
6261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 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 +00006270 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006272 break 2
6273 fi
6274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275done
Reid Spencera773bd52006-08-04 18:18:08 +00006276IFS=$as_save_IFS
6277
6278fi
6279fi
6280CXX=$ac_cv_prog_CXX
6281if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282 { echo "$as_me:$LINENO: result: $CXX" >&5
6283echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285 { echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006287fi
6288
6289
6290 test -n "$CXX" && break
6291 done
6292fi
6293if test -z "$CXX"; then
6294 ac_ct_CXX=$CXX
6295 for ac_prog in g++
6296do
6297 # Extract the first word of "$ac_prog", so it can be a program name with args.
6298set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006303else
6304 if test -n "$ac_ct_CXX"; then
6305 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 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 +00006314 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006316 break 2
6317 fi
6318done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006319done
Reid Spencera773bd52006-08-04 18:18:08 +00006320IFS=$as_save_IFS
6321
6322fi
6323fi
6324ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6325if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6327echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329 { echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006331fi
6332
6333
6334 test -n "$ac_ct_CXX" && break
6335done
6336
6337 if test "x$ac_ct_CXX" = x; then
6338 CXX="g++"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6343whose name does not start with the host triplet. If you think this
6344configuration is useful to you, please write to autoconf@gnu.org." >&5
6345echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6346whose name does not start with the host triplet. If you think this
6347configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006348ac_tool_warned=yes ;;
6349esac
6350 CXX=$ac_ct_CXX
6351 fi
6352fi
6353
6354 fi
6355fi
6356# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6358ac_compiler=`set X $ac_compile; echo $2`
6359{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006360case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006366 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
6369{ (ac_try="$ac_compiler -v >&5"
6370case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6373esac
6374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_compiler -v >&5") 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }
6379{ (ac_try="$ac_compiler -V >&5"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compiler -V >&5") 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006390{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6391echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6392if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h. */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006400/* end confdefs.h. */
6401
6402int
6403main ()
6404{
6405#ifndef __GNUC__
6406 choke me
6407#endif
6408
6409 ;
6410 return 0;
6411}
6412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413rm -f conftest.$ac_objext
6414if { (ac_try="$ac_compile"
6415case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428 { (case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_try") 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006447 ac_compiler_gnu=yes
6448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006449 echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454
Reid Spencera773bd52006-08-04 18:18:08 +00006455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6457
6458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6460echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6461GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006462ac_test_CXXFLAGS=${CXXFLAGS+set}
6463ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6465echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6466if test "${ac_cv_prog_cxx_g+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006468else
6469 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6470 ac_cxx_werror_flag=yes
6471 ac_cv_prog_cxx_g=no
6472 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006478/* end confdefs.h. */
6479
6480int
6481main ()
6482{
6483
6484 ;
6485 return 0;
6486}
6487_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006488rm -f conftest.$ac_objext
6489if { (ac_try="$ac_compile"
6490case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_try") 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006522 ac_cv_prog_cxx_g=yes
6523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 CXXFLAGS=""
6528 cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006533/* end confdefs.h. */
6534
6535int
6536main ()
6537{
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543rm -f conftest.$ac_objext
6544if { (ac_try="$ac_compile"
6545case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548esac
6549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_compile") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest.$ac_objext'
6568 { (case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
6572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_try") 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 :
Torok Edwin871384f2010-01-26 08:50:50 +00006578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006583 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006589/* end confdefs.h. */
6590
6591int
6592main ()
6593{
6594
6595 ;
6596 return 0;
6597}
6598_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599rm -f conftest.$ac_objext
6600if { (ac_try="$ac_compile"
6601case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604esac
6605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6614 { (case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617esac
6618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_try") 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest.$ac_objext'
6624 { (case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627esac
6628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_try") 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006633 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006634else
6635 echo "$as_me: failed program was:" >&5
6636sed 's/^/| /' conftest.$ac_ext >&5
6637
6638
Reid Spencera773bd52006-08-04 18:18:08 +00006639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640
Reid Spencera773bd52006-08-04 18:18:08 +00006641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643
Reid Spencera773bd52006-08-04 18:18:08 +00006644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646
Reid Spencera773bd52006-08-04 18:18:08 +00006647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006650{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6651echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006652if test "$ac_test_CXXFLAGS" = set; then
6653 CXXFLAGS=$ac_save_CXXFLAGS
6654elif test $ac_cv_prog_cxx_g = yes; then
6655 if test "$GXX" = yes; then
6656 CXXFLAGS="-g -O2"
6657 else
6658 CXXFLAGS="-g"
6659 fi
6660else
6661 if test "$GXX" = yes; then
6662 CXXFLAGS="-O2"
6663 else
6664 CXXFLAGS=
6665 fi
6666fi
6667ac_ext=c
6668ac_cpp='$CPP $CPPFLAGS'
6669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672
Reid Spencera773bd52006-08-04 18:18:08 +00006673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6675echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6676if test "${lt_cv_path_NM+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006678else
6679 if test -n "$NM"; then
6680 # Let the user override the test.
6681 lt_cv_path_NM="$NM"
6682else
6683 lt_nm_to_check="${ac_tool_prefix}nm"
6684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6685 lt_nm_to_check="$lt_nm_to_check nm"
6686 fi
6687 for lt_tmp_nm in $lt_nm_to_check; do
6688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6690 IFS="$lt_save_ifs"
6691 test -z "$ac_dir" && ac_dir=.
6692 tmp_nm="$ac_dir/$lt_tmp_nm"
6693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6694 # Check to see if the nm accepts a BSD-compat flag.
6695 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6696 # nm: unknown option "B" ignored
6697 # Tru64's nm complains that /dev/null is an invalid object file
6698 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6699 */dev/null* | *'Invalid file or object type'*)
6700 lt_cv_path_NM="$tmp_nm -B"
6701 break
6702 ;;
6703 *)
6704 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6705 */dev/null*)
6706 lt_cv_path_NM="$tmp_nm -p"
6707 break
6708 ;;
6709 *)
6710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6711 continue # so that we can try to find one that supports BSD flags
6712 ;;
6713 esac
6714 ;;
6715 esac
6716 fi
6717 done
6718 IFS="$lt_save_ifs"
6719 done
6720 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6721fi
6722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006723{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6724echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006725NM="$lt_cv_path_NM"
6726
6727
6728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729{ echo "$as_me:$LINENO: checking for GNU make" >&5
6730echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6731if test "${llvm_cv_gnu_make_command+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006733else
6734 llvm_cv_gnu_make_command=''
6735 for a in "$MAKE" make gmake gnumake ; do
6736 if test -z "$a" ; then continue ; fi ;
6737 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6738 then
6739 llvm_cv_gnu_make_command=$a ;
6740 break;
6741 fi
6742 done
6743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6745echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006746 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6747 ifGNUmake='' ;
6748 else
6749 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6751echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006752 fi
6753
6754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6756echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006757LN_S=$as_ln_s
6758if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: yes" >&5
6760echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6763echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006764fi
6765
6766# Extract the first word of "cmp", so it can be a program name with args.
6767set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770if test "${ac_cv_path_CMP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006772else
6773 case $CMP in
6774 [\\/]* | ?:[\\/]*)
6775 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6776 ;;
6777 *)
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 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 +00006785 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006787 break 2
6788 fi
6789done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790done
Reid Spencera773bd52006-08-04 18:18:08 +00006791IFS=$as_save_IFS
6792
6793 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6794 ;;
6795esac
6796fi
6797CMP=$ac_cv_path_CMP
6798if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006799 { echo "$as_me:$LINENO: result: $CMP" >&5
6800echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006802 { echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006804fi
6805
6806
6807# Extract the first word of "cp", so it can be a program name with args.
6808set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_CP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006813else
6814 case $CP in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 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 +00006826 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006828 break 2
6829 fi
6830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831done
Reid Spencera773bd52006-08-04 18:18:08 +00006832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6835 ;;
6836esac
6837fi
6838CP=$ac_cv_path_CP
6839if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 { echo "$as_me:$LINENO: result: $CP" >&5
6841echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006845fi
6846
6847
6848# Extract the first word of "date", so it can be a program name with args.
6849set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_path_DATE+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006854else
6855 case $DATE in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6858 ;;
6859 *)
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 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 +00006867 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006869 break 2
6870 fi
6871done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006872done
Reid Spencera773bd52006-08-04 18:18:08 +00006873IFS=$as_save_IFS
6874
6875 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6876 ;;
6877esac
6878fi
6879DATE=$ac_cv_path_DATE
6880if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 { echo "$as_me:$LINENO: result: $DATE" >&5
6882echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006886fi
6887
6888
6889# Extract the first word of "find", so it can be a program name with args.
6890set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_FIND+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006895else
6896 case $FIND in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6899 ;;
6900 *)
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 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 +00006908 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006910 break 2
6911 fi
6912done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913done
Reid Spencera773bd52006-08-04 18:18:08 +00006914IFS=$as_save_IFS
6915
6916 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6917 ;;
6918esac
6919fi
6920FIND=$ac_cv_path_FIND
6921if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 { echo "$as_me:$LINENO: result: $FIND" >&5
6923echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006927fi
6928
6929
6930# Extract the first word of "grep", so it can be a program name with args.
6931set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934if test "${ac_cv_path_GREP+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006936else
6937 case $GREP in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6940 ;;
6941 *)
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 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 +00006949 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006951 break 2
6952 fi
6953done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954done
Reid Spencera773bd52006-08-04 18:18:08 +00006955IFS=$as_save_IFS
6956
6957 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6958 ;;
6959esac
6960fi
6961GREP=$ac_cv_path_GREP
6962if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: result: $GREP" >&5
6964echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006968fi
6969
6970
6971# Extract the first word of "mkdir", so it can be a program name with args.
6972set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975if test "${ac_cv_path_MKDIR+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006977else
6978 case $MKDIR in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6981 ;;
6982 *)
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 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 +00006990 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006992 break 2
6993 fi
6994done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995done
Reid Spencera773bd52006-08-04 18:18:08 +00006996IFS=$as_save_IFS
6997
6998 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6999 ;;
7000esac
7001fi
7002MKDIR=$ac_cv_path_MKDIR
7003if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7005echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 { echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007009fi
7010
7011
7012# Extract the first word of "mv", so it can be a program name with args.
7013set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_path_MV+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007018else
7019 case $MV in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7022 ;;
7023 *)
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 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 +00007031 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007033 break 2
7034 fi
7035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036done
Reid Spencera773bd52006-08-04 18:18:08 +00007037IFS=$as_save_IFS
7038
7039 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7040 ;;
7041esac
7042fi
7043MV=$ac_cv_path_MV
7044if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045 { echo "$as_me:$LINENO: result: $MV" >&5
7046echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050fi
7051
7052
7053if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058if test "${ac_cv_prog_RANLIB+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007060else
7061 if test -n "$RANLIB"; then
7062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 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 +00007071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007073 break 2
7074 fi
7075done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076done
Reid Spencera773bd52006-08-04 18:18:08 +00007077IFS=$as_save_IFS
7078
7079fi
7080fi
7081RANLIB=$ac_cv_prog_RANLIB
7082if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7084echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 { echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007088fi
7089
7090
7091fi
7092if test -z "$ac_cv_prog_RANLIB"; then
7093 ac_ct_RANLIB=$RANLIB
7094 # Extract the first word of "ranlib", so it can be a program name with args.
7095set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007100else
7101 if test -n "$ac_ct_RANLIB"; then
7102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 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 +00007111 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007113 break 2
7114 fi
7115done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007116done
Reid Spencera773bd52006-08-04 18:18:08 +00007117IFS=$as_save_IFS
7118
7119fi
7120fi
7121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7122if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7124echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007128fi
7129
7130 if test "x$ac_ct_RANLIB" = x; then
7131 RANLIB=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7136whose name does not start with the host triplet. If you think this
7137configuration is useful to you, please write to autoconf@gnu.org." >&5
7138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7139whose name does not start with the host triplet. If you think this
7140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007141ac_tool_warned=yes ;;
7142esac
7143 RANLIB=$ac_ct_RANLIB
7144 fi
7145else
7146 RANLIB="$ac_cv_prog_RANLIB"
7147fi
7148
Torok Edwin871384f2010-01-26 08:50:50 +00007149if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154if test "${ac_cv_prog_AR+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007156else
7157 if test -n "$AR"; then
7158 ac_cv_prog_AR="$AR" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 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 +00007167 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007169 break 2
7170 fi
7171done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172done
Torok Edwin871384f2010-01-26 08:50:50 +00007173IFS=$as_save_IFS
7174
7175fi
7176fi
7177AR=$ac_cv_prog_AR
7178if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179 { echo "$as_me:$LINENO: result: $AR" >&5
7180echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 { echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007184fi
7185
7186
7187fi
7188if test -z "$ac_cv_prog_AR"; then
7189 ac_ct_AR=$AR
7190 # Extract the first word of "ar", so it can be a program name with args.
7191set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007196else
7197 if test -n "$ac_ct_AR"; then
7198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 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 +00007207 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007209 break 2
7210 fi
7211done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212done
Torok Edwin871384f2010-01-26 08:50:50 +00007213IFS=$as_save_IFS
7214
7215fi
7216fi
7217ac_ct_AR=$ac_cv_prog_ac_ct_AR
7218if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7220echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 { echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007224fi
7225
7226 if test "x$ac_ct_AR" = x; then
7227 AR="false"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7232whose name does not start with the host triplet. If you think this
7233configuration is useful to you, please write to autoconf@gnu.org." >&5
7234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7235whose name does not start with the host triplet. If you think this
7236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007237ac_tool_warned=yes ;;
7238esac
7239 AR=$ac_ct_AR
7240 fi
7241else
7242 AR="$ac_cv_prog_AR"
7243fi
7244
Reid Spencera773bd52006-08-04 18:18:08 +00007245# Extract the first word of "rm", so it can be a program name with args.
7246set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249if test "${ac_cv_path_RM+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007251else
7252 case $RM in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7255 ;;
7256 *)
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 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 +00007264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007266 break 2
7267 fi
7268done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269done
Reid Spencera773bd52006-08-04 18:18:08 +00007270IFS=$as_save_IFS
7271
7272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7273 ;;
7274esac
7275fi
7276RM=$ac_cv_path_RM
7277if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007278 { echo "$as_me:$LINENO: result: $RM" >&5
7279echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281 { echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007283fi
7284
7285
7286# Extract the first word of "sed", so it can be a program name with args.
7287set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290if test "${ac_cv_path_SED+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007292else
7293 case $SED in
7294 [\\/]* | ?:[\\/]*)
7295 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7296 ;;
7297 *)
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 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 +00007305 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007307 break 2
7308 fi
7309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310done
Reid Spencera773bd52006-08-04 18:18:08 +00007311IFS=$as_save_IFS
7312
7313 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7314 ;;
7315esac
7316fi
7317SED=$ac_cv_path_SED
7318if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 { echo "$as_me:$LINENO: result: $SED" >&5
7320echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 { echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007324fi
7325
7326
7327# Extract the first word of "tar", so it can be a program name with args.
7328set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331if test "${ac_cv_path_TAR+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007333else
7334 case $TAR in
7335 [\\/]* | ?:[\\/]*)
7336 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7337 ;;
7338 *)
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 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 +00007346 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007348 break 2
7349 fi
7350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351done
Reid Spencera773bd52006-08-04 18:18:08 +00007352IFS=$as_save_IFS
7353
7354 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7355 ;;
7356esac
7357fi
7358TAR=$ac_cv_path_TAR
7359if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 { echo "$as_me:$LINENO: result: $TAR" >&5
7361echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 { echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007365fi
7366
7367
7368# Extract the first word of "pwd", so it can be a program name with args.
7369set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372if test "${ac_cv_path_BINPWD+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007374else
7375 case $BINPWD in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 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 +00007387 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007389 break 2
7390 fi
7391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392done
Reid Spencera773bd52006-08-04 18:18:08 +00007393IFS=$as_save_IFS
7394
7395 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7396 ;;
7397esac
7398fi
7399BINPWD=$ac_cv_path_BINPWD
7400if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7402echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406fi
7407
7408
7409
7410# Extract the first word of "Graphviz", so it can be a program name with args.
7411set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007416else
7417 case $GRAPHVIZ in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 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 +00007429 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007431 break 2
7432 fi
7433done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434done
Reid Spencera773bd52006-08-04 18:18:08 +00007435IFS=$as_save_IFS
7436
7437 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7438 ;;
7439esac
7440fi
7441GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7442if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7444echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007448fi
7449
7450
7451if test "$GRAPHVIZ" != "echo Graphviz" ; then
7452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453cat >>confdefs.h <<\_ACEOF
7454#define HAVE_GRAPHVIZ 1
7455_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007456
Jeff Cohen28783c32007-01-12 18:22:38 +00007457 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007458 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459 fi
7460
7461cat >>confdefs.h <<_ACEOF
7462#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7463_ACEOF
7464
7465fi
7466# Extract the first word of "dot", so it can be a program name with args.
7467set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470if test "${ac_cv_path_DOT+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007472else
7473 case $DOT in
7474 [\\/]* | ?:[\\/]*)
7475 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7476 ;;
7477 *)
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 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 +00007485 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007487 break 2
7488 fi
7489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490done
Reid Spencera773bd52006-08-04 18:18:08 +00007491IFS=$as_save_IFS
7492
7493 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7494 ;;
7495esac
7496fi
7497DOT=$ac_cv_path_DOT
7498if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: $DOT" >&5
7500echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007504fi
7505
7506
7507if test "$DOT" != "echo dot" ; then
7508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509cat >>confdefs.h <<\_ACEOF
7510#define HAVE_DOT 1
7511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007512
Jeff Cohen28783c32007-01-12 18:22:38 +00007513 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007514 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7515 fi
7516
7517cat >>confdefs.h <<_ACEOF
7518#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7519_ACEOF
7520
7521fi
David Greenef0b9eff2009-07-09 17:16:26 +00007522# Extract the first word of "fdp", so it can be a program name with args.
7523set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_FDP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007528else
7529 case $FDP in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 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 +00007541 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007543 break 2
7544 fi
7545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546done
David Greenef0b9eff2009-07-09 17:16:26 +00007547IFS=$as_save_IFS
7548
7549 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7550 ;;
7551esac
7552fi
7553FDP=$ac_cv_path_FDP
7554if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 { echo "$as_me:$LINENO: result: $FDP" >&5
7556echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007560fi
7561
7562
7563if test "$FDP" != "echo fdp" ; then
7564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565cat >>confdefs.h <<\_ACEOF
7566#define HAVE_FDP 1
7567_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007568
7569 if test "$llvm_cv_os_type" = "MingW" ; then
7570 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7571 fi
7572
7573cat >>confdefs.h <<_ACEOF
7574#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7575_ACEOF
7576
7577fi
7578# Extract the first word of "neato", so it can be a program name with args.
7579set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582if test "${ac_cv_path_NEATO+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007584else
7585 case $NEATO in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7588 ;;
7589 *)
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 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 +00007597 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007599 break 2
7600 fi
7601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602done
David Greenef0b9eff2009-07-09 17:16:26 +00007603IFS=$as_save_IFS
7604
7605 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7606 ;;
7607esac
7608fi
7609NEATO=$ac_cv_path_NEATO
7610if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611 { echo "$as_me:$LINENO: result: $NEATO" >&5
7612echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 { echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007616fi
7617
7618
7619if test "$NEATO" != "echo neato" ; then
7620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621cat >>confdefs.h <<\_ACEOF
7622#define HAVE_NEATO 1
7623_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007624
7625 if test "$llvm_cv_os_type" = "MingW" ; then
7626 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7627 fi
7628
7629cat >>confdefs.h <<_ACEOF
7630#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7631_ACEOF
7632
7633fi
7634# Extract the first word of "twopi", so it can be a program name with args.
7635set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638if test "${ac_cv_path_TWOPI+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007640else
7641 case $TWOPI in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7644 ;;
7645 *)
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 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 +00007653 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007655 break 2
7656 fi
7657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658done
David Greenef0b9eff2009-07-09 17:16:26 +00007659IFS=$as_save_IFS
7660
7661 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7662 ;;
7663esac
7664fi
7665TWOPI=$ac_cv_path_TWOPI
7666if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7668echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007670 { echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007672fi
7673
7674
7675if test "$TWOPI" != "echo twopi" ; then
7676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677cat >>confdefs.h <<\_ACEOF
7678#define HAVE_TWOPI 1
7679_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007680
7681 if test "$llvm_cv_os_type" = "MingW" ; then
7682 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7683 fi
7684
7685cat >>confdefs.h <<_ACEOF
7686#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7687_ACEOF
7688
7689fi
7690# Extract the first word of "circo", so it can be a program name with args.
7691set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694if test "${ac_cv_path_CIRCO+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007696else
7697 case $CIRCO in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7700 ;;
7701 *)
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 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 +00007709 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007711 break 2
7712 fi
7713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714done
David Greenef0b9eff2009-07-09 17:16:26 +00007715IFS=$as_save_IFS
7716
7717 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7718 ;;
7719esac
7720fi
7721CIRCO=$ac_cv_path_CIRCO
7722if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7724echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726 { echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007728fi
7729
7730
7731if test "$CIRCO" != "echo circo" ; then
7732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733cat >>confdefs.h <<\_ACEOF
7734#define HAVE_CIRCO 1
7735_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007736
7737 if test "$llvm_cv_os_type" = "MingW" ; then
7738 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7739 fi
7740
7741cat >>confdefs.h <<_ACEOF
7742#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7743_ACEOF
7744
7745fi
Reid Spencera773bd52006-08-04 18:18:08 +00007746for ac_prog in gv gsview32
7747do
7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
7749set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752if test "${ac_cv_path_GV+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007754else
7755 case $GV in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7758 ;;
7759 *)
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 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 +00007767 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007769 break 2
7770 fi
7771done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772done
Reid Spencera773bd52006-08-04 18:18:08 +00007773IFS=$as_save_IFS
7774
7775 ;;
7776esac
7777fi
7778GV=$ac_cv_path_GV
7779if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007780 { echo "$as_me:$LINENO: result: $GV" >&5
7781echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007783 { echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007785fi
7786
7787
7788 test -n "$GV" && break
7789done
7790test -n "$GV" || GV="echo gv"
7791
7792if test "$GV" != "echo gv" ; then
7793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794cat >>confdefs.h <<\_ACEOF
7795#define HAVE_GV 1
7796_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007797
Jeff Cohen28783c32007-01-12 18:22:38 +00007798 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007799 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7800 fi
7801
7802cat >>confdefs.h <<_ACEOF
7803#define LLVM_PATH_GV "$GV${EXEEXT}"
7804_ACEOF
7805
7806fi
7807# Extract the first word of "dotty", so it can be a program name with args.
7808set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811if test "${ac_cv_path_DOTTY+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007813else
7814 case $DOTTY in
7815 [\\/]* | ?:[\\/]*)
7816 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7817 ;;
7818 *)
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 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 +00007826 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007828 break 2
7829 fi
7830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831done
Reid Spencera773bd52006-08-04 18:18:08 +00007832IFS=$as_save_IFS
7833
7834 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7835 ;;
7836esac
7837fi
7838DOTTY=$ac_cv_path_DOTTY
7839if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7841echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007845fi
7846
7847
7848if test "$DOTTY" != "echo dotty" ; then
7849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850cat >>confdefs.h <<\_ACEOF
7851#define HAVE_DOTTY 1
7852_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007853
Jeff Cohen28783c32007-01-12 18:22:38 +00007854 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007855 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7856 fi
7857
7858cat >>confdefs.h <<_ACEOF
7859#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7860_ACEOF
7861
7862fi
7863
7864
7865# Extract the first word of "perl", so it can be a program name with args.
7866set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869if test "${ac_cv_path_PERL+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007871else
7872 case $PERL in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 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 +00007884 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007886 break 2
7887 fi
7888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889done
Reid Spencera773bd52006-08-04 18:18:08 +00007890IFS=$as_save_IFS
7891
7892 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7893 ;;
7894esac
7895fi
7896PERL=$ac_cv_path_PERL
7897if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898 { echo "$as_me:$LINENO: result: $PERL" >&5
7899echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901 { echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007903fi
7904
7905
7906if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007907 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7908echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007909 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910 { echo "$as_me:$LINENO: result: yes" >&5
7911echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007912 else
7913 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007914 { echo "$as_me:$LINENO: result: not found" >&5
7915echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007916 fi
7917fi
7918
7919
7920if test x"$PERL" = xnone; then
7921 HAVE_PERL=0
7922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007923 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7924echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7925 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007926else
7927 HAVE_PERL=1
7928
7929fi
7930
7931# Find a good install program. We prefer a C program (faster),
7932# so one script is as good as another. But avoid the broken or
7933# incompatible versions:
7934# SysV /etc/install, /usr/sbin/install
7935# SunOS /usr/etc/install
7936# IRIX /sbin/install
7937# AIX /bin/install
7938# AmigaOS /C/install, which installs bootblocks on floppy discs
7939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7942# OS/2's system install, which has a completely different semantic
7943# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007946if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007947if test "${ac_cv_path_install+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007949else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955 # Account for people who put trailing slashes in PATH elements.
7956case $as_dir/ in
7957 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007960 /usr/ucb/* ) ;;
7961 *)
7962 # OSF1 and SCO ODT 3.0 have their own names for install.
7963 # Don't use installbsd from OSF since it installs stuff as root
7964 # by default.
7965 for ac_prog in ginstall scoinst install; do
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967 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 +00007968 if test $ac_prog = install &&
7969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # AIX install. It has an incompatible calling convention.
7971 :
7972 elif test $ac_prog = install &&
7973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7974 # program-specific install script used by HP pwplus--don't use.
7975 :
7976 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7978 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007979 fi
7980 fi
7981 done
7982 done
7983 ;;
7984esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985done
Reid Spencera773bd52006-08-04 18:18:08 +00007986IFS=$as_save_IFS
7987
7988
7989fi
7990 if test "${ac_cv_path_install+set}" = set; then
7991 INSTALL=$ac_cv_path_install
7992 else
7993 # As a last resort, use the slow shell script. Don't cache a
7994 # value for INSTALL within a source directory, because that will
7995 # break other packages using the cache if that directory is
7996 # removed, or if the value is a relative name.
7997 INSTALL=$ac_install_sh
7998 fi
7999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8001echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008002
8003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8004# It thinks the first close brace ends the variable substitution.
8005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8006
8007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8008
8009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8010
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008011case "$INSTALL" in
8012 [\\/$]* | ?:[\\/]* ) ;;
8013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8014esac
Reid Spencera773bd52006-08-04 18:18:08 +00008015
8016# Extract the first word of "bzip2", so it can be a program name with args.
8017set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020if test "${ac_cv_path_BZIP2+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008022else
8023 case $BZIP2 in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8026 ;;
8027 *)
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 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 +00008035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008037 break 2
8038 fi
8039done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008040done
Reid Spencera773bd52006-08-04 18:18:08 +00008041IFS=$as_save_IFS
8042
Reid Spencera773bd52006-08-04 18:18:08 +00008043 ;;
8044esac
8045fi
8046BZIP2=$ac_cv_path_BZIP2
8047if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8049echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051 { echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008053fi
8054
8055
mike-m68cb3192010-05-06 23:45:43 +00008056# Extract the first word of "cat", so it can be a program name with args.
8057set dummy cat; ac_word=$2
8058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060if test "${ac_cv_path_CAT+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063 case $CAT in
8064 [\\/]* | ?:[\\/]*)
8065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8066 ;;
8067 *)
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079done
8080done
8081IFS=$as_save_IFS
8082
8083 ;;
8084esac
8085fi
8086CAT=$ac_cv_path_CAT
8087if test -n "$CAT"; then
8088 { echo "$as_me:$LINENO: result: $CAT" >&5
8089echo "${ECHO_T}$CAT" >&6; }
8090else
8091 { echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6; }
8093fi
8094
8095
Reid Spencera773bd52006-08-04 18:18:08 +00008096# Extract the first word of "doxygen", so it can be a program name with args.
8097set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8100if test "${ac_cv_path_DOXYGEN+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008102else
8103 case $DOXYGEN in
8104 [\\/]* | ?:[\\/]*)
8105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8106 ;;
8107 *)
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 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 +00008115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008117 break 2
8118 fi
8119done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120done
Reid Spencera773bd52006-08-04 18:18:08 +00008121IFS=$as_save_IFS
8122
Reid Spencera773bd52006-08-04 18:18:08 +00008123 ;;
8124esac
8125fi
8126DOXYGEN=$ac_cv_path_DOXYGEN
8127if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8129echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 { echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008133fi
8134
8135
Reid Spencera773bd52006-08-04 18:18:08 +00008136# Extract the first word of "groff", so it can be a program name with args.
8137set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8140if test "${ac_cv_path_GROFF+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008142else
8143 case $GROFF in
8144 [\\/]* | ?:[\\/]*)
8145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8146 ;;
8147 *)
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 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 +00008155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008157 break 2
8158 fi
8159done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160done
Reid Spencera773bd52006-08-04 18:18:08 +00008161IFS=$as_save_IFS
8162
Reid Spencera773bd52006-08-04 18:18:08 +00008163 ;;
8164esac
8165fi
8166GROFF=$ac_cv_path_GROFF
8167if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168 { echo "$as_me:$LINENO: result: $GROFF" >&5
8169echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171 { echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008173fi
8174
8175
8176# Extract the first word of "gzip", so it can be a program name with args.
8177set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8180if test "${ac_cv_path_GZIP+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008182else
8183 case $GZIP in
8184 [\\/]* | ?:[\\/]*)
8185 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8186 ;;
8187 *)
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 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 +00008195 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008197 break 2
8198 fi
8199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200done
Reid Spencera773bd52006-08-04 18:18:08 +00008201IFS=$as_save_IFS
8202
Reid Spencera773bd52006-08-04 18:18:08 +00008203 ;;
8204esac
8205fi
8206GZIP=$ac_cv_path_GZIP
8207if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008208 { echo "$as_me:$LINENO: result: $GZIP" >&5
8209echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008211 { echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008213fi
8214
8215
8216# Extract the first word of "pod2html", so it can be a program name with args.
8217set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220if test "${ac_cv_path_POD2HTML+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008222else
8223 case $POD2HTML in
8224 [\\/]* | ?:[\\/]*)
8225 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8226 ;;
8227 *)
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 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 +00008235 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008237 break 2
8238 fi
8239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240done
Reid Spencera773bd52006-08-04 18:18:08 +00008241IFS=$as_save_IFS
8242
Reid Spencera773bd52006-08-04 18:18:08 +00008243 ;;
8244esac
8245fi
8246POD2HTML=$ac_cv_path_POD2HTML
8247if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8249echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 { echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008253fi
8254
8255
8256# Extract the first word of "pod2man", so it can be a program name with args.
8257set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8260if test "${ac_cv_path_POD2MAN+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008262else
8263 case $POD2MAN in
8264 [\\/]* | ?:[\\/]*)
8265 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8266 ;;
8267 *)
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269for as_dir in $PATH
8270do
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 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 +00008275 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008277 break 2
8278 fi
8279done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280done
Reid Spencera773bd52006-08-04 18:18:08 +00008281IFS=$as_save_IFS
8282
Reid Spencera773bd52006-08-04 18:18:08 +00008283 ;;
8284esac
8285fi
8286POD2MAN=$ac_cv_path_POD2MAN
8287if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8289echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008291 { echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008293fi
8294
8295
mike-m68cb3192010-05-06 23:45:43 +00008296# Extract the first word of "pdfroff", so it can be a program name with args.
8297set dummy pdfroff; ac_word=$2
8298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8300if test "${ac_cv_path_PDFROFF+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 case $PDFROFF in
8304 [\\/]* | ?:[\\/]*)
8305 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8306 ;;
8307 *)
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319done
8320done
8321IFS=$as_save_IFS
8322
8323 ;;
8324esac
8325fi
8326PDFROFF=$ac_cv_path_PDFROFF
8327if test -n "$PDFROFF"; then
8328 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8329echo "${ECHO_T}$PDFROFF" >&6; }
8330else
8331 { echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6; }
8333fi
8334
8335
Reid Spencera773bd52006-08-04 18:18:08 +00008336# Extract the first word of "runtest", so it can be a program name with args.
8337set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340if test "${ac_cv_path_RUNTEST+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008342else
8343 case $RUNTEST in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8346 ;;
8347 *)
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 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 +00008355 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008357 break 2
8358 fi
8359done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360done
Reid Spencera773bd52006-08-04 18:18:08 +00008361IFS=$as_save_IFS
8362
Reid Spencera773bd52006-08-04 18:18:08 +00008363 ;;
8364esac
8365fi
8366RUNTEST=$ac_cv_path_RUNTEST
8367if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8369echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371 { echo "$as_me:$LINENO: result: no" >&5
8372echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008373fi
8374
8375
8376
8377no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8379echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008380
8381# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008383 withval=$with_tclinclude; with_tclinclude=${withval}
8384else
8385 with_tclinclude=''
8386fi
8387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388if test "${ac_cv_path_tclsh+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008390else
8391
8392if test x"${with_tclinclude}" != x ; then
8393 if test -f ${with_tclinclude}/tclsh ; then
8394 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8395 elif test -f ${with_tclinclude}/src/tclsh ; then
8396 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8397 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8399echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8400 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008401 fi
8402fi
Torok Edwin871384f2010-01-26 08:50:50 +00008403fi
8404
Reid Spencera773bd52006-08-04 18:18:08 +00008405
8406if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407 { echo "$as_me:$LINENO: result: none" >&5
8408echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008409 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
8410do
8411 # Extract the first word of "$ac_prog", so it can be a program name with args.
8412set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8415if test "${ac_cv_path_TCLSH+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008417else
8418 case $TCLSH in
8419 [\\/]* | ?:[\\/]*)
8420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8421 ;;
8422 *)
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 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 +00008430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008432 break 2
8433 fi
8434done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435done
Reid Spencera773bd52006-08-04 18:18:08 +00008436IFS=$as_save_IFS
8437
8438 ;;
8439esac
8440fi
8441TCLSH=$ac_cv_path_TCLSH
8442if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8444echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 { echo "$as_me:$LINENO: result: no" >&5
8447echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008448fi
8449
8450
8451 test -n "$TCLSH" && break
8452done
8453
8454 if test x"${TCLSH}" = x ; then
8455 ac_cv_path_tclsh='';
8456 else
8457 ac_cv_path_tclsh="${TCLSH}";
8458 fi
8459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008460 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8461echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008462 TCLSH="${ac_cv_path_tclsh}"
8463
8464fi
8465
Reid Spencera773bd52006-08-04 18:18:08 +00008466# Extract the first word of "zip", so it can be a program name with args.
8467set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470if test "${ac_cv_path_ZIP+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008472else
8473 case $ZIP in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8476 ;;
8477 *)
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 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 +00008485 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008487 break 2
8488 fi
8489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490done
Reid Spencera773bd52006-08-04 18:18:08 +00008491IFS=$as_save_IFS
8492
Reid Spencera773bd52006-08-04 18:18:08 +00008493 ;;
8494esac
8495fi
8496ZIP=$ac_cv_path_ZIP
8497if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498 { echo "$as_me:$LINENO: result: $ZIP" >&5
8499echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008503fi
8504
8505
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008506for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008507do
8508 # Extract the first word of "$ac_prog", so it can be a program name with args.
8509set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8512if test "${ac_cv_path_OCAMLC+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008514else
8515 case $OCAMLC in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8518 ;;
8519 *)
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 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 +00008527 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008529 break 2
8530 fi
8531done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008533IFS=$as_save_IFS
8534
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008535 ;;
8536esac
8537fi
8538OCAMLC=$ac_cv_path_OCAMLC
8539if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8541echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008543 { echo "$as_me:$LINENO: result: no" >&5
8544echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008545fi
8546
8547
Gordon Henriksene7072162008-03-07 18:20:01 +00008548 test -n "$OCAMLC" && break
8549done
8550
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008551for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008552do
8553 # Extract the first word of "$ac_prog", so it can be a program name with args.
8554set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8557if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008559else
8560 case $OCAMLOPT in
8561 [\\/]* | ?:[\\/]*)
8562 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8563 ;;
8564 *)
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 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 +00008572 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008574 break 2
8575 fi
8576done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008578IFS=$as_save_IFS
8579
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008580 ;;
8581esac
8582fi
8583OCAMLOPT=$ac_cv_path_OCAMLOPT
8584if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008585 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8586echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588 { echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008590fi
8591
8592
Gordon Henriksene7072162008-03-07 18:20:01 +00008593 test -n "$OCAMLOPT" && break
8594done
8595
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008596for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008597do
8598 # Extract the first word of "$ac_prog", so it can be a program name with args.
8599set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8602if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008604else
8605 case $OCAMLDEP in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8608 ;;
8609 *)
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH
8612do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 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 +00008617 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008619 break 2
8620 fi
8621done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008622done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008623IFS=$as_save_IFS
8624
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008625 ;;
8626esac
8627fi
8628OCAMLDEP=$ac_cv_path_OCAMLDEP
8629if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8631echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008633 { echo "$as_me:$LINENO: result: no" >&5
8634echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008635fi
8636
8637
Gordon Henriksene7072162008-03-07 18:20:01 +00008638 test -n "$OCAMLDEP" && break
8639done
8640
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008641for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008642do
8643 # Extract the first word of "$ac_prog", so it can be a program name with args.
8644set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8647if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008649else
8650 case $OCAMLDOC in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8653 ;;
8654 *)
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 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 +00008662 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008664 break 2
8665 fi
8666done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008667done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008668IFS=$as_save_IFS
8669
8670 ;;
8671esac
8672fi
8673OCAMLDOC=$ac_cv_path_OCAMLDOC
8674if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8676echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678 { echo "$as_me:$LINENO: result: no" >&5
8679echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008680fi
8681
8682
8683 test -n "$OCAMLDOC" && break
8684done
8685
Torok Edwincc499a42008-10-22 09:56:27 +00008686for ac_prog in gas as
8687do
8688 # Extract the first word of "$ac_prog", so it can be a program name with args.
8689set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8692if test "${ac_cv_path_GAS+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008694else
8695 case $GAS in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8698 ;;
8699 *)
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 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 +00008707 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008709 break 2
8710 fi
8711done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008712done
Torok Edwincc499a42008-10-22 09:56:27 +00008713IFS=$as_save_IFS
8714
8715 ;;
8716esac
8717fi
8718GAS=$ac_cv_path_GAS
8719if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720 { echo "$as_me:$LINENO: result: $GAS" >&5
8721echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008723 { echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008725fi
8726
8727
8728 test -n "$GAS" && break
8729done
8730
Reid Spencera773bd52006-08-04 18:18:08 +00008731
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008732{ echo "$as_me:$LINENO: checking for linker version" >&5
8733echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8734if test "${llvm_cv_link_version+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736else
8737
8738 version_string="$(ld -v 2>&1 | head -1)"
8739
8740 # Check for ld64.
8741 if (echo "$version_string" | grep -q "ld64"); then
8742 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8743 else
8744 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8745 fi
8746
8747fi
8748{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8749echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8750
8751cat >>confdefs.h <<_ACEOF
8752#define HOST_LINK_VERSION "$llvm_cv_link_version"
8753_ACEOF
8754
8755
8756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008757{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8758echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8759if test "${llvm_cv_link_use_r+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008761else
8762 ac_ext=c
8763ac_cpp='$CPP $CPPFLAGS'
8764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766ac_compiler_gnu=$ac_cv_c_compiler_gnu
8767
8768 oldcflags="$CFLAGS"
8769 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008770 cat >conftest.$ac_ext <<_ACEOF
8771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008775/* end confdefs.h. */
8776
8777int
8778main ()
8779{
Dan Gohman39ed6782010-04-25 00:12:20 +00008780
Reid Spencera773bd52006-08-04 18:18:08 +00008781 ;
8782 return 0;
8783}
8784_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008785rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (ac_try="$ac_link"
8787case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_link") 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } &&
8799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
8804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
8814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008819 llvm_cv_link_use_r=yes
8820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008826
Bill Wendlingebcceee2009-04-18 11:20:33 +00008827rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008828 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008829 CFLAGS="$oldcflags"
8830 ac_ext=c
8831ac_cpp='$CPP $CPPFLAGS'
8832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8834ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835
8836
8837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008838{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8839echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008840if test "$llvm_cv_link_use_r" = yes ; then
8841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008842cat >>confdefs.h <<\_ACEOF
8843#define HAVE_LINK_R 1
8844_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008845
8846 fi
8847
8848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008849{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8850echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8851if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008853else
8854 ac_ext=c
8855ac_cpp='$CPP $CPPFLAGS'
8856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859
8860 oldcflags="$CFLAGS"
8861 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008862 cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008867/* end confdefs.h. */
8868
8869int
8870main ()
8871{
Dan Gohman39ed6782010-04-25 00:12:20 +00008872
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008873 ;
8874 return 0;
8875}
8876_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008877rm -f conftest.$ac_objext conftest$ac_exeext
8878if { (ac_try="$ac_link"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895esac
8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008911 llvm_cv_link_use_export_dynamic=yes
8912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008918
Bill Wendlingebcceee2009-04-18 11:20:33 +00008919rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008920 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008921 CFLAGS="$oldcflags"
8922 ac_ext=c
8923ac_cpp='$CPP $CPPFLAGS'
8924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927
8928
8929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008930{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8931echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008932if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008934cat >>confdefs.h <<\_ACEOF
8935#define HAVE_LINK_EXPORT_DYNAMIC 1
8936_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008937
8938 fi
8939
8940
Dan Gohmanda612d62010-06-01 14:56:56 +00008941{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8942echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8943if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946 ac_ext=c
8947ac_cpp='$CPP $CPPFLAGS'
8948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951
8952 oldcflags="$CFLAGS"
8953
8954 # The following code is from the autoconf manual,
8955 # "11.13: Limitations of Usual Tools".
8956 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8957 # Use mktemp if possible; otherwise fall back on mkdir,
8958 # with $RANDOM to make collisions less likely.
8959 : ${TMPDIR=/tmp}
8960 {
8961 tmp=`
8962 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8963 ` &&
8964 test -n "$tmp" && test -d "$tmp"
8965 } || {
8966 tmp=$TMPDIR/foo$$-$RANDOM
8967 (umask 077 && mkdir "$tmp")
8968 } || exit $?
8969
Dan Gohmanda612d62010-06-01 14:56:56 +00008970 echo "{" > "$tmp/export.map"
8971 echo " global: main;" >> "$tmp/export.map"
8972 echo " local: *;" >> "$tmp/export.map"
8973 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008974
Dan Gohmanda612d62010-06-01 14:56:56 +00008975 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008976 cat >conftest.$ac_ext <<_ACEOF
8977/* confdefs.h. */
8978_ACEOF
8979cat confdefs.h >>conftest.$ac_ext
8980cat >>conftest.$ac_ext <<_ACEOF
8981/* end confdefs.h. */
8982
8983int
8984main ()
8985{
Dan Gohman39ed6782010-04-25 00:12:20 +00008986
Dan Gohman391569c2010-04-16 22:59:06 +00008987 ;
8988 return 0;
8989}
8990_ACEOF
8991rm -f conftest.$ac_objext conftest$ac_exeext
8992if { (ac_try="$ac_link"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_link") 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9006 { (case "(($ac_try" in
9007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008 *) ac_try_echo=$ac_try;;
9009esac
9010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011 (eval "$ac_try") 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest$ac_exeext'
9016 { (case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019esac
9020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_try") 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009025 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009026else
9027 echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
9029
Dan Gohman943005e2010-06-01 16:22:27 +00009030 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009031fi
9032
9033rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009035 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009036 rmdir "$tmp"
9037 CFLAGS="$oldcflags"
9038 ac_ext=c
9039ac_cpp='$CPP $CPPFLAGS'
9040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042ac_compiler_gnu=$ac_cv_c_compiler_gnu
9043
9044
9045fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009046{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9047echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9048if test "$llvm_cv_link_use_version_script" = yes ; then
9049 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009050
9051 fi
9052
9053
Reid Spencera773bd52006-08-04 18:18:08 +00009054
9055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009056{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9057echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9058if test "${ac_cv_c_const+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009061 cat >conftest.$ac_ext <<_ACEOF
9062/* confdefs.h. */
9063_ACEOF
9064cat confdefs.h >>conftest.$ac_ext
9065cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009066/* end confdefs.h. */
9067
9068int
9069main ()
9070{
9071/* FIXME: Include the comments suggested by Paul. */
9072#ifndef __cplusplus
9073 /* Ultrix mips cc rejects this. */
9074 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009076 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009077 char const *const *ccp;
9078 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009079 /* NEC SVR4.0.2 mips cc rejects this. */
9080 struct point {int x, y;};
9081 static struct point const zero = {0,0};
9082 /* AIX XL C 1.02.0.0 rejects this.
9083 It does not let you subtract one const X* pointer from another in
9084 an arm of an if-expression whose if-part is not a constant
9085 expression */
9086 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009088 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009089 ++ccp;
9090 p = (char**) ccp;
9091 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009092 { /* SCO 3.2v4 cc rejects this. */
9093 char *t;
9094 char const *s = 0 ? (char *) 0 : (char const *) 0;
9095
9096 *t++ = 0;
9097 if (s) return 0;
9098 }
9099 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9100 int x[] = {25, 17};
9101 const int *foo = &x[0];
9102 ++foo;
9103 }
9104 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9105 typedef const int *iptr;
9106 iptr p = 0;
9107 ++p;
9108 }
9109 { /* AIX XL C 1.02.0.0 rejects this saying
9110 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9111 struct s { int j; const int *ap[3]; };
9112 struct s *b; b->j = 5;
9113 }
9114 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9115 const int foo = 10;
9116 if (!foo) return 0;
9117 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009118 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009119#endif
9120
9121 ;
9122 return 0;
9123}
9124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009125rm -f conftest.$ac_objext
9126if { (ac_try="$ac_compile"
9127case "(($ac_try" in
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9130esac
9131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_compile") 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9140 { (case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_try") 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; } &&
9149 { ac_try='test -s conftest.$ac_objext'
9150 { (case "(($ac_try" in
9151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152 *) ac_try_echo=$ac_try;;
9153esac
9154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155 (eval "$ac_try") 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009159 ac_cv_c_const=yes
9160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009161 echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009166
Reid Spencera773bd52006-08-04 18:18:08 +00009167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009169{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9170echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009171if test $ac_cv_c_const = no; then
9172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009173cat >>confdefs.h <<\_ACEOF
9174#define const
9175_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009176
9177fi
9178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009179
9180
9181
9182
9183
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184ac_header_dirent=no
9185for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009186 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9187{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9188echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009192 cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009197/* end confdefs.h. */
9198#include <sys/types.h>
9199#include <$ac_hdr>
9200
9201int
9202main ()
9203{
9204if ((DIR *) 0)
9205return 0;
9206 ;
9207 return 0;
9208}
9209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009210rm -f conftest.$ac_objext
9211if { (ac_try="$ac_compile"
9212case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215esac
9216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_compile") 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9225 { (case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228esac
9229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_try") 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (case "(($ac_try" in
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9238esac
9239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_try") 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009244 eval "$as_ac_Header=yes"
9245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009246 echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009251
Reid Spencera773bd52006-08-04 18:18:08 +00009252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009254ac_res=`eval echo '${'$as_ac_Header'}'`
9255 { echo "$as_me:$LINENO: result: $ac_res" >&5
9256echo "${ECHO_T}$ac_res" >&6; }
9257if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260_ACEOF
9261
9262ac_header_dirent=$ac_hdr; break
9263fi
9264
9265done
9266# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9267if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009268 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9269echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9270if test "${ac_cv_search_opendir+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272else
9273 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009274cat >conftest.$ac_ext <<_ACEOF
9275/* confdefs.h. */
9276_ACEOF
9277cat confdefs.h >>conftest.$ac_ext
9278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279/* end confdefs.h. */
9280
Reid Spencera773bd52006-08-04 18:18:08 +00009281/* Override any GCC internal prototype to avoid an error.
9282 Use char because int might match the return type of a GCC
9283 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284#ifdef __cplusplus
9285extern "C"
9286#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009287char opendir ();
9288int
9289main ()
9290{
Reid Spencera773bd52006-08-04 18:18:08 +00009291return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292 ;
9293 return 0;
9294}
9295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009296for ac_lib in '' dir; do
9297 if test -z "$ac_lib"; then
9298 ac_res="none required"
9299 else
9300 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009302 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009303 rm -f conftest.$ac_objext conftest$ac_exeext
9304if { (ac_try="$ac_link"
9305case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308esac
9309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_link") 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321esac
9322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331esac
9332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333 (eval "$ac_try") 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009337 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009338else
9339 echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009344
Bill Wendlingebcceee2009-04-18 11:20:33 +00009345rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009346 conftest$ac_exeext
9347 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009348 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349fi
John Criswell7a73b802003-06-30 21:59:07 +00009350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009351if test "${ac_cv_search_opendir+set}" = set; then
9352 :
Reid Spencera773bd52006-08-04 18:18:08 +00009353else
9354 ac_cv_search_opendir=no
9355fi
9356rm conftest.$ac_ext
9357LIBS=$ac_func_search_save_LIBS
9358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009359{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9360echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009361ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009362if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009364
Reid Spencera773bd52006-08-04 18:18:08 +00009365fi
9366
9367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9369echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9370if test "${ac_cv_search_opendir+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009372else
9373 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374cat >conftest.$ac_ext <<_ACEOF
9375/* confdefs.h. */
9376_ACEOF
9377cat confdefs.h >>conftest.$ac_ext
9378cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009379/* end confdefs.h. */
9380
9381/* Override any GCC internal prototype to avoid an error.
9382 Use char because int might match the return type of a GCC
9383 builtin and then its argument prototype would still apply. */
9384#ifdef __cplusplus
9385extern "C"
9386#endif
9387char opendir ();
9388int
9389main ()
9390{
9391return opendir ();
9392 ;
9393 return 0;
9394}
9395_ACEOF
9396for ac_lib in '' x; do
9397 if test -z "$ac_lib"; then
9398 ac_res="none required"
9399 else
9400 ac_res=-l$ac_lib
9401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9402 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009403 rm -f conftest.$ac_objext conftest$ac_exeext
9404if { (ac_try="$ac_link"
9405case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408esac
9409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_link") 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (case "(($ac_try" in
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9431esac
9432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_try") 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009437 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438else
9439 echo "$as_me: failed program was:" >&5
9440sed 's/^/| /' conftest.$ac_ext >&5
9441
9442
Reid Spencera773bd52006-08-04 18:18:08 +00009443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444
Bill Wendlingebcceee2009-04-18 11:20:33 +00009445rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446 conftest$ac_exeext
9447 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009448 break
9449fi
9450done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009451if test "${ac_cv_search_opendir+set}" = set; then
9452 :
Reid Spencera773bd52006-08-04 18:18:08 +00009453else
9454 ac_cv_search_opendir=no
9455fi
9456rm conftest.$ac_ext
9457LIBS=$ac_func_search_save_LIBS
9458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009459{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9460echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009461ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009462if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9464
9465fi
9466
9467fi
John Criswell7a73b802003-06-30 21:59:07 +00009468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009469
John Criswell7a73b802003-06-30 21:59:07 +00009470for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009471do
9472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478fi
9479ac_res=`eval echo '${'$as_ac_Header'}'`
9480 { echo "$as_me:$LINENO: result: $ac_res" >&5
9481echo "${ECHO_T}$ac_res" >&6; }
9482else
9483 # Is the header compilable?
9484{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9486cat >conftest.$ac_ext <<_ACEOF
9487/* confdefs.h. */
9488_ACEOF
9489cat confdefs.h >>conftest.$ac_ext
9490cat >>conftest.$ac_ext <<_ACEOF
9491/* end confdefs.h. */
9492$ac_includes_default
9493#include <$ac_header>
9494_ACEOF
9495rm -f conftest.$ac_objext
9496if { (ac_try="$ac_compile"
9497case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500esac
9501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_compile") 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513esac
9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest.$ac_objext'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_header_compiler=yes
9530else
9531 echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
9534 ac_header_compiler=no
9535fi
9536
9537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9539echo "${ECHO_T}$ac_header_compiler" >&6; }
9540
9541# Is the header present?
9542{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550#include <$ac_header>
9551_ACEOF
9552if { (ac_try="$ac_cpp conftest.$ac_ext"
9553case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556esac
9557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } >/dev/null; then
9565 if test -s conftest.err; then
9566 ac_cpp_err=$ac_c_preproc_warn_flag
9567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9568 else
9569 ac_cpp_err=
9570 fi
9571else
9572 ac_cpp_err=yes
9573fi
9574if test -z "$ac_cpp_err"; then
9575 ac_header_preproc=yes
9576else
9577 echo "$as_me: failed program was:" >&5
9578sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_header_preproc=no
9581fi
9582
9583rm -f conftest.err conftest.$ac_ext
9584{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585echo "${ECHO_T}$ac_header_preproc" >&6; }
9586
9587# So? What about this header?
9588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589 yes:no: )
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594 ac_header_preproc=yes
9595 ;;
9596 no:yes:* )
9597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9609 ( cat <<\_ASBOX
9610## ----------------------------------- ##
9611## Report this to llvmbugs@cs.uiuc.edu ##
9612## ----------------------------------- ##
9613_ASBOX
9614 ) | sed "s/^/$as_me: WARNING: /" >&2
9615 ;;
9616esac
9617{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
9622 eval "$as_ac_Header=\$ac_header_preproc"
9623fi
9624ac_res=`eval echo '${'$as_ac_Header'}'`
9625 { echo "$as_me:$LINENO: result: $ac_res" >&5
9626echo "${ECHO_T}$ac_res" >&6; }
9627
9628fi
9629if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009630 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009632_ACEOF
9633
9634fi
9635
9636done
9637
Reid Spencera773bd52006-08-04 18:18:08 +00009638# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009640 enableval=$enable_ltdl_install;
9641fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009642
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009644
9645
9646if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647 INSTALL_LTDL_TRUE=
9648 INSTALL_LTDL_FALSE='#'
9649else
9650 INSTALL_LTDL_TRUE='#'
9651 INSTALL_LTDL_FALSE=
9652fi
9653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009654
9655
9656if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657 CONVENIENCE_LTDL_TRUE=
9658 CONVENIENCE_LTDL_FALSE='#'
9659else
9660 CONVENIENCE_LTDL_TRUE='#'
9661 CONVENIENCE_LTDL_FALSE=
9662fi
9663
9664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009665{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9666echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667library_names_spec=
9668libname_spec='lib$name'
9669soname_spec=
9670shrext_cmds=".so"
9671postinstall_cmds=
9672postuninstall_cmds=
9673finish_cmds=
9674finish_eval=
9675shlibpath_var=
9676shlibpath_overrides_runpath=unknown
9677version_type=none
9678dynamic_linker="$host_os ld.so"
9679sys_lib_dlsearch_path_spec="/lib /usr/lib"
9680if test "$GCC" = yes; then
9681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9682 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9683 # if the path contains ";" then we assume it to be the separator
9684 # otherwise default to the standard path separator (i.e. ":") - it is
9685 # assumed that no part of a normal pathname contains ";" but that should
9686 # okay in the real world where ";" in dirpaths is itself problematic.
9687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9688 else
9689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9690 fi
9691else
9692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9693fi
9694need_lib_prefix=unknown
9695hardcode_into_libs=no
9696
9697# when you set need_version to no, make sure it does not cause -set_version
9698# flags to be left without arguments
9699need_version=unknown
9700
9701case $host_os in
9702aix3*)
9703 version_type=linux
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9705 shlibpath_var=LIBPATH
9706
9707 # AIX 3 has no versioning support, so we append a major version to the name.
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 ;;
9710
9711aix4* | aix5*)
9712 version_type=linux
9713 need_lib_prefix=no
9714 need_version=no
9715 hardcode_into_libs=yes
9716 if test "$host_cpu" = ia64; then
9717 # AIX 5 supports IA64
9718 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 else
9721 # With GCC up to 2.95.x, collect2 would create an import file
9722 # for dependence libraries. The import file would start with
9723 # the line `#! .'. This would cause the generated library to
9724 # depend on `.', always an invalid library. This was fixed in
9725 # development snapshots of GCC prior to 3.0.
9726 case $host_os in
9727 aix4 | aix4.[01] | aix4.[01].*)
9728 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9729 echo ' yes '
9730 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9731 :
9732 else
9733 can_build_shared=no
9734 fi
9735 ;;
9736 esac
9737 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9738 # soname into executable. Probably we can add versioning support to
9739 # collect2, so additional links can be useful in future.
9740 if test "$aix_use_runtimelinking" = yes; then
9741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9742 # instead of lib<name>.a to let people know that these are not
9743 # typical AIX shared libraries.
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 else
9746 # We preserve .a as extension for shared libraries through AIX4.2
9747 # and later when we are not doing run time linking.
9748 library_names_spec='${libname}${release}.a $libname.a'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 fi
9751 shlibpath_var=LIBPATH
9752 fi
9753 ;;
9754
9755amigaos*)
9756 library_names_spec='$libname.ixlibrary $libname.a'
9757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9758 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'
9759 ;;
9760
9761beos*)
9762 library_names_spec='${libname}${shared_ext}'
9763 dynamic_linker="$host_os ld.so"
9764 shlibpath_var=LIBRARY_PATH
9765 ;;
9766
9767bsdi[45]*)
9768 version_type=linux
9769 need_version=no
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9776 # the default ld.so.conf also contains /usr/contrib/lib and
9777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9778 # libtool to hard-code these into programs
9779 ;;
9780
9781cygwin* | mingw* | pw32*)
9782 version_type=windows
9783 shrext_cmds=".dll"
9784 need_version=no
9785 need_lib_prefix=no
9786
9787 case $GCC,$host_os in
9788 yes,cygwin* | yes,mingw* | yes,pw32*)
9789 library_names_spec='$libname.dll.a'
9790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9791 postinstall_cmds='base_file=`basename \${file}`~
9792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9793 dldir=$destdir/`dirname \$dlpath`~
9794 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009795 $install_prog $dir/$dlname \$dldir/$dlname~
9796 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9798 dlpath=$dir/\$dldll~
9799 $rm \$dlpath'
9800 shlibpath_overrides_runpath=yes
9801
9802 case $host_os in
9803 cygwin*)
9804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9805 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9807 ;;
9808 mingw*)
9809 # MinGW DLLs use traditional 'lib' prefix
9810 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9811 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9812 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9813 # It is most probably a Windows format PATH printed by
9814 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9815 # path with ; separators, and with drive letters. We can handle the
9816 # drive letters (cygwin fileutils understands them), so leave them,
9817 # especially as we might pass files found there to a mingw objdump,
9818 # which wouldn't understand a cygwinified path. Ahh.
9819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9820 else
9821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9822 fi
9823 ;;
9824 pw32*)
9825 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009826 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 +00009827 ;;
9828 esac
9829 ;;
9830
9831 *)
9832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9833 ;;
9834 esac
9835 dynamic_linker='Win32 ld.exe'
9836 # FIXME: first we should search . and the directory the executable is in
9837 shlibpath_var=PATH
9838 ;;
9839
9840darwin* | rhapsody*)
9841 dynamic_linker="$host_os dyld"
9842 version_type=darwin
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9846 soname_spec='${libname}${release}${major}$shared_ext'
9847 shlibpath_overrides_runpath=yes
9848 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009849 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9851 if test "$GCC" = yes; then
9852 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"`
9853 else
9854 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9855 fi
9856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9857 ;;
9858
9859dgux*)
9860 version_type=linux
9861 need_lib_prefix=no
9862 need_version=no
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 ;;
9867
9868freebsd1*)
9869 dynamic_linker=no
9870 ;;
9871
9872kfreebsd*-gnu)
9873 version_type=linux
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=no
9880 hardcode_into_libs=yes
9881 dynamic_linker='GNU ld.so'
9882 ;;
9883
Reid Spencera773bd52006-08-04 18:18:08 +00009884freebsd* | dragonfly*)
9885 # DragonFly does not have aout. When/if they implement a new
9886 # versioning mechanism, adjust this.
9887 if test -x /usr/bin/objformat; then
9888 objformat=`/usr/bin/objformat`
9889 else
9890 case $host_os in
9891 freebsd[123]*) objformat=aout ;;
9892 *) objformat=elf ;;
9893 esac
9894 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895 version_type=freebsd-$objformat
9896 case $version_type in
9897 freebsd-elf*)
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9899 need_version=no
9900 need_lib_prefix=no
9901 ;;
9902 freebsd-*)
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9904 need_version=yes
9905 ;;
9906 esac
9907 shlibpath_var=LD_LIBRARY_PATH
9908 case $host_os in
9909 freebsd2*)
9910 shlibpath_overrides_runpath=yes
9911 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009912 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913 shlibpath_overrides_runpath=yes
9914 hardcode_into_libs=yes
9915 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918 shlibpath_overrides_runpath=no
9919 hardcode_into_libs=yes
9920 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009921 freebsd*) # from 4.6 on
9922 shlibpath_overrides_runpath=yes
9923 hardcode_into_libs=yes
9924 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925 esac
9926 ;;
9927
9928gnu*)
9929 version_type=linux
9930 need_lib_prefix=no
9931 need_version=no
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 shlibpath_var=LD_LIBRARY_PATH
9935 hardcode_into_libs=yes
9936 ;;
9937
9938hpux9* | hpux10* | hpux11*)
9939 # Give a soname corresponding to the major version so that dld.sl refuses to
9940 # link against other versions.
9941 version_type=sunos
9942 need_lib_prefix=no
9943 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009944 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945 ia64*)
9946 shrext_cmds='.so'
9947 hardcode_into_libs=yes
9948 dynamic_linker="$host_os dld.so"
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 if test "X$HPUX_IA64_MODE" = X32; then
9954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9955 else
9956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9957 fi
9958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9959 ;;
9960 hppa*64*)
9961 shrext_cmds='.sl'
9962 hardcode_into_libs=yes
9963 dynamic_linker="$host_os dld.sl"
9964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9970 ;;
9971 *)
9972 shrext_cmds='.sl'
9973 dynamic_linker="$host_os dld.sl"
9974 shlibpath_var=SHLIB_PATH
9975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977 soname_spec='${libname}${release}${shared_ext}$major'
9978 ;;
9979 esac
9980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9981 postinstall_cmds='chmod 555 $lib'
9982 ;;
9983
Reid Spencera773bd52006-08-04 18:18:08 +00009984interix3*)
9985 version_type=linux
9986 need_lib_prefix=no
9987 need_version=no
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9991 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=no
9993 hardcode_into_libs=yes
9994 ;;
9995
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996irix5* | irix6* | nonstopux*)
9997 case $host_os in
9998 nonstopux*) version_type=nonstopux ;;
9999 *)
10000 if test "$lt_cv_prog_gnu_ld" = yes; then
10001 version_type=linux
10002 else
10003 version_type=irix
10004 fi ;;
10005 esac
10006 need_lib_prefix=no
10007 need_version=no
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10010 case $host_os in
10011 irix5* | nonstopux*)
10012 libsuff= shlibsuff=
10013 ;;
10014 *)
10015 case $LD in # libtool.m4 will add one of these switches to LD
10016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10017 libsuff= shlibsuff= libmagic=32-bit;;
10018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10019 libsuff=32 shlibsuff=N32 libmagic=N32;;
10020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10022 *) libsuff= shlibsuff= libmagic=never-match;;
10023 esac
10024 ;;
10025 esac
10026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10027 shlibpath_overrides_runpath=no
10028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10030 hardcode_into_libs=yes
10031 ;;
10032
10033# No shared lib support for Linux oldld, aout, or coff.
10034linux*oldld* | linux*aout* | linux*coff*)
10035 dynamic_linker=no
10036 ;;
10037
10038# This must be Linux ELF.
10039linux*)
10040 version_type=linux
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 # This implies no fast_install, which is unacceptable.
10049 # Some rework will be needed to allow for fast_install
10050 # before this can be enabled.
10051 hardcode_into_libs=yes
10052
10053 # Append ld.so.conf contents to the search path
10054 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010055 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 +000010056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10057 fi
10058
10059 # We used to test for /lib/ld.so.1 and disable shared libraries on
10060 # powerpc, because MkLinux only supported shared libraries with the
10061 # GNU dynamic linker. Since this was broken with cross compilers,
10062 # most powerpc-linux boxes support dynamic linking these days and
10063 # people can always --disable-shared, the test was removed, and we
10064 # assume the GNU/Linux dynamic linker is in use.
10065 dynamic_linker='GNU/Linux ld.so'
10066 ;;
10067
10068knetbsd*-gnu)
10069 version_type=linux
10070 need_lib_prefix=no
10071 need_version=no
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 shlibpath_overrides_runpath=no
10076 hardcode_into_libs=yes
10077 dynamic_linker='GNU ld.so'
10078 ;;
10079
10080netbsd*)
10081 version_type=sunos
10082 need_lib_prefix=no
10083 need_version=no
10084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10087 dynamic_linker='NetBSD (a.out) ld.so'
10088 else
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 dynamic_linker='NetBSD ld.elf_so'
10092 fi
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=yes
10095 hardcode_into_libs=yes
10096 ;;
10097
10098newsos6)
10099 version_type=linux
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes
10103 ;;
10104
10105nto-qnx*)
10106 version_type=linux
10107 need_lib_prefix=no
10108 need_version=no
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10113 ;;
10114
10115openbsd*)
10116 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010117 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10120 case $host_os in
10121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10122 *) need_version=no ;;
10123 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10128 case $host_os in
10129 openbsd2.[89] | openbsd2.[89].*)
10130 shlibpath_overrides_runpath=no
10131 ;;
10132 *)
10133 shlibpath_overrides_runpath=yes
10134 ;;
10135 esac
10136 else
10137 shlibpath_overrides_runpath=yes
10138 fi
10139 ;;
10140
10141os2*)
10142 libname_spec='$name'
10143 shrext_cmds=".dll"
10144 need_lib_prefix=no
10145 library_names_spec='$libname${shared_ext} $libname.a'
10146 dynamic_linker='OS/2 ld.exe'
10147 shlibpath_var=LIBPATH
10148 ;;
10149
10150osf3* | osf4* | osf5*)
10151 version_type=osf
10152 need_lib_prefix=no
10153 need_version=no
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10159 ;;
10160
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161solaris*)
10162 version_type=linux
10163 need_lib_prefix=no
10164 need_version=no
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=yes
10169 hardcode_into_libs=yes
10170 # ldd complains unless libraries are executable
10171 postinstall_cmds='chmod +x $lib'
10172 ;;
10173
10174sunos4*)
10175 version_type=sunos
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=yes
10180 if test "$with_gnu_ld" = yes; then
10181 need_lib_prefix=no
10182 fi
10183 need_version=yes
10184 ;;
10185
Reid Spencera773bd52006-08-04 18:18:08 +000010186sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 version_type=linux
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 case $host_vendor in
10192 sni)
10193 shlibpath_overrides_runpath=no
10194 need_lib_prefix=no
10195 export_dynamic_flag_spec='${wl}-Blargedynsym'
10196 runpath_var=LD_RUN_PATH
10197 ;;
10198 siemens)
10199 need_lib_prefix=no
10200 ;;
10201 motorola)
10202 need_lib_prefix=no
10203 need_version=no
10204 shlibpath_overrides_runpath=no
10205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10206 ;;
10207 esac
10208 ;;
10209
10210sysv4*MP*)
10211 if test -d /usr/nec ;then
10212 version_type=linux
10213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10214 soname_spec='$libname${shared_ext}.$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 fi
10217 ;;
10218
Reid Spencera773bd52006-08-04 18:18:08 +000010219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10220 version_type=freebsd-elf
10221 need_lib_prefix=no
10222 need_version=no
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 hardcode_into_libs=yes
10227 if test "$with_gnu_ld" = yes; then
10228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10229 shlibpath_overrides_runpath=no
10230 else
10231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10232 shlibpath_overrides_runpath=yes
10233 case $host_os in
10234 sco3.2v5*)
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10236 ;;
10237 esac
10238 fi
10239 sys_lib_dlsearch_path_spec='/usr/lib'
10240 ;;
10241
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242uts4*)
10243 version_type=linux
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245 soname_spec='${libname}${release}${shared_ext}$major'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 ;;
10248
10249*)
10250 dynamic_linker=no
10251 ;;
10252esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010253{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10254echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255test "$dynamic_linker" = no && can_build_shared=no
10256
Reid Spencera773bd52006-08-04 18:18:08 +000010257variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10258if test "$GCC" = yes; then
10259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10260fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261
Reid Spencera773bd52006-08-04 18:18:08 +000010262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010263{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10264echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10265if test "${libltdl_cv_shlibext+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267else
10268
10269module=yes
10270eval libltdl_cv_shlibext=$shrext_cmds
10271
10272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10274echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275if test -n "$libltdl_cv_shlibext"; then
10276
10277cat >>confdefs.h <<_ACEOF
10278#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10279_ACEOF
10280
10281fi
10282
10283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010284{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10285echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10286if test "${libltdl_cv_shlibpath_var+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288else
10289 libltdl_cv_shlibpath_var="$shlibpath_var"
10290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010291{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10292echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293if test -n "$libltdl_cv_shlibpath_var"; then
10294
10295cat >>confdefs.h <<_ACEOF
10296#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10297_ACEOF
10298
10299fi
10300
10301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010302{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10303echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10304if test "${libltdl_cv_sys_search_path+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306else
10307 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10308fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010309{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10310echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311if test -n "$libltdl_cv_sys_search_path"; then
10312 sys_search_path=
10313 for dir in $libltdl_cv_sys_search_path; do
10314 if test -z "$sys_search_path"; then
10315 sys_search_path="$dir"
10316 else
10317 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10318 fi
10319 done
10320
10321cat >>confdefs.h <<_ACEOF
10322#define LTDL_SYSSEARCHPATH "$sys_search_path"
10323_ACEOF
10324
10325fi
10326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010327{ echo "$as_me:$LINENO: checking for objdir" >&5
10328echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10329if test "${libltdl_cv_objdir+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331else
10332 libltdl_cv_objdir="$objdir"
10333 if test -n "$objdir"; then
10334 :
10335 else
10336 rm -f .libs 2>/dev/null
10337 mkdir .libs 2>/dev/null
10338 if test -d .libs; then
10339 libltdl_cv_objdir=.libs
10340 else
10341 # MS-DOS does not allow filenames that begin with a dot.
10342 libltdl_cv_objdir=_libs
10343 fi
10344 rmdir .libs 2>/dev/null
10345 fi
10346
10347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010348{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10349echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350
10351cat >>confdefs.h <<_ACEOF
10352#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10353_ACEOF
10354
10355
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356
10357
10358
10359
10360# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010361{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10362echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10363if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365else
10366
10367# These are sane defaults that work on at least a few old systems.
10368# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10369
10370# Character class describing NM global symbol codes.
10371symcode='[BCDEGRST]'
10372
10373# Regexp to match symbols that can be accessed directly from C.
10374sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10375
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376# Transform an extracted symbol line into a proper C declaration
10377lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10378
10379# Transform an extracted symbol line into symbol name and symbol address
10380lt_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'"
10381
10382# Define system-specific variables.
10383case $host_os in
10384aix*)
10385 symcode='[BCDT]'
10386 ;;
10387cygwin* | mingw* | pw32*)
10388 symcode='[ABCDGISTW]'
10389 ;;
10390hpux*) # Its linker distinguishes data from code symbols
10391 if test "$host_cpu" = ia64; then
10392 symcode='[ABCDEGRST]'
10393 fi
10394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10395 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'"
10396 ;;
10397linux*)
10398 if test "$host_cpu" = ia64; then
10399 symcode='[ABCDGIRSTW]'
10400 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10401 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'"
10402 fi
10403 ;;
10404irix* | nonstopux*)
10405 symcode='[BCDEGRST]'
10406 ;;
10407osf*)
10408 symcode='[BCDEGQRST]'
10409 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010410solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 symcode='[BDRT]'
10412 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010413sco3.2v5*)
10414 symcode='[DT]'
10415 ;;
10416sysv4.2uw2*)
10417 symcode='[DT]'
10418 ;;
10419sysv5* | sco5v6* | unixware* | OpenUNIX*)
10420 symcode='[ABDT]'
10421 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422sysv4)
10423 symcode='[DFNSTU]'
10424 ;;
10425esac
10426
10427# Handle CRLF in mingw tool chain
10428opt_cr=
10429case $build_os in
10430mingw*)
10431 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10432 ;;
10433esac
10434
10435# If we're using GNU nm, then use its standard symbol codes.
10436case `$NM -V 2>&1` in
10437*GNU* | *'with BFD'*)
10438 symcode='[ABCDGIRSTW]' ;;
10439esac
10440
10441# Try without a prefix undercore, then with it.
10442for ac_symprfx in "" "_"; do
10443
Reid Spencera773bd52006-08-04 18:18:08 +000010444 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10445 symxfrm="\\1 $ac_symprfx\\2 \\2"
10446
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010448 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 +000010449
10450 # Check to see that the pipe works correctly.
10451 pipe_works=no
10452
10453 rm -f conftest*
10454 cat > conftest.$ac_ext <<EOF
10455#ifdef __cplusplus
10456extern "C" {
10457#endif
10458char nm_test_var;
10459void nm_test_func(){}
10460#ifdef __cplusplus
10461}
10462#endif
10463int main(){nm_test_var='a';nm_test_func();return(0);}
10464EOF
10465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467 (eval $ac_compile) 2>&5
10468 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010471 # Now try to grab the symbols.
10472 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010473 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 +000010474 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10475 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478 # Try sorting and uniquifying the output.
10479 if sort "$nlist" | uniq > "$nlist"T; then
10480 mv -f "$nlist"T "$nlist"
10481 else
10482 rm -f "$nlist"T
10483 fi
10484
10485 # Make sure that we snagged all the symbols we need.
10486 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10487 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10488 cat <<EOF > conftest.$ac_ext
10489#ifdef __cplusplus
10490extern "C" {
10491#endif
10492
10493EOF
10494 # Now generate the symbol file.
10495 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10496
10497 cat <<EOF >> conftest.$ac_ext
10498#if defined (__STDC__) && __STDC__
10499# define lt_ptr_t void *
10500#else
10501# define lt_ptr_t char *
10502# define const
10503#endif
10504
10505/* The mapping between symbol names and symbols. */
10506const struct {
10507 const char *name;
10508 lt_ptr_t address;
10509}
10510lt_preloaded_symbols[] =
10511{
10512EOF
10513 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10514 cat <<\EOF >> conftest.$ac_ext
10515 {0, (lt_ptr_t) 0}
10516};
10517
10518#ifdef __cplusplus
10519}
10520#endif
10521EOF
10522 # Now try linking the two files.
10523 mv conftest.$ac_objext conftstm.$ac_objext
10524 lt_save_LIBS="$LIBS"
10525 lt_save_CFLAGS="$CFLAGS"
10526 LIBS="conftstm.$ac_objext"
10527 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 (eval $ac_link) 2>&5
10530 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533 pipe_works=yes
10534 fi
10535 LIBS="$lt_save_LIBS"
10536 CFLAGS="$lt_save_CFLAGS"
10537 else
10538 echo "cannot find nm_test_func in $nlist" >&5
10539 fi
10540 else
10541 echo "cannot find nm_test_var in $nlist" >&5
10542 fi
10543 else
10544 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10545 fi
10546 else
10547 echo "$progname: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 fi
10550 rm -f conftest* conftst*
10551
10552 # Do not use the global_symbol_pipe unless it works.
10553 if test "$pipe_works" = yes; then
10554 break
10555 else
10556 lt_cv_sys_global_symbol_pipe=
10557 fi
10558done
10559
10560fi
10561
10562if test -z "$lt_cv_sys_global_symbol_pipe"; then
10563 lt_cv_sys_global_symbol_to_cdecl=
10564fi
10565if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566 { echo "$as_me:$LINENO: result: failed" >&5
10567echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010569 { echo "$as_me:$LINENO: result: ok" >&5
10570echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010571fi
10572
10573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010574{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10575echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10576if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010578else
10579 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10580 libltdl_cv_preloaded_symbols=yes
10581 else
10582 libltdl_cv_preloaded_symbols=no
10583 fi
10584
10585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010586{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10587echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010590cat >>confdefs.h <<\_ACEOF
10591#define HAVE_PRELOADED_SYMBOLS 1
10592_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593
10594fi
10595
10596LIBADD_DL=
10597
10598ac_ext=c
10599ac_cpp='$CPP $CPPFLAGS'
10600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603
10604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010605{ echo "$as_me:$LINENO: checking for shl_load" >&5
10606echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10607if test "${ac_cv_func_shl_load+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h. */
10616/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10618#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010620/* System header to define __stub macros and hopefully few prototypes,
10621 which can conflict with char shl_load (); below.
10622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623 <limits.h> exists even on freestanding compilers. */
10624
10625#ifdef __STDC__
10626# include <limits.h>
10627#else
10628# include <assert.h>
10629#endif
10630
10631#undef shl_load
10632
10633/* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10636#ifdef __cplusplus
10637extern "C"
10638#endif
10639char shl_load ();
10640/* The GNU C library defines this for functions which it implements
10641 to always fail with ENOSYS. Some functions are actually named
10642 something starting with __ and the normal name is an alias. */
10643#if defined __stub_shl_load || defined __stub___shl_load
10644choke me
10645#endif
10646
10647int
10648main ()
10649{
10650return shl_load ();
10651 ;
10652 return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext conftest$ac_exeext
10656if { (ac_try="$ac_link"
10657case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_link") 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest$ac_exeext'
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683esac
10684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_cv_func_shl_load=yes
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694 ac_cv_func_shl_load=no
10695fi
10696
10697rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699fi
10700{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10701echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10702if test $ac_cv_func_shl_load = yes; then
10703
10704cat >>confdefs.h <<\_ACEOF
10705#define HAVE_SHL_LOAD 1
10706_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010707
10708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010709 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10710echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10711if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713else
10714 ac_check_lib_save_LIBS=$LIBS
10715LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010716cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010721/* end confdefs.h. */
10722
Reid Spencera773bd52006-08-04 18:18:08 +000010723/* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726#ifdef __cplusplus
10727extern "C"
10728#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729char shl_load ();
10730int
10731main ()
10732{
Reid Spencera773bd52006-08-04 18:18:08 +000010733return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734 ;
10735 return 0;
10736}
10737_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010738rm -f conftest.$ac_objext conftest$ac_exeext
10739if { (ac_try="$ac_link"
10740case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743esac
10744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_link") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_try") 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; } &&
10762 { ac_try='test -s conftest$ac_exeext'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772 ac_cv_lib_dld_shl_load=yes
10773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010774 echo "$as_me: failed program was:" >&5
10775sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010779
Bill Wendlingebcceee2009-04-18 11:20:33 +000010780rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010781 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782LIBS=$ac_check_lib_save_LIBS
10783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010784{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10785echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10786if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010788cat >>confdefs.h <<\_ACEOF
10789#define HAVE_SHL_LOAD 1
10790_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791
10792 LIBADD_DL="$LIBADD_DL -ldld"
10793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010794 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10795echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10796if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010798else
10799 ac_check_lib_save_LIBS=$LIBS
10800LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010801cat >conftest.$ac_ext <<_ACEOF
10802/* confdefs.h. */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806/* end confdefs.h. */
10807
Reid Spencera773bd52006-08-04 18:18:08 +000010808/* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811#ifdef __cplusplus
10812extern "C"
10813#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814char dlopen ();
10815int
10816main ()
10817{
Reid Spencera773bd52006-08-04 18:18:08 +000010818return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 ;
10820 return 0;
10821}
10822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857 ac_cv_lib_dl_dlopen=yes
10858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010864
Bill Wendlingebcceee2009-04-18 11:20:33 +000010865rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010866 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867LIBS=$ac_check_lib_save_LIBS
10868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010869{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10871if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010873cat >>confdefs.h <<\_ACEOF
10874#define HAVE_LIBDL 1
10875_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876
10877 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879 cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884/* end confdefs.h. */
10885#if HAVE_DLFCN_H
10886# include <dlfcn.h>
10887#endif
10888
10889int
10890main ()
10891{
10892dlopen(0, 0);
10893 ;
10894 return 0;
10895}
10896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010897rm -f conftest.$ac_objext conftest$ac_exeext
10898if { (ac_try="$ac_link"
10899case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_link") 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; } &&
10921 { ac_try='test -s conftest$ac_exeext'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010932cat >>confdefs.h <<\_ACEOF
10933#define HAVE_LIBDL 1
10934_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935 libltdl_cv_func_dlopen="yes"
10936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10942if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944else
10945 ac_check_lib_save_LIBS=$LIBS
10946LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947cat >conftest.$ac_ext <<_ACEOF
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952/* end confdefs.h. */
10953
Reid Spencera773bd52006-08-04 18:18:08 +000010954/* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957#ifdef __cplusplus
10958extern "C"
10959#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960char dlopen ();
10961int
10962main ()
10963{
Reid Spencera773bd52006-08-04 18:18:08 +000010964return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965 ;
10966 return 0;
10967}
10968_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010969rm -f conftest.$ac_objext conftest$ac_exeext
10970if { (ac_try="$ac_link"
10971case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974esac
10975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_link") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10984 { (case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_try") 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest$ac_exeext'
10994 { (case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997esac
10998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_try") 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003 ac_cv_lib_svld_dlopen=yes
11004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011005 echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010
Bill Wendlingebcceee2009-04-18 11:20:33 +000011011rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011012 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013LIBS=$ac_check_lib_save_LIBS
11014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011015{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11016echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11017if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011019cat >>confdefs.h <<\_ACEOF
11020#define HAVE_LIBDL 1
11021_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022
11023 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011025 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11026echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11027if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011029else
11030 ac_check_lib_save_LIBS=$LIBS
11031LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011032cat >conftest.$ac_ext <<_ACEOF
11033/* confdefs.h. */
11034_ACEOF
11035cat confdefs.h >>conftest.$ac_ext
11036cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037/* end confdefs.h. */
11038
Reid Spencera773bd52006-08-04 18:18:08 +000011039/* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042#ifdef __cplusplus
11043extern "C"
11044#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045char dld_link ();
11046int
11047main ()
11048{
Reid Spencera773bd52006-08-04 18:18:08 +000011049return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050 ;
11051 return 0;
11052}
11053_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011054rm -f conftest.$ac_objext conftest$ac_exeext
11055if { (ac_try="$ac_link"
11056case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059esac
11060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_link") 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082esac
11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 ac_cv_lib_dld_dld_link=yes
11089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011090 echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011095
Bill Wendlingebcceee2009-04-18 11:20:33 +000011096rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011097 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098LIBS=$ac_check_lib_save_LIBS
11099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011100{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11101echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11102if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011104cat >>confdefs.h <<\_ACEOF
11105#define HAVE_DLD 1
11106_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107
11108 LIBADD_DL="$LIBADD_DL -ldld"
11109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011110 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11111echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11112if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11123#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011125/* System header to define __stub macros and hopefully few prototypes,
11126 which can conflict with char _dyld_func_lookup (); below.
11127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11128 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011130#ifdef __STDC__
11131# include <limits.h>
11132#else
11133# include <assert.h>
11134#endif
11135
11136#undef _dyld_func_lookup
11137
11138/* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11141#ifdef __cplusplus
11142extern "C"
11143#endif
11144char _dyld_func_lookup ();
11145/* The GNU C library defines this for functions which it implements
11146 to always fail with ENOSYS. Some functions are actually named
11147 something starting with __ and the normal name is an alias. */
11148#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11149choke me
11150#endif
11151
11152int
11153main ()
11154{
11155return _dyld_func_lookup ();
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160rm -f conftest.$ac_objext conftest$ac_exeext
11161if { (ac_try="$ac_link"
11162case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_link") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } &&
11174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11175 { (case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_try") 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; } &&
11184 { ac_try='test -s conftest$ac_exeext'
11185 { (case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_try") 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_cv_func__dyld_func_lookup=yes
11195else
11196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200fi
Reid Spencera773bd52006-08-04 18:18:08 +000011201
Bill Wendlingebcceee2009-04-18 11:20:33 +000011202rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011203 conftest$ac_exeext conftest.$ac_ext
11204fi
11205{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11206echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11207if test $ac_cv_func__dyld_func_lookup = yes; then
11208
11209cat >>confdefs.h <<\_ACEOF
11210#define HAVE_DYLD 1
11211_ACEOF
11212
11213fi
11214
11215
11216fi
11217
11218
11219fi
11220
11221
11222fi
11223
11224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226
11227fi
11228
11229
11230fi
11231
11232
11233fi
11234
11235
11236if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11237then
11238 lt_save_LIBS="$LIBS"
11239 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011240
11241for ac_func in dlerror
11242do
11243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11244{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11246if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248else
11249 cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
11255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11257#define $ac_func innocuous_$ac_func
11258
11259/* System header to define __stub macros and hopefully few prototypes,
11260 which can conflict with char $ac_func (); below.
11261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11262 <limits.h> exists even on freestanding compilers. */
11263
11264#ifdef __STDC__
11265# include <limits.h>
11266#else
11267# include <assert.h>
11268#endif
11269
11270#undef $ac_func
11271
11272/* Override any GCC internal prototype to avoid an error.
11273 Use char because int might match the return type of a GCC
11274 builtin and then its argument prototype would still apply. */
11275#ifdef __cplusplus
11276extern "C"
11277#endif
11278char $ac_func ();
11279/* The GNU C library defines this for functions which it implements
11280 to always fail with ENOSYS. Some functions are actually named
11281 something starting with __ and the normal name is an alias. */
11282#if defined __stub_$ac_func || defined __stub___$ac_func
11283choke me
11284#endif
11285
11286int
11287main ()
11288{
11289return $ac_func ();
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294rm -f conftest.$ac_objext conftest$ac_exeext
11295if { (ac_try="$ac_link"
11296case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_link") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11309 { (case "(($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_try") 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 eval "$as_ac_var=yes"
11329else
11330 echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 eval "$as_ac_var=no"
11334fi
11335
11336rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338fi
11339ac_res=`eval echo '${'$as_ac_var'}'`
11340 { echo "$as_me:$LINENO: result: $ac_res" >&5
11341echo "${ECHO_T}$ac_res" >&6; }
11342if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345_ACEOF
11346
11347fi
11348done
11349
11350 LIBS="$lt_save_LIBS"
11351fi
11352ac_ext=c
11353ac_cpp='$CPP $CPPFLAGS'
11354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11356ac_compiler_gnu=$ac_cv_c_compiler_gnu
11357
11358
11359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011360{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11361echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11362if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011364else
11365 ac_cv_sys_symbol_underscore=no
11366 cat > conftest.$ac_ext <<EOF
11367void nm_test_func(){}
11368int main(){nm_test_func;return 0;}
11369EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371 (eval $ac_compile) 2>&5
11372 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375 # Now try to grab the symbols.
11376 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011377 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 +000011378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11379 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382 # See whether the symbols have a leading underscore.
11383 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11384 ac_cv_sys_symbol_underscore=yes
11385 else
11386 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11387 :
11388 else
11389 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11390 fi
11391 fi
11392 else
11393 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11394 fi
11395 else
11396 echo "configure: failed program was:" >&5
11397 cat conftest.c >&5
11398 fi
11399 rm -rf conftest*
11400
11401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011402{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11403echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011404
11405
11406if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11407 if test x"$libltdl_cv_func_dlopen" = xyes ||
11408 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011409 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11410echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11411if test "${libltdl_cv_need_uscore+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413else
11414 libltdl_cv_need_uscore=unknown
11415 save_LIBS="$LIBS"
11416 LIBS="$LIBS $LIBADD_DL"
11417 if test "$cross_compiling" = yes; then :
11418 libltdl_cv_need_uscore=cross
11419else
11420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11421 lt_status=$lt_dlunknown
11422 cat > conftest.$ac_ext <<EOF
Daniel Dunbaree0f32d2010-08-11 23:53:59 +000011423#line 11423 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424#include "confdefs.h"
11425
11426#if HAVE_DLFCN_H
11427#include <dlfcn.h>
11428#endif
11429
11430#include <stdio.h>
11431
11432#ifdef RTLD_GLOBAL
11433# define LT_DLGLOBAL RTLD_GLOBAL
11434#else
11435# ifdef DL_GLOBAL
11436# define LT_DLGLOBAL DL_GLOBAL
11437# else
11438# define LT_DLGLOBAL 0
11439# endif
11440#endif
11441
11442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11443 find out it does not work in some platform. */
11444#ifndef LT_DLLAZY_OR_NOW
11445# ifdef RTLD_LAZY
11446# define LT_DLLAZY_OR_NOW RTLD_LAZY
11447# else
11448# ifdef DL_LAZY
11449# define LT_DLLAZY_OR_NOW DL_LAZY
11450# else
11451# ifdef RTLD_NOW
11452# define LT_DLLAZY_OR_NOW RTLD_NOW
11453# else
11454# ifdef DL_NOW
11455# define LT_DLLAZY_OR_NOW DL_NOW
11456# else
11457# define LT_DLLAZY_OR_NOW 0
11458# endif
11459# endif
11460# endif
11461# endif
11462#endif
11463
11464#ifdef __cplusplus
11465extern "C" void exit (int);
11466#endif
11467
11468void fnord() { int i=42;}
11469int main ()
11470{
11471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11472 int status = $lt_dlunknown;
11473
11474 if (self)
11475 {
11476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11478 /* dlclose (self); */
11479 }
Reid Spencera773bd52006-08-04 18:18:08 +000011480 else
11481 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482
11483 exit (status);
11484}
11485EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487 (eval $ac_link) 2>&5
11488 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011491 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492 lt_status=$?
11493 case x$lt_status in
11494 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11495 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011496 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011497 esac
11498 else :
11499 # compilation failed
11500
11501 fi
11502fi
11503rm -fr conftest*
11504
11505 LIBS="$save_LIBS"
11506
11507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011508{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11509echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510 fi
11511fi
11512
11513if test x"$libltdl_cv_need_uscore" = xyes; then
11514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011515cat >>confdefs.h <<\_ACEOF
11516#define NEED_USCORE 1
11517_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518
11519fi
11520
11521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011522{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11523echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11524if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526else
11527 # PORTME does your system automatically load deplibs for dlopen?
11528 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11529 # For now, we just catch OSes we know something about -- in the
11530 # future, we'll try test this programmatically.
11531 libltdl_cv_sys_dlopen_deplibs=unknown
11532 case "$host_os" in
11533 aix3*|aix4.1.*|aix4.2.*)
11534 # Unknown whether this is true for these versions of AIX, but
11535 # we want this `case' here to explicitly catch those versions.
11536 libltdl_cv_sys_dlopen_deplibs=unknown
11537 ;;
11538 aix[45]*)
11539 libltdl_cv_sys_dlopen_deplibs=yes
11540 ;;
11541 darwin*)
11542 # Assuming the user has installed a libdl from somewhere, this is true
11543 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11544 libltdl_cv_sys_dlopen_deplibs=yes
11545 ;;
11546 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11547 # GNU and its variants, using gnu ld.so (Glibc)
11548 libltdl_cv_sys_dlopen_deplibs=yes
11549 ;;
11550 hpux10*|hpux11*)
11551 libltdl_cv_sys_dlopen_deplibs=yes
11552 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011553 interix*)
11554 libltdl_cv_sys_dlopen_deplibs=yes
11555 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556 irix[12345]*|irix6.[01]*)
11557 # Catch all versions of IRIX before 6.2, and indicate that we don't
11558 # know how it worked for any of those versions.
11559 libltdl_cv_sys_dlopen_deplibs=unknown
11560 ;;
11561 irix*)
11562 # The case above catches anything before 6.2, and it's known that
11563 # at 6.2 and later dlopen does load deplibs.
11564 libltdl_cv_sys_dlopen_deplibs=yes
11565 ;;
11566 netbsd*)
11567 libltdl_cv_sys_dlopen_deplibs=yes
11568 ;;
11569 openbsd*)
11570 libltdl_cv_sys_dlopen_deplibs=yes
11571 ;;
11572 osf[1234]*)
11573 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11574 # it did *not* use an RPATH in a shared library to find objects the
11575 # library depends on, so we explictly say `no'.
11576 libltdl_cv_sys_dlopen_deplibs=no
11577 ;;
11578 osf5.0|osf5.0a|osf5.1)
11579 # dlopen *does* load deplibs and with the right loader patch applied
11580 # it even uses RPATH in a shared library to search for shared objects
11581 # that the library depends on, but there's no easy way to know if that
11582 # patch is installed. Since this is the case, all we can really
11583 # say is unknown -- it depends on the patch being installed. If
11584 # it is, this changes to `yes'. Without it, it would be `no'.
11585 libltdl_cv_sys_dlopen_deplibs=unknown
11586 ;;
11587 osf*)
11588 # the two cases above should catch all versions of osf <= 5.1. Read
11589 # the comments above for what we know about them.
11590 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11591 # is used to find them so we can finally say `yes'.
11592 libltdl_cv_sys_dlopen_deplibs=yes
11593 ;;
11594 solaris*)
11595 libltdl_cv_sys_dlopen_deplibs=yes
11596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11598 libltdl_cv_sys_dlopen_deplibs=yes
11599 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600 esac
11601
11602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011603{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11604echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011607cat >>confdefs.h <<\_ACEOF
11608#define LTDL_DLOPEN_DEPLIBS 1
11609_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610
11611fi
11612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011613
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011615do
11616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622fi
11623ac_res=`eval echo '${'$as_ac_Header'}'`
11624 { echo "$as_me:$LINENO: result: $ac_res" >&5
11625echo "${ECHO_T}$ac_res" >&6; }
11626else
11627 # Is the header compilable?
11628{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11630cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636$ac_includes_default
11637#include <$ac_header>
11638_ACEOF
11639rm -f conftest.$ac_objext
11640if { (ac_try="$ac_compile"
11641case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644esac
11645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_compile") 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11654 { (case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657esac
11658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_try") 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667esac
11668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_try") 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_header_compiler=yes
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_header_compiler=no
11679fi
11680
11681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11683echo "${ECHO_T}$ac_header_compiler" >&6; }
11684
11685# Is the header present?
11686{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11688cat >conftest.$ac_ext <<_ACEOF
11689/* confdefs.h. */
11690_ACEOF
11691cat confdefs.h >>conftest.$ac_ext
11692cat >>conftest.$ac_ext <<_ACEOF
11693/* end confdefs.h. */
11694#include <$ac_header>
11695_ACEOF
11696if { (ac_try="$ac_cpp conftest.$ac_ext"
11697case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700esac
11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } >/dev/null; then
11709 if test -s conftest.err; then
11710 ac_cpp_err=$ac_c_preproc_warn_flag
11711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11712 else
11713 ac_cpp_err=
11714 fi
11715else
11716 ac_cpp_err=yes
11717fi
11718if test -z "$ac_cpp_err"; then
11719 ac_header_preproc=yes
11720else
11721 echo "$as_me: failed program was:" >&5
11722sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ac_header_preproc=no
11725fi
11726
11727rm -f conftest.err conftest.$ac_ext
11728{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11729echo "${ECHO_T}$ac_header_preproc" >&6; }
11730
11731# So? What about this header?
11732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11733 yes:no: )
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11735echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11737echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11738 ac_header_preproc=yes
11739 ;;
11740 no:yes:* )
11741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11742echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11746echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11748echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11750echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11752echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11753 ( cat <<\_ASBOX
11754## ----------------------------------- ##
11755## Report this to llvmbugs@cs.uiuc.edu ##
11756## ----------------------------------- ##
11757_ASBOX
11758 ) | sed "s/^/$as_me: WARNING: /" >&2
11759 ;;
11760esac
11761{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765else
11766 eval "$as_ac_Header=\$ac_header_preproc"
11767fi
11768ac_res=`eval echo '${'$as_ac_Header'}'`
11769 { echo "$as_me:$LINENO: result: $ac_res" >&5
11770echo "${ECHO_T}$ac_res" >&6; }
11771
11772fi
11773if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776_ACEOF
11777
11778fi
11779
11780done
11781
11782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011783{ echo "$as_me:$LINENO: checking for error_t" >&5
11784echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11785if test "${ac_cv_type_error_t+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788 cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
11794#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795# include <argz.h>
11796#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011797
11798typedef error_t ac__type_new_;
11799int
11800main ()
11801{
11802if ((ac__type_new_ *) 0)
11803 return 0;
11804if (sizeof (ac__type_new_))
11805 return 0;
11806 ;
11807 return 0;
11808}
11809_ACEOF
11810rm -f conftest.$ac_objext
11811if { (ac_try="$ac_compile"
11812case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_try") 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_type_error_t=yes
11845else
11846 echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 ac_cv_type_error_t=no
11850fi
11851
11852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853fi
11854{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11855echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11856if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857
11858cat >>confdefs.h <<_ACEOF
11859#define HAVE_ERROR_T 1
11860_ACEOF
11861
11862
11863else
11864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011865cat >>confdefs.h <<\_ACEOF
11866#define error_t int
11867_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868
11869fi
11870
11871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011872
11873
11874
11875
11876
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011877for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011878do
11879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884else
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11893#define $ac_func innocuous_$ac_func
11894
11895/* System header to define __stub macros and hopefully few prototypes,
11896 which can conflict with char $ac_func (); below.
11897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11898 <limits.h> exists even on freestanding compilers. */
11899
11900#ifdef __STDC__
11901# include <limits.h>
11902#else
11903# include <assert.h>
11904#endif
11905
11906#undef $ac_func
11907
11908/* Override any GCC internal prototype to avoid an error.
11909 Use char because int might match the return type of a GCC
11910 builtin and then its argument prototype would still apply. */
11911#ifdef __cplusplus
11912extern "C"
11913#endif
11914char $ac_func ();
11915/* The GNU C library defines this for functions which it implements
11916 to always fail with ENOSYS. Some functions are actually named
11917 something starting with __ and the normal name is an alias. */
11918#if defined __stub_$ac_func || defined __stub___$ac_func
11919choke me
11920#endif
11921
11922int
11923main ()
11924{
11925return $ac_func ();
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930rm -f conftest.$ac_objext conftest$ac_exeext
11931if { (ac_try="$ac_link"
11932case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_link") 2>conftest.er1
11938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948esac
11949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (case "(($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_try") 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 eval "$as_ac_var=yes"
11965else
11966 echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 eval "$as_ac_var=no"
11970fi
11971
11972rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974fi
11975ac_res=`eval echo '${'$as_ac_var'}'`
11976 { echo "$as_me:$LINENO: result: $ac_res" >&5
11977echo "${ECHO_T}$ac_res" >&6; }
11978if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981_ACEOF
11982
11983fi
11984done
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012005
12006
12007
12008
12009
12010
12011
12012
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12014 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012015do
12016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022fi
12023ac_res=`eval echo '${'$as_ac_Header'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025echo "${ECHO_T}$ac_res" >&6; }
12026else
12027 # Is the header compilable?
12028{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12030cat >conftest.$ac_ext <<_ACEOF
12031/* confdefs.h. */
12032_ACEOF
12033cat confdefs.h >>conftest.$ac_ext
12034cat >>conftest.$ac_ext <<_ACEOF
12035/* end confdefs.h. */
12036$ac_includes_default
12037#include <$ac_header>
12038_ACEOF
12039rm -f conftest.$ac_objext
12040if { (ac_try="$ac_compile"
12041case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_compile") 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } &&
12053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_try") 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_header_compiler=yes
12074else
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_header_compiler=no
12079fi
12080
12081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12083echo "${ECHO_T}$ac_header_compiler" >&6; }
12084
12085# Is the header present?
12086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#include <$ac_header>
12095_ACEOF
12096if { (ac_try="$ac_cpp conftest.$ac_ext"
12097case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100esac
12101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } >/dev/null; then
12109 if test -s conftest.err; then
12110 ac_cpp_err=$ac_c_preproc_warn_flag
12111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12112 else
12113 ac_cpp_err=
12114 fi
12115else
12116 ac_cpp_err=yes
12117fi
12118if test -z "$ac_cpp_err"; then
12119 ac_header_preproc=yes
12120else
12121 echo "$as_me: failed program was:" >&5
12122sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 ac_header_preproc=no
12125fi
12126
12127rm -f conftest.err conftest.$ac_ext
12128{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12129echo "${ECHO_T}$ac_header_preproc" >&6; }
12130
12131# So? What about this header?
12132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12133 yes:no: )
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12138 ac_header_preproc=yes
12139 ;;
12140 no:yes:* )
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12153 ( cat <<\_ASBOX
12154## ----------------------------------- ##
12155## Report this to llvmbugs@cs.uiuc.edu ##
12156## ----------------------------------- ##
12157_ASBOX
12158 ) | sed "s/^/$as_me: WARNING: /" >&2
12159 ;;
12160esac
12161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165else
12166 eval "$as_ac_Header=\$ac_header_preproc"
12167fi
12168ac_res=`eval echo '${'$as_ac_Header'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170echo "${ECHO_T}$ac_res" >&6; }
12171
12172fi
12173if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176_ACEOF
12177
12178fi
12179
12180done
12181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012182
12183
12184
12185
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012186for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012187do
12188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12194fi
12195ac_res=`eval echo '${'$as_ac_Header'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197echo "${ECHO_T}$ac_res" >&6; }
12198else
12199 # Is the header compilable?
12200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12202cat >conftest.$ac_ext <<_ACEOF
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
12208$ac_includes_default
12209#include <$ac_header>
12210_ACEOF
12211rm -f conftest.$ac_objext
12212if { (ac_try="$ac_compile"
12213case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216esac
12217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_compile") 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest.$ac_objext'
12236 { (case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_try") 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_header_compiler=yes
12246else
12247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 ac_header_compiler=no
12251fi
12252
12253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12255echo "${ECHO_T}$ac_header_compiler" >&6; }
12256
12257# Is the header present?
12258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12260cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266#include <$ac_header>
12267_ACEOF
12268if { (ac_try="$ac_cpp conftest.$ac_ext"
12269case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } >/dev/null; then
12281 if test -s conftest.err; then
12282 ac_cpp_err=$ac_c_preproc_warn_flag
12283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12284 else
12285 ac_cpp_err=
12286 fi
12287else
12288 ac_cpp_err=yes
12289fi
12290if test -z "$ac_cpp_err"; then
12291 ac_header_preproc=yes
12292else
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 ac_header_preproc=no
12297fi
12298
12299rm -f conftest.err conftest.$ac_ext
12300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12301echo "${ECHO_T}$ac_header_preproc" >&6; }
12302
12303# So? What about this header?
12304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12305 yes:no: )
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12310 ac_header_preproc=yes
12311 ;;
12312 no:yes:* )
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12325 ( cat <<\_ASBOX
12326## ----------------------------------- ##
12327## Report this to llvmbugs@cs.uiuc.edu ##
12328## ----------------------------------- ##
12329_ASBOX
12330 ) | sed "s/^/$as_me: WARNING: /" >&2
12331 ;;
12332esac
12333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338 eval "$as_ac_Header=\$ac_header_preproc"
12339fi
12340ac_res=`eval echo '${'$as_ac_Header'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342echo "${ECHO_T}$ac_res" >&6; }
12343
12344fi
12345if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012346 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012348_ACEOF
12349
12350fi
12351
12352done
12353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012354
12355
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012356for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012357do
12358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364fi
12365ac_res=`eval echo '${'$as_ac_Header'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367echo "${ECHO_T}$ac_res" >&6; }
12368else
12369 # Is the header compilable?
12370{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12372cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
12378$ac_includes_default
12379#include <$ac_header>
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (ac_try="$ac_compile"
12383case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_header_compiler=yes
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 ac_header_compiler=no
12421fi
12422
12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425echo "${ECHO_T}$ac_header_compiler" >&6; }
12426
12427# Is the header present?
12428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12430cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
12435/* end confdefs.h. */
12436#include <$ac_header>
12437_ACEOF
12438if { (ac_try="$ac_cpp conftest.$ac_ext"
12439case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev/null; then
12451 if test -s conftest.err; then
12452 ac_cpp_err=$ac_c_preproc_warn_flag
12453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12454 else
12455 ac_cpp_err=
12456 fi
12457else
12458 ac_cpp_err=yes
12459fi
12460if test -z "$ac_cpp_err"; then
12461 ac_header_preproc=yes
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 ac_header_preproc=no
12467fi
12468
12469rm -f conftest.err conftest.$ac_ext
12470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471echo "${ECHO_T}$ac_header_preproc" >&6; }
12472
12473# So? What about this header?
12474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475 yes:no: )
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12480 ac_header_preproc=yes
12481 ;;
12482 no:yes:* )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12495 ( cat <<\_ASBOX
12496## ----------------------------------- ##
12497## Report this to llvmbugs@cs.uiuc.edu ##
12498## ----------------------------------- ##
12499_ASBOX
12500 ) | sed "s/^/$as_me: WARNING: /" >&2
12501 ;;
12502esac
12503{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 eval "$as_ac_Header=\$ac_header_preproc"
12509fi
12510ac_res=`eval echo '${'$as_ac_Header'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512echo "${ECHO_T}$ac_res" >&6; }
12513
12514fi
12515if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518_ACEOF
12519 break
12520fi
12521
12522done
12523
12524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012525
12526
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012527for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012528do
12529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12530{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12532if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534else
12535 cat >conftest.$ac_ext <<_ACEOF
12536/* confdefs.h. */
12537_ACEOF
12538cat confdefs.h >>conftest.$ac_ext
12539cat >>conftest.$ac_ext <<_ACEOF
12540/* end confdefs.h. */
12541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12543#define $ac_func innocuous_$ac_func
12544
12545/* System header to define __stub macros and hopefully few prototypes,
12546 which can conflict with char $ac_func (); below.
12547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548 <limits.h> exists even on freestanding compilers. */
12549
12550#ifdef __STDC__
12551# include <limits.h>
12552#else
12553# include <assert.h>
12554#endif
12555
12556#undef $ac_func
12557
12558/* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12561#ifdef __cplusplus
12562extern "C"
12563#endif
12564char $ac_func ();
12565/* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568#if defined __stub_$ac_func || defined __stub___$ac_func
12569choke me
12570#endif
12571
12572int
12573main ()
12574{
12575return $ac_func ();
12576 ;
12577 return 0;
12578}
12579_ACEOF
12580rm -f conftest.$ac_objext conftest$ac_exeext
12581if { (ac_try="$ac_link"
12582case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585esac
12586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_link") 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 eval "$as_ac_var=yes"
12615else
12616 echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 eval "$as_ac_var=no"
12620fi
12621
12622rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624fi
12625ac_res=`eval echo '${'$as_ac_var'}'`
12626 { echo "$as_me:$LINENO: result: $ac_res" >&5
12627echo "${ECHO_T}$ac_res" >&6; }
12628if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012629 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631_ACEOF
12632 break
12633fi
12634done
12635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012636
12637
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012638for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639do
12640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12641{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645else
12646 cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12654#define $ac_func innocuous_$ac_func
12655
12656/* System header to define __stub macros and hopefully few prototypes,
12657 which can conflict with char $ac_func (); below.
12658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12659 <limits.h> exists even on freestanding compilers. */
12660
12661#ifdef __STDC__
12662# include <limits.h>
12663#else
12664# include <assert.h>
12665#endif
12666
12667#undef $ac_func
12668
12669/* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12672#ifdef __cplusplus
12673extern "C"
12674#endif
12675char $ac_func ();
12676/* The GNU C library defines this for functions which it implements
12677 to always fail with ENOSYS. Some functions are actually named
12678 something starting with __ and the normal name is an alias. */
12679#if defined __stub_$ac_func || defined __stub___$ac_func
12680choke me
12681#endif
12682
12683int
12684main ()
12685{
12686return $ac_func ();
12687 ;
12688 return 0;
12689}
12690_ACEOF
12691rm -f conftest.$ac_objext conftest$ac_exeext
12692if { (ac_try="$ac_link"
12693case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696esac
12697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_link") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12706 { (case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709esac
12710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_try") 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest$ac_exeext'
12716 { (case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12719esac
12720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_try") 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 eval "$as_ac_var=yes"
12726else
12727 echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 eval "$as_ac_var=no"
12731fi
12732
12733rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735fi
12736ac_res=`eval echo '${'$as_ac_var'}'`
12737 { echo "$as_me:$LINENO: result: $ac_res" >&5
12738echo "${ECHO_T}$ac_res" >&6; }
12739if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012740 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742_ACEOF
12743 break
12744fi
12745done
12746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012747
12748
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012750do
12751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12752{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12754if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12756else
12757 cat >conftest.$ac_ext <<_ACEOF
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
12763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12765#define $ac_func innocuous_$ac_func
12766
12767/* System header to define __stub macros and hopefully few prototypes,
12768 which can conflict with char $ac_func (); below.
12769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12770 <limits.h> exists even on freestanding compilers. */
12771
12772#ifdef __STDC__
12773# include <limits.h>
12774#else
12775# include <assert.h>
12776#endif
12777
12778#undef $ac_func
12779
12780/* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12783#ifdef __cplusplus
12784extern "C"
12785#endif
12786char $ac_func ();
12787/* The GNU C library defines this for functions which it implements
12788 to always fail with ENOSYS. Some functions are actually named
12789 something starting with __ and the normal name is an alias. */
12790#if defined __stub_$ac_func || defined __stub___$ac_func
12791choke me
12792#endif
12793
12794int
12795main ()
12796{
12797return $ac_func ();
12798 ;
12799 return 0;
12800}
12801_ACEOF
12802rm -f conftest.$ac_objext conftest$ac_exeext
12803if { (ac_try="$ac_link"
12804case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817 { (case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820esac
12821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_try") 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830esac
12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 eval "$as_ac_var=yes"
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 eval "$as_ac_var=no"
12842fi
12843
12844rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846fi
12847ac_res=`eval echo '${'$as_ac_var'}'`
12848 { echo "$as_me:$LINENO: result: $ac_res" >&5
12849echo "${ECHO_T}$ac_res" >&6; }
12850if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012851 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012853_ACEOF
12854 break
12855fi
12856done
12857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012858
12859
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012860for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012861do
12862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867else
12868 cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
12874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12876#define $ac_func innocuous_$ac_func
12877
12878/* System header to define __stub macros and hopefully few prototypes,
12879 which can conflict with char $ac_func (); below.
12880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12881 <limits.h> exists even on freestanding compilers. */
12882
12883#ifdef __STDC__
12884# include <limits.h>
12885#else
12886# include <assert.h>
12887#endif
12888
12889#undef $ac_func
12890
12891/* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12894#ifdef __cplusplus
12895extern "C"
12896#endif
12897char $ac_func ();
12898/* The GNU C library defines this for functions which it implements
12899 to always fail with ENOSYS. Some functions are actually named
12900 something starting with __ and the normal name is an alias. */
12901#if defined __stub_$ac_func || defined __stub___$ac_func
12902choke me
12903#endif
12904
12905int
12906main ()
12907{
12908return $ac_func ();
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913rm -f conftest.$ac_objext conftest$ac_exeext
12914if { (ac_try="$ac_link"
12915case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918esac
12919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928 { (case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931esac
12932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_try") 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest$ac_exeext'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941esac
12942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 eval "$as_ac_var=yes"
12948else
12949 echo "$as_me: failed program was:" >&5
12950sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 eval "$as_ac_var=no"
12953fi
12954
12955rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957fi
12958ac_res=`eval echo '${'$as_ac_var'}'`
12959 { echo "$as_me:$LINENO: result: $ac_res" >&5
12960echo "${ECHO_T}$ac_res" >&6; }
12961if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012962 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012964_ACEOF
12965
12966fi
12967done
12968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969
12970
12971
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012972for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973do
12974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980 cat >conftest.$ac_ext <<_ACEOF
12981/* confdefs.h. */
12982_ACEOF
12983cat confdefs.h >>conftest.$ac_ext
12984cat >>conftest.$ac_ext <<_ACEOF
12985/* end confdefs.h. */
12986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12988#define $ac_func innocuous_$ac_func
12989
12990/* System header to define __stub macros and hopefully few prototypes,
12991 which can conflict with char $ac_func (); below.
12992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12993 <limits.h> exists even on freestanding compilers. */
12994
12995#ifdef __STDC__
12996# include <limits.h>
12997#else
12998# include <assert.h>
12999#endif
13000
13001#undef $ac_func
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 $ac_func ();
13010/* The GNU C library defines this for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013#if defined __stub_$ac_func || defined __stub___$ac_func
13014choke me
13015#endif
13016
13017int
13018main ()
13019{
13020return $ac_func ();
13021 ;
13022 return 0;
13023}
13024_ACEOF
13025rm -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
13059 eval "$as_ac_var=yes"
13060else
13061 echo "$as_me: failed program was:" >&5
13062sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 eval "$as_ac_var=no"
13065fi
13066
13067rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13069fi
13070ac_res=`eval echo '${'$as_ac_var'}'`
13071 { echo "$as_me:$LINENO: result: $ac_res" >&5
13072echo "${ECHO_T}$ac_res" >&6; }
13073if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013074 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013076_ACEOF
13077
13078fi
13079done
13080
13081
Douglas Gregor01746742009-05-11 18:05:52 +000013082
Reid Spencer7931a782004-12-27 06:15:02 +000013083if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013084 LLVMGCC="llvm-gcc${EXEEXT}"
13085 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013086 LLVMGCCCOMMAND="$LLVMGCC"
13087 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013088 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13089
13090 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13091
Reid Spencerc84492c2005-06-02 22:34:49 +000013092 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13093set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13096if test "${ac_cv_path_LLVMGCC+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013098else
13099 case $LLVMGCC in
13100 [\\/]* | ?:[\\/]*)
13101 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13102 ;;
13103 *)
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105for as_dir in $PATH
13106do
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013111 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013113 break 2
13114 fi
13115done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013116done
Reid Spencera773bd52006-08-04 18:18:08 +000013117IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013118
Reid Spencer59473af2004-12-25 07:31:29 +000013119 ;;
13120esac
13121fi
13122LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013123if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13125echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013127 { echo "$as_me:$LINENO: result: no" >&5
13128echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013129fi
13130
Reid Spencera773bd52006-08-04 18:18:08 +000013131
Reid Spencerc84492c2005-06-02 22:34:49 +000013132 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13133set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13136if test "${ac_cv_path_LLVMGXX+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013138else
13139 case $LLVMGXX in
13140 [\\/]* | ?:[\\/]*)
13141 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13142 ;;
13143 *)
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145for as_dir in $PATH
13146do
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013151 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013153 break 2
13154 fi
13155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013156done
Reid Spencera773bd52006-08-04 18:18:08 +000013157IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013158
Reid Spencer59473af2004-12-25 07:31:29 +000013159 ;;
13160esac
13161fi
13162LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013163if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13165echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167 { echo "$as_me:$LINENO: result: no" >&5
13168echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013169fi
13170
Reid Spencera773bd52006-08-04 18:18:08 +000013171
Reid Spencer59473af2004-12-25 07:31:29 +000013172else
Devang Patel5d28b882007-12-04 22:54:47 +000013173 if test -z "$LLVMGCC"; then
13174 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013175 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013176 fi
13177 if test -z "$LLVMGXX"; then
13178 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013179 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013180 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013181
Reid Spencer59473af2004-12-25 07:31:29 +000013182 LLVMGCC=$LLVMGCC
13183
13184 LLVMGXX=$LLVMGXX
13185
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013186 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13187
13188 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13189
Reid Spencer59473af2004-12-25 07:31:29 +000013190fi
13191
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013192
Daniel Dunbar98515672010-02-23 10:00:49 +000013193# Check whether --with-llvmcc was given.
13194if test "${with_llvmcc+set}" = set; then
13195 withval=$with_llvmcc;
13196else
13197 with_llvmcc=check
13198fi
13199
13200{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13201echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13202if test "$with_llvmcc" != "check"; then
13203 if (test "$with_llvmcc" != "llvm-gcc" &&
13204 test "$with_llvmcc" != "clang" &&
13205 test "$with_llvmcc" != "none"); then
13206 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13207echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13208 { (exit 1); exit 1; }; }
13209 fi
13210 WITH_LLVMCC="$with_llvmcc"
13211elif test -n "$LLVMGCC"; then
13212 WITH_LLVMCC=llvm-gcc
13213elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13214 WITH_LLVMCC=clang
13215else
13216 WITH_LLVMCC=none
13217fi
13218{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13219echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13220LLVMCC_OPTION=$WITH_LLVMCC
13221
13222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13224echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013225
Reid Spencer86901802004-12-08 23:07:27 +000013226ICC=no
13227IXX=no
13228case $CC in
13229 icc*|icpc*)
13230 ICC=yes
13231 IXX=yes
13232 ;;
13233 *)
13234 ;;
13235esac
13236
Duraid Madina937c60a2006-02-15 07:57:42 +000013237if test "$GCC" != "yes" && test "$ICC" != "yes"
13238then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13240echo "$as_me: error: gcc|icc required but not found" >&2;}
13241 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013242fi
13243
13244if test "$GXX" != "yes" && test "$IXX" != "yes"
13245then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013246 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13247echo "$as_me: error: g++|icc required but not found" >&2;}
13248 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013249fi
13250
Reid Spencer86901802004-12-08 23:07:27 +000013251if test "$GCC" = "yes"
13252then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013254#if !defined(__GNUC__) || __GNUC__ < 3
13255#error Unsupported GCC version
13256#endif
13257
13258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259rm -f conftest.$ac_objext
13260if { (ac_try="$ac_compile"
13261case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274 { (case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277esac
13278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_try") 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287esac
13288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
13298 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13299echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13300 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013302
Chris Lattner399c7c72008-02-05 19:43:53 +000013303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013304fi
13305
13306if test -z "$llvm_cv_gnu_make_command"
13307then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13309echo "$as_me: error: GNU Make required but not found" >&2;}
13310 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013311fi
13312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313{ echo "$as_me:$LINENO: result: ok" >&5
13314echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13317echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013318NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13319
13320NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013322{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13323echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013324
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326
13327{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13328echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13329if test "${ac_cv_lib_m_sin+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013331else
13332 ac_check_lib_save_LIBS=$LIBS
13333LIBS="-lm $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
Reid Spencer3484a992006-01-19 08:31:08 +000013339/* end confdefs.h. */
13340
Reid Spencera773bd52006-08-04 18:18:08 +000013341/* 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. */
Reid Spencer3484a992006-01-19 08:31:08 +000013344#ifdef __cplusplus
13345extern "C"
13346#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013347char sin ();
13348int
13349main ()
13350{
Reid Spencera773bd52006-08-04 18:18:08 +000013351return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013352 ;
13353 return 0;
13354}
13355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356rm -f conftest.$ac_objext conftest$ac_exeext
13357if { (ac_try="$ac_link"
13358case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013390 ac_cv_lib_m_sin=yes
13391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397
Bill Wendlingebcceee2009-04-18 11:20:33 +000013398rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013400LIBS=$ac_check_lib_save_LIBS
13401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013402{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13403echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13404if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013405 cat >>confdefs.h <<_ACEOF
13406#define HAVE_LIBM 1
13407_ACEOF
13408
13409 LIBS="-lm $LIBS"
13410
13411fi
13412
Jeff Cohen28783c32007-01-12 18:22:38 +000013413if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414
13415{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13416echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13417if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013419else
13420 ac_check_lib_save_LIBS=$LIBS
13421LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422cat >conftest.$ac_ext <<_ACEOF
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013427/* end confdefs.h. */
13428
Reid Spencer48fdf912006-06-01 19:03:21 +000013429
Reid Spencer484fc8e2006-06-01 16:55:59 +000013430int
13431main ()
13432{
Reid Spencera773bd52006-08-04 18:18:08 +000013433return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013434 ;
13435 return 0;
13436}
13437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438rm -f conftest.$ac_objext conftest$ac_exeext
13439if { (ac_try="$ac_link"
13440case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13443esac
13444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_link") 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13453 { (case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456esac
13457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_try") 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466esac
13467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_try") 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013472 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474 echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013479
Bill Wendlingebcceee2009-04-18 11:20:33 +000013480rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013481 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013482LIBS=$ac_check_lib_save_LIBS
13483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013484{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13485echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13486if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013487 cat >>confdefs.h <<_ACEOF
13488#define HAVE_LIBIMAGEHLP 1
13489_ACEOF
13490
13491 LIBS="-limagehlp $LIBS"
13492
13493fi
13494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495
13496{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13497echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13498if test "${ac_cv_lib_psapi_main+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013500else
13501 ac_check_lib_save_LIBS=$LIBS
13502LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013508/* end confdefs.h. */
13509
Reid Spencer48fdf912006-06-01 19:03:21 +000013510
Reid Spencer484fc8e2006-06-01 16:55:59 +000013511int
13512main ()
13513{
Reid Spencera773bd52006-08-04 18:18:08 +000013514return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013515 ;
13516 return 0;
13517}
13518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519rm -f conftest.$ac_objext conftest$ac_exeext
13520if { (ac_try="$ac_link"
13521case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524esac
13525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_link") 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13534 { (case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_try") 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_try") 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013553 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555 echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
13557
13558 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013560
Bill Wendlingebcceee2009-04-18 11:20:33 +000013561rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013562 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013563LIBS=$ac_check_lib_save_LIBS
13564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013565{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13566echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13567if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013568 cat >>confdefs.h <<_ACEOF
13569#define HAVE_LIBPSAPI 1
13570_ACEOF
13571
13572 LIBS="-lpsapi $LIBS"
13573
13574fi
13575
13576fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13579echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13580if test "${ac_cv_search_dlopen+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013582else
13583 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013590
Reid Spencera773bd52006-08-04 18:18:08 +000013591/* Override any GCC internal prototype to avoid an error.
13592 Use char because int might match the return type of a GCC
13593 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013594#ifdef __cplusplus
13595extern "C"
13596#endif
John Criswell7a73b802003-06-30 21:59:07 +000013597char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013598int
13599main ()
13600{
Reid Spencera773bd52006-08-04 18:18:08 +000013601return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013602 ;
13603 return 0;
13604}
13605_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013606for ac_lib in '' dl; do
13607 if test -z "$ac_lib"; then
13608 ac_res="none required"
13609 else
13610 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013612 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013613 rm -f conftest.$ac_objext conftest$ac_exeext
13614if { (ac_try="$ac_link"
13615case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618esac
13619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_link") 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628 { (case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
13632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_try") 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest$ac_exeext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641esac
13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013647 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013648else
13649 echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652
John Criswell7a73b802003-06-30 21:59:07 +000013653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013654
Bill Wendlingebcceee2009-04-18 11:20:33 +000013655rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013656 conftest$ac_exeext
13657 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013658 break
John Criswell7a73b802003-06-30 21:59:07 +000013659fi
Reid Spencera773bd52006-08-04 18:18:08 +000013660done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661if test "${ac_cv_search_dlopen+set}" = set; then
13662 :
Reid Spencera773bd52006-08-04 18:18:08 +000013663else
13664 ac_cv_search_dlopen=no
13665fi
13666rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013667LIBS=$ac_func_search_save_LIBS
13668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013669{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13670echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013671ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013672if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013675cat >>confdefs.h <<\_ACEOF
13676#define HAVE_DLOPEN 1
13677_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013678
13679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013680 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13681echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013682fi
13683
13684
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013685if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013686 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13687echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13688if test "${ac_cv_search_ffi_call+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013690else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013691 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013692cat >conftest.$ac_ext <<_ACEOF
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013697/* end confdefs.h. */
13698
13699/* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702#ifdef __cplusplus
13703extern "C"
13704#endif
13705char ffi_call ();
13706int
13707main ()
13708{
13709return ffi_call ();
13710 ;
13711 return 0;
13712}
13713_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013714for ac_lib in '' ffi; do
13715 if test -z "$ac_lib"; then
13716 ac_res="none required"
13717 else
13718 ac_res=-l$ac_lib
13719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13720 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013721 rm -f conftest.$ac_objext conftest$ac_exeext
13722if { (ac_try="$ac_link"
13723case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726esac
13727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_link") 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest$ac_exeext'
13746 { (case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749esac
13750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_try") 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013755 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013756else
13757 echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013762
Bill Wendlingebcceee2009-04-18 11:20:33 +000013763rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013764 conftest$ac_exeext
13765 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013766 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013767fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013769if test "${ac_cv_search_ffi_call+set}" = set; then
13770 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013771else
13772 ac_cv_search_ffi_call=no
13773fi
13774rm conftest.$ac_ext
13775LIBS=$ac_func_search_save_LIBS
13776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013777{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13778echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013779ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013780if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013783cat >>confdefs.h <<\_ACEOF
13784#define HAVE_FFI_CALL 1
13785_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013786
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013787else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013788 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13789echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13790 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013791fi
13792
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013793fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13796echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13797if test "${ac_cv_search_mallinfo+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013799else
13800 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801cat >conftest.$ac_ext <<_ACEOF
13802/* confdefs.h. */
13803_ACEOF
13804cat confdefs.h >>conftest.$ac_ext
13805cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013806/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013807
Reid Spencera773bd52006-08-04 18:18:08 +000013808/* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013811#ifdef __cplusplus
13812extern "C"
13813#endif
John Criswell7a73b802003-06-30 21:59:07 +000013814char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013815int
13816main ()
13817{
Reid Spencera773bd52006-08-04 18:18:08 +000013818return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013819 ;
13820 return 0;
13821}
13822_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013823for ac_lib in '' malloc; do
13824 if test -z "$ac_lib"; then
13825 ac_res="none required"
13826 else
13827 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013829 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830 rm -f conftest.$ac_objext conftest$ac_exeext
13831if { (ac_try="$ac_link"
13832case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013864 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
John Criswell7a73b802003-06-30 21:59:07 +000013870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871
Bill Wendlingebcceee2009-04-18 11:20:33 +000013872rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873 conftest$ac_exeext
13874 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013875 break
John Criswell7a73b802003-06-30 21:59:07 +000013876fi
Reid Spencera773bd52006-08-04 18:18:08 +000013877done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878if test "${ac_cv_search_mallinfo+set}" = set; then
13879 :
Reid Spencera773bd52006-08-04 18:18:08 +000013880else
13881 ac_cv_search_mallinfo=no
13882fi
13883rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013884LIBS=$ac_func_search_save_LIBS
13885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13887echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013888ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013892cat >>confdefs.h <<\_ACEOF
13893#define HAVE_MALLINFO 1
13894_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013895
13896fi
13897
13898
Reid Spencer0a262ba2005-08-24 10:07:20 +000013899if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900
13901{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13902echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13903if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013905else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013906 ac_check_lib_save_LIBS=$LIBS
13907LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013908cat >conftest.$ac_ext <<_ACEOF
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013913/* end confdefs.h. */
13914
Reid Spencera773bd52006-08-04 18:18:08 +000013915/* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013918#ifdef __cplusplus
13919extern "C"
13920#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013921char pthread_mutex_init ();
13922int
13923main ()
13924{
Reid Spencera773bd52006-08-04 18:18:08 +000013925return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013926 ;
13927 return 0;
13928}
13929_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930rm -f conftest.$ac_objext conftest$ac_exeext
13931if { (ac_try="$ac_link"
13932case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935esac
13936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948esac
13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958esac
13959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013964 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971
Bill Wendlingebcceee2009-04-18 11:20:33 +000013972rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013974LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13977echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13978if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013979 cat >>confdefs.h <<_ACEOF
13980#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013981_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013982
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013983 LIBS="-lpthread $LIBS"
13984
Reid Spencer22177fe2005-07-12 15:24:20 +000013985fi
13986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13988echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13989if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013991else
13992 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013998/* end confdefs.h. */
13999
Reid Spencera773bd52006-08-04 18:18:08 +000014000/* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014003#ifdef __cplusplus
14004extern "C"
14005#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014006char pthread_mutex_lock ();
14007int
14008main ()
14009{
Reid Spencera773bd52006-08-04 18:18:08 +000014010return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014011 ;
14012 return 0;
14013}
14014_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014015for ac_lib in '' pthread; do
14016 if test -z "$ac_lib"; then
14017 ac_res="none required"
14018 else
14019 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014021 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022 rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (ac_try="$ac_link"
14024case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027esac
14028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_link") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014056 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
Brian Gaeke5f268f72003-12-05 19:29:01 +000014062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014063
Bill Wendlingebcceee2009-04-18 11:20:33 +000014064rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065 conftest$ac_exeext
14066 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014067 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014068fi
Reid Spencera773bd52006-08-04 18:18:08 +000014069done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14071 :
Reid Spencera773bd52006-08-04 18:18:08 +000014072else
14073 ac_cv_search_pthread_mutex_lock=no
14074fi
14075rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014076LIBS=$ac_func_search_save_LIBS
14077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014078{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14079echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014080ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014084cat >>confdefs.h <<\_ACEOF
14085#define HAVE_PTHREAD_MUTEX_LOCK 1
14086_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014087
14088fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14091echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14092if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014094else
14095 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014101/* end confdefs.h. */
14102
14103/* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14106#ifdef __cplusplus
14107extern "C"
14108#endif
14109char pthread_rwlock_init ();
14110int
14111main ()
14112{
14113return pthread_rwlock_init ();
14114 ;
14115 return 0;
14116}
14117_ACEOF
14118for ac_lib in '' pthread; do
14119 if test -z "$ac_lib"; then
14120 ac_res="none required"
14121 else
14122 ac_res=-l$ac_lib
14123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14124 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125 rm -f conftest.$ac_objext conftest$ac_exeext
14126if { (ac_try="$ac_link"
14127case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14130esac
14131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_link") 2>conftest.er1
14133 ac_status=$?
14134 grep -v '^ *+' conftest.er1 >conftest.err
14135 rm -f conftest.er1
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
14139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143esac
14144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest$ac_exeext'
14150 { (case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153esac
14154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_try") 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014159 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
14164
Owen Andersonde8aed22009-06-16 18:20:20 +000014165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014166
Owen Andersonde8aed22009-06-16 18:20:20 +000014167rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168 conftest$ac_exeext
14169 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014170 break
14171fi
14172done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14174 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014175else
14176 ac_cv_search_pthread_rwlock_init=no
14177fi
14178rm conftest.$ac_ext
14179LIBS=$ac_func_search_save_LIBS
14180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14182echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014183ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014184if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187cat >>confdefs.h <<\_ACEOF
14188#define HAVE_PTHREAD_RWLOCK_INIT 1
14189_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014190
14191fi
14192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14194echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14195if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014197else
14198 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199cat >conftest.$ac_ext <<_ACEOF
14200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014204/* end confdefs.h. */
14205
14206/* Override any GCC internal prototype to avoid an error.
14207 Use char because int might match the return type of a GCC
14208 builtin and then its argument prototype would still apply. */
14209#ifdef __cplusplus
14210extern "C"
14211#endif
14212char pthread_getspecific ();
14213int
14214main ()
14215{
14216return pthread_getspecific ();
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221for ac_lib in '' pthread; do
14222 if test -z "$ac_lib"; then
14223 ac_res="none required"
14224 else
14225 ac_res=-l$ac_lib
14226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14227 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228 rm -f conftest.$ac_objext conftest$ac_exeext
14229if { (ac_try="$ac_link"
14230case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_link") 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243 { (case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14246esac
14247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest$ac_exeext'
14253 { (case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256esac
14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_try") 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014262 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014263else
14264 echo "$as_me: failed program was:" >&5
14265sed 's/^/| /' conftest.$ac_ext >&5
14266
14267
Owen Anderson27fcfe12009-06-25 23:10:26 +000014268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269
Owen Anderson27fcfe12009-06-25 23:10:26 +000014270rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014271 conftest$ac_exeext
14272 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014273 break
14274fi
14275done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14277 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014278else
14279 ac_cv_search_pthread_getspecific=no
14280fi
14281rm conftest.$ac_ext
14282LIBS=$ac_func_search_save_LIBS
14283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014284{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14285echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014286ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014290cat >>confdefs.h <<\_ACEOF
14291#define HAVE_PTHREAD_GETSPECIFIC 1
14292_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014293
14294fi
14295
Reid Spencer0a262ba2005-08-24 10:07:20 +000014296fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014297
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014298
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014299# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014301 withval=$with_udis86;
14302 USE_UDIS86=1
14303
14304 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014305 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014306 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14307 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308
14309{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14310echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14311if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014313else
14314 ac_check_lib_save_LIBS=$LIBS
14315LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316cat >conftest.$ac_ext <<_ACEOF
14317/* confdefs.h. */
14318_ACEOF
14319cat confdefs.h >>conftest.$ac_ext
14320cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014321/* end confdefs.h. */
14322
14323/* Override any GCC internal prototype to avoid an error.
14324 Use char because int might match the return type of a GCC
14325 builtin and then its argument prototype would still apply. */
14326#ifdef __cplusplus
14327extern "C"
14328#endif
14329char ud_init ();
14330int
14331main ()
14332{
14333return ud_init ();
14334 ;
14335 return 0;
14336}
14337_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338rm -f conftest.$ac_objext conftest$ac_exeext
14339if { (ac_try="$ac_link"
14340case "(($ac_try" in
14341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342 *) ac_try_echo=$ac_try;;
14343esac
14344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345 (eval "$ac_link") 2>conftest.er1
14346 ac_status=$?
14347 grep -v '^ *+' conftest.er1 >conftest.err
14348 rm -f conftest.er1
14349 cat conftest.err >&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14353 { (case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356esac
14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_try") 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest$ac_exeext'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014372 ac_cv_lib_udis86_ud_init=yes
14373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014374 echo "$as_me: failed program was:" >&5
14375sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379
Bill Wendlingebcceee2009-04-18 11:20:33 +000014380rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014382LIBS=$ac_check_lib_save_LIBS
14383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014384{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14385echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14386if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014387 cat >>confdefs.h <<_ACEOF
14388#define HAVE_LIBUDIS86 1
14389_ACEOF
14390
14391 LIBS="-ludis86 $LIBS"
14392
14393else
14394
14395 echo "Error! You need to have libudis86 around."
14396 exit -1
14397
14398fi
14399
14400
14401else
14402 USE_UDIS86=0
14403
14404fi
14405
14406
14407cat >>confdefs.h <<_ACEOF
14408#define USE_UDIS86 $USE_UDIS86
14409_ACEOF
14410
14411
14412
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014413# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014415 withval=$with_oprofile;
14416 USE_OPROFILE=1
14417
14418 case "$withval" in
14419 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014420 no) llvm_cv_oppath=
14421 USE_OPROFILE=0
14422 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014423 *) llvm_cv_oppath="${withval}/lib/oprofile"
14424 CPPFLAGS="-I${withval}/include";;
14425 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014426 if test -n "$llvm_cv_oppath" ; then
14427 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14429echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14430if test "${ac_cv_search_bfd_init+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014432else
14433 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014439/* end confdefs.h. */
14440
14441/* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14444#ifdef __cplusplus
14445extern "C"
14446#endif
14447char bfd_init ();
14448int
14449main ()
14450{
14451return bfd_init ();
14452 ;
14453 return 0;
14454}
14455_ACEOF
14456for ac_lib in '' bfd; do
14457 if test -z "$ac_lib"; then
14458 ac_res="none required"
14459 else
14460 ac_res=-l$ac_lib
14461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14462 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463 rm -f conftest.$ac_objext conftest$ac_exeext
14464if { (ac_try="$ac_link"
14465case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468esac
14469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_link") 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478 { (case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481esac
14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_try") 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest$ac_exeext'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491esac
14492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014497 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014504
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014505rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014506 conftest$ac_exeext
14507 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014508 break
14509fi
14510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014511if test "${ac_cv_search_bfd_init+set}" = set; then
14512 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014513else
14514 ac_cv_search_bfd_init=no
14515fi
14516rm conftest.$ac_ext
14517LIBS=$ac_func_search_save_LIBS
14518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014519{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14520echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014521ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14524
14525fi
14526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014527 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14528echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14529if test "${ac_cv_search_op_open_agent+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014531else
14532 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014533cat >conftest.$ac_ext <<_ACEOF
14534/* confdefs.h. */
14535_ACEOF
14536cat confdefs.h >>conftest.$ac_ext
14537cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014538/* end confdefs.h. */
14539
14540/* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14543#ifdef __cplusplus
14544extern "C"
14545#endif
14546char op_open_agent ();
14547int
14548main ()
14549{
14550return op_open_agent ();
14551 ;
14552 return 0;
14553}
14554_ACEOF
14555for ac_lib in '' opagent; do
14556 if test -z "$ac_lib"; then
14557 ac_res="none required"
14558 else
14559 ac_res=-l$ac_lib
14560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14561 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014562 rm -f conftest.$ac_objext conftest$ac_exeext
14563if { (ac_try="$ac_link"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_link") 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577 { (case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580esac
14581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_try") 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest$ac_exeext'
14587 { (case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590esac
14591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_try") 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014596 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014597else
14598 echo "$as_me: failed program was:" >&5
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014603
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014604rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014605 conftest$ac_exeext
14606 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014607 break
14608fi
14609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014610if test "${ac_cv_search_op_open_agent+set}" = set; then
14611 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014612else
14613 ac_cv_search_op_open_agent=no
14614fi
14615rm conftest.$ac_ext
14616LIBS=$ac_func_search_save_LIBS
14617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014618{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14619echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014620ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014621if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14623
14624else
14625
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014626 echo "Error! You need to have libopagent around."
14627 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014628
14629fi
14630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014631 if test "${ac_cv_header_opagent_h+set}" = set; then
14632 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14633echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14634if test "${ac_cv_header_opagent_h+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636fi
14637{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14638echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14639else
14640 # Is the header compilable?
14641{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14642echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14643cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h. */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
14649$ac_includes_default
14650#include <opagent.h>
14651_ACEOF
14652rm -f conftest.$ac_objext
14653if { (ac_try="$ac_compile"
14654case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14657esac
14658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_compile") 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14667 { (case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670esac
14671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_try") 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest.$ac_objext'
14677 { (case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680esac
14681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_try") 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_header_compiler=yes
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014691 ac_header_compiler=no
14692fi
14693
14694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14696echo "${ECHO_T}$ac_header_compiler" >&6; }
14697
14698# Is the header present?
14699{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14700echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14701cat >conftest.$ac_ext <<_ACEOF
14702/* confdefs.h. */
14703_ACEOF
14704cat confdefs.h >>conftest.$ac_ext
14705cat >>conftest.$ac_ext <<_ACEOF
14706/* end confdefs.h. */
14707#include <opagent.h>
14708_ACEOF
14709if { (ac_try="$ac_cpp conftest.$ac_ext"
14710case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14713esac
14714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14716 ac_status=$?
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } >/dev/null; then
14722 if test -s conftest.err; then
14723 ac_cpp_err=$ac_c_preproc_warn_flag
14724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14725 else
14726 ac_cpp_err=
14727 fi
14728else
14729 ac_cpp_err=yes
14730fi
14731if test -z "$ac_cpp_err"; then
14732 ac_header_preproc=yes
14733else
14734 echo "$as_me: failed program was:" >&5
14735sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_header_preproc=no
14738fi
14739
14740rm -f conftest.err conftest.$ac_ext
14741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14742echo "${ECHO_T}$ac_header_preproc" >&6; }
14743
14744# So? What about this header?
14745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14746 yes:no: )
14747 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14748echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14750echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14751 ac_header_preproc=yes
14752 ;;
14753 no:yes:* )
14754 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14755echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14757echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14759echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14761echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14763echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14764 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14765echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14766 ( cat <<\_ASBOX
14767## ----------------------------------- ##
14768## Report this to llvmbugs@cs.uiuc.edu ##
14769## ----------------------------------- ##
14770_ASBOX
14771 ) | sed "s/^/$as_me: WARNING: /" >&2
14772 ;;
14773esac
14774{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14775echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14776if test "${ac_cv_header_opagent_h+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778else
14779 ac_cv_header_opagent_h=$ac_header_preproc
14780fi
14781{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14782echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14783
14784fi
14785if test $ac_cv_header_opagent_h = yes; then
14786 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014787else
14788
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014789 echo "Error! You need to have opagent.h around."
14790 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014791
14792fi
14793
14794
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014795 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014796
14797else
14798
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014799 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014800
14801
14802fi
14803
14804
14805cat >>confdefs.h <<_ACEOF
14806#define USE_OPROFILE $USE_OPROFILE
14807_ACEOF
14808
14809
14810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014811
14812
14813
14814
14815
Reid Spencer59473af2004-12-25 07:31:29 +000014816ac_header_dirent=no
14817for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014818 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14819{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14820echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014824 cat >conftest.$ac_ext <<_ACEOF
14825/* confdefs.h. */
14826_ACEOF
14827cat confdefs.h >>conftest.$ac_ext
14828cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014829/* end confdefs.h. */
14830#include <sys/types.h>
14831#include <$ac_hdr>
14832
14833int
14834main ()
14835{
14836if ((DIR *) 0)
14837return 0;
14838 ;
14839 return 0;
14840}
14841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014842rm -f conftest.$ac_objext
14843if { (ac_try="$ac_compile"
14844case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847esac
14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
14861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014876 eval "$as_ac_Header=yes"
14877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014878 echo "$as_me: failed program was:" >&5
14879sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014883
Reid Spencera773bd52006-08-04 18:18:08 +000014884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014886ac_res=`eval echo '${'$as_ac_Header'}'`
14887 { echo "$as_me:$LINENO: result: $ac_res" >&5
14888echo "${ECHO_T}$ac_res" >&6; }
14889if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014890 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014891#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014892_ACEOF
14893
14894ac_header_dirent=$ac_hdr; break
14895fi
14896
14897done
14898# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14899if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014900 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14901echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14902if test "${ac_cv_search_opendir+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014904else
14905 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014906cat >conftest.$ac_ext <<_ACEOF
14907/* confdefs.h. */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014911/* end confdefs.h. */
14912
Reid Spencera773bd52006-08-04 18:18:08 +000014913/* Override any GCC internal prototype to avoid an error.
14914 Use char because int might match the return type of a GCC
14915 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014916#ifdef __cplusplus
14917extern "C"
14918#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014919char opendir ();
14920int
14921main ()
14922{
Reid Spencera773bd52006-08-04 18:18:08 +000014923return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014924 ;
14925 return 0;
14926}
14927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014928for ac_lib in '' dir; do
14929 if test -z "$ac_lib"; then
14930 ac_res="none required"
14931 else
14932 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014934 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014935 rm -f conftest.$ac_objext conftest$ac_exeext
14936if { (ac_try="$ac_link"
14937case "(($ac_try" in
14938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939 *) ac_try_echo=$ac_try;;
14940esac
14941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942 (eval "$ac_link") 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14950 { (case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953esac
14954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; } &&
14959 { ac_try='test -s conftest$ac_exeext'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963esac
14964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014969 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974
Reid Spencer59473af2004-12-25 07:31:29 +000014975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014976
Bill Wendlingebcceee2009-04-18 11:20:33 +000014977rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014978 conftest$ac_exeext
14979 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014980 break
Reid Spencer59473af2004-12-25 07:31:29 +000014981fi
Reid Spencera773bd52006-08-04 18:18:08 +000014982done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014983if test "${ac_cv_search_opendir+set}" = set; then
14984 :
Reid Spencera773bd52006-08-04 18:18:08 +000014985else
14986 ac_cv_search_opendir=no
14987fi
14988rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014989LIBS=$ac_func_search_save_LIBS
14990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014991{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14992echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014993ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014994if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014996
14997fi
14998
14999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015000 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15001echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15002if test "${ac_cv_search_opendir+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015004else
15005 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015011/* end confdefs.h. */
15012
Reid Spencera773bd52006-08-04 18:18:08 +000015013/* Override any GCC internal prototype to avoid an error.
15014 Use char because int might match the return type of a GCC
15015 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015016#ifdef __cplusplus
15017extern "C"
15018#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015019char opendir ();
15020int
15021main ()
15022{
Reid Spencera773bd52006-08-04 18:18:08 +000015023return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015024 ;
15025 return 0;
15026}
15027_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015028for ac_lib in '' x; do
15029 if test -z "$ac_lib"; then
15030 ac_res="none required"
15031 else
15032 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015034 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015035 rm -f conftest.$ac_objext conftest$ac_exeext
15036if { (ac_try="$ac_link"
15037case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_link") 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050 { (case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053esac
15054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_try") 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest$ac_exeext'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063esac
15064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015069 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070else
15071 echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074
Reid Spencer59473af2004-12-25 07:31:29 +000015075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076
Bill Wendlingebcceee2009-04-18 11:20:33 +000015077rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015078 conftest$ac_exeext
15079 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015080 break
Reid Spencer59473af2004-12-25 07:31:29 +000015081fi
Reid Spencera773bd52006-08-04 18:18:08 +000015082done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015083if test "${ac_cv_search_opendir+set}" = set; then
15084 :
Reid Spencera773bd52006-08-04 18:18:08 +000015085else
15086 ac_cv_search_opendir=no
15087fi
15088rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015089LIBS=$ac_func_search_save_LIBS
15090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015091{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15092echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015093ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015094if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015096
15097fi
15098
15099fi
15100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015101{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15102echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15103if test "${ac_cv_header_mmap_anon+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015105else
15106 ac_ext=c
15107ac_cpp='$CPP $CPPFLAGS'
15108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15110ac_compiler_gnu=$ac_cv_c_compiler_gnu
15111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015112 cat >conftest.$ac_ext <<_ACEOF
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015117/* end confdefs.h. */
15118#include <sys/mman.h>
15119#include <unistd.h>
15120#include <fcntl.h>
15121int
15122main ()
15123{
15124mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15125 ;
15126 return 0;
15127}
15128_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129rm -f conftest.$ac_objext
15130if { (ac_try="$ac_compile"
15131case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_compile") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157esac
15158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_try") 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015163 ac_cv_header_mmap_anon=yes
15164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015165 echo "$as_me: failed program was:" >&5
15166sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170
Reid Spencera773bd52006-08-04 18:18:08 +000015171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015172 ac_ext=c
15173ac_cpp='$CPP $CPPFLAGS'
15174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15176ac_compiler_gnu=$ac_cv_c_compiler_gnu
15177
15178
15179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015180{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15181echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015182if test "$ac_cv_header_mmap_anon" = yes; then
15183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015184cat >>confdefs.h <<\_ACEOF
15185#define HAVE_MMAP_ANONYMOUS 1
15186_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015187
15188fi
15189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015190{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15191echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15192if test "${ac_cv_header_stat_broken+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195 cat >conftest.$ac_ext <<_ACEOF
15196/* confdefs.h. */
15197_ACEOF
15198cat confdefs.h >>conftest.$ac_ext
15199cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015200/* end confdefs.h. */
15201#include <sys/types.h>
15202#include <sys/stat.h>
15203
Reid Spencera773bd52006-08-04 18:18:08 +000015204#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015205# if S_ISBLK (S_IFDIR)
15206You lose.
15207# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015208#endif
15209
Reid Spencera773bd52006-08-04 18:18:08 +000015210#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211# if S_ISBLK (S_IFCHR)
15212You lose.
15213# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015214#endif
15215
Reid Spencera773bd52006-08-04 18:18:08 +000015216#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217# if S_ISLNK (S_IFREG)
15218You lose.
15219# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015220#endif
15221
Reid Spencera773bd52006-08-04 18:18:08 +000015222#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015223# if S_ISSOCK (S_IFREG)
15224You lose.
15225# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015226#endif
15227
15228_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15230 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015231 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015232else
15233 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015235rm -f conftest*
15236
Reid Spencer59473af2004-12-25 07:31:29 +000015237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015238{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15239echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015240if test $ac_cv_header_stat_broken = yes; then
15241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242cat >>confdefs.h <<\_ACEOF
15243#define STAT_MACROS_BROKEN 1
15244_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015245
15246fi
15247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15249echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15250if test "${ac_cv_header_stdc+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253 cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015259#include <stdlib.h>
15260#include <stdarg.h>
15261#include <string.h>
15262#include <float.h>
15263
John Criswell0c38eaf2003-09-10 15:17:25 +000015264int
15265main ()
15266{
15267
15268 ;
15269 return 0;
15270}
John Criswell7a73b802003-06-30 21:59:07 +000015271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015272rm -f conftest.$ac_objext
15273if { (ac_try="$ac_compile"
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_compile") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15287 { (case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290esac
15291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_try") 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300esac
15301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_try") 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015306 ac_cv_header_stdc=yes
15307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015308 echo "$as_me: failed program was:" >&5
15309sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015313
Reid Spencera773bd52006-08-04 18:18:08 +000015314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015315
15316if test $ac_cv_header_stdc = yes; then
15317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015318 cat >conftest.$ac_ext <<_ACEOF
15319/* confdefs.h. */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015324#include <string.h>
15325
15326_ACEOF
15327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015328 $EGREP "memchr" >/dev/null 2>&1; then
15329 :
John Criswell7a73b802003-06-30 21:59:07 +000015330else
15331 ac_cv_header_stdc=no
15332fi
15333rm -f conftest*
15334
15335fi
15336
15337if test $ac_cv_header_stdc = yes; then
15338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015339 cat >conftest.$ac_ext <<_ACEOF
15340/* confdefs.h. */
15341_ACEOF
15342cat confdefs.h >>conftest.$ac_ext
15343cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015345#include <stdlib.h>
15346
15347_ACEOF
15348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015349 $EGREP "free" >/dev/null 2>&1; then
15350 :
John Criswell7a73b802003-06-30 21:59:07 +000015351else
15352 ac_cv_header_stdc=no
15353fi
15354rm -f conftest*
15355
15356fi
15357
15358if test $ac_cv_header_stdc = yes; then
15359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015361 :
15362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015363 cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015369#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015370#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015371#if ((' ' & 0x0FF) == 0x020)
15372# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15373# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15374#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015375# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015376 (('a' <= (c) && (c) <= 'i') \
15377 || ('j' <= (c) && (c) <= 'r') \
15378 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015379# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15380#endif
15381
15382#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15383int
15384main ()
15385{
15386 int i;
15387 for (i = 0; i < 256; i++)
15388 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015389 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015390 return 2;
15391 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015392}
15393_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394rm -f conftest$ac_exeext
15395if { (ac_try="$ac_link"
15396case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15399esac
15400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_link") 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408esac
15409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 :
John Criswell7a73b802003-06-30 21:59:07 +000015415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015416 echo "$as_me: program exited with status $ac_status" >&5
15417echo "$as_me: failed program was:" >&5
15418sed 's/^/| /' conftest.$ac_ext >&5
15419
15420( exit $ac_status )
15421ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015423rm -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 +000015424fi
15425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015426
John Criswell7a73b802003-06-30 21:59:07 +000015427fi
15428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015429{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15430echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015431if test $ac_cv_header_stdc = yes; then
15432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015433cat >>confdefs.h <<\_ACEOF
15434#define STDC_HEADERS 1
15435_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015436
15437fi
15438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015439{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15440echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15441if test "${ac_cv_header_sys_wait_h+set}" = set; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015444 cat >conftest.$ac_ext <<_ACEOF
15445/* confdefs.h. */
15446_ACEOF
15447cat confdefs.h >>conftest.$ac_ext
15448cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015450#include <sys/types.h>
15451#include <sys/wait.h>
15452#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015453# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015454#endif
15455#ifndef WIFEXITED
15456# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15457#endif
15458
John Criswell7a73b802003-06-30 21:59:07 +000015459int
15460main ()
15461{
15462 int s;
15463 wait (&s);
15464 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15465 ;
15466 return 0;
15467}
15468_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469rm -f conftest.$ac_objext
15470if { (ac_try="$ac_compile"
15471case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474esac
15475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15484 { (case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487esac
15488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_try") 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015503 ac_cv_header_sys_wait_h=yes
15504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015505 echo "$as_me: failed program was:" >&5
15506sed 's/^/| /' conftest.$ac_ext >&5
15507
15508 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015510
Reid Spencera773bd52006-08-04 18:18:08 +000015511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015513{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15514echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015515if test $ac_cv_header_sys_wait_h = yes; then
15516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015517cat >>confdefs.h <<\_ACEOF
15518#define HAVE_SYS_WAIT_H 1
15519_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015520
15521fi
15522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015523{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15524echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15525if test "${ac_cv_header_time+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015528 cat >conftest.$ac_ext <<_ACEOF
15529/* confdefs.h. */
15530_ACEOF
15531cat confdefs.h >>conftest.$ac_ext
15532cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015533/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015534#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015535#include <sys/time.h>
15536#include <time.h>
15537
15538int
15539main ()
15540{
15541if ((struct tm *) 0)
15542return 0;
15543 ;
15544 return 0;
15545}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015547rm -f conftest.$ac_objext
15548if { (ac_try="$ac_compile"
15549case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15555 ac_status=$?
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015581 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015583 echo "$as_me: failed program was:" >&5
15584sed 's/^/| /' conftest.$ac_ext >&5
15585
15586 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015588
Reid Spencera773bd52006-08-04 18:18:08 +000015589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015591{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15592echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015593if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015595cat >>confdefs.h <<\_ACEOF
15596#define TIME_WITH_SYS_TIME 1
15597_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015598
15599fi
15600
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015602
15603
15604
15605
15606
15607
Reid Spencer59473af2004-12-25 07:31:29 +000015608for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015609do
15610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15616fi
15617ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result: $ac_res" >&5
15619echo "${ECHO_T}$ac_res" >&6; }
15620else
15621 # Is the header compilable?
15622{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15624cat >conftest.$ac_ext <<_ACEOF
15625/* confdefs.h. */
15626_ACEOF
15627cat confdefs.h >>conftest.$ac_ext
15628cat >>conftest.$ac_ext <<_ACEOF
15629/* end confdefs.h. */
15630$ac_includes_default
15631#include <$ac_header>
15632_ACEOF
15633rm -f conftest.$ac_objext
15634if { (ac_try="$ac_compile"
15635case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638esac
15639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_compile") 2>conftest.er1
15641 ac_status=$?
15642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } &&
15647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651esac
15652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest.$ac_objext'
15658 { (case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_header_compiler=yes
15668else
15669 echo "$as_me: failed program was:" >&5
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ac_header_compiler=no
15673fi
15674
15675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15677echo "${ECHO_T}$ac_header_compiler" >&6; }
15678
15679# Is the header present?
15680{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15682cat >conftest.$ac_ext <<_ACEOF
15683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
15688#include <$ac_header>
15689_ACEOF
15690if { (ac_try="$ac_cpp conftest.$ac_ext"
15691case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15694esac
15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } >/dev/null; then
15703 if test -s conftest.err; then
15704 ac_cpp_err=$ac_c_preproc_warn_flag
15705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15706 else
15707 ac_cpp_err=
15708 fi
15709else
15710 ac_cpp_err=yes
15711fi
15712if test -z "$ac_cpp_err"; then
15713 ac_header_preproc=yes
15714else
15715 echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718 ac_header_preproc=no
15719fi
15720
15721rm -f conftest.err conftest.$ac_ext
15722{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723echo "${ECHO_T}$ac_header_preproc" >&6; }
15724
15725# So? What about this header?
15726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15727 yes:no: )
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15732 ac_header_preproc=yes
15733 ;;
15734 no:yes:* )
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15747 ( cat <<\_ASBOX
15748## ----------------------------------- ##
15749## Report this to llvmbugs@cs.uiuc.edu ##
15750## ----------------------------------- ##
15751_ASBOX
15752 ) | sed "s/^/$as_me: WARNING: /" >&2
15753 ;;
15754esac
15755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15759else
15760 eval "$as_ac_Header=\$ac_header_preproc"
15761fi
15762ac_res=`eval echo '${'$as_ac_Header'}'`
15763 { echo "$as_me:$LINENO: result: $ac_res" >&5
15764echo "${ECHO_T}$ac_res" >&6; }
15765
15766fi
15767if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015768 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015770_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015771
15772fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015773
Reid Spencer59473af2004-12-25 07:31:29 +000015774done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015776
15777
15778
15779
15780
15781
Douglas Gregor071d73d2009-05-18 17:21:34 +000015782for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015783do
15784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790fi
15791ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793echo "${ECHO_T}$ac_res" >&6; }
15794else
15795 # Is the header compilable?
15796{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15798cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804$ac_includes_default
15805#include <$ac_header>
15806_ACEOF
15807rm -f conftest.$ac_objext
15808if { (ac_try="$ac_compile"
15809case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812esac
15813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15822 { (case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15825esac
15826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_try") 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835esac
15836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_try") 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_header_compiler=yes
15842else
15843 echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_header_compiler=no
15847fi
15848
15849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15851echo "${ECHO_T}$ac_header_compiler" >&6; }
15852
15853# Is the header present?
15854{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862#include <$ac_header>
15863_ACEOF
15864if { (ac_try="$ac_cpp conftest.$ac_ext"
15865case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868esac
15869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15880 else
15881 ac_cpp_err=
15882 fi
15883else
15884 ac_cpp_err=yes
15885fi
15886if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_header_preproc=no
15893fi
15894
15895rm -f conftest.err conftest.$ac_ext
15896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15897echo "${ECHO_T}$ac_header_preproc" >&6; }
15898
15899# So? What about this header?
15900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15901 yes:no: )
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15906 ac_header_preproc=yes
15907 ;;
15908 no:yes:* )
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15921 ( cat <<\_ASBOX
15922## ----------------------------------- ##
15923## Report this to llvmbugs@cs.uiuc.edu ##
15924## ----------------------------------- ##
15925_ASBOX
15926 ) | sed "s/^/$as_me: WARNING: /" >&2
15927 ;;
15928esac
15929{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933else
15934 eval "$as_ac_Header=\$ac_header_preproc"
15935fi
15936ac_res=`eval echo '${'$as_ac_Header'}'`
15937 { echo "$as_me:$LINENO: result: $ac_res" >&5
15938echo "${ECHO_T}$ac_res" >&6; }
15939
15940fi
15941if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015942 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015944_ACEOF
15945
15946fi
15947
15948done
15949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015950
15951
Douglas Gregor071d73d2009-05-18 17:21:34 +000015952for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015953do
15954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15960fi
15961ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963echo "${ECHO_T}$ac_res" >&6; }
15964else
15965 # Is the header compilable?
15966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975#include <$ac_header>
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (ac_try="$ac_compile"
15979case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982esac
15983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_header_compiler=yes
16012else
16013 echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 ac_header_compiler=no
16017fi
16018
16019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021echo "${ECHO_T}$ac_header_compiler" >&6; }
16022
16023# Is the header present?
16024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032#include <$ac_header>
16033_ACEOF
16034if { (ac_try="$ac_cpp conftest.$ac_ext"
16035case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038esac
16039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } >/dev/null; then
16047 if test -s conftest.err; then
16048 ac_cpp_err=$ac_c_preproc_warn_flag
16049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050 else
16051 ac_cpp_err=
16052 fi
16053else
16054 ac_cpp_err=yes
16055fi
16056if test -z "$ac_cpp_err"; then
16057 ac_header_preproc=yes
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_header_preproc=no
16063fi
16064
16065rm -f conftest.err conftest.$ac_ext
16066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069# So? What about this header?
16070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071 yes:no: )
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076 ac_header_preproc=yes
16077 ;;
16078 no:yes:* )
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091 ( cat <<\_ASBOX
16092## ----------------------------------- ##
16093## Report this to llvmbugs@cs.uiuc.edu ##
16094## ----------------------------------- ##
16095_ASBOX
16096 ) | sed "s/^/$as_me: WARNING: /" >&2
16097 ;;
16098esac
16099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103else
16104 eval "$as_ac_Header=\$ac_header_preproc"
16105fi
16106ac_res=`eval echo '${'$as_ac_Header'}'`
16107 { echo "$as_me:$LINENO: result: $ac_res" >&5
16108echo "${ECHO_T}$ac_res" >&6; }
16109
16110fi
16111if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016114_ACEOF
16115
16116fi
16117
16118done
Reid Spencer59473af2004-12-25 07:31:29 +000016119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016120
16121
16122
16123
Reid Spencerbe3e4192007-08-17 05:45:26 +000016124for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016125do
16126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132fi
16133ac_res=`eval echo '${'$as_ac_Header'}'`
16134 { echo "$as_me:$LINENO: result: $ac_res" >&5
16135echo "${ECHO_T}$ac_res" >&6; }
16136else
16137 # Is the header compilable?
16138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16140cat >conftest.$ac_ext <<_ACEOF
16141/* confdefs.h. */
16142_ACEOF
16143cat confdefs.h >>conftest.$ac_ext
16144cat >>conftest.$ac_ext <<_ACEOF
16145/* end confdefs.h. */
16146$ac_includes_default
16147#include <$ac_header>
16148_ACEOF
16149rm -f conftest.$ac_objext
16150if { (ac_try="$ac_compile"
16151case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16164 { (case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_try") 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_try") 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_header_compiler=yes
16184else
16185 echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188 ac_header_compiler=no
16189fi
16190
16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16193echo "${ECHO_T}$ac_header_compiler" >&6; }
16194
16195# Is the header present?
16196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16198cat >conftest.$ac_ext <<_ACEOF
16199/* confdefs.h. */
16200_ACEOF
16201cat confdefs.h >>conftest.$ac_ext
16202cat >>conftest.$ac_ext <<_ACEOF
16203/* end confdefs.h. */
16204#include <$ac_header>
16205_ACEOF
16206if { (ac_try="$ac_cpp conftest.$ac_ext"
16207case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210esac
16211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16213 ac_status=$?
16214 grep -v '^ *+' conftest.er1 >conftest.err
16215 rm -f conftest.er1
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } >/dev/null; then
16219 if test -s conftest.err; then
16220 ac_cpp_err=$ac_c_preproc_warn_flag
16221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16222 else
16223 ac_cpp_err=
16224 fi
16225else
16226 ac_cpp_err=yes
16227fi
16228if test -z "$ac_cpp_err"; then
16229 ac_header_preproc=yes
16230else
16231 echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ac_header_preproc=no
16235fi
16236
16237rm -f conftest.err conftest.$ac_ext
16238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16239echo "${ECHO_T}$ac_header_preproc" >&6; }
16240
16241# So? What about this header?
16242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16243 yes:no: )
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16248 ac_header_preproc=yes
16249 ;;
16250 no:yes:* )
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16263 ( cat <<\_ASBOX
16264## ----------------------------------- ##
16265## Report this to llvmbugs@cs.uiuc.edu ##
16266## ----------------------------------- ##
16267_ASBOX
16268 ) | sed "s/^/$as_me: WARNING: /" >&2
16269 ;;
16270esac
16271{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 eval "$as_ac_Header=\$ac_header_preproc"
16277fi
16278ac_res=`eval echo '${'$as_ac_Header'}'`
16279 { echo "$as_me:$LINENO: result: $ac_res" >&5
16280echo "${ECHO_T}$ac_res" >&6; }
16281
16282fi
16283if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016284 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016286_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016287
16288fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016289
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016290done
16291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016292
16293
16294
16295
Douglas Gregor01746742009-05-11 18:05:52 +000016296for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016297do
16298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304fi
16305ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307echo "${ECHO_T}$ac_res" >&6; }
16308else
16309 # Is the header compilable?
16310{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16312cat >conftest.$ac_ext <<_ACEOF
16313/* confdefs.h. */
16314_ACEOF
16315cat confdefs.h >>conftest.$ac_ext
16316cat >>conftest.$ac_ext <<_ACEOF
16317/* end confdefs.h. */
16318$ac_includes_default
16319#include <$ac_header>
16320_ACEOF
16321rm -f conftest.$ac_objext
16322if { (ac_try="$ac_compile"
16323case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_compile") 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest.$ac_objext'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_header_compiler=yes
16356else
16357 echo "$as_me: failed program was:" >&5
16358sed 's/^/| /' conftest.$ac_ext >&5
16359
16360 ac_header_compiler=no
16361fi
16362
16363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16365echo "${ECHO_T}$ac_header_compiler" >&6; }
16366
16367# Is the header present?
16368{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16370cat >conftest.$ac_ext <<_ACEOF
16371/* confdefs.h. */
16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
16376#include <$ac_header>
16377_ACEOF
16378if { (ac_try="$ac_cpp conftest.$ac_ext"
16379case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382esac
16383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } >/dev/null; then
16391 if test -s conftest.err; then
16392 ac_cpp_err=$ac_c_preproc_warn_flag
16393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16394 else
16395 ac_cpp_err=
16396 fi
16397else
16398 ac_cpp_err=yes
16399fi
16400if test -z "$ac_cpp_err"; then
16401 ac_header_preproc=yes
16402else
16403 echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_header_preproc=no
16407fi
16408
16409rm -f conftest.err conftest.$ac_ext
16410{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16411echo "${ECHO_T}$ac_header_preproc" >&6; }
16412
16413# So? What about this header?
16414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16415 yes:no: )
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16420 ac_header_preproc=yes
16421 ;;
16422 no:yes:* )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16435 ( cat <<\_ASBOX
16436## ----------------------------------- ##
16437## Report this to llvmbugs@cs.uiuc.edu ##
16438## ----------------------------------- ##
16439_ASBOX
16440 ) | sed "s/^/$as_me: WARNING: /" >&2
16441 ;;
16442esac
16443{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16447else
16448 eval "$as_ac_Header=\$ac_header_preproc"
16449fi
16450ac_res=`eval echo '${'$as_ac_Header'}'`
16451 { echo "$as_me:$LINENO: result: $ac_res" >&5
16452echo "${ECHO_T}$ac_res" >&6; }
16453
16454fi
16455if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016456 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016458_ACEOF
16459
16460fi
16461
16462done
16463
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016464
16465for ac_header in valgrind/valgrind.h
16466do
16467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473fi
16474ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476echo "${ECHO_T}$ac_res" >&6; }
16477else
16478 # Is the header compilable?
16479{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16481cat >conftest.$ac_ext <<_ACEOF
16482/* confdefs.h. */
16483_ACEOF
16484cat confdefs.h >>conftest.$ac_ext
16485cat >>conftest.$ac_ext <<_ACEOF
16486/* end confdefs.h. */
16487$ac_includes_default
16488#include <$ac_header>
16489_ACEOF
16490rm -f conftest.$ac_objext
16491if { (ac_try="$ac_compile"
16492case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_header_compiler=yes
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ac_header_compiler=no
16530fi
16531
16532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534echo "${ECHO_T}$ac_header_compiler" >&6; }
16535
16536# Is the header present?
16537{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16539cat >conftest.$ac_ext <<_ACEOF
16540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
16545#include <$ac_header>
16546_ACEOF
16547if { (ac_try="$ac_cpp conftest.$ac_ext"
16548case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16551esac
16552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } >/dev/null; then
16560 if test -s conftest.err; then
16561 ac_cpp_err=$ac_c_preproc_warn_flag
16562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16563 else
16564 ac_cpp_err=
16565 fi
16566else
16567 ac_cpp_err=yes
16568fi
16569if test -z "$ac_cpp_err"; then
16570 ac_header_preproc=yes
16571else
16572 echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ac_header_preproc=no
16576fi
16577
16578rm -f conftest.err conftest.$ac_ext
16579{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580echo "${ECHO_T}$ac_header_preproc" >&6; }
16581
16582# So? What about this header?
16583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16584 yes:no: )
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc=yes
16590 ;;
16591 no:yes:* )
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16604 ( cat <<\_ASBOX
16605## ----------------------------------- ##
16606## Report this to llvmbugs@cs.uiuc.edu ##
16607## ----------------------------------- ##
16608_ASBOX
16609 ) | sed "s/^/$as_me: WARNING: /" >&2
16610 ;;
16611esac
16612{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616else
16617 eval "$as_ac_Header=\$ac_header_preproc"
16618fi
16619ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621echo "${ECHO_T}$ac_res" >&6; }
16622
16623fi
16624if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16627_ACEOF
16628
16629fi
16630
16631done
16632
Reid Spencer0a262ba2005-08-24 10:07:20 +000016633if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016634
16635for ac_header in pthread.h
16636do
16637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643fi
16644ac_res=`eval echo '${'$as_ac_Header'}'`
16645 { echo "$as_me:$LINENO: result: $ac_res" >&5
16646echo "${ECHO_T}$ac_res" >&6; }
16647else
16648 # Is the header compilable?
16649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16651cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h. */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h. */
16657$ac_includes_default
16658#include <$ac_header>
16659_ACEOF
16660rm -f conftest.$ac_objext
16661if { (ac_try="$ac_compile"
16662case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16665esac
16666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_compile") 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try='test -s conftest.$ac_objext'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688esac
16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_header_compiler=yes
16695else
16696 echo "$as_me: failed program was:" >&5
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 ac_header_compiler=no
16700fi
16701
16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704echo "${ECHO_T}$ac_header_compiler" >&6; }
16705
16706# Is the header present?
16707{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16709cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715#include <$ac_header>
16716_ACEOF
16717if { (ac_try="$ac_cpp conftest.$ac_ext"
16718case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721esac
16722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } >/dev/null; then
16730 if test -s conftest.err; then
16731 ac_cpp_err=$ac_c_preproc_warn_flag
16732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16733 else
16734 ac_cpp_err=
16735 fi
16736else
16737 ac_cpp_err=yes
16738fi
16739if test -z "$ac_cpp_err"; then
16740 ac_header_preproc=yes
16741else
16742 echo "$as_me: failed program was:" >&5
16743sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 ac_header_preproc=no
16746fi
16747
16748rm -f conftest.err conftest.$ac_ext
16749{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16750echo "${ECHO_T}$ac_header_preproc" >&6; }
16751
16752# So? What about this header?
16753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16754 yes:no: )
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16759 ac_header_preproc=yes
16760 ;;
16761 no:yes:* )
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16769echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16774 ( cat <<\_ASBOX
16775## ----------------------------------- ##
16776## Report this to llvmbugs@cs.uiuc.edu ##
16777## ----------------------------------- ##
16778_ASBOX
16779 ) | sed "s/^/$as_me: WARNING: /" >&2
16780 ;;
16781esac
16782{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786else
16787 eval "$as_ac_Header=\$ac_header_preproc"
16788fi
16789ac_res=`eval echo '${'$as_ac_Header'}'`
16790 { echo "$as_me:$LINENO: result: $ac_res" >&5
16791echo "${ECHO_T}$ac_res" >&6; }
16792
16793fi
16794if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016795 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016797_ACEOF
16798 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016799
16800else
16801 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016802
16803fi
16804
Reid Spencerbe3e4192007-08-17 05:45:26 +000016805done
Reid Spencer1000b732006-12-01 00:37:14 +000016806
16807else
16808 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016809
16810fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016811
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016812if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016813
16814
16815for ac_header in ffi.h ffi/ffi.h
16816do
16817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823fi
16824ac_res=`eval echo '${'$as_ac_Header'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826echo "${ECHO_T}$ac_res" >&6; }
16827else
16828 # Is the header compilable?
16829{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16831cat >conftest.$ac_ext <<_ACEOF
16832/* confdefs.h. */
16833_ACEOF
16834cat confdefs.h >>conftest.$ac_ext
16835cat >>conftest.$ac_ext <<_ACEOF
16836/* end confdefs.h. */
16837$ac_includes_default
16838#include <$ac_header>
16839_ACEOF
16840rm -f conftest.$ac_objext
16841if { (ac_try="$ac_compile"
16842case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845esac
16846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_compile") 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858esac
16859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16874 ac_header_compiler=yes
16875else
16876 echo "$as_me: failed program was:" >&5
16877sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_header_compiler=no
16880fi
16881
16882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16884echo "${ECHO_T}$ac_header_compiler" >&6; }
16885
16886# Is the header present?
16887{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16888echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16889cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895#include <$ac_header>
16896_ACEOF
16897if { (ac_try="$ac_cpp conftest.$ac_ext"
16898case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901esac
16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } >/dev/null; then
16910 if test -s conftest.err; then
16911 ac_cpp_err=$ac_c_preproc_warn_flag
16912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16913 else
16914 ac_cpp_err=
16915 fi
16916else
16917 ac_cpp_err=yes
16918fi
16919if test -z "$ac_cpp_err"; then
16920 ac_header_preproc=yes
16921else
16922 echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 ac_header_preproc=no
16926fi
16927
16928rm -f conftest.err conftest.$ac_ext
16929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16930echo "${ECHO_T}$ac_header_preproc" >&6; }
16931
16932# So? What about this header?
16933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16934 yes:no: )
16935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16939 ac_header_preproc=yes
16940 ;;
16941 no:yes:* )
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16945echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16949echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16954 ( cat <<\_ASBOX
16955## ----------------------------------- ##
16956## Report this to llvmbugs@cs.uiuc.edu ##
16957## ----------------------------------- ##
16958_ASBOX
16959 ) | sed "s/^/$as_me: WARNING: /" >&2
16960 ;;
16961esac
16962{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966else
16967 eval "$as_ac_Header=\$ac_header_preproc"
16968fi
16969ac_res=`eval echo '${'$as_ac_Header'}'`
16970 { echo "$as_me:$LINENO: result: $ac_res" >&5
16971echo "${ECHO_T}$ac_res" >&6; }
16972
16973fi
16974if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016975 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016977_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016978
16979fi
16980
16981done
16982
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016983fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016984
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016985
Eric Christopher654dee42010-06-22 21:01:04 +000016986for ac_header in CrashReporterClient.h
16987do
16988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994fi
16995ac_res=`eval echo '${'$as_ac_Header'}'`
16996 { echo "$as_me:$LINENO: result: $ac_res" >&5
16997echo "${ECHO_T}$ac_res" >&6; }
16998else
16999 # Is the header compilable?
17000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17002cat >conftest.$ac_ext <<_ACEOF
17003/* confdefs.h. */
17004_ACEOF
17005cat confdefs.h >>conftest.$ac_ext
17006cat >>conftest.$ac_ext <<_ACEOF
17007/* end confdefs.h. */
17008$ac_includes_default
17009#include <$ac_header>
17010_ACEOF
17011rm -f conftest.$ac_objext
17012if { (ac_try="$ac_compile"
17013case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_compile") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest.$ac_objext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_header_compiler=yes
17046else
17047 echo "$as_me: failed program was:" >&5
17048sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_header_compiler=no
17051fi
17052
17053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17055echo "${ECHO_T}$ac_header_compiler" >&6; }
17056
17057# Is the header present?
17058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17060cat >conftest.$ac_ext <<_ACEOF
17061/* confdefs.h. */
17062_ACEOF
17063cat confdefs.h >>conftest.$ac_ext
17064cat >>conftest.$ac_ext <<_ACEOF
17065/* end confdefs.h. */
17066#include <$ac_header>
17067_ACEOF
17068if { (ac_try="$ac_cpp conftest.$ac_ext"
17069case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072esac
17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } >/dev/null; then
17081 if test -s conftest.err; then
17082 ac_cpp_err=$ac_c_preproc_warn_flag
17083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17084 else
17085 ac_cpp_err=
17086 fi
17087else
17088 ac_cpp_err=yes
17089fi
17090if test -z "$ac_cpp_err"; then
17091 ac_header_preproc=yes
17092else
17093 echo "$as_me: failed program was:" >&5
17094sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 ac_header_preproc=no
17097fi
17098
17099rm -f conftest.err conftest.$ac_ext
17100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17101echo "${ECHO_T}$ac_header_preproc" >&6; }
17102
17103# So? What about this header?
17104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17105 yes:no: )
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17110 ac_header_preproc=yes
17111 ;;
17112 no:yes:* )
17113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17125 ( cat <<\_ASBOX
17126## ----------------------------------- ##
17127## Report this to llvmbugs@cs.uiuc.edu ##
17128## ----------------------------------- ##
17129_ASBOX
17130 ) | sed "s/^/$as_me: WARNING: /" >&2
17131 ;;
17132esac
17133{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137else
17138 eval "$as_ac_Header=\$ac_header_preproc"
17139fi
17140ac_res=`eval echo '${'$as_ac_Header'}'`
17141 { echo "$as_me:$LINENO: result: $ac_res" >&5
17142echo "${ECHO_T}$ac_res" >&6; }
17143
17144fi
17145if test `eval echo '${'$as_ac_Header'}'` = yes; then
17146 cat >>confdefs.h <<_ACEOF
17147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17148_ACEOF
17149
17150fi
17151
17152done
17153
17154
17155
Owen Anderson009f20a2010-07-19 19:24:55 +000017156for ac_header in mach-o/getsect.h
17157do
17158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164fi
17165ac_res=`eval echo '${'$as_ac_Header'}'`
17166 { echo "$as_me:$LINENO: result: $ac_res" >&5
17167echo "${ECHO_T}$ac_res" >&6; }
17168else
17169 # Is the header compilable?
17170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17172cat >conftest.$ac_ext <<_ACEOF
17173/* confdefs.h. */
17174_ACEOF
17175cat confdefs.h >>conftest.$ac_ext
17176cat >>conftest.$ac_ext <<_ACEOF
17177/* end confdefs.h. */
17178$ac_includes_default
17179#include <$ac_header>
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (ac_try="$ac_compile"
17183case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_compile") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199esac
17200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17215 ac_header_compiler=yes
17216else
17217 echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 ac_header_compiler=no
17221fi
17222
17223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17225echo "${ECHO_T}$ac_header_compiler" >&6; }
17226
17227# Is the header present?
17228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17230cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236#include <$ac_header>
17237_ACEOF
17238if { (ac_try="$ac_cpp conftest.$ac_ext"
17239case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } >/dev/null; then
17251 if test -s conftest.err; then
17252 ac_cpp_err=$ac_c_preproc_warn_flag
17253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17254 else
17255 ac_cpp_err=
17256 fi
17257else
17258 ac_cpp_err=yes
17259fi
17260if test -z "$ac_cpp_err"; then
17261 ac_header_preproc=yes
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 ac_header_preproc=no
17267fi
17268
17269rm -f conftest.err conftest.$ac_ext
17270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17271echo "${ECHO_T}$ac_header_preproc" >&6; }
17272
17273# So? What about this header?
17274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17275 yes:no: )
17276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17280 ac_header_preproc=yes
17281 ;;
17282 no:yes:* )
17283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17295 ( cat <<\_ASBOX
17296## ----------------------------------- ##
17297## Report this to llvmbugs@cs.uiuc.edu ##
17298## ----------------------------------- ##
17299_ASBOX
17300 ) | sed "s/^/$as_me: WARNING: /" >&2
17301 ;;
17302esac
17303{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307else
17308 eval "$as_ac_Header=\$ac_header_preproc"
17309fi
17310ac_res=`eval echo '${'$as_ac_Header'}'`
17311 { echo "$as_me:$LINENO: result: $ac_res" >&5
17312echo "${ECHO_T}$ac_res" >&6; }
17313
17314fi
17315if test `eval echo '${'$as_ac_Header'}'` = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17318_ACEOF
17319
17320fi
17321
17322done
17323
17324
17325
Reid Spencer8085cff2005-01-16 02:58:39 +000017326
Torok Edwin871384f2010-01-26 08:50:50 +000017327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017328 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17329echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17330if test "${ac_cv_huge_val_sanity+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017332else
17333
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017334 ac_ext=cpp
17335ac_cpp='$CXXCPP $CPPFLAGS'
17336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017339
Eric Christopherc7718502010-03-02 05:06:54 +000017340 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017341 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017342 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017343 ac_cv_huge_val_sanity=yes
17344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017345 cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017350/* end confdefs.h. */
17351#include <math.h>
17352int
17353main ()
17354{
17355double x = HUGE_VAL; return x != x;
17356 ;
17357 return 0;
17358}
17359_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360rm -f conftest$ac_exeext
17361if { (ac_try="$ac_link"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017380 ac_cv_huge_val_sanity=yes
17381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017382 echo "$as_me: program exited with status $ac_status" >&5
17383echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386( exit $ac_status )
17387ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017389rm -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 +000017390fi
17391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017392
Eric Christopherc7718502010-03-02 05:06:54 +000017393 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017394 ac_ext=c
17395ac_cpp='$CPP $CPPFLAGS'
17396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17398ac_compiler_gnu=$ac_cv_c_compiler_gnu
17399
17400
17401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017402{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17403echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017404 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17405
17406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017407{ echo "$as_me:$LINENO: checking for pid_t" >&5
17408echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17409if test "${ac_cv_type_pid_t+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411else
17412 cat >conftest.$ac_ext <<_ACEOF
17413/* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418$ac_includes_default
17419typedef pid_t ac__type_new_;
17420int
17421main ()
17422{
17423if ((ac__type_new_ *) 0)
17424 return 0;
17425if (sizeof (ac__type_new_))
17426 return 0;
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext
17432if { (ac_try="$ac_compile"
17433case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_compile") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446 { (case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17449esac
17450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_try") 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_type_pid_t=yes
17466else
17467 echo "$as_me: failed program was:" >&5
17468sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017470 ac_cv_type_pid_t=no
17471fi
17472
17473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474fi
17475{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17476echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17477if test $ac_cv_type_pid_t = yes; then
17478 :
John Criswell7a73b802003-06-30 21:59:07 +000017479else
17480
17481cat >>confdefs.h <<_ACEOF
17482#define pid_t int
17483_ACEOF
17484
17485fi
17486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017487{ echo "$as_me:$LINENO: checking for size_t" >&5
17488echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17489if test "${ac_cv_type_size_t+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498$ac_includes_default
17499typedef size_t ac__type_new_;
17500int
17501main ()
17502{
17503if ((ac__type_new_ *) 0)
17504 return 0;
17505if (sizeof (ac__type_new_))
17506 return 0;
17507 ;
17508 return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext
17512if { (ac_try="$ac_compile"
17513case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516esac
17517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526 { (case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17529esac
17530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_try") 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_type_size_t=yes
17546else
17547 echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017550 ac_cv_type_size_t=no
17551fi
17552
17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554fi
17555{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17556echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17557if test $ac_cv_type_size_t = yes; then
17558 :
John Criswell7a73b802003-06-30 21:59:07 +000017559else
17560
17561cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017562#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017563_ACEOF
17564
17565fi
17566
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017567
17568cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017569#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017570_ACEOF
17571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017572{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17573echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17574if test "${ac_cv_struct_tm+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017577 cat >conftest.$ac_ext <<_ACEOF
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017582/* end confdefs.h. */
17583#include <sys/types.h>
17584#include <time.h>
17585
17586int
17587main ()
17588{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017589struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017590 ;
17591 return 0;
17592}
17593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017594rm -f conftest.$ac_objext
17595if { (ac_try="$ac_compile"
17596case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599esac
17600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_compile") 2>conftest.er1
17602 ac_status=$?
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
17608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612esac
17613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017628 ac_cv_struct_tm=time.h
17629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017635
Reid Spencera773bd52006-08-04 18:18:08 +000017636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017638{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17639echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017640if test $ac_cv_struct_tm = sys/time.h; then
17641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017642cat >>confdefs.h <<\_ACEOF
17643#define TM_IN_SYS_TIME 1
17644_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017645
17646fi
17647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017648{ echo "$as_me:$LINENO: checking for int64_t" >&5
17649echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17650if test "${ac_cv_type_int64_t+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652else
17653 cat >conftest.$ac_ext <<_ACEOF
17654/* confdefs.h. */
17655_ACEOF
17656cat confdefs.h >>conftest.$ac_ext
17657cat >>conftest.$ac_ext <<_ACEOF
17658/* end confdefs.h. */
17659$ac_includes_default
17660typedef int64_t ac__type_new_;
17661int
17662main ()
17663{
17664if ((ac__type_new_ *) 0)
17665 return 0;
17666if (sizeof (ac__type_new_))
17667 return 0;
17668 ;
17669 return 0;
17670}
17671_ACEOF
17672rm -f conftest.$ac_objext
17673if { (ac_try="$ac_compile"
17674case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677esac
17678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest.$ac_objext'
17697 { (case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700esac
17701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_try") 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_type_int64_t=yes
17707else
17708 echo "$as_me: failed program was:" >&5
17709sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_cv_type_int64_t=no
17712fi
17713
17714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715fi
17716{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17717echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17718if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017719
17720cat >>confdefs.h <<_ACEOF
17721#define HAVE_INT64_T 1
17722_ACEOF
17723
17724
17725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017726 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17727echo "$as_me: error: Type int64_t required but not found" >&2;}
17728 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017729fi
17730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017731{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17732echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17733if test "${ac_cv_type_uint64_t+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735else
17736 cat >conftest.$ac_ext <<_ACEOF
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
17742$ac_includes_default
17743typedef uint64_t ac__type_new_;
17744int
17745main ()
17746{
17747if ((ac__type_new_ *) 0)
17748 return 0;
17749if (sizeof (ac__type_new_))
17750 return 0;
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext
17756if { (ac_try="$ac_compile"
17757case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_compile") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773esac
17774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest.$ac_objext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_type_uint64_t=yes
17790else
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_cv_type_uint64_t=no
17795fi
17796
17797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798fi
17799{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17800echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17801if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017802
17803cat >>confdefs.h <<_ACEOF
17804#define HAVE_UINT64_T 1
17805_ACEOF
17806
17807
17808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017809 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17810echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17811if test "${ac_cv_type_u_int64_t+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820$ac_includes_default
17821typedef u_int64_t ac__type_new_;
17822int
17823main ()
17824{
17825if ((ac__type_new_ *) 0)
17826 return 0;
17827if (sizeof (ac__type_new_))
17828 return 0;
17829 ;
17830 return 0;
17831}
17832_ACEOF
17833rm -f conftest.$ac_objext
17834if { (ac_try="$ac_compile"
17835case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_compile") 2>conftest.er1
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17851esac
17852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17861esac
17862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_try") 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_cv_type_u_int64_t=yes
17868else
17869 echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_cv_type_u_int64_t=no
17873fi
17874
17875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876fi
17877{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17878echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17879if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017880
17881cat >>confdefs.h <<_ACEOF
17882#define HAVE_U_INT64_T 1
17883_ACEOF
17884
17885
Misha Brukmanceca9042004-09-02 23:02:30 +000017886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017887 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17888echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17889 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017890fi
17891
John Criswell679ff312004-09-02 18:44:44 +000017892fi
17893
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017894
17895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017896
17897
17898
17899
17900
17901
17902
Reid Spencerdf3be822006-01-23 08:15:53 +000017903for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017904do
17905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17910else
17911 cat >conftest.$ac_ext <<_ACEOF
17912/* confdefs.h. */
17913_ACEOF
17914cat confdefs.h >>conftest.$ac_ext
17915cat >>conftest.$ac_ext <<_ACEOF
17916/* end confdefs.h. */
17917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17919#define $ac_func innocuous_$ac_func
17920
17921/* System header to define __stub macros and hopefully few prototypes,
17922 which can conflict with char $ac_func (); below.
17923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17924 <limits.h> exists even on freestanding compilers. */
17925
17926#ifdef __STDC__
17927# include <limits.h>
17928#else
17929# include <assert.h>
17930#endif
17931
17932#undef $ac_func
17933
17934/* Override any GCC internal prototype to avoid an error.
17935 Use char because int might match the return type of a GCC
17936 builtin and then its argument prototype would still apply. */
17937#ifdef __cplusplus
17938extern "C"
17939#endif
17940char $ac_func ();
17941/* The GNU C library defines this for functions which it implements
17942 to always fail with ENOSYS. Some functions are actually named
17943 something starting with __ and the normal name is an alias. */
17944#if defined __stub_$ac_func || defined __stub___$ac_func
17945choke me
17946#endif
17947
17948int
17949main ()
17950{
17951return $ac_func ();
17952 ;
17953 return 0;
17954}
17955_ACEOF
17956rm -f conftest.$ac_objext conftest$ac_exeext
17957if { (ac_try="$ac_link"
17958case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17961esac
17962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_link") 2>conftest.er1
17964 ac_status=$?
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974esac
17975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984esac
17985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 eval "$as_ac_var=yes"
17991else
17992 echo "$as_me: failed program was:" >&5
17993sed 's/^/| /' conftest.$ac_ext >&5
17994
17995 eval "$as_ac_var=no"
17996fi
17997
17998rm -f core conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000fi
18001ac_res=`eval echo '${'$as_ac_var'}'`
18002 { echo "$as_me:$LINENO: result: $ac_res" >&5
18003echo "${ECHO_T}$ac_res" >&6; }
18004if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018005 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018007_ACEOF
18008
18009fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018010done
John Criswell7a73b802003-06-30 21:59:07 +000018011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018012
18013
18014
18015
Reid Spencer96cf5872007-07-13 10:05:30 +000018016for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018017do
18018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18023else
18024 cat >conftest.$ac_ext <<_ACEOF
18025/* confdefs.h. */
18026_ACEOF
18027cat confdefs.h >>conftest.$ac_ext
18028cat >>conftest.$ac_ext <<_ACEOF
18029/* end confdefs.h. */
18030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032#define $ac_func innocuous_$ac_func
18033
18034/* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char $ac_func (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18038
18039#ifdef __STDC__
18040# include <limits.h>
18041#else
18042# include <assert.h>
18043#endif
18044
18045#undef $ac_func
18046
18047/* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050#ifdef __cplusplus
18051extern "C"
18052#endif
18053char $ac_func ();
18054/* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057#if defined __stub_$ac_func || defined __stub___$ac_func
18058choke me
18059#endif
18060
18061int
18062main ()
18063{
18064return $ac_func ();
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest.$ac_objext conftest$ac_exeext
18070if { (ac_try="$ac_link"
18071case "(($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_link") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084 { (case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_try") 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; } &&
18093 { ac_try='test -s conftest$ac_exeext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 eval "$as_ac_var=yes"
18104else
18105 echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 eval "$as_ac_var=no"
18109fi
18110
18111rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18113fi
18114ac_res=`eval echo '${'$as_ac_var'}'`
18115 { echo "$as_me:$LINENO: result: $ac_res" >&5
18116echo "${ECHO_T}$ac_res" >&6; }
18117if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018118 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018120_ACEOF
18121
18122fi
18123done
18124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018125
18126
18127
18128
18129
Reid Spencerb90645c2007-02-16 19:17:20 +000018130for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018131do
18132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18133{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18135if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137else
18138 cat >conftest.$ac_ext <<_ACEOF
18139/* confdefs.h. */
18140_ACEOF
18141cat confdefs.h >>conftest.$ac_ext
18142cat >>conftest.$ac_ext <<_ACEOF
18143/* end confdefs.h. */
18144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18146#define $ac_func innocuous_$ac_func
18147
18148/* System header to define __stub macros and hopefully few prototypes,
18149 which can conflict with char $ac_func (); below.
18150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151 <limits.h> exists even on freestanding compilers. */
18152
18153#ifdef __STDC__
18154# include <limits.h>
18155#else
18156# include <assert.h>
18157#endif
18158
18159#undef $ac_func
18160
18161/* Override any GCC internal prototype to avoid an error.
18162 Use char because int might match the return type of a GCC
18163 builtin and then its argument prototype would still apply. */
18164#ifdef __cplusplus
18165extern "C"
18166#endif
18167char $ac_func ();
18168/* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171#if defined __stub_$ac_func || defined __stub___$ac_func
18172choke me
18173#endif
18174
18175int
18176main ()
18177{
18178return $ac_func ();
18179 ;
18180 return 0;
18181}
18182_ACEOF
18183rm -f conftest.$ac_objext conftest$ac_exeext
18184if { (ac_try="$ac_link"
18185case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188esac
18189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_link") 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201esac
18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; } &&
18207 { ac_try='test -s conftest$ac_exeext'
18208 { (case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211esac
18212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_try") 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 eval "$as_ac_var=yes"
18218else
18219 echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 eval "$as_ac_var=no"
18223fi
18224
18225rm -f core conftest.err conftest.$ac_objext \
18226 conftest$ac_exeext conftest.$ac_ext
18227fi
18228ac_res=`eval echo '${'$as_ac_var'}'`
18229 { echo "$as_me:$LINENO: result: $ac_res" >&5
18230echo "${ECHO_T}$ac_res" >&6; }
18231if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018232 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018234_ACEOF
18235
18236fi
18237done
18238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018239
18240
18241
Reid Spencerb90645c2007-02-16 19:17:20 +000018242for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018243do
18244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18245{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18247if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249else
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18258#define $ac_func innocuous_$ac_func
18259
18260/* System header to define __stub macros and hopefully few prototypes,
18261 which can conflict with char $ac_func (); below.
18262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18263 <limits.h> exists even on freestanding compilers. */
18264
18265#ifdef __STDC__
18266# include <limits.h>
18267#else
18268# include <assert.h>
18269#endif
18270
18271#undef $ac_func
18272
18273/* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18276#ifdef __cplusplus
18277extern "C"
18278#endif
18279char $ac_func ();
18280/* The GNU C library defines this for functions which it implements
18281 to always fail with ENOSYS. Some functions are actually named
18282 something starting with __ and the normal name is an alias. */
18283#if defined __stub_$ac_func || defined __stub___$ac_func
18284choke me
18285#endif
18286
18287int
18288main ()
18289{
18290return $ac_func ();
18291 ;
18292 return 0;
18293}
18294_ACEOF
18295rm -f conftest.$ac_objext conftest$ac_exeext
18296if { (ac_try="$ac_link"
18297case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_link") 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313esac
18314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest$ac_exeext'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 eval "$as_ac_var=yes"
18330else
18331 echo "$as_me: failed program was:" >&5
18332sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 eval "$as_ac_var=no"
18335fi
18336
18337rm -f core conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18339fi
18340ac_res=`eval echo '${'$as_ac_var'}'`
18341 { echo "$as_me:$LINENO: result: $ac_res" >&5
18342echo "${ECHO_T}$ac_res" >&6; }
18343if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018344 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018346_ACEOF
18347
18348fi
18349done
18350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018351
18352
18353
18354
18355
Eric Christophere4291822010-04-16 05:14:21 +000018356
18357for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018358do
18359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18360{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18362if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18364else
18365 cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
18371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18373#define $ac_func innocuous_$ac_func
18374
18375/* System header to define __stub macros and hopefully few prototypes,
18376 which can conflict with char $ac_func (); below.
18377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18378 <limits.h> exists even on freestanding compilers. */
18379
18380#ifdef __STDC__
18381# include <limits.h>
18382#else
18383# include <assert.h>
18384#endif
18385
18386#undef $ac_func
18387
18388/* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18391#ifdef __cplusplus
18392extern "C"
18393#endif
18394char $ac_func ();
18395/* The GNU C library defines this for functions which it implements
18396 to always fail with ENOSYS. Some functions are actually named
18397 something starting with __ and the normal name is an alias. */
18398#if defined __stub_$ac_func || defined __stub___$ac_func
18399choke me
18400#endif
18401
18402int
18403main ()
18404{
18405return $ac_func ();
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext conftest$ac_exeext
18411if { (ac_try="$ac_link"
18412case "(($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_link") 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18425 { (case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428esac
18429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_try") 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest$ac_exeext'
18435 { (case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_try") 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 eval "$as_ac_var=yes"
18445else
18446 echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 eval "$as_ac_var=no"
18450fi
18451
18452rm -f core conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454fi
18455ac_res=`eval echo '${'$as_ac_var'}'`
18456 { echo "$as_me:$LINENO: result: $ac_res" >&5
18457echo "${ECHO_T}$ac_res" >&6; }
18458if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018459 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018461_ACEOF
18462
18463fi
18464done
Reid Spencerdf3be822006-01-23 08:15:53 +000018465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018466
18467
18468
18469
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018470for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018471do
18472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18473{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18475if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477else
18478 cat >conftest.$ac_ext <<_ACEOF
18479/* confdefs.h. */
18480_ACEOF
18481cat confdefs.h >>conftest.$ac_ext
18482cat >>conftest.$ac_ext <<_ACEOF
18483/* end confdefs.h. */
18484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18486#define $ac_func innocuous_$ac_func
18487
18488/* System header to define __stub macros and hopefully few prototypes,
18489 which can conflict with char $ac_func (); below.
18490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18491 <limits.h> exists even on freestanding compilers. */
18492
18493#ifdef __STDC__
18494# include <limits.h>
18495#else
18496# include <assert.h>
18497#endif
18498
18499#undef $ac_func
18500
18501/* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18504#ifdef __cplusplus
18505extern "C"
18506#endif
18507char $ac_func ();
18508/* The GNU C library defines this for functions which it implements
18509 to always fail with ENOSYS. Some functions are actually named
18510 something starting with __ and the normal name is an alias. */
18511#if defined __stub_$ac_func || defined __stub___$ac_func
18512choke me
18513#endif
18514
18515int
18516main ()
18517{
18518return $ac_func ();
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext conftest$ac_exeext
18524if { (ac_try="$ac_link"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 eval "$as_ac_var=yes"
18558else
18559 echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 eval "$as_ac_var=no"
18563fi
18564
18565rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567fi
18568ac_res=`eval echo '${'$as_ac_var'}'`
18569 { echo "$as_me:$LINENO: result: $ac_res" >&5
18570echo "${ECHO_T}$ac_res" >&6; }
18571if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018572 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018574_ACEOF
18575
18576fi
18577done
18578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018579
18580
18581
18582
Chris Lattner511f11d2005-11-14 07:25:50 +000018583for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018584do
18585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18590else
18591 cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18599#define $ac_func innocuous_$ac_func
18600
18601/* System header to define __stub macros and hopefully few prototypes,
18602 which can conflict with char $ac_func (); below.
18603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 <limits.h> exists even on freestanding compilers. */
18605
18606#ifdef __STDC__
18607# include <limits.h>
18608#else
18609# include <assert.h>
18610#endif
18611
18612#undef $ac_func
18613
18614/* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18617#ifdef __cplusplus
18618extern "C"
18619#endif
18620char $ac_func ();
18621/* The GNU C library defines this for functions which it implements
18622 to always fail with ENOSYS. Some functions are actually named
18623 something starting with __ and the normal name is an alias. */
18624#if defined __stub_$ac_func || defined __stub___$ac_func
18625choke me
18626#endif
18627
18628int
18629main ()
18630{
18631return $ac_func ();
18632 ;
18633 return 0;
18634}
18635_ACEOF
18636rm -f conftest.$ac_objext conftest$ac_exeext
18637if { (ac_try="$ac_link"
18638case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_link") 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651 { (case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654esac
18655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_try") 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest$ac_exeext'
18661 { (case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664esac
18665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_try") 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 eval "$as_ac_var=yes"
18671else
18672 echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675 eval "$as_ac_var=no"
18676fi
18677
18678rm -f core conftest.err conftest.$ac_objext \
18679 conftest$ac_exeext conftest.$ac_ext
18680fi
18681ac_res=`eval echo '${'$as_ac_var'}'`
18682 { echo "$as_me:$LINENO: result: $ac_res" >&5
18683echo "${ECHO_T}$ac_res" >&6; }
18684if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018685 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018687_ACEOF
18688
18689fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018690done
John Criswell7a73b802003-06-30 21:59:07 +000018691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018692
18693
18694
18695
Reid Spencerafa22e22006-12-10 23:29:19 +000018696for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018697do
18698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18699{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18701if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 cat >conftest.$ac_ext <<_ACEOF
18705/* confdefs.h. */
18706_ACEOF
18707cat confdefs.h >>conftest.$ac_ext
18708cat >>conftest.$ac_ext <<_ACEOF
18709/* end confdefs.h. */
18710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18712#define $ac_func innocuous_$ac_func
18713
18714/* System header to define __stub macros and hopefully few prototypes,
18715 which can conflict with char $ac_func (); below.
18716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18717 <limits.h> exists even on freestanding compilers. */
18718
18719#ifdef __STDC__
18720# include <limits.h>
18721#else
18722# include <assert.h>
18723#endif
18724
18725#undef $ac_func
18726
18727/* Override any GCC internal prototype to avoid an error.
18728 Use char because int might match the return type of a GCC
18729 builtin and then its argument prototype would still apply. */
18730#ifdef __cplusplus
18731extern "C"
18732#endif
18733char $ac_func ();
18734/* The GNU C library defines this for functions which it implements
18735 to always fail with ENOSYS. Some functions are actually named
18736 something starting with __ and the normal name is an alias. */
18737#if defined __stub_$ac_func || defined __stub___$ac_func
18738choke me
18739#endif
18740
18741int
18742main ()
18743{
18744return $ac_func ();
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext conftest$ac_exeext
18750if { (ac_try="$ac_link"
18751case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_link") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 eval "$as_ac_var=yes"
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 eval "$as_ac_var=no"
18789fi
18790
18791rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793fi
18794ac_res=`eval echo '${'$as_ac_var'}'`
18795 { echo "$as_me:$LINENO: result: $ac_res" >&5
18796echo "${ECHO_T}$ac_res" >&6; }
18797if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018798 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018800_ACEOF
18801
18802fi
18803done
18804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018805{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18806echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18807if test "${llvm_cv_c_printf_a+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018809else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018810 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018811ac_cpp='$CPP $CPPFLAGS'
18812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018816 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018817 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018819 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018821 /* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018826
John Criswella0137d32003-10-13 16:22:01 +000018827#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018828#include <stdlib.h>
18829
John Criswella0137d32003-10-13 16:22:01 +000018830int
18831main ()
18832{
18833
Reid Spencer2706f8c2004-09-19 23:53:36 +000018834volatile double A, B;
18835char Buffer[100];
18836A = 1;
18837A /= 10.0;
18838sprintf(Buffer, "%a", A);
18839B = atof(Buffer);
18840if (A != B)
18841 return (1);
18842if (A != 0x1.999999999999ap-4)
18843 return (1);
18844return (0);
John Criswella0137d32003-10-13 16:22:01 +000018845 ;
18846 return 0;
18847}
18848_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018849rm -f conftest$ac_exeext
18850if { (ac_try="$ac_link"
18851case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_link") 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18860 { (case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_try") 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018869 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018871 echo "$as_me: program exited with status $ac_status" >&5
18872echo "$as_me: failed program was:" >&5
18873sed 's/^/| /' conftest.$ac_ext >&5
18874
18875( exit $ac_status )
18876llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018878rm -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 +000018879fi
Reid Spencera773bd52006-08-04 18:18:08 +000018880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018881
Reid Spencer2706f8c2004-09-19 23:53:36 +000018882 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018883ac_cpp='$CPP $CPPFLAGS'
18884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886ac_compiler_gnu=$ac_cv_c_compiler_gnu
18887
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018888fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018889{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18890echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018891 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018893cat >>confdefs.h <<\_ACEOF
18894#define HAVE_PRINTF_A 1
18895_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018896
Reid Spencer2706f8c2004-09-19 23:53:36 +000018897 fi
John Criswella0137d32003-10-13 16:22:01 +000018898
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018900{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18901echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18902if test "${ac_cv_func_rand48+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018904else
Reid Spencera773bd52006-08-04 18:18:08 +000018905 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018906ac_cpp='$CXXCPP $CPPFLAGS'
18907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018911 cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018916/* end confdefs.h. */
18917#include <stdlib.h>
18918int
18919main ()
18920{
18921srand48(0);lrand48();drand48();
18922 ;
18923 return 0;
18924}
18925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018926rm -f conftest.$ac_objext
18927if { (ac_try="$ac_compile"
18928case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931esac
18932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_compile") 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18941 { (case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18944esac
18945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_try") 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest.$ac_objext'
18951 { (case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954esac
18955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_try") 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018960 ac_cv_func_rand48=yes
18961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018962 echo "$as_me: failed program was:" >&5
18963sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018967
Reid Spencera773bd52006-08-04 18:18:08 +000018968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018969 ac_ext=c
18970ac_cpp='$CPP $CPPFLAGS'
18971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974
18975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018976{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18977echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018978
18979if test "$ac_cv_func_rand48" = "yes" ; then
18980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018981cat >>confdefs.h <<\_ACEOF
18982#define HAVE_RAND48 1
18983_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018984
18985fi
John Criswell0021c312004-02-13 21:57:29 +000018986
18987
Torok Edwin871384f2010-01-26 08:50:50 +000018988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018989{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18990echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18991if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018993else
Reid Spencera773bd52006-08-04 18:18:08 +000018994 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018995ac_cpp='$CXXCPP $CPPFLAGS'
18996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019000 cat >conftest.$ac_ext <<_ACEOF
19001/* confdefs.h. */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019005/* end confdefs.h. */
19006#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019007int
19008main ()
19009{
19010float f; isnan(f);
19011 ;
19012 return 0;
19013}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019015rm -f conftest.$ac_objext
19016if { (ac_try="$ac_compile"
19017case "(($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_compile") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest.$ac_objext'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019049 ac_cv_func_isnan_in_math_h=yes
19050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019056
Reid Spencera773bd52006-08-04 18:18:08 +000019057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019058 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019059ac_cpp='$CPP $CPPFLAGS'
19060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063
19064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019065{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19066echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019067
19068
19069if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019071cat >>confdefs.h <<\_ACEOF
19072#define HAVE_ISNAN_IN_MATH_H 1
19073_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019074
Reid Spencerabec8f92004-10-27 23:03:44 +000019075fi
19076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019077{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19078echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19079if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019081else
Reid Spencera773bd52006-08-04 18:18:08 +000019082 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019083ac_cpp='$CXXCPP $CPPFLAGS'
19084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019088 cat >conftest.$ac_ext <<_ACEOF
19089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019093/* end confdefs.h. */
19094#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019095int
19096main ()
19097{
19098float f; isnan(f);
19099 ;
19100 return 0;
19101}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019103rm -f conftest.$ac_objext
19104if { (ac_try="$ac_compile"
19105case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19108esac
19109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_compile") 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121esac
19122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019137 ac_cv_func_isnan_in_cmath=yes
19138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019139 echo "$as_me: failed program was:" >&5
19140sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019144
Reid Spencera773bd52006-08-04 18:18:08 +000019145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019146 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019147ac_cpp='$CPP $CPPFLAGS'
19148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151
19152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19154echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019155
19156if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019158cat >>confdefs.h <<\_ACEOF
19159#define HAVE_ISNAN_IN_CMATH 1
19160_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019161
Reid Spencerabec8f92004-10-27 23:03:44 +000019162fi
19163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019164{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19165echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19166if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019168else
Reid Spencera773bd52006-08-04 18:18:08 +000019169 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019170ac_cpp='$CXXCPP $CPPFLAGS'
19171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019175 cat >conftest.$ac_ext <<_ACEOF
19176/* confdefs.h. */
19177_ACEOF
19178cat confdefs.h >>conftest.$ac_ext
19179cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019180/* end confdefs.h. */
19181#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019182int
19183main ()
19184{
19185float f; std::isnan(f);
19186 ;
19187 return 0;
19188}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019189_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019190rm -f conftest.$ac_objext
19191if { (ac_try="$ac_compile"
19192case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19218esac
19219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019224 ac_cv_func_std_isnan_in_cmath=yes
19225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019226 echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019231
Reid Spencera773bd52006-08-04 18:18:08 +000019232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019233 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019234ac_cpp='$CPP $CPPFLAGS'
19235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238
19239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019240{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19241echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019242
19243if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019245cat >>confdefs.h <<\_ACEOF
19246#define HAVE_STD_ISNAN_IN_CMATH 1
19247_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019248
Reid Spencerabec8f92004-10-27 23:03:44 +000019249fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019250
19251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019252{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19253echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19254if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019256else
Reid Spencera773bd52006-08-04 18:18:08 +000019257 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019258ac_cpp='$CXXCPP $CPPFLAGS'
19259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019263 cat >conftest.$ac_ext <<_ACEOF
19264/* confdefs.h. */
19265_ACEOF
19266cat confdefs.h >>conftest.$ac_ext
19267cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019268/* end confdefs.h. */
19269#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019270int
19271main ()
19272{
19273float f; isinf(f);
19274 ;
19275 return 0;
19276}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019277_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019278rm -f conftest.$ac_objext
19279if { (ac_try="$ac_compile"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019312 ac_cv_func_isinf_in_math_h=yes
19313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019319
Reid Spencera773bd52006-08-04 18:18:08 +000019320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019321 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019322ac_cpp='$CPP $CPPFLAGS'
19323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325ac_compiler_gnu=$ac_cv_c_compiler_gnu
19326
19327fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019328{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19329echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019330
19331if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019333cat >>confdefs.h <<\_ACEOF
19334#define HAVE_ISINF_IN_MATH_H 1
19335_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019336
Reid Spencerabec8f92004-10-27 23:03:44 +000019337fi
19338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019339{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19340echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19341if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019343else
Reid Spencera773bd52006-08-04 18:18:08 +000019344 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019345ac_cpp='$CXXCPP $CPPFLAGS'
19346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019350 cat >conftest.$ac_ext <<_ACEOF
19351/* confdefs.h. */
19352_ACEOF
19353cat confdefs.h >>conftest.$ac_ext
19354cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019355/* end confdefs.h. */
19356#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019357int
19358main ()
19359{
19360float f; isinf(f);
19361 ;
19362 return 0;
19363}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019365rm -f conftest.$ac_objext
19366if { (ac_try="$ac_compile"
19367case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370esac
19371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_compile") 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19380 { (case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19383esac
19384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_try") 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19393esac
19394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_try") 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019399 ac_cv_func_isinf_in_cmath=yes
19400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019406
Reid Spencera773bd52006-08-04 18:18:08 +000019407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019408 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019409ac_cpp='$CPP $CPPFLAGS'
19410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413
19414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019415{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19416echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019417
19418if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019420cat >>confdefs.h <<\_ACEOF
19421#define HAVE_ISINF_IN_CMATH 1
19422_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019423
Reid Spencerabec8f92004-10-27 23:03:44 +000019424fi
19425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019426{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19427echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19428if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019430else
Reid Spencera773bd52006-08-04 18:18:08 +000019431 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019432ac_cpp='$CXXCPP $CPPFLAGS'
19433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019437 cat >conftest.$ac_ext <<_ACEOF
19438/* confdefs.h. */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019442/* end confdefs.h. */
19443#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019444int
19445main ()
19446{
19447float f; std::isinf(f)}
19448 ;
19449 return 0;
19450}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019451_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019452rm -f conftest.$ac_objext
19453if { (ac_try="$ac_compile"
19454case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470esac
19471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19480esac
19481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_try") 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019486 ac_cv_func_std_isinf_in_cmath=yes
19487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019493
Reid Spencera773bd52006-08-04 18:18:08 +000019494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019495 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019496ac_cpp='$CPP $CPPFLAGS'
19497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499ac_compiler_gnu=$ac_cv_c_compiler_gnu
19500
19501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19503echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019504
19505if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019507cat >>confdefs.h <<\_ACEOF
19508#define HAVE_STD_ISINF_IN_CMATH 1
19509_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019510
Reid Spencerabec8f92004-10-27 23:03:44 +000019511fi
19512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019513{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19514echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19515if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019517else
Reid Spencera773bd52006-08-04 18:18:08 +000019518 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019519ac_cpp='$CXXCPP $CPPFLAGS'
19520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019529/* end confdefs.h. */
19530#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019531int
19532main ()
19533{
19534float f; finite(f);
19535 ;
19536 return 0;
19537}
Brian Gaeked59a6472004-07-21 03:33:58 +000019538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019539rm -f conftest.$ac_objext
19540if { (ac_try="$ac_compile"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557esac
19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
19564 { (case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19567esac
19568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_try") 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019573 ac_cv_func_finite_in_ieeefp_h=yes
19574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575 echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019580
Reid Spencera773bd52006-08-04 18:18:08 +000019581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019582 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019583ac_cpp='$CPP $CPPFLAGS'
19584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586ac_compiler_gnu=$ac_cv_c_compiler_gnu
19587
19588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019589{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19590echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019591
Brian Gaeke6802b552004-10-28 05:06:45 +000019592if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019594cat >>confdefs.h <<\_ACEOF
19595#define HAVE_FINITE_IN_IEEEFP_H 1
19596_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019597
Reid Spencerabec8f92004-10-27 23:03:44 +000019598fi
19599
19600
19601
Reid Spencer30fe5262007-01-20 07:48:49 +000019602if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019603
19604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019605for ac_header in stdlib.h unistd.h
19606do
19607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613fi
19614ac_res=`eval echo '${'$as_ac_Header'}'`
19615 { echo "$as_me:$LINENO: result: $ac_res" >&5
19616echo "${ECHO_T}$ac_res" >&6; }
19617else
19618 # Is the header compilable?
19619{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19621cat >conftest.$ac_ext <<_ACEOF
19622/* confdefs.h. */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h. */
19627$ac_includes_default
19628#include <$ac_header>
19629_ACEOF
19630rm -f conftest.$ac_objext
19631if { (ac_try="$ac_compile"
19632case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635esac
19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_compile") 2>conftest.er1
19638 ac_status=$?
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648esac
19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658esac
19659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_header_compiler=yes
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669 ac_header_compiler=no
19670fi
19671
19672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19674echo "${ECHO_T}$ac_header_compiler" >&6; }
19675
19676# Is the header present?
19677{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19679cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
19685#include <$ac_header>
19686_ACEOF
19687if { (ac_try="$ac_cpp conftest.$ac_ext"
19688case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691esac
19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } >/dev/null; then
19700 if test -s conftest.err; then
19701 ac_cpp_err=$ac_c_preproc_warn_flag
19702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19703 else
19704 ac_cpp_err=
19705 fi
19706else
19707 ac_cpp_err=yes
19708fi
19709if test -z "$ac_cpp_err"; then
19710 ac_header_preproc=yes
19711else
19712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
19714
19715 ac_header_preproc=no
19716fi
19717
19718rm -f conftest.err conftest.$ac_ext
19719{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720echo "${ECHO_T}$ac_header_preproc" >&6; }
19721
19722# So? What about this header?
19723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19724 yes:no: )
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19729 ac_header_preproc=yes
19730 ;;
19731 no:yes:* )
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19744 ( cat <<\_ASBOX
19745## ----------------------------------- ##
19746## Report this to llvmbugs@cs.uiuc.edu ##
19747## ----------------------------------- ##
19748_ASBOX
19749 ) | sed "s/^/$as_me: WARNING: /" >&2
19750 ;;
19751esac
19752{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756else
19757 eval "$as_ac_Header=\$ac_header_preproc"
19758fi
19759ac_res=`eval echo '${'$as_ac_Header'}'`
19760 { echo "$as_me:$LINENO: result: $ac_res" >&5
19761echo "${ECHO_T}$ac_res" >&6; }
19762
19763fi
19764if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019765 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019767_ACEOF
19768
19769fi
19770
19771done
19772
19773
19774for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019775do
19776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781else
19782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
19788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19790#define $ac_func innocuous_$ac_func
19791
19792/* System header to define __stub macros and hopefully few prototypes,
19793 which can conflict with char $ac_func (); below.
19794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795 <limits.h> exists even on freestanding compilers. */
19796
19797#ifdef __STDC__
19798# include <limits.h>
19799#else
19800# include <assert.h>
19801#endif
19802
19803#undef $ac_func
19804
19805/* Override any GCC internal prototype to avoid an error.
19806 Use char because int might match the return type of a GCC
19807 builtin and then its argument prototype would still apply. */
19808#ifdef __cplusplus
19809extern "C"
19810#endif
19811char $ac_func ();
19812/* The GNU C library defines this for functions which it implements
19813 to always fail with ENOSYS. Some functions are actually named
19814 something starting with __ and the normal name is an alias. */
19815#if defined __stub_$ac_func || defined __stub___$ac_func
19816choke me
19817#endif
19818
19819int
19820main ()
19821{
19822return $ac_func ();
19823 ;
19824 return 0;
19825}
19826_ACEOF
19827rm -f conftest.$ac_objext conftest$ac_exeext
19828if { (ac_try="$ac_link"
19829case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19832esac
19833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842 { (case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845esac
19846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_try") 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855esac
19856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 eval "$as_ac_var=yes"
19862else
19863 echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
19866 eval "$as_ac_var=no"
19867fi
19868
19869rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19871fi
19872ac_res=`eval echo '${'$as_ac_var'}'`
19873 { echo "$as_me:$LINENO: result: $ac_res" >&5
19874echo "${ECHO_T}$ac_res" >&6; }
19875if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019876 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019878_ACEOF
19879
19880fi
19881done
19882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019883{ echo "$as_me:$LINENO: checking for working mmap" >&5
19884echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19885if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019887else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019888 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019889 ac_cv_func_mmap_fixed_mapped=no
19890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019891 cat >conftest.$ac_ext <<_ACEOF
19892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019897$ac_includes_default
19898/* malloc might have been renamed as rpl_malloc. */
19899#undef malloc
19900
19901/* Thanks to Mike Haertel and Jim Avera for this test.
19902 Here is a matrix of mmap possibilities:
19903 mmap private not fixed
19904 mmap private fixed at somewhere currently unmapped
19905 mmap private fixed at somewhere already mapped
19906 mmap shared not fixed
19907 mmap shared fixed at somewhere currently unmapped
19908 mmap shared fixed at somewhere already mapped
19909 For private mappings, we should verify that changes cannot be read()
19910 back from the file, nor mmap's back from the file at a different
19911 address. (There have been systems where private was not correctly
19912 implemented like the infamous i386 svr4.0, and systems where the
19913 VM page cache was not coherent with the file system buffer cache
19914 like early versions of FreeBSD and possibly contemporary NetBSD.)
19915 For shared mappings, we should conversely verify that changes get
19916 propagated back to all the places they're supposed to be.
19917
19918 Grep wants private fixed already mapped.
19919 The main things grep needs to know about mmap are:
19920 * does it exist and is it safe to write into the mmap'd area
19921 * how to use it (BSD variants) */
19922
19923#include <fcntl.h>
19924#include <sys/mman.h>
19925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019926#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019927char *malloc ();
19928#endif
19929
19930/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019931#if !HAVE_GETPAGESIZE
19932/* Assume that all systems that can run configure have sys/param.h. */
19933# if !HAVE_SYS_PARAM_H
19934# define HAVE_SYS_PARAM_H 1
19935# endif
19936
John Criswell7a73b802003-06-30 21:59:07 +000019937# ifdef _SC_PAGESIZE
19938# define getpagesize() sysconf(_SC_PAGESIZE)
19939# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019940# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019941# include <sys/param.h>
19942# ifdef EXEC_PAGESIZE
19943# define getpagesize() EXEC_PAGESIZE
19944# else /* no EXEC_PAGESIZE */
19945# ifdef NBPG
19946# define getpagesize() NBPG * CLSIZE
19947# ifndef CLSIZE
19948# define CLSIZE 1
19949# endif /* no CLSIZE */
19950# else /* no NBPG */
19951# ifdef NBPC
19952# define getpagesize() NBPC
19953# else /* no NBPC */
19954# ifdef PAGESIZE
19955# define getpagesize() PAGESIZE
19956# endif /* PAGESIZE */
19957# endif /* no NBPC */
19958# endif /* no NBPG */
19959# endif /* no EXEC_PAGESIZE */
19960# else /* no HAVE_SYS_PARAM_H */
19961# define getpagesize() 8192 /* punt totally */
19962# endif /* no HAVE_SYS_PARAM_H */
19963# endif /* no _SC_PAGESIZE */
19964
19965#endif /* no HAVE_GETPAGESIZE */
19966
19967int
19968main ()
19969{
19970 char *data, *data2, *data3;
19971 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019973
19974 pagesize = getpagesize ();
19975
19976 /* First, make a file with some known garbage in it. */
19977 data = (char *) malloc (pagesize);
19978 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019979 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019980 for (i = 0; i < pagesize; ++i)
19981 *(data + i) = rand ();
19982 umask (0);
19983 fd = creat ("conftest.mmap", 0600);
19984 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019985 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019986 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019988 close (fd);
19989
19990 /* Next, try to mmap the file at a fixed address which already has
19991 something else allocated at it. If we can, also make sure that
19992 we see the same garbage. */
19993 fd = open ("conftest.mmap", O_RDWR);
19994 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019995 return 1;
19996 data2 = (char *) malloc (2 * pagesize);
19997 if (!data2)
19998 return 1;
19999 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020000 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020002 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020003 for (i = 0; i < pagesize; ++i)
20004 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020005 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020006
20007 /* Finally, make sure that changes to the mapped area do not
20008 percolate back to the file as seen by read(). (This is a bug on
20009 some variants of i386 svr4.0.) */
20010 for (i = 0; i < pagesize; ++i)
20011 *(data2 + i) = *(data2 + i) + 1;
20012 data3 = (char *) malloc (pagesize);
20013 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020014 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020015 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020016 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020017 for (i = 0; i < pagesize; ++i)
20018 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020019 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020020 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020021 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020022}
20023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024rm -f conftest$ac_exeext
20025if { (ac_try="$ac_link"
20026case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029esac
20030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_link") 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20035 { (case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038esac
20039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_try") 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020044 ac_cv_func_mmap_fixed_mapped=yes
20045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046 echo "$as_me: program exited with status $ac_status" >&5
20047echo "$as_me: failed program was:" >&5
20048sed 's/^/| /' conftest.$ac_ext >&5
20049
20050( exit $ac_status )
20051ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020053rm -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 +000020054fi
Reid Spencera773bd52006-08-04 18:18:08 +000020055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020056
John Criswell7a73b802003-06-30 21:59:07 +000020057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020058{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20059echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020060if test $ac_cv_func_mmap_fixed_mapped = yes; then
20061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020062cat >>confdefs.h <<\_ACEOF
20063#define HAVE_MMAP 1
20064_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020065
20066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020069 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20070echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20071if test "${ac_cv_func_mmap_file+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020073else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020074 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020075ac_cpp='$CPP $CPPFLAGS'
20076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20078ac_compiler_gnu=$ac_cv_c_compiler_gnu
20079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020081 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020083 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085 /* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020090
John Criswell7a73b802003-06-30 21:59:07 +000020091#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020092#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020093#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020094
20095int
20096main ()
20097{
John Criswell7a73b802003-06-30 21:59:07 +000020098
20099 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020100 fd = creat ("foo",0777);
20101 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20102 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020103 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020104 ;
20105 return 0;
20106}
John Criswell7a73b802003-06-30 21:59:07 +000020107_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108rm -f conftest$ac_exeext
20109if { (ac_try="$ac_link"
20110case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20113esac
20114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_link") 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020128 ac_cv_func_mmap_file=yes
20129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020130 echo "$as_me: program exited with status $ac_status" >&5
20131echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134( exit $ac_status )
20135ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020137rm -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 +000020138fi
Reid Spencera773bd52006-08-04 18:18:08 +000020139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020140
John Criswell7a73b802003-06-30 21:59:07 +000020141 ac_ext=c
20142ac_cpp='$CPP $CPPFLAGS'
20143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145ac_compiler_gnu=$ac_cv_c_compiler_gnu
20146
20147
20148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020149{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20150echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020151if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153cat >>confdefs.h <<\_ACEOF
20154#define HAVE_MMAP_FILE
20155_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020156
20157 MMAP_FILE=yes
20158
20159fi
20160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20162echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20163if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020165else
Reid Spencer582a23c2004-12-29 07:07:57 +000020166 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020167 ac_cv_need_dev_zero_for_mmap=yes
20168 else
20169 ac_cv_need_dev_zero_for_mmap=no
20170 fi
20171
20172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20174echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020175if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177cat >>confdefs.h <<\_ACEOF
20178#define NEED_DEV_ZERO_FOR_MMAP 1
20179_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020180
20181fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182
Reid Spencer30fe5262007-01-20 07:48:49 +000020183 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20184 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020185 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20186echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020187 fi
20188 if test "$ac_cv_func_mmap_file" = "no"
20189 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020190 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20191echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020192 fi
John Criswellb13092b2003-07-22 21:00:24 +000020193fi
John Criswell7a73b802003-06-30 21:59:07 +000020194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20196echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020197ac_ext=cpp
20198ac_cpp='$CXXCPP $CPPFLAGS'
20199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020203cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020208/* end confdefs.h. */
20209int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020210 volatile unsigned long val = 1;
20211 __sync_synchronize();
20212 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020213 __sync_add_and_fetch(&val, 1);
20214 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020215 return 0;
20216 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020217
20218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020219rm -f conftest.$ac_objext conftest$ac_exeext
20220if { (ac_try="$ac_link"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237esac
20238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest$ac_exeext'
20244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
20250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020253 ac_ext=c
20254ac_cpp='$CPP $CPPFLAGS'
20255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20257ac_compiler_gnu=$ac_cv_c_compiler_gnu
20258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020259 { echo "$as_me:$LINENO: result: yes" >&5
20260echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262cat >>confdefs.h <<\_ACEOF
20263#define LLVM_MULTITHREADED 1
20264_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020265
Owen Andersond4b272b2009-05-18 23:58:51 +000020266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270 { echo "$as_me:$LINENO: result: no" >&5
20271echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273cat >>confdefs.h <<\_ACEOF
20274#define LLVM_MULTITHREADED 0
20275_ACEOF
20276
20277 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20278echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020280
Owen Andersond4b272b2009-05-18 23:58:51 +000020281rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020282 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020283
Owen Anderson009f20a2010-07-19 19:24:55 +000020284{ echo "$as_me:$LINENO: checking for getsect()" >&5
20285echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20286cat >conftest.$ac_ext <<_ACEOF
20287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
20292#include <mach-o/getsect.h>
20293 int main() {
20294 unsigned long p;
Owen Anderson519f1792010-07-19 19:42:01 +000020295 return (int)getsect("__DATA","__pass_info", &p);
Owen Anderson009f20a2010-07-19 19:24:55 +000020296 }
20297
20298_ACEOF
20299rm -f conftest.$ac_objext
20300if { (ac_try="$ac_compile"
20301case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304esac
20305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_compile") 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 { echo "$as_me:$LINENO: result: yes" >&5
20334echo "${ECHO_T}yes" >&6; }
20335
20336cat >>confdefs.h <<\_ACEOF
20337#define HAVE_GETSECT 1
20338_ACEOF
20339
20340else
20341 echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 { echo "$as_me:$LINENO: result: no" >&5
20345echo "${ECHO_T}no" >&6; }
20346
20347cat >>confdefs.h <<\_ACEOF
20348#define HAVE_GETSECT 1
20349_ACEOF
20350
20351
20352fi
20353
20354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355
Owen Andersond4b272b2009-05-18 23:58:51 +000020356
John Criswell7a73b802003-06-30 21:59:07 +000020357
Nick Lewycky4372e692009-09-29 06:18:23 +000020358if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20360echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20361if test "${llvm_cv_linux_mixed+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020363else
20364 ac_ext=c
20365ac_cpp='$CPP $CPPFLAGS'
20366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370 cat >conftest.$ac_ext <<_ACEOF
20371/* confdefs.h. */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020375/* end confdefs.h. */
20376#ifndef __x86_64__
20377 error: Not x86-64 even if uname says so!
20378 #endif
20379
20380int
20381main ()
20382{
20383
20384 ;
20385 return 0;
20386}
20387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388rm -f conftest.$ac_objext
20389if { (ac_try="$ac_compile"
20390case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393esac
20394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
20402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403 { (case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406esac
20407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_try") 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; } &&
20412 { ac_try='test -s conftest.$ac_objext'
20413 { (case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416esac
20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_try") 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020422 llvm_cv_linux_mixed=no
20423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020424 echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429
Nick Lewycky4372e692009-09-29 06:18:23 +000020430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 ac_ext=c
20432ac_cpp='$CPP $CPPFLAGS'
20433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435ac_compiler_gnu=$ac_cv_c_compiler_gnu
20436
20437
20438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20440echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020441
20442 if test "$llvm_cv_linux_mixed" = "yes"; then
20443 llvm_cv_target_arch="x86"
20444 ARCH="x86"
20445 fi
20446fi
20447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020448
Reid Spencer9372f152007-07-30 20:13:24 +000020449for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450do
20451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20456else
20457 cat >conftest.$ac_ext <<_ACEOF
20458/* confdefs.h. */
20459_ACEOF
20460cat confdefs.h >>conftest.$ac_ext
20461cat >>conftest.$ac_ext <<_ACEOF
20462/* end confdefs.h. */
20463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20465#define $ac_func innocuous_$ac_func
20466
20467/* System header to define __stub macros and hopefully few prototypes,
20468 which can conflict with char $ac_func (); below.
20469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20470 <limits.h> exists even on freestanding compilers. */
20471
20472#ifdef __STDC__
20473# include <limits.h>
20474#else
20475# include <assert.h>
20476#endif
20477
20478#undef $ac_func
20479
20480/* Override any GCC internal prototype to avoid an error.
20481 Use char because int might match the return type of a GCC
20482 builtin and then its argument prototype would still apply. */
20483#ifdef __cplusplus
20484extern "C"
20485#endif
20486char $ac_func ();
20487/* The GNU C library defines this for functions which it implements
20488 to always fail with ENOSYS. Some functions are actually named
20489 something starting with __ and the normal name is an alias. */
20490#if defined __stub_$ac_func || defined __stub___$ac_func
20491choke me
20492#endif
20493
20494int
20495main ()
20496{
20497return $ac_func ();
20498 ;
20499 return 0;
20500}
20501_ACEOF
20502rm -f conftest.$ac_objext conftest$ac_exeext
20503if { (ac_try="$ac_link"
20504case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507esac
20508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_link") 2>conftest.er1
20510 ac_status=$?
20511 grep -v '^ *+' conftest.er1 >conftest.err
20512 rm -f conftest.er1
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } &&
20516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20517 { (case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20520esac
20521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_try") 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest$ac_exeext'
20527 { (case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530esac
20531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_try") 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 eval "$as_ac_var=yes"
20537else
20538 echo "$as_me: failed program was:" >&5
20539sed 's/^/| /' conftest.$ac_ext >&5
20540
20541 eval "$as_ac_var=no"
20542fi
20543
20544rm -f core conftest.err conftest.$ac_objext \
20545 conftest$ac_exeext conftest.$ac_ext
20546fi
20547ac_res=`eval echo '${'$as_ac_var'}'`
20548 { echo "$as_me:$LINENO: result: $ac_res" >&5
20549echo "${ECHO_T}$ac_res" >&6; }
20550if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020551 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020553_ACEOF
20554
20555fi
20556done
20557
20558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20560echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20561if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020563else
20564 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020565if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020566 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020567 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20568 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020569 if test $? -eq 0 ; then
20570 llvm_cv_llvmgcc_sanity="yes"
20571 fi
20572 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020573fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20576echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020577
20578if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20580echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020581 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020582 LLVMCC1=$llvmcc1path
20583
Reid Spencer502935f2004-12-22 05:56:56 +000020584 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020585 LLVMCC1PLUS=$llvmcc1pluspath
20586
Reid Spencer502935f2004-12-22 05:56:56 +000020587 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20588 LLVMGCCDIR=$llvmgccdir
20589
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020590 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020591 LLVMGCC_LANGS=$llvmgcclangs
20592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593 { echo "$as_me:$LINENO: result: ok" >&5
20594echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020595fi
20596
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020597SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020598
20599
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020600SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20601
20602
Reid Spencere9de0912004-08-20 09:03:57 +000020603# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020604# information into substitutions that will end up in Makefile.config.in
20605# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020606if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020607 prefix="/usr/local"
20608fi
Reid Spencere9de0912004-08-20 09:03:57 +000020609eval LLVM_PREFIX="${prefix}";
20610eval LLVM_BINDIR="${prefix}/bin";
20611eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020612eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020613eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020614eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020615eval LLVM_INCLUDEDIR="${prefix}/include";
20616eval LLVM_INFODIR="${prefix}/info";
20617eval LLVM_MANDIR="${prefix}/man";
20618LLVM_CONFIGTIME=`date`
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020630# Place the various directores into the config.h file as #defines so that we
20631# can know about the installation paths within LLVM.
20632
Reid Spencere9de0912004-08-20 09:03:57 +000020633cat >>confdefs.h <<_ACEOF
20634#define LLVM_PREFIX "$LLVM_PREFIX"
20635_ACEOF
20636
20637
20638cat >>confdefs.h <<_ACEOF
20639#define LLVM_BINDIR "$LLVM_BINDIR"
20640_ACEOF
20641
20642
20643cat >>confdefs.h <<_ACEOF
20644#define LLVM_LIBDIR "$LLVM_LIBDIR"
20645_ACEOF
20646
20647
20648cat >>confdefs.h <<_ACEOF
20649#define LLVM_DATADIR "$LLVM_DATADIR"
20650_ACEOF
20651
20652
20653cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020654#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020655_ACEOF
20656
20657
20658cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020659#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020660_ACEOF
20661
20662
20663cat >>confdefs.h <<_ACEOF
20664#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20665_ACEOF
20666
20667
20668cat >>confdefs.h <<_ACEOF
20669#define LLVM_INFODIR "$LLVM_INFODIR"
20670_ACEOF
20671
20672
20673cat >>confdefs.h <<_ACEOF
20674#define LLVM_MANDIR "$LLVM_MANDIR"
20675_ACEOF
20676
20677
20678cat >>confdefs.h <<_ACEOF
20679#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20680_ACEOF
20681
20682
Eric Christopher790e11c2007-12-01 00:34:39 +000020683cat >>confdefs.h <<_ACEOF
20684#define LLVM_HOSTTRIPLE "$host"
20685_ACEOF
20686
20687
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020688# Determine which bindings to build.
20689if test "$BINDINGS_TO_BUILD" = auto ; then
20690 BINDINGS_TO_BUILD=""
20691 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20692 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20693 fi
20694fi
20695BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20696
20697
20698# This isn't really configurey, but it avoids having to repeat the list in
20699# other files.
20700ALL_BINDINGS=ocaml
20701
20702
Gordon Henriksenf0915682007-10-02 16:42:22 +000020703# Do any work necessary to ensure that bindings have what they need.
20704binding_prereqs_failed=0
20705for a_binding in $BINDINGS_TO_BUILD ; do
20706 case "$a_binding" in
20707 ocaml)
20708 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20710echo "$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 +000020711 binding_prereqs_failed=1
20712 fi
20713 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020714 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20715echo "$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 +000020716 binding_prereqs_failed=1
20717 fi
20718 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020719 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20720echo "$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 +000020721 fi
20722 if test "x$with_ocaml_libdir" != xauto ; then
20723 OCAML_LIBDIR=$with_ocaml_libdir
20724
20725 else
20726 ocaml_stdlib="`"$OCAMLC" -where`"
20727 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20728 then
20729 # ocaml stdlib is beneath our prefix; use stdlib
20730 OCAML_LIBDIR=$ocaml_stdlib
20731
20732 else
20733 # ocaml stdlib is outside our prefix; use libdir/ocaml
20734 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20735
20736 fi
20737 fi
20738 ;;
20739 esac
20740done
20741if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020742 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20743echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20744 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020745fi
20746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020747{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20748echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20749if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020751else
20752 ac_ext=cpp
20753ac_cpp='$CXXCPP $CPPFLAGS'
20754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758 oldcxxflags="$CXXFLAGS"
20759 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020760 cat >conftest.$ac_ext <<_ACEOF
20761/* confdefs.h. */
20762_ACEOF
20763cat confdefs.h >>conftest.$ac_ext
20764cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020765/* end confdefs.h. */
20766
20767int
20768main ()
20769{
20770
20771 ;
20772 return 0;
20773}
20774_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020775rm -f conftest.$ac_objext
20776if { (ac_try="$ac_compile"
20777case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780esac
20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793esac
20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803esac
20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020809 llvm_cv_cxx_visibility_inlines_hidden=yes
20810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020816
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 CXXFLAGS="$oldcxxflags"
20819 ac_ext=c
20820ac_cpp='$CPP $CPPFLAGS'
20821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825
20826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020827{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20828echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020829if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20830 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20831
20832else
20833 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20834
20835fi
20836
Gordon Henriksenf0915682007-10-02 16:42:22 +000020837
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020838if test "$llvm_cv_link_use_r" = "yes" ; then
20839 RPATH="-Wl,-R"
20840else
20841 RPATH="-Wl,-rpath"
20842fi
20843
20844
20845if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20846 RDYNAMIC="-Wl,-export-dynamic"
20847else
20848 RDYNAMIC=""
20849fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020850
20851
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020852
Eric Christophera1cba682010-08-08 02:44:25 +000020853ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020854
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020855
20856
20857
20858
20859
Douglas Gregor1555a232009-06-16 20:12:29 +000020860ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20861
20862ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20863
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020864ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20865
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020866ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20867
Chandler Carruth8b67f772009-10-26 01:35:46 +000020868ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020870
Reid Spencera773bd52006-08-04 18:18:08 +000020871ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020872
20873
Reid Spencerea949cf2006-08-16 00:45:38 +000020874ac_config_files="$ac_config_files llvm.spec"
20875
20876
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020877ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20878
20879
Reid Spencera773bd52006-08-04 18:18:08 +000020880ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020881
20882
Reid Spencera773bd52006-08-04 18:18:08 +000020883ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020884
Reid Spencera773bd52006-08-04 18:18:08 +000020885ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020886
20887
Reid Spencera773bd52006-08-04 18:18:08 +000020888ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020889
20890
Reid Spencera773bd52006-08-04 18:18:08 +000020891ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020892
20893
Reid Spencera773bd52006-08-04 18:18:08 +000020894ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020895
20896
Reid Spencer8b2e1412006-11-17 03:32:33 +000020897ac_config_commands="$ac_config_commands runtime/Makefile"
20898
20899
Reid Spencera773bd52006-08-04 18:18:08 +000020900ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020901
20902
Reid Spencera773bd52006-08-04 18:18:08 +000020903ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020904
20905
Bill Wendlingf24eb392009-01-04 23:12:30 +000020906ac_config_commands="$ac_config_commands unittests/Makefile"
20907
20908
Reid Spencera773bd52006-08-04 18:18:08 +000020909ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020910
20911
Reid Spencera773bd52006-08-04 18:18:08 +000020912ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020913
20914
Reid Spencera773bd52006-08-04 18:18:08 +000020915ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020916
20917
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020918ac_config_commands="$ac_config_commands bindings/Makefile"
20919
20920
20921ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20922
20923
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020924
John Criswell7a73b802003-06-30 21:59:07 +000020925cat >confcache <<\_ACEOF
20926# This file is a shell script that caches the results of configure
20927# tests run on this system so they can be shared between configure
20928# scripts and configure runs, see configure's option --config-cache.
20929# It is not useful on other systems. If it contains results you don't
20930# want to keep, you may remove or edit it.
20931#
20932# config.status only pays attention to the cache file if you give it
20933# the --recheck option to rerun configure.
20934#
John Criswell0c38eaf2003-09-10 15:17:25 +000020935# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020936# loading this file, other *unset* `ac_cv_foo' will be assigned the
20937# following values.
20938
20939_ACEOF
20940
20941# The following way of writing the cache mishandles newlines in values,
20942# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020943# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020944# Ultrix sh set writes to stderr and can't be redirected directly,
20945# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020946(
20947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20948 eval ac_val=\$$ac_var
20949 case $ac_val in #(
20950 *${as_nl}*)
20951 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020952 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20953echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020954 esac
20955 case $ac_var in #(
20956 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020958 esac ;;
20959 esac
20960 done
20961
John Criswell7a73b802003-06-30 21:59:07 +000020962 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20964 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020965 # `set' does not quote correctly, so add quotes (double-quote
20966 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020967 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020968 "s/'/'\\\\''/g;
20969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020970 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020971 *)
20972 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020975 esac |
20976 sort
20977) |
John Criswell7a73b802003-06-30 21:59:07 +000020978 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020979 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020980 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020981 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20983 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20985 :end' >>confcache
20986if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20987 if test -w "$cache_file"; then
20988 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020989 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20990echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020991 cat confcache >$cache_file
20992 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020993 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20994echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020995 fi
20996fi
20997rm -f confcache
20998
20999test "x$prefix" = xNONE && prefix=$ac_default_prefix
21000# Let make expand exec_prefix.
21001test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21002
John Criswell7a73b802003-06-30 21:59:07 +000021003DEFS=-DHAVE_CONFIG_H
21004
John Criswell0c38eaf2003-09-10 15:17:25 +000021005ac_libobjs=
21006ac_ltlibobjs=
21007for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21008 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21012 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021013 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21014 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021015done
21016LIBOBJS=$ac_libobjs
21017
21018LTLIBOBJS=$ac_ltlibobjs
21019
21020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021021if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21023Usually this means the macro was only invoked conditionally." >&5
21024echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21025Usually this means the macro was only invoked conditionally." >&2;}
21026 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021027fi
21028if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021029 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21030Usually this means the macro was only invoked conditionally." >&5
21031echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21032Usually this means the macro was only invoked conditionally." >&2;}
21033 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021034fi
John Criswell7a73b802003-06-30 21:59:07 +000021035
21036: ${CONFIG_STATUS=./config.status}
21037ac_clean_files_save=$ac_clean_files
21038ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021039{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21040echo "$as_me: creating $CONFIG_STATUS" >&6;}
21041cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021042#! $SHELL
21043# Generated by $as_me.
21044# Run this file to recreate the current configuration.
21045# Compiler output produced by configure, useful for debugging
21046# configure, is in config.log if it exists.
21047
21048debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021049ac_cs_recheck=false
21050ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021051SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021054cat >>$CONFIG_STATUS <<\_ACEOF
21055## --------------------- ##
21056## M4sh Initialization. ##
21057## --------------------- ##
21058
21059# Be Bourne compatible
21060if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021061 emulate sh
21062 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021063 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021064 # is contrary to our usage. Disable this feature.
21065 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021066 setopt NO_GLOB_SUBST
21067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021068 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070BIN_SH=xpg4; export BIN_SH # for Tru64
21071DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021072
John Criswell7a73b802003-06-30 21:59:07 +000021073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021074# PATH needs CR
21075# Avoid depending upon Character Ranges.
21076as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21078as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21079as_cr_digits='0123456789'
21080as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021081
21082# The user is always right.
21083if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021084 echo "#! /bin/sh" >conf$$.sh
21085 echo "exit 0" >>conf$$.sh
21086 chmod +x conf$$.sh
21087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21088 PATH_SEPARATOR=';'
21089 else
21090 PATH_SEPARATOR=:
21091 fi
21092 rm -f conf$$.sh
21093fi
21094
21095# Support unset when possible.
21096if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21097 as_unset=unset
21098else
21099 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021100fi
John Criswell7a73b802003-06-30 21:59:07 +000021101
Reid Spencera773bd52006-08-04 18:18:08 +000021102
21103# IFS
21104# We need space, tab and new line, in precisely that order. Quoting is
21105# there to prevent editors from complaining about space-tab.
21106# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21107# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021108as_nl='
21109'
Reid Spencera773bd52006-08-04 18:18:08 +000021110IFS=" "" $as_nl"
21111
21112# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021114 *[\\/]* ) as_myself=$0 ;;
21115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021116for as_dir in $PATH
21117do
21118 IFS=$as_save_IFS
21119 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21121done
Reid Spencera773bd52006-08-04 18:18:08 +000021122IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021123
Reid Spencera773bd52006-08-04 18:18:08 +000021124 ;;
21125esac
21126# We did not find ourselves, most probably we were run as `sh COMMAND'
21127# in which case we are not to be found in the path.
21128if test "x$as_myself" = x; then
21129 as_myself=$0
21130fi
21131if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021132 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21133 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021134fi
21135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021136# Work around bugs in pre-3.0 UWIN ksh.
21137for as_var in ENV MAIL MAILPATH
21138do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021139done
21140PS1='$ '
21141PS2='> '
21142PS4='+ '
21143
21144# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021145for as_var in \
21146 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21147 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21148 LC_TELEPHONE LC_TIME
21149do
21150 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21151 eval $as_var=C; export $as_var
21152 else
21153 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021154 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021155done
Torok Edwin871384f2010-01-26 08:50:50 +000021156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021157# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021158if expr a : '\(a\)' >/dev/null 2>&1 &&
21159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21160 as_expr=expr
21161else
21162 as_expr=false
21163fi
21164
21165if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21166 as_basename=basename
21167else
21168 as_basename=false
21169fi
21170
21171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021172# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021173as_me=`$as_basename -- "$0" ||
21174$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21175 X"$0" : 'X\(//\)$' \| \
21176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021178 sed '/^.*\/\([^/][^/]*\)\/*$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\/\(\/\/\)$/{
21183 s//\1/
21184 q
21185 }
21186 /^X\/\(\/\).*/{
21187 s//\1/
21188 q
21189 }
21190 s/.*/./; q'`
21191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192# CDPATH.
21193$as_unset CDPATH
21194
21195
21196
21197 as_lineno_1=$LINENO
21198 as_lineno_2=$LINENO
21199 test "x$as_lineno_1" != "x$as_lineno_2" &&
21200 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21201
21202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21203 # uniformly replaced by the line number. The first 'sed' inserts a
21204 # line-number line after each line using $LINENO; the second 'sed'
21205 # does the real work. The second script uses 'N' to pair each
21206 # line-number line with the line containing $LINENO, and appends
21207 # trailing '-' during substitution so that $LINENO is not a special
21208 # case at line end.
21209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21210 # scripts with optimization help from Paolo Bonzini. Blame Lee
21211 # E. McMahon (1931-1989) for sed's syntax. :-)
21212 sed -n '
21213 p
21214 /[$]LINENO/=
21215 ' <$as_myself |
21216 sed '
21217 s/[$]LINENO.*/&-/
21218 t lineno
21219 b
21220 :lineno
21221 N
21222 :loop
21223 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21224 t loop
21225 s/-\n.*//
21226 ' >$as_me.lineno &&
21227 chmod +x "$as_me.lineno" ||
21228 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21229 { (exit 1); exit 1; }; }
21230
21231 # Don't try to exec as it changes $[0], causing all sort of problems
21232 # (the dirname of $[0] is not the place where we might find the
21233 # original and so on. Autoconf is especially sensitive to this).
21234 . "./$as_me.lineno"
21235 # Exit status is that of the last command.
21236 exit
21237}
21238
21239
21240if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21241 as_dirname=dirname
21242else
21243 as_dirname=false
21244fi
Reid Spencera773bd52006-08-04 18:18:08 +000021245
21246ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021248-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021252 esac;;
21253*)
21254 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021255esac
21256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257if expr a : '\(a\)' >/dev/null 2>&1 &&
21258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21259 as_expr=expr
21260else
21261 as_expr=false
21262fi
21263
John Criswell7a73b802003-06-30 21:59:07 +000021264rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021265if test -d conf$$.dir; then
21266 rm -f conf$$.dir/conf$$.file
21267else
21268 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021271echo >conf$$.file
21272if ln -s conf$$.file conf$$ 2>/dev/null; then
21273 as_ln_s='ln -s'
21274 # ... but there are two gotchas:
21275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21277 # In both cases, we have to default to `cp -p'.
21278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021279 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280elif ln conf$$.file conf$$ 2>/dev/null; then
21281 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021282else
21283 as_ln_s='cp -p'
21284fi
Reid Spencera773bd52006-08-04 18:18:08 +000021285rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21286rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021287
John Criswell0c38eaf2003-09-10 15:17:25 +000021288if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021290else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021291 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021292 as_mkdir_p=false
21293fi
21294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021295# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21296# systems may use methods other than mode bits to determine executability.
21297cat >conf$$.file <<_ASEOF
21298#! /bin/sh
21299exit 0
21300_ASEOF
21301chmod +x conf$$.file
21302if test -x conf$$.file >/dev/null 2>&1; then
21303 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021308
21309# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021311
21312# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021314
21315
John Criswell7a73b802003-06-30 21:59:07 +000021316exec 6>&1
21317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021318# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021319# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021320# values after options handling.
21321ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021322This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021323generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021324
21325 CONFIG_FILES = $CONFIG_FILES
21326 CONFIG_HEADERS = $CONFIG_HEADERS
21327 CONFIG_LINKS = $CONFIG_LINKS
21328 CONFIG_COMMANDS = $CONFIG_COMMANDS
21329 $ $0 $@
21330
Reid Spencera773bd52006-08-04 18:18:08 +000021331on `(hostname || uname -n) 2>/dev/null | sed 1q`
21332"
21333
John Criswell7a73b802003-06-30 21:59:07 +000021334_ACEOF
21335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021337# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021338config_files="$ac_config_files"
21339config_headers="$ac_config_headers"
21340config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021341
Reid Spencera773bd52006-08-04 18:18:08 +000021342_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021345ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346\`$as_me' instantiates files from templates according to the
21347current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021350
21351 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021352 -V, --version print version number, then exit
21353 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021354 -d, --debug don't remove temporary files
21355 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356 --file=FILE[:TEMPLATE]
21357 instantiate the configuration file FILE
21358 --header=FILE[:TEMPLATE]
21359 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021360
21361Configuration files:
21362$config_files
21363
21364Configuration headers:
21365$config_headers
21366
John Criswellc764fbc2003-09-06 15:17:13 +000021367Configuration commands:
21368$config_commands
21369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021370Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021371
Reid Spencera773bd52006-08-04 18:18:08 +000021372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021374ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021375llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376configured by $0, generated by GNU Autoconf 2.60,
21377 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021380This config.status script is free software; the Free Software Foundation
21381gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021382
21383ac_pwd='$ac_pwd'
21384srcdir='$srcdir'
21385INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021386_ACEOF
21387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388cat >>$CONFIG_STATUS <<\_ACEOF
21389# If no file are specified by the user, then we need to provide default
21390# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021391ac_need_defaults=:
21392while test $# != 0
21393do
21394 case $1 in
21395 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021396 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21397 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021398 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021399 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021400 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021401 ac_option=$1
21402 ac_optarg=$2
21403 ac_shift=shift
21404 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021405 esac
21406
John Criswell0c38eaf2003-09-10 15:17:25 +000021407 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021408 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21410 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021411 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021413 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021414 debug=: ;;
21415 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021416 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021417 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021418 ac_need_defaults=false;;
21419 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021420 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021422 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021423 --he | --h)
21424 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 { echo "$as_me: error: ambiguous option: $1
21426Try \`$0 --help' for more information." >&2
21427 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021428 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21432 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021433
21434 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021435 -*) { echo "$as_me: error: unrecognized option: $1
21436Try \`$0 --help' for more information." >&2
21437 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021440 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021441
21442 esac
21443 shift
21444done
21445
John Criswell0c38eaf2003-09-10 15:17:25 +000021446ac_configure_extra_args=
21447
21448if $ac_cs_silent; then
21449 exec 6>/dev/null
21450 ac_configure_extra_args="$ac_configure_extra_args --silent"
21451fi
21452
21453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021454cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021455if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021456 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21457 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021458 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021459 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021460fi
21461
John Criswell7a73b802003-06-30 21:59:07 +000021462_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021463cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021464exec 5>>config.log
21465{
21466 echo
21467 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21468## Running $as_me. ##
21469_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021471} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021472
Reid Spencera773bd52006-08-04 18:18:08 +000021473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021475#
Reid Spencera773bd52006-08-04 18:18:08 +000021476# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021477#
Reid Spencerc0682832005-02-24 19:05:19 +000021478llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021479
21480_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021482cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021483
21484# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021485for ac_config_target in $ac_config_targets
21486do
Reid Spencera773bd52006-08-04 18:18:08 +000021487 case $ac_config_target in
21488 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021489 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021490 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21491 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021492 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021493 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021494 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021495 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021496 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021497 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021498 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21499 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21500 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21501 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21502 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21503 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021504 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021505 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21506 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021507 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021508 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21509 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21510 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021511 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21512 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21515echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21516 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021517 esac
21518done
21519
Reid Spencera773bd52006-08-04 18:18:08 +000021520
John Criswell7a73b802003-06-30 21:59:07 +000021521# If the user did not use the arguments to specify the items to instantiate,
21522# then the envvar interface is used. Set only those that are not.
21523# We use the long form for the default assignment because of an extremely
21524# bizarre bug on SunOS 4.1.3.
21525if $ac_need_defaults; then
21526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021528 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021529fi
21530
John Criswell0c38eaf2003-09-10 15:17:25 +000021531# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021532# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021533# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021534# Hook for its removal unless debugging.
21535# Note that there is a small window in which the directory will not be cleaned:
21536# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021537$debug ||
21538{
Reid Spencera773bd52006-08-04 18:18:08 +000021539 tmp=
21540 trap 'exit_status=$?
21541 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21542' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021544}
John Criswell7a73b802003-06-30 21:59:07 +000021545# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021546
John Criswell7a73b802003-06-30 21:59:07 +000021547{
Reid Spencera773bd52006-08-04 18:18:08 +000021548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021549 test -n "$tmp" && test -d "$tmp"
21550} ||
21551{
Reid Spencera773bd52006-08-04 18:18:08 +000021552 tmp=./conf$$-$RANDOM
21553 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554} ||
21555{
21556 echo "$me: cannot create a temporary directory in ." >&2
21557 { (exit 1); exit 1; }
21558}
John Criswell7a73b802003-06-30 21:59:07 +000021559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560#
21561# Set up the sed scripts for CONFIG_FILES section.
21562#
21563
21564# No need to generate the scripts if there are no CONFIG_FILES.
21565# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021566if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021567
21568_ACEOF
21569
Reid Spencera773bd52006-08-04 18:18:08 +000021570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021571
Reid Spencera773bd52006-08-04 18:18:08 +000021572ac_delim='%!_!# '
21573for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021574 cat >conf$$subs.sed <<_ACEOF
21575SHELL!$SHELL$ac_delim
21576PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21577PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21578PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21579PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21580PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21581PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21582exec_prefix!$exec_prefix$ac_delim
21583prefix!$prefix$ac_delim
21584program_transform_name!$program_transform_name$ac_delim
21585bindir!$bindir$ac_delim
21586sbindir!$sbindir$ac_delim
21587libexecdir!$libexecdir$ac_delim
21588datarootdir!$datarootdir$ac_delim
21589datadir!$datadir$ac_delim
21590sysconfdir!$sysconfdir$ac_delim
21591sharedstatedir!$sharedstatedir$ac_delim
21592localstatedir!$localstatedir$ac_delim
21593includedir!$includedir$ac_delim
21594oldincludedir!$oldincludedir$ac_delim
21595docdir!$docdir$ac_delim
21596infodir!$infodir$ac_delim
21597htmldir!$htmldir$ac_delim
21598dvidir!$dvidir$ac_delim
21599pdfdir!$pdfdir$ac_delim
21600psdir!$psdir$ac_delim
21601libdir!$libdir$ac_delim
21602localedir!$localedir$ac_delim
21603mandir!$mandir$ac_delim
21604DEFS!$DEFS$ac_delim
21605ECHO_C!$ECHO_C$ac_delim
21606ECHO_N!$ECHO_N$ac_delim
21607ECHO_T!$ECHO_T$ac_delim
21608LIBS!$LIBS$ac_delim
21609build_alias!$build_alias$ac_delim
21610host_alias!$host_alias$ac_delim
21611target_alias!$target_alias$ac_delim
21612LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21613subdirs!$subdirs$ac_delim
21614build!$build$ac_delim
21615build_cpu!$build_cpu$ac_delim
21616build_vendor!$build_vendor$ac_delim
21617build_os!$build_os$ac_delim
21618host!$host$ac_delim
21619host_cpu!$host_cpu$ac_delim
21620host_vendor!$host_vendor$ac_delim
21621host_os!$host_os$ac_delim
21622target!$target$ac_delim
21623target_cpu!$target_cpu$ac_delim
21624target_vendor!$target_vendor$ac_delim
21625target_os!$target_os$ac_delim
21626OS!$OS$ac_delim
21627HOST_OS!$HOST_OS$ac_delim
21628TARGET_OS!$TARGET_OS$ac_delim
21629LINKALL!$LINKALL$ac_delim
21630NOLINKALL!$NOLINKALL$ac_delim
21631LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21632LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21633ARCH!$ARCH$ac_delim
21634ENDIAN!$ENDIAN$ac_delim
21635CC!$CC$ac_delim
21636CFLAGS!$CFLAGS$ac_delim
21637LDFLAGS!$LDFLAGS$ac_delim
21638CPPFLAGS!$CPPFLAGS$ac_delim
21639ac_ct_CC!$ac_ct_CC$ac_delim
21640EXEEXT!$EXEEXT$ac_delim
21641OBJEXT!$OBJEXT$ac_delim
21642CPP!$CPP$ac_delim
21643GREP!$GREP$ac_delim
21644EGREP!$EGREP$ac_delim
21645LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21646BUILD_CC!$BUILD_CC$ac_delim
21647BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21648BUILD_CXX!$BUILD_CXX$ac_delim
21649CVSBUILD!$CVSBUILD$ac_delim
21650ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21651ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21652DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21653ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21654EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21655DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21656DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21657JIT!$JIT$ac_delim
21658TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21659ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21660ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21661ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021662ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021663ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21665LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21666LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21667LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21668LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21669ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021670CLANGPATH!$CLANGPATH$ac_delim
21671CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021675 break
21676 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021677 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21678echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21679 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021680 else
21681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021682 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021683done
21684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21686if test -n "$ac_eof"; then
21687 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21688 ac_eof=`expr $ac_eof + 1`
21689fi
21690
21691cat >>$CONFIG_STATUS <<_ACEOF
21692cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21693/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695sed '
21696s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21697s/^/s,@/; s/!/@,|#_!!_#|/
21698:n
21699t n
21700s/'"$ac_delim"'$/,g/; t
21701s/$/\\/; p
21702N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21703' >>$CONFIG_STATUS <conf$$subs.sed
21704rm -f conf$$subs.sed
21705cat >>$CONFIG_STATUS <<_ACEOF
21706CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708
21709
21710ac_delim='%!_!# '
21711for ac_last_try in false false false false false :; do
21712 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021713ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021714OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021715EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21716BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21717ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021718ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21719CXX!$CXX$ac_delim
21720CXXFLAGS!$CXXFLAGS$ac_delim
21721ac_ct_CXX!$ac_ct_CXX$ac_delim
21722NM!$NM$ac_delim
21723ifGNUmake!$ifGNUmake$ac_delim
21724LN_S!$LN_S$ac_delim
21725CMP!$CMP$ac_delim
21726CP!$CP$ac_delim
21727DATE!$DATE$ac_delim
21728FIND!$FIND$ac_delim
21729MKDIR!$MKDIR$ac_delim
21730MV!$MV$ac_delim
21731RANLIB!$RANLIB$ac_delim
21732AR!$AR$ac_delim
21733RM!$RM$ac_delim
21734SED!$SED$ac_delim
21735TAR!$TAR$ac_delim
21736BINPWD!$BINPWD$ac_delim
21737GRAPHVIZ!$GRAPHVIZ$ac_delim
21738DOT!$DOT$ac_delim
21739FDP!$FDP$ac_delim
21740NEATO!$NEATO$ac_delim
21741TWOPI!$TWOPI$ac_delim
21742CIRCO!$CIRCO$ac_delim
21743GV!$GV$ac_delim
21744DOTTY!$DOTTY$ac_delim
21745PERL!$PERL$ac_delim
21746HAVE_PERL!$HAVE_PERL$ac_delim
21747INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21748INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21749INSTALL_DATA!$INSTALL_DATA$ac_delim
21750BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021751CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752DOXYGEN!$DOXYGEN$ac_delim
21753GROFF!$GROFF$ac_delim
21754GZIP!$GZIP$ac_delim
21755POD2HTML!$POD2HTML$ac_delim
21756POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021757PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758RUNTEST!$RUNTEST$ac_delim
21759TCLSH!$TCLSH$ac_delim
21760ZIP!$ZIP$ac_delim
21761OCAMLC!$OCAMLC$ac_delim
21762OCAMLOPT!$OCAMLOPT$ac_delim
21763OCAMLDEP!$OCAMLDEP$ac_delim
21764OCAMLDOC!$OCAMLDOC$ac_delim
21765GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021766HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21768INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21769CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21770CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21771LIBADD_DL!$LIBADD_DL$ac_delim
21772LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21773LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21774LLVMGCC!$LLVMGCC$ac_delim
21775LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021776LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021777NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21778NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21779USE_UDIS86!$USE_UDIS86$ac_delim
21780USE_OPROFILE!$USE_OPROFILE$ac_delim
21781HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21782HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21783MMAP_FILE!$MMAP_FILE$ac_delim
21784LLVMCC1!$LLVMCC1$ac_delim
21785LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21786LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021787LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21788SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021789SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21791LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21792LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21793LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21794LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21795LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21796LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21797LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21798LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21799LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21800BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21801ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21802OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21803ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21804RPATH!$RPATH$ac_delim
21805RDYNAMIC!$RDYNAMIC$ac_delim
21806LIBOBJS!$LIBOBJS$ac_delim
21807LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021808_ACEOF
21809
Daniel Dunbardd464df2010-05-10 20:11:56 +000021810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021811 break
21812 elif $ac_last_try; then
21813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21814echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21815 { (exit 1); exit 1; }; }
21816 else
21817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21818 fi
21819done
21820
21821ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21822if test -n "$ac_eof"; then
21823 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21824 ac_eof=`expr $ac_eof + 1`
21825fi
21826
21827cat >>$CONFIG_STATUS <<_ACEOF
21828cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21829/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21830_ACEOF
21831sed '
21832s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21833s/^/s,@/; s/!/@,|#_!!_#|/
21834:n
21835t n
21836s/'"$ac_delim"'$/,g/; t
21837s/$/\\/; p
21838N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21839' >>$CONFIG_STATUS <conf$$subs.sed
21840rm -f conf$$subs.sed
21841cat >>$CONFIG_STATUS <<_ACEOF
21842:end
21843s/|#_!!_#|//g
21844CEOF$ac_eof
21845_ACEOF
21846
21847
Reid Spencera773bd52006-08-04 18:18:08 +000021848# VPATH may cause trouble with some makes, so we remove $(srcdir),
21849# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21850# trailing colons and then remove the whole line if VPATH becomes empty
21851# (actually we leave an empty line to preserve line numbers).
21852if test "x$srcdir" = x.; then
21853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21854s/:*\$(srcdir):*/:/
21855s/:*\${srcdir}:*/:/
21856s/:*@srcdir@:*/:/
21857s/^\([^=]*=[ ]*\):*/\1/
21858s/:*$//
21859s/^[^=]*=[ ]*$//
21860}'
21861fi
21862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021864fi # test -n "$CONFIG_FILES"
21865
Reid Spencera773bd52006-08-04 18:18:08 +000021866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021868do
21869 case $ac_tag in
21870 :[FHLC]) ac_mode=$ac_tag; continue;;
21871 esac
21872 case $ac_mode$ac_tag in
21873 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21875echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21876 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021877 :[FH]-) ac_tag=-:-;;
21878 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21879 esac
21880 ac_save_IFS=$IFS
21881 IFS=:
21882 set x $ac_tag
21883 IFS=$ac_save_IFS
21884 shift
21885 ac_file=$1
21886 shift
21887
21888 case $ac_mode in
21889 :L) ac_source=$1;;
21890 :[FH])
21891 ac_file_inputs=
21892 for ac_f
21893 do
21894 case $ac_f in
21895 -) ac_f="$tmp/stdin";;
21896 *) # Look for the file first in the build tree, then in the source tree
21897 # (if the path is not absolute). The absolute path cannot be DOS-style,
21898 # because $ac_f cannot contain `:'.
21899 test -f "$ac_f" ||
21900 case $ac_f in
21901 [\\/$]*) false;;
21902 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21903 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21905echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21906 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021907 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021908 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021909 done
21910
21911 # Let's still pretend it is `configure' which instantiates (i.e., don't
21912 # use $as_me), people would be surprised to read:
21913 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914 configure_input="Generated from "`IFS=:
21915 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021916 if test x"$ac_file" != x-; then
21917 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021918 { echo "$as_me:$LINENO: creating $ac_file" >&5
21919echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021920 fi
21921
21922 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021924 esac
21925 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021926 esac
21927
Reid Spencera773bd52006-08-04 18:18:08 +000021928 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021929$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021930 X"$ac_file" : 'X\(//\)[^/]' \| \
21931 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021932 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021933echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21935 s//\1/
21936 q
21937 }
21938 /^X\(\/\/\)[^/].*/{
21939 s//\1/
21940 q
21941 }
21942 /^X\(\/\/\)$/{
21943 s//\1/
21944 q
21945 }
21946 /^X\(\/\).*/{
21947 s//\1/
21948 q
21949 }
21950 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951 { as_dir="$ac_dir"
21952 case $as_dir in #(
21953 -*) as_dir=./$as_dir;;
21954 esac
21955 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21956 as_dirs=
21957 while :; do
21958 case $as_dir in #(
21959 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21960 *) as_qdir=$as_dir;;
21961 esac
21962 as_dirs="'$as_qdir' $as_dirs"
21963 as_dir=`$as_dirname -- "$as_dir" ||
21964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21965 X"$as_dir" : 'X\(//\)[^/]' \| \
21966 X"$as_dir" : 'X\(//\)$' \| \
21967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21968echo X"$as_dir" |
21969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21970 s//\1/
21971 q
21972 }
21973 /^X\(\/\/\)[^/].*/{
21974 s//\1/
21975 q
21976 }
21977 /^X\(\/\/\)$/{
21978 s//\1/
21979 q
21980 }
21981 /^X\(\/\).*/{
21982 s//\1/
21983 q
21984 }
21985 s/.*/./; q'`
21986 test -d "$as_dir" && break
21987 done
21988 test -z "$as_dirs" || eval "mkdir $as_dirs"
21989 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21990echo "$as_me: error: cannot create directory $as_dir" >&2;}
21991 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021992 ac_builddir=.
21993
Reid Spencera773bd52006-08-04 18:18:08 +000021994case "$ac_dir" in
21995.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21996*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021998 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021999 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022000 case $ac_top_builddir_sub in
22001 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22002 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22003 esac ;;
22004esac
22005ac_abs_top_builddir=$ac_pwd
22006ac_abs_builddir=$ac_pwd$ac_dir_suffix
22007# for backward compatibility:
22008ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022009
22010case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022011 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022012 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022013 ac_top_srcdir=$ac_top_builddir_sub
22014 ac_abs_top_srcdir=$ac_pwd ;;
22015 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022016 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022017 ac_top_srcdir=$srcdir
22018 ac_abs_top_srcdir=$srcdir ;;
22019 *) # Relative name.
22020 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22021 ac_top_srcdir=$ac_top_build_prefix$srcdir
22022 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022023esac
Reid Spencera773bd52006-08-04 18:18:08 +000022024ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022025
John Criswell7a73b802003-06-30 21:59:07 +000022026
Reid Spencera773bd52006-08-04 18:18:08 +000022027 case $ac_mode in
22028 :F)
22029 #
22030 # CONFIG_FILE
22031 #
John Criswell7a73b802003-06-30 21:59:07 +000022032
22033 case $INSTALL in
22034 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022035 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022036 esac
John Criswell7a73b802003-06-30 21:59:07 +000022037_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022040# If the template does not know about datarootdir, expand it.
22041# FIXME: This hack should be removed a few years after 2.60.
22042ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022043
22044case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022045 p
22046 q
22047}
22048/@datadir@/p
22049/@docdir@/p
22050/@infodir@/p
22051/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052/@mandir@/p
22053' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022054*datarootdir*) ac_datarootdir_seen=yes;;
22055*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022056 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22057echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022058_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022060 ac_datarootdir_hack='
22061 s&@datadir@&$datadir&g
22062 s&@docdir@&$docdir&g
22063 s&@infodir@&$infodir&g
22064 s&@localedir@&$localedir&g
22065 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022067esac
22068_ACEOF
22069
22070# Neutralize VPATH when `$srcdir' = `.'.
22071# Shell code in configure.ac might set extrasub.
22072# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022073cat >>$CONFIG_STATUS <<_ACEOF
22074 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022075$extrasub
22076_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022077cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022078:t
22079/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022080s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022081s&@top_builddir@&$ac_top_builddir_sub&;t t
22082s&@srcdir@&$ac_srcdir&;t t
22083s&@abs_srcdir@&$ac_abs_srcdir&;t t
22084s&@top_srcdir@&$ac_top_srcdir&;t t
22085s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22086s&@builddir@&$ac_builddir&;t t
22087s&@abs_builddir@&$ac_abs_builddir&;t t
22088s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22089s&@INSTALL@&$ac_INSTALL&;t t
22090$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022092
Reid Spencera773bd52006-08-04 18:18:08 +000022093test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22094 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022097which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022099which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022100
Reid Spencera773bd52006-08-04 18:18:08 +000022101 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022102 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103 -) cat "$tmp/out"; rm -f "$tmp/out";;
22104 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22105 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022106 ;;
22107 :H)
22108 #
22109 # CONFIG_HEADER
22110 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022111_ACEOF
22112
22113# Transform confdefs.h into a sed script `conftest.defines', that
22114# substitutes the proper values into config.h.in to produce config.h.
22115rm -f conftest.defines conftest.tail
22116# First, append a space to every undef/define line, to ease matching.
22117echo 's/$/ /' >conftest.defines
22118# Then, protect against being on the right side of a sed subst, or in
22119# an unquoted here document, in config.status. If some macros were
22120# called several times there might be several #defines for the same
22121# symbol, which is useless. But do not sort them, since the last
22122# AC_DEFINE must be honored.
22123ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22124# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22125# NAME is the cpp macro being defined, VALUE is the value it is being given.
22126# PARAMS is the parameter list in the macro definition--in most cases, it's
22127# just an empty string.
22128ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22129ac_dB='\\)[ (].*,\\1define\\2'
22130ac_dC=' '
22131ac_dD=' ,'
22132
22133uniq confdefs.h |
22134 sed -n '
22135 t rset
22136 :rset
22137 s/^[ ]*#[ ]*define[ ][ ]*//
22138 t ok
22139 d
22140 :ok
22141 s/[\\&,]/\\&/g
22142 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22143 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22144 ' >>conftest.defines
22145
22146# Remove the space that was appended to ease matching.
22147# Then replace #undef with comments. This is necessary, for
22148# example, in the case of _POSIX_SOURCE, which is predefined and required
22149# on some systems where configure will not decide to define it.
22150# (The regexp can be short, since the line contains either #define or #undef.)
22151echo 's/ $//
22152s,^[ #]*u.*,/* & */,' >>conftest.defines
22153
22154# Break up conftest.defines:
22155ac_max_sed_lines=50
22156
22157# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22158# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22159# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22160# et cetera.
22161ac_in='$ac_file_inputs'
22162ac_out='"$tmp/out1"'
22163ac_nxt='"$tmp/out2"'
22164
22165while :
22166do
22167 # Write a here document:
22168 cat >>$CONFIG_STATUS <<_ACEOF
22169 # First, check the format of the line:
22170 cat >"\$tmp/defines.sed" <<\\CEOF
22171/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22172/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22173b
22174:def
22175_ACEOF
22176 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22177 echo 'CEOF
22178 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22179 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22180 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22181 grep . conftest.tail >/dev/null || break
22182 rm -f conftest.defines
22183 mv conftest.tail conftest.defines
22184done
22185rm -f conftest.defines conftest.tail
22186
22187echo "ac_result=$ac_in" >>$CONFIG_STATUS
22188cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022189 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022190 echo "/* $configure_input */" >"$tmp/config.h"
22191 cat "$ac_result" >>"$tmp/config.h"
22192 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22193 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22194echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022195 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022196 rm -f $ac_file
22197 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022198 fi
22199 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022200 echo "/* $configure_input */"
22201 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022202 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022204 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22207echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022208 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022209 esac
John Criswell7a73b802003-06-30 21:59:07 +000022210
Reid Spencera773bd52006-08-04 18:18:08 +000022211
22212 case $ac_file$ac_mode in
22213 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022214 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022215 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022216 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022217 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022218 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022219 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022220 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022221 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022222 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022223 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022224 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022225 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022226 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022227 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022228 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022229 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022230 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022231 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022232 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022233 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022234 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022235 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022236 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022237 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022238 ${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 +000022239
22240 esac
22241done # for ac_tag
22242
John Criswell7a73b802003-06-30 21:59:07 +000022243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022244{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022247ac_clean_files=$ac_clean_files_save
22248
22249
22250# configure is writing to config.log, and then calls config.status.
22251# config.status does its own redirection, appending to config.log.
22252# Unfortunately, on DOS this fails, as config.log is still kept open
22253# by configure, so config.status won't be able to write to it; its
22254# output is simply discarded. So we exec the FD to /dev/null,
22255# effectively closing config.log, so it can be properly (re)opened and
22256# appended to by config.status. When coming back to configure, we
22257# need to make the FD available again.
22258if test "$no_create" != yes; then
22259 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022260 ac_config_status_args=
22261 test "$silent" = yes &&
22262 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022263 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022265 exec 5>>config.log
22266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22267 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022268 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022269fi
22270
John Criswell12399a12003-09-30 15:55:44 +000022271#
22272# CONFIG_SUBDIRS section.
22273#
22274if test "$no_recursion" != yes; then
22275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022277 ac_sub_configure_args=
22278 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022279 eval "set x $ac_configure_args"
22280 shift
22281 for ac_arg
22282 do
John Criswell12399a12003-09-30 15:55:44 +000022283 if test -n "$ac_prev"; then
22284 ac_prev=
22285 continue
22286 fi
22287 case $ac_arg in
22288 -cache-file | --cache-file | --cache-fil | --cache-fi \
22289 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22290 ac_prev=cache_file ;;
22291 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22292 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22293 | --c=*)
22294 ;;
22295 --config-cache | -C)
22296 ;;
22297 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22298 ac_prev=srcdir ;;
22299 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22300 ;;
22301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22302 ac_prev=prefix ;;
22303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022305 *)
22306 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022307 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022308 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022309 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022310 esac
22311 done
22312
22313 # Always prepend --prefix to ensure using the same prefix
22314 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022315 ac_arg="--prefix=$prefix"
22316 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022318 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022319 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022320
22321 ac_popdir=`pwd`
22322 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22323
22324 # Do not complain, so a configure script can configure whichever
22325 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022326 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022327
Reid Spencera773bd52006-08-04 18:18:08 +000022328 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329 echo "$as_me:$LINENO: $ac_msg" >&5
22330 echo "$ac_msg" >&6
22331 { as_dir="$ac_dir"
22332 case $as_dir in #(
22333 -*) as_dir=./$as_dir;;
22334 esac
22335 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22336 as_dirs=
22337 while :; do
22338 case $as_dir in #(
22339 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22340 *) as_qdir=$as_dir;;
22341 esac
22342 as_dirs="'$as_qdir' $as_dirs"
22343 as_dir=`$as_dirname -- "$as_dir" ||
22344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22345 X"$as_dir" : 'X\(//\)[^/]' \| \
22346 X"$as_dir" : 'X\(//\)$' \| \
22347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22348echo X"$as_dir" |
22349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22350 s//\1/
22351 q
22352 }
22353 /^X\(\/\/\)[^/].*/{
22354 s//\1/
22355 q
22356 }
22357 /^X\(\/\/\)$/{
22358 s//\1/
22359 q
22360 }
22361 /^X\(\/\).*/{
22362 s//\1/
22363 q
22364 }
22365 s/.*/./; q'`
22366 test -d "$as_dir" && break
22367 done
22368 test -z "$as_dirs" || eval "mkdir $as_dirs"
22369 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22370echo "$as_me: error: cannot create directory $as_dir" >&2;}
22371 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022372 ac_builddir=.
22373
Reid Spencera773bd52006-08-04 18:18:08 +000022374case "$ac_dir" in
22375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22376*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022378 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022380 case $ac_top_builddir_sub in
22381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22383 esac ;;
22384esac
22385ac_abs_top_builddir=$ac_pwd
22386ac_abs_builddir=$ac_pwd$ac_dir_suffix
22387# for backward compatibility:
22388ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022389
22390case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022391 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022392 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022393 ac_top_srcdir=$ac_top_builddir_sub
22394 ac_abs_top_srcdir=$ac_pwd ;;
22395 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022396 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022397 ac_top_srcdir=$srcdir
22398 ac_abs_top_srcdir=$srcdir ;;
22399 *) # Relative name.
22400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22401 ac_top_srcdir=$ac_top_build_prefix$srcdir
22402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022403esac
Reid Spencera773bd52006-08-04 18:18:08 +000022404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022405
22406
Reid Spencera773bd52006-08-04 18:18:08 +000022407 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022408
22409 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022410 if test -f "$ac_srcdir/configure.gnu"; then
22411 ac_sub_configure=$ac_srcdir/configure.gnu
22412 elif test -f "$ac_srcdir/configure"; then
22413 ac_sub_configure=$ac_srcdir/configure
22414 elif test -f "$ac_srcdir/configure.in"; then
22415 # This should be Cygnus configure.
22416 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022417 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022418 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22419echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022420 ac_sub_configure=
22421 fi
22422
22423 # The recursion is here.
22424 if test -n "$ac_sub_configure"; then
22425 # Make the cache file name correct relative to the subdirectory.
22426 case $cache_file in
22427 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022428 *) # Relative name.
22429 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022430 esac
22431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022432 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22433echo "$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 +000022434 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022435 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22436 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22438echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22439 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022440 fi
22441
Reid Spencera773bd52006-08-04 18:18:08 +000022442 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022443 done
22444fi
22445