blob: 7200ee11eca358dc20e6c5c805773ee0e2d4e995 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017# Be Bourne compatible
18if 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 Lattner953042b2009-08-22 04:37:30 +0000564PACKAGE_VERSION='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
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 Yasskinea6c39d2010-02-23 18:10:07 +0000692ENABLE_SHARED
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752INSTALL_LTDL_TRUE
753INSTALL_LTDL_FALSE
754CONVENIENCE_LTDL_TRUE
755CONVENIENCE_LTDL_FALSE
756LIBADD_DL
757LLVMGCCCOMMAND
758LLVMGXXCOMMAND
759LLVMGCC
760LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000761LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769LLVMCC1
770LLVMCC1PLUS
771LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772LLVMGCC_LANGS
773SHLIBEXT
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CPP
802CXX
803CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000804CCC'
Reid Spencera773bd52006-08-04 18:18:08 +0000805ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000806projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000807projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000808projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000809projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/llvm-reopt
811projects/llvm-gcc
812projects/llvm-java
813projects/llvm-tv
814projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000815projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001318\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001384 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1394 YES)
David Greenea696d242007-06-28 19:36:08 +00001395 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 Compile with expensive debug checks enabled (default
1397 is NO)
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1399 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001402 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001403 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001404 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001405 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001406 is YES)
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +00001407 --enable-shared Link LLVM tools shared (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001408 --enable-targets Build specific host targets: all or
1409 target1,target2,... Valid targets are: host, x86,
1410 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1411 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1412 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001413 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1414 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001415 --enable-bindings Build specific language bindings:
1416 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001417 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001418 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1419 Win32)
1420 --enable-llvmc-dynamic-plugins
1421 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001422 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001423
1424Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001427 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1428 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001429 --with-llvmgcc Specify location of llvm-gcc driver (default
1430 searches PATH)
1431 --with-llvmgxx Specify location of llvm-g++ driver (default
1432 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001433 --with-clang Specify location of clang compiler (default is
1434 --with-built-clang)
1435 --with-built-clang Use the compiled Clang as the LLVM compiler
1436 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001437 --with-optimize-option Select the compiler options to use for optimized
1438 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001439 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001440 --with-ocaml-libdir Specify install location for ocaml bindings (default
1441 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001442 --with-c-include-dirs Colon separated list of directories clang will
1443 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001444 --with-cxx-include-root Directory with the libstdc++ headers.
1445 --with-cxx-include-arch Architecture of the libstdc++ headers.
1446 --with-cxx-include-32bit-dir
1447 32 bit multilib dir.
1448 --with-cxx-include-64bit-dir
1449 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001452 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001453 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1454 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001455 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001460 CC C compiler command
1461 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001465 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001466 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <llvmbugs@cs.uiuc.edu>.
1474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001475ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001482 ac_builddir=.
1483
Reid Spencera773bd52006-08-04 18:18:08 +00001484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001499
1500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001501 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001513esac
Reid Spencera773bd52006-08-04 18:18:08 +00001514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001515
Reid Spencera773bd52006-08-04 18:18:08 +00001516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001524 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001528 done
1529fi
1530
Reid Spencera773bd52006-08-04 18:18:08 +00001531test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001532if $ac_init_version; then
1533 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001534llvm configure 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541
Tanya Lattnerc2264592009-08-22 21:01:26 +00001542Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001544 exit
John Criswell7a73b802003-06-30 21:59:07 +00001545fi
Reid Spencera773bd52006-08-04 18:18:08 +00001546cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
Tanya Lattner953042b2009-08-22 04:37:30 +00001550It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001551generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553 $ $0 $@
1554
1555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001556exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571
1572/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001575/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001576/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001587 echo "PATH: $as_dir"
1588done
Reid Spencera773bd52006-08-04 18:18:08 +00001589IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001606# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001608ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_configure_args0=
1610ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_must_keep_next=false
1612for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001613do
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 for ac_arg
1615 do
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001621 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 esac
1624 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1639 ;;
1640 -* ) ac_must_keep_next=true ;;
1641 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001643 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ;;
1645 esac
1646 done
John Criswell7a73b802003-06-30 21:59:07 +00001647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$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 +00001650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log. We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001656trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1658 {
1659 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001660
John Criswell7a73b802003-06-30 21:59:07 +00001661 cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001668(
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001679 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac ;;
1681 esac
1682 done
John Criswell7a73b802003-06-30 21:59:07 +00001683 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001686 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001690 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac |
1694 sort
1695)
John Criswell7a73b802003-06-30 21:59:07 +00001696 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
Reid Spencera773bd52006-08-04 18:18:08 +00001706 eval ac_val=\$$ac_var
1707 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001709 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730 fi
1731
John Criswell7a73b802003-06-30 21:59:07 +00001732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001739 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001745 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001748 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001749' 0
John Criswell7a73b802003-06-30 21:59:07 +00001750for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001756rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764
John Criswell7a73b802003-06-30 21:59:07 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001787if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001789elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795shift
1796for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001797do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1803 fi
1804done
1805
1806if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001812 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001815 esac
1816 fi
1817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001826for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001831 case $ac_old_set,$ac_new_set in
1832 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 ac_cache_corrupted=: ;;
1836 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 ac_cache_corrupted=: ;;
1840 ,);;
1841 *)
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001861 esac
1862 fi
1863done
1864if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
Reid Spencera773bd52006-08-04 18:18:08 +00001895
John Criswell7a73b802003-06-30 21:59:07 +00001896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
Tanya Lattnerc2264592009-08-22 21:01:26 +00001904LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001905
1906
1907
1908
1909
1910
1911
John Criswell7a73b802003-06-30 21:59:07 +00001912ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001913for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001914 if test -f "$ac_dir/install-sh"; then
1915 ac_aux_dir=$ac_dir
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 break
1918 elif test -f "$ac_dir/install.sh"; then
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 break
1922 elif test -f "$ac_dir/shtool"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 break
1926 fi
John Criswell7a73b802003-06-30 21:59:07 +00001927done
1928if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001932fi
Reid Spencera773bd52006-08-04 18:18:08 +00001933
1934# These three variables are undocumented and unsupported,
1935# and are intended to be withdrawn in a future Autoconf release.
1936# They can cause serious problems if a builder's source tree is in a directory
1937# whose full name contains unusual characters.
1938ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941
John Criswell7a73b802003-06-30 21:59:07 +00001942
John Criswell392aaa32003-07-22 19:18:09 +00001943
Reid Spencer2706f8c2004-09-19 23:53:36 +00001944if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001945 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001946 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001949 fi
John Criswell93e1c722003-09-15 17:04:06 +00001950fi
1951
John Criswell33a911a2003-11-25 20:36:46 +00001952for i in `ls ${srcdir}/projects`
1953do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001954 if test -d ${srcdir}/projects/${i} ; then
1955 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001956 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001957 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001958 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001959 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001960 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001961 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001962 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001963 # llvm-test is the old name of the test-suite, kept here for backwards
1964 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001965 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001966 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001967 test-suite) subdirs="$subdirs projects/test-suite"
1968 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001969 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001970;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001971 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001972 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001973 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001974 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001975 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001976 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001977 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001978 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001979 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001980 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001981 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001982 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1985echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001986 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 esac
John Criswell33a911a2003-11-25 20:36:46 +00001988 fi
1989done
John Criswell559a6c12003-09-30 16:31:48 +00001990
John Criswell7a73b802003-06-30 21:59:07 +00001991
1992# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001993$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998{ echo "$as_me:$LINENO: checking build system type" >&5
1999echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000if test "${ac_cv_build+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002002else
Reid Spencera773bd52006-08-04 18:18:08 +00002003 ac_build_alias=$build_alias
2004test "x$ac_build_alias" = x &&
2005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002010ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002014
2015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002018case $ac_cv_build in
2019*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021echo "$as_me: error: invalid value of canonical build" >&2;}
2022 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002023esac
John Criswell7a73b802003-06-30 21:59:07 +00002024build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002025ac_save_IFS=$IFS; IFS='-'
2026set x $ac_cv_build
2027shift
2028build_cpu=$1
2029build_vendor=$2
2030shift; shift
2031# Remember, the first character of IFS is used to create $*,
2032# except with old shells:
2033build_os=$*
2034IFS=$ac_save_IFS
2035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002036
2037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038{ echo "$as_me:$LINENO: checking host system type" >&5
2039echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040if test "${ac_cv_host+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002042else
Reid Spencera773bd52006-08-04 18:18:08 +00002043 if test "x$host_alias" = x; then
2044 ac_cv_host=$ac_cv_build
2045else
2046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002050fi
John Criswell7a73b802003-06-30 21:59:07 +00002051
2052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002053{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002055case $ac_cv_host in
2056*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058echo "$as_me: error: invalid value of canonical host" >&2;}
2059 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002060esac
John Criswell7a73b802003-06-30 21:59:07 +00002061host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002062ac_save_IFS=$IFS; IFS='-'
2063set x $ac_cv_host
2064shift
2065host_cpu=$1
2066host_vendor=$2
2067shift; shift
2068# Remember, the first character of IFS is used to create $*,
2069# except with old shells:
2070host_os=$*
2071IFS=$ac_save_IFS
2072case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002073
2074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075{ echo "$as_me:$LINENO: checking target system type" >&5
2076echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077if test "${ac_cv_target+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002079else
Reid Spencera773bd52006-08-04 18:18:08 +00002080 if test "x$target_alias" = x; then
2081 ac_cv_target=$ac_cv_host
2082else
2083 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002087fi
John Criswell7a73b802003-06-30 21:59:07 +00002088
2089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002092case $ac_cv_target in
2093*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002094*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095echo "$as_me: error: invalid value of canonical target" >&2;}
2096 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002097esac
John Criswell7a73b802003-06-30 21:59:07 +00002098target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002099ac_save_IFS=$IFS; IFS='-'
2100set x $ac_cv_target
2101shift
2102target_cpu=$1
2103target_vendor=$2
2104shift; shift
2105# Remember, the first character of IFS is used to create $*,
2106# except with old shells:
2107target_os=$*
2108IFS=$ac_save_IFS
2109case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002110
2111
2112# The aliases save the names the user supplied, while $host etc.
2113# will get canonicalized.
2114test -n "$target_alias" &&
2115 test "$program_prefix$program_suffix$program_transform_name" = \
2116 NONENONEs,x,x, &&
2117 program_prefix=${target_alias}-
2118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2120echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2121if test "${llvm_cv_os_type+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002123else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002124 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002125 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002126 llvm_cv_link_all_option="-Wl,--whole-archive"
2127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002128 llvm_cv_os_type="AIX"
2129 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002130 *-*-irix*)
2131 llvm_cv_link_all_option="-Wl,--whole-archive"
2132 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2133 llvm_cv_os_type="IRIX"
2134 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002135 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002136 llvm_cv_link_all_option="-Wl,--whole-archive"
2137 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002138 llvm_cv_os_type="Cygwin"
2139 llvm_cv_platform_type="Unix" ;;
2140 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002141 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002142 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002143 llvm_cv_os_type="Darwin"
2144 llvm_cv_platform_type="Unix" ;;
2145 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002146 llvm_cv_link_all_option="-Wl,--whole-archive"
2147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002148 llvm_cv_os_type="FreeBSD"
2149 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002150 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002153 llvm_cv_os_type="OpenBSD"
2154 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002155 *-*-netbsd*)
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="NetBSD"
2159 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002160 *-*-dragonfly*)
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="DragonFly"
2164 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002165 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002168 llvm_cv_os_type="HP-UX"
2169 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002170 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002171 llvm_cv_link_all_option="-Wl,--whole-archive"
2172 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 llvm_cv_os_type="Interix"
2174 llvm_cv_platform_type="Unix" ;;
2175 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002178 llvm_cv_os_type="Linux"
2179 llvm_cv_platform_type="Unix" ;;
2180 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002181 llvm_cv_link_all_option="-Wl,-z,allextract"
2182 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002183 llvm_cv_os_type="SunOS"
2184 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002185 *-*-auroraux*)
2186 llvm_cv_link_all_option="-Wl,-z,allextract"
2187 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2188 llvm_cv_os_type="AuroraUX"
2189 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002190 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002193 llvm_cv_os_type="Win32"
2194 llvm_cv_platform_type="Win32" ;;
2195 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 llvm_cv_os_type="MingW"
2199 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002200 *-*-haiku*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Haiku"
2204 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002205 *-unknown-eabi*)
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Freestanding"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-unknown-elf*)
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Freestanding"
2214 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002216 llvm_cv_link_all_option=""
2217 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 llvm_cv_os_type="Unknown"
2219 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002220esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002222{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2223echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002225{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2226echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2227if test "${llvm_cv_target_os_type+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002229else
2230 case $target in
2231 *-*-aix*)
2232 llvm_cv_target_os_type="AIX" ;;
2233 *-*-irix*)
2234 llvm_cv_target_os_type="IRIX" ;;
2235 *-*-cygwin*)
2236 llvm_cv_target_os_type="Cygwin" ;;
2237 *-*-darwin*)
2238 llvm_cv_target_os_type="Darwin" ;;
2239 *-*-freebsd*)
2240 llvm_cv_target_os_type="FreeBSD" ;;
2241 *-*-openbsd*)
2242 llvm_cv_target_os_type="OpenBSD" ;;
2243 *-*-netbsd*)
2244 llvm_cv_target_os_type="NetBSD" ;;
2245 *-*-dragonfly*)
2246 llvm_cv_target_os_type="DragonFly" ;;
2247 *-*-hpux*)
2248 llvm_cv_target_os_type="HP-UX" ;;
2249 *-*-interix*)
2250 llvm_cv_target_os_type="Interix" ;;
2251 *-*-linux*)
2252 llvm_cv_target_os_type="Linux" ;;
2253 *-*-solaris*)
2254 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002255 *-*-auroraux*)
2256 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002257 *-*-win32*)
2258 llvm_cv_target_os_type="Win32" ;;
2259 *-*-mingw*)
2260 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002261 *-*-haiku*)
2262 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002263 *-unknown-eabi*)
2264 llvm_cv_target_os_type="Freestanding" ;;
2265 *)
2266 llvm_cv_target_os_type="Unknown" ;;
2267esac
2268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002269{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2270echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002271
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2274echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2275 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002276fi
2277
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002279
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002280HOST_OS=$llvm_cv_os_type
2281
2282TARGET_OS=$llvm_cv_target_os_type
2283
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002284
Reid Spencera773bd52006-08-04 18:18:08 +00002285LINKALL=$llvm_cv_link_all_option
2286
2287NOLINKALL=$llvm_cv_no_link_all_option
2288
2289
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290case $llvm_cv_platform_type in
2291 Unix)
2292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293cat >>confdefs.h <<\_ACEOF
2294#define LLVM_ON_UNIX 1
2295_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002297 LLVM_ON_UNIX=1
2298
2299 LLVM_ON_WIN32=0
2300
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 ;;
2302 Win32)
2303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304cat >>confdefs.h <<\_ACEOF
2305#define LLVM_ON_WIN32 1
2306_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002308 LLVM_ON_UNIX=0
2309
2310 LLVM_ON_WIN32=1
2311
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 ;;
2313esac
2314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002315{ echo "$as_me:$LINENO: checking target architecture" >&5
2316echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2317if test "${llvm_cv_target_arch+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002319else
2320 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002321 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002322 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002323 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2324 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002325 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002326 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002327 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002328 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002329 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002330 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002331 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002332 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00002333 microblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002334 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002335esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2338echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002339
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2342echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002343fi
John Criswell76595452003-07-01 22:07:39 +00002344
Nick Lewycky83fc4472009-09-29 05:48:51 +00002345# Determine the LLVM native architecture for the target
2346case "$llvm_cv_target_arch" in
2347 x86) LLVM_NATIVE_ARCH="X86" ;;
2348 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2349 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2350esac
2351
2352ARCH=$llvm_cv_target_arch
2353
2354
2355ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356ac_cpp='$CPP $CPPFLAGS'
2357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002360if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2362set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365if test "${ac_cv_prog_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367else
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 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 +00002378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380 break 2
2381 fi
2382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383done
Reid Spencera773bd52006-08-04 18:18:08 +00002384IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002385
2386fi
2387fi
2388CC=$ac_cv_prog_CC
2389if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002390 { echo "$as_me:$LINENO: result: $CC" >&5
2391echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002393 { echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395fi
2396
Reid Spencera773bd52006-08-04 18:18:08 +00002397
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398fi
2399if test -z "$ac_cv_prog_CC"; then
2400 ac_ct_CC=$CC
2401 # Extract the first word of "gcc", so it can be a program name with args.
2402set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407else
2408 if test -n "$ac_ct_CC"; then
2409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410else
2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 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 +00002418 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 break 2
2421 fi
2422done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423done
Reid Spencera773bd52006-08-04 18:18:08 +00002424IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425
2426fi
2427fi
2428ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002430 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433 { echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435fi
2436
Reid Spencera773bd52006-08-04 18:18:08 +00002437 if test "x$ac_ct_CC" = x; then
2438 CC=""
2439 else
2440 case $cross_compiling:$ac_tool_warned in
2441yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443whose name does not start with the host triplet. If you think this
2444configuration is useful to you, please write to autoconf@gnu.org." >&5
2445echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446whose name does not start with the host triplet. If you think this
2447configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002448ac_tool_warned=yes ;;
2449esac
2450 CC=$ac_ct_CC
2451 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452else
2453 CC="$ac_cv_prog_CC"
2454fi
2455
2456if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002457 if test -n "$ac_tool_prefix"; then
2458 # 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 +00002459set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 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 +00002475 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477 break 2
2478 fi
2479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002480done
Reid Spencera773bd52006-08-04 18:18:08 +00002481IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482
2483fi
2484fi
2485CC=$ac_cv_prog_CC
2486if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002487 { echo "$as_me:$LINENO: result: $CC" >&5
2488echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002490 { echo "$as_me:$LINENO: result: no" >&5
2491echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492fi
2493
Reid Spencera773bd52006-08-04 18:18:08 +00002494
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496fi
2497if test -z "$CC"; then
2498 # Extract the first word of "cc", so it can be a program name with args.
2499set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502if test "${ac_cv_prog_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504else
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2507else
2508 ac_prog_rejected=no
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 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 +00002516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517 ac_prog_rejected=yes
2518 continue
2519 fi
2520 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522 break 2
2523 fi
2524done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002525done
Reid Spencera773bd52006-08-04 18:18:08 +00002526IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527
2528if test $ac_prog_rejected = yes; then
2529 # We found a bogon in the path, so make sure we never use it.
2530 set dummy $ac_cv_prog_CC
2531 shift
2532 if test $# != 0; then
2533 # We chose a different compiler from the bogus one.
2534 # However, it has the same basename, so the bogon will be chosen
2535 # first if we set CC to just the basename; use the full file name.
2536 shift
2537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538 fi
2539fi
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 { echo "$as_me:$LINENO: result: $CC" >&5
2545echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002547 { echo "$as_me:$LINENO: result: no" >&5
2548echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549fi
2550
Reid Spencera773bd52006-08-04 18:18:08 +00002551
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552fi
2553if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002555 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002556 do
2557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002563else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 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 +00002574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002576 break 2
2577 fi
2578done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579done
Reid Spencera773bd52006-08-04 18:18:08 +00002580IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002581
2582fi
2583fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002586 { echo "$as_me:$LINENO: result: $CC" >&5
2587echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589 { echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002591fi
2592
Reid Spencera773bd52006-08-04 18:18:08 +00002593
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002595 done
2596fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597if test -z "$CC"; then
2598 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002599 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002600do
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002607else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 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 +00002618 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002620 break 2
2621 fi
2622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623done
Reid Spencera773bd52006-08-04 18:18:08 +00002624IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002625
2626fi
2627fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002630 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633 { echo "$as_me:$LINENO: result: no" >&5
2634echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002635fi
2636
Reid Spencera773bd52006-08-04 18:18:08 +00002637
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002639done
John Criswell7a73b802003-06-30 21:59:07 +00002640
Reid Spencera773bd52006-08-04 18:18:08 +00002641 if test "x$ac_ct_CC" = x; then
2642 CC=""
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002646{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647whose name does not start with the host triplet. If you think this
2648configuration is useful to you, please write to autoconf@gnu.org." >&5
2649echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650whose name does not start with the host triplet. If you think this
2651configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002652ac_tool_warned=yes ;;
2653esac
2654 CC=$ac_ct_CC
2655 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656fi
2657
John Criswell7a73b802003-06-30 21:59:07 +00002658fi
2659
2660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2662See \`config.log' for more details." >&5
2663echo "$as_me: error: no acceptable C compiler found in \$PATH
2664See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666
John Criswell7a73b802003-06-30 21:59:07 +00002667# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002668echo "$as_me:$LINENO: checking for C compiler version" >&5
2669ac_compiler=`set X $ac_compile; echo $2`
2670{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002671case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002677 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2680{ (ac_try="$ac_compiler -v >&5"
2681case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684esac
2685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_compiler -v >&5") 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }
2690{ (ac_try="$ac_compiler -V >&5"
2691case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694esac
2695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compiler -V >&5") 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002701cat >conftest.$ac_ext <<_ACEOF
2702/* confdefs.h. */
2703_ACEOF
2704cat confdefs.h >>conftest.$ac_ext
2705cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002707
John Criswell7a73b802003-06-30 21:59:07 +00002708int
2709main ()
2710{
2711
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002717ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002718# Try to create an executable without -o first, disregard a.out.
2719# It will help us diagnose broken compilers, and finding out an intuition
2720# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002721{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2722echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2723ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724#
2725# List of possible output files, starting from the most likely.
2726# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2727# only as a last resort. b.out is created by i960 compilers.
2728ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729#
2730# The IRIX 6 linker writes into existing files which may not be
2731# executable, retaining their permissions. Remove them first so a
2732# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002733ac_rmfiles=
2734for ac_file in $ac_files
2735do
2736 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 esac
2740done
2741rm -f $ac_rmfiles
2742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002749 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002750 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755# in a Makefile. We should not override ac_cv_exeext if it was cached,
2756# so that the user can short-circuit this test for compilers unknown to
2757# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002759do
2760 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002761 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002763 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002764 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002765 # We found the default executable, but exeext='' is most
2766 # certainly right.
2767 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002768 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002770 then :; else
2771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 fi
2773 # We set ac_cv_exeext here because the later test for it is not
2774 # safe: cross compilers may not add the suffix if given an `-o'
2775 # argument, so we may need to know it at that point already.
2776 # Even if this section looks crufty: it has the advantage of
2777 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002778 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002779 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002780 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002781 esac
2782done
Reid Spencera773bd52006-08-04 18:18:08 +00002783test "$ac_cv_exeext" = no && ac_cv_exeext=
2784
John Criswell7a73b802003-06-30 21:59:07 +00002785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002787sed 's/^/| /' conftest.$ac_ext >&5
2788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002789{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2790See \`config.log' for more details." >&5
2791echo "$as_me: error: C compiler cannot create executables
2792See \`config.log' for more details." >&2;}
2793 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002794fi
John Criswell7a73b802003-06-30 21:59:07 +00002795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796ac_exeext=$ac_cv_exeext
2797{ echo "$as_me:$LINENO: result: $ac_file" >&5
2798echo "${ECHO_T}$ac_file" >&6; }
2799
2800# Check that the compiler produces executables we can run. If not, either
2801# the compiler is broken, or we cross compile.
2802{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2803echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2804# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2805# If not cross compiling, check that we can run a simple program.
2806if test "$cross_compiling" != yes; then
2807 if { ac_try='./$ac_file'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 cross_compiling=no
2818 else
2819 if test "$cross_compiling" = maybe; then
2820 cross_compiling=yes
2821 else
2822 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2823If you meant to cross compile, use \`--host'.
2824See \`config.log' for more details." >&5
2825echo "$as_me: error: cannot run C compiled programs.
2826If you meant to cross compile, use \`--host'.
2827See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }
2829 fi
2830 fi
2831fi
2832{ echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6; }
2834
2835rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002836ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837# Check that the compiler produces executables we can run. If not, either
2838# the compiler is broken, or we cross compile.
2839{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2840echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2841{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2842echo "${ECHO_T}$cross_compiling" >&6; }
2843
2844{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2845echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2846if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002847case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002852 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002853 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2858# work properly (i.e., refer to `conftest.exe'), while it won't with
2859# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002860for ac_file in conftest.exe conftest conftest.*; do
2861 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002862 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002865 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002866 * ) break;;
2867 esac
2868done
2869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002870 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2871See \`config.log' for more details." >&5
2872echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2873See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002876
2877rm -f conftest$ac_cv_exeext
2878{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2879echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002880
2881rm -f conftest.$ac_ext
2882EXEEXT=$ac_cv_exeext
2883ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002884{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2886if test "${ac_cv_objext+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002889 cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002895
John Criswell7a73b802003-06-30 21:59:07 +00002896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002905if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002911 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002912 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002915 for ac_file in conftest.o conftest.obj conftest.*; do
2916 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002917 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920 break;;
2921 esac
2922done
2923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002925sed 's/^/| /' conftest.$ac_ext >&5
2926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002927{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2928See \`config.log' for more details." >&5
2929echo "$as_me: error: cannot compute suffix of object files: cannot compile
2930See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933
John Criswell7a73b802003-06-30 21:59:07 +00002934rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002936{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2937echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002938OBJEXT=$ac_cv_objext
2939ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2941echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2942if test "${ac_cv_c_compiler_gnu+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002945 cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002951
John Criswell7a73b802003-06-30 21:59:07 +00002952int
2953main ()
2954{
2955#ifndef __GNUC__
2956 choke me
2957#endif
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963rm -f conftest.$ac_objext
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002997 ac_compiler_gnu=yes
2998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999 echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003004
Reid Spencera773bd52006-08-04 18:18:08 +00003005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003006ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003007
3008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003009{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3010echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3011GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003012ac_test_CFLAGS=${CFLAGS+set}
3013ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003014{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3015echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3016if test "${ac_cv_prog_cc_g+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003018else
Reid Spencera773bd52006-08-04 18:18:08 +00003019 ac_save_c_werror_flag=$ac_c_werror_flag
3020 ac_c_werror_flag=yes
3021 ac_cv_prog_cc_g=no
3022 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003029
John Criswell7a73b802003-06-30 21:59:07 +00003030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003038rm -f conftest.$ac_objext
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003072 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 CFLAGS=""
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003083/* end confdefs.h. */
3084
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093rm -f conftest.$ac_objext
3094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 :
Torok Edwin871384f2010-01-26 08:50:50 +00003128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003129 echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003133 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003134 cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003139/* end confdefs.h. */
3140
3141int
3142main ()
3143{
3144
3145 ;
3146 return 0;
3147}
3148_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003149rm -f conftest.$ac_objext
3150if { (ac_try="$ac_compile"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003183 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188
John Criswell7a73b802003-06-30 21:59:07 +00003189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003190
Reid Spencera773bd52006-08-04 18:18:08 +00003191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003193
Reid Spencera773bd52006-08-04 18:18:08 +00003194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003196
Reid Spencera773bd52006-08-04 18:18:08 +00003197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_c_werror_flag=$ac_save_c_werror_flag
3199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003202if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS=$ac_save_CFLAGS
3204elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3206 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003207 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003209 fi
3210else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211 if test "$GCC" = yes; then
3212 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003213 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003215 fi
3216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3218echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3219if test "${ac_cv_prog_cc_c89+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221else
Reid Spencera773bd52006-08-04 18:18:08 +00003222 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003223ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229/* end confdefs.h. */
3230#include <stdarg.h>
3231#include <stdio.h>
3232#include <sys/types.h>
3233#include <sys/stat.h>
3234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3235struct buf { int x; };
3236FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237static char *e (p, i)
3238 char **p;
3239 int i;
3240{
3241 return p[i];
3242}
3243static char *f (char * (*g) (char **, int), char **p, ...)
3244{
3245 char *s;
3246 va_list v;
3247 va_start (v,p);
3248 s = g (p, va_arg (v,int));
3249 va_end (v);
3250 return s;
3251}
3252
3253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3254 function prototypes and stuff, but not '\xHH' hex character constants.
3255 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003256 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3258 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003259 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261
Reid Spencera773bd52006-08-04 18:18:08 +00003262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263 inside strings and character constants. */
3264#define FOO(x) 'x'
3265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267int test (int i, double x);
3268struct s1 {int (*f) (int a);};
3269struct s2 {int (*f) (double a);};
3270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271int argc;
3272char **argv;
3273int
3274main ()
3275{
3276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 ;
3278 return 0;
3279}
3280_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283do
3284 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003285 rm -f conftest.$ac_objext
3286if { (ac_try="$ac_compile"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313esac
3314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003319 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003320else
3321 echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003326
Reid Spencera773bd52006-08-04 18:18:08 +00003327rm -f core conftest.err conftest.$ac_objext
3328 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329done
Reid Spencera773bd52006-08-04 18:18:08 +00003330rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331CC=$ac_save_CC
3332
3333fi
Reid Spencera773bd52006-08-04 18:18:08 +00003334# AC_CACHE_VAL
3335case "x$ac_cv_prog_cc_c89" in
3336 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003337 { echo "$as_me:$LINENO: result: none needed" >&5
3338echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003339 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003340 { echo "$as_me:$LINENO: result: unsupported" >&5
3341echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003343 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3345echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346esac
3347
John Criswell0c38eaf2003-09-10 15:17:25 +00003348
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
3355
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003361{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3362echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363# On Suns, sometimes $CPP names a directory.
3364if test -n "$CPP" && test -d "$CPP"; then
3365 CPP=
3366fi
3367if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368 if test "${ac_cv_prog_CPP+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370else
3371 # Double quotes because CPP needs to be expanded
3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373 do
3374 ac_preproc_ok=false
3375for ac_c_preproc_warn_flag in '' yes
3376do
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380 # <limits.h> exists even on freestanding compilers.
3381 # On the NeXT, cc -E runs the code through the compiler's parser,
3382 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003383 cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h. */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388/* end confdefs.h. */
3389#ifdef __STDC__
3390# include <limits.h>
3391#else
3392# include <assert.h>
3393#endif
3394 Syntax error
3395_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003396if { (ac_try="$ac_cpp conftest.$ac_ext"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
3411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 else
3413 ac_cpp_err=
3414 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 ac_cpp_err=yes
3417fi
3418if test -z "$ac_cpp_err"; then
3419 :
3420else
3421 echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424 # Broken: fails on valid input.
3425continue
3426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428rm -f conftest.err conftest.$ac_ext
3429
Reid Spencera773bd52006-08-04 18:18:08 +00003430 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432 cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437/* end confdefs.h. */
3438#include <ac_nonexistent.h>
3439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440if { (ac_try="$ac_cpp conftest.$ac_ext"
3441case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 else
3457 ac_cpp_err=
3458 fi
3459else
3460 ac_cpp_err=yes
3461fi
3462if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463 # Broken: success on invalid input.
3464continue
3465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003466 echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469 # Passes both tests.
3470ac_preproc_ok=:
3471break
3472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003473
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003474rm -f conftest.err conftest.$ac_ext
3475
3476done
3477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3478rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003479if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 break
3481fi
3482
3483 done
3484 ac_cv_prog_CPP=$CPP
3485
3486fi
3487 CPP=$ac_cv_prog_CPP
3488else
3489 ac_cv_prog_CPP=$CPP
3490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003491{ echo "$as_me:$LINENO: result: $CPP" >&5
3492echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493ac_preproc_ok=false
3494for ac_c_preproc_warn_flag in '' yes
3495do
3496 # Use a header file that comes with gcc, so configuring glibc
3497 # with a fresh cross-compiler works.
3498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499 # <limits.h> exists even on freestanding compilers.
3500 # On the NeXT, cc -E runs the code through the compiler's parser,
3501 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507/* end confdefs.h. */
3508#ifdef __STDC__
3509# include <limits.h>
3510#else
3511# include <assert.h>
3512#endif
3513 Syntax error
3514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003515if { (ac_try="$ac_cpp conftest.$ac_ext"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3533 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003535 ac_cpp_err=yes
3536fi
3537if test -z "$ac_cpp_err"; then
3538 :
3539else
3540 echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003543 # Broken: fails on valid input.
3544continue
3545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003546
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003547rm -f conftest.err conftest.$ac_ext
3548
Reid Spencera773bd52006-08-04 18:18:08 +00003549 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003550 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003551 cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003556/* end confdefs.h. */
3557#include <ac_nonexistent.h>
3558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003559if { (ac_try="$ac_cpp conftest.$ac_ext"
3560case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563esac
3564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 ac_status=$?
3567 grep -v '^ *+' conftest.er1 >conftest.err
3568 rm -f conftest.er1
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } >/dev/null; then
3572 if test -s conftest.err; then
3573 ac_cpp_err=$ac_c_preproc_warn_flag
3574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575 else
3576 ac_cpp_err=
3577 fi
3578else
3579 ac_cpp_err=yes
3580fi
3581if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 # Broken: success on invalid input.
3583continue
3584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003585 echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 # Passes both tests.
3589ac_preproc_ok=:
3590break
3591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003592
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593rm -f conftest.err conftest.$ac_ext
3594
3595done
3596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003598if $ac_preproc_ok; then
3599 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3602See \`config.log' for more details." >&5
3603echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3604See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003606fi
3607
John Criswell7a73b802003-06-30 21:59:07 +00003608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
John Criswell7a73b802003-06-30 21:59:07 +00003614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003615{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617if test "${ac_cv_path_GREP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003620 # Extract the first word of "grep ggrep" to use in msg output
3621if test -z "$GREP"; then
3622set dummy grep ggrep; ac_prog_name=$2
3623if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
Reid Spencera773bd52006-08-04 18:18:08 +00003626 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003627# Loop through the user's path and test for each of PROGNAME-LIST
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003630do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003633 for ac_prog in grep ggrep; do
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003638 # Check for GNU $ac_path_GREP
3639case `"$ac_path_GREP" --version 2>&1` in
3640*GNU*)
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642*)
3643 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003644 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003645 while :
3646 do
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003653 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003658 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3661 done
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663esac
3664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003665
3666 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003667 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003668done
3669
3670done
Reid Spencera773bd52006-08-04 18:18:08 +00003671IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003672
3673
3674fi
3675
3676GREP="$ac_cv_path_GREP"
3677if test -z "$GREP"; then
3678 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3679echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3680 { (exit 1); exit 1; }; }
3681fi
3682
Reid Spencera773bd52006-08-04 18:18:08 +00003683else
3684 ac_cv_path_GREP=$GREP
3685fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003687
Reid Spencera773bd52006-08-04 18:18:08 +00003688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003689{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3690echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003691 GREP="$ac_cv_path_GREP"
3692
3693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003694{ echo "$as_me:$LINENO: checking for egrep" >&5
3695echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3696if test "${ac_cv_path_EGREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003698else
3699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3700 then ac_cv_path_EGREP="$GREP -E"
3701 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702 # Extract the first word of "egrep" to use in msg output
3703if test -z "$EGREP"; then
3704set dummy egrep; ac_prog_name=$2
3705if test "${ac_cv_path_EGREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
Reid Spencera773bd52006-08-04 18:18:08 +00003708 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003709# Loop through the user's path and test for each of PROGNAME-LIST
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003711for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003715 for ac_prog in egrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3719 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003720 # Check for GNU $ac_path_EGREP
3721case `"$ac_path_EGREP" --version 2>&1` in
3722*GNU*)
3723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3724*)
3725 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003727 while :
3728 do
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003735 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_EGREP="$ac_path_EGREP"
3739 ac_path_EGREP_max=$ac_count
3740 fi
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3743 done
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745esac
3746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747
3748 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003749 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003750done
3751
3752done
Reid Spencera773bd52006-08-04 18:18:08 +00003753IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003754
3755
3756fi
3757
3758EGREP="$ac_cv_path_EGREP"
3759if test -z "$EGREP"; then
3760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762 { (exit 1); exit 1; }; }
3763fi
3764
Reid Spencera773bd52006-08-04 18:18:08 +00003765else
3766 ac_cv_path_EGREP=$EGREP
3767fi
3768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769
Reid Spencera773bd52006-08-04 18:18:08 +00003770 fi
3771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003772{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3773echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003774 EGREP="$ac_cv_path_EGREP"
3775
3776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3779if test "${ac_cv_header_stdc+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003782 cat >conftest.$ac_ext <<_ACEOF
3783/* confdefs.h. */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003788#include <stdlib.h>
3789#include <stdarg.h>
3790#include <string.h>
3791#include <float.h>
3792
John Criswell0c38eaf2003-09-10 15:17:25 +00003793int
3794main ()
3795{
3796
3797 ;
3798 return 0;
3799}
John Criswell7a73b802003-06-30 21:59:07 +00003800_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801rm -f conftest.$ac_objext
3802if { (ac_try="$ac_compile"
3803case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
3807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_compile") 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 { (case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819esac
3820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_try") 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; } &&
3825 { ac_try='test -s conftest.$ac_objext'
3826 { (case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_try") 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003835 ac_cv_header_stdc=yes
3836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003837 echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003842
Reid Spencera773bd52006-08-04 18:18:08 +00003843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003844
3845if test $ac_cv_header_stdc = yes; then
3846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003847 cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003853#include <string.h>
3854
3855_ACEOF
3856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003857 $EGREP "memchr" >/dev/null 2>&1; then
3858 :
John Criswell7a73b802003-06-30 21:59:07 +00003859else
3860 ac_cv_header_stdc=no
3861fi
3862rm -f conftest*
3863
3864fi
3865
3866if test $ac_cv_header_stdc = yes; then
3867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003868 cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h. */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003874#include <stdlib.h>
3875
3876_ACEOF
3877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878 $EGREP "free" >/dev/null 2>&1; then
3879 :
John Criswell7a73b802003-06-30 21:59:07 +00003880else
3881 ac_cv_header_stdc=no
3882fi
3883rm -f conftest*
3884
3885fi
3886
3887if test $ac_cv_header_stdc = yes; then
3888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003889 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003890 :
3891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003892 cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003898#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003899#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003900#if ((' ' & 0x0FF) == 0x020)
3901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3903#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003904# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003905 (('a' <= (c) && (c) <= 'i') \
3906 || ('j' <= (c) && (c) <= 'r') \
3907 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3909#endif
3910
3911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3912int
3913main ()
3914{
3915 int i;
3916 for (i = 0; i < 256; i++)
3917 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003918 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003919 return 2;
3920 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003921}
3922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923rm -f conftest$ac_exeext
3924if { (ac_try="$ac_link"
3925case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928esac
3929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_link") 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3934 { (case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937esac
3938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_try") 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 :
John Criswell7a73b802003-06-30 21:59:07 +00003944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 echo "$as_me: program exited with status $ac_status" >&5
3946echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949( exit $ac_status )
3950ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952rm -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 +00003953fi
3954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955
John Criswell7a73b802003-06-30 21:59:07 +00003956fi
3957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3959echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003960if test $ac_cv_header_stdc = yes; then
3961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962cat >>confdefs.h <<\_ACEOF
3963#define STDC_HEADERS 1
3964_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003965
3966fi
3967
Reid Spencera773bd52006-08-04 18:18:08 +00003968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969
3970
3971
3972
3973
3974
3975
3976
3977
Reid Spencera773bd52006-08-04 18:18:08 +00003978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980do
3981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
3993$ac_includes_default
3994
3995#include <$ac_header>
3996_ACEOF
3997rm -f conftest.$ac_objext
3998if { (ac_try="$ac_compile"
3999case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compile") 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4012 { (case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015esac
4016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_try") 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025esac
4026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 eval "$as_ac_Header=yes"
4032else
4033 echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 eval "$as_ac_Header=no"
4037fi
4038
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040fi
4041ac_res=`eval echo '${'$as_ac_Header'}'`
4042 { echo "$as_me:$LINENO: result: $ac_res" >&5
4043echo "${ECHO_T}$ac_res" >&6; }
4044if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004047_ACEOF
4048
4049fi
4050
4051done
4052
4053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004054{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4055echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4056if test "${ac_cv_c_bigendian+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059 # See if sys/param.h defines the BYTE_ORDER macro.
4060cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004062_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004065/* end confdefs.h. */
4066#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004068
4069int
4070main ()
4071{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4073 bogus endian macros
4074#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004075
4076 ;
4077 return 0;
4078}
4079_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080rm -f conftest.$ac_objext
4081if { (ac_try="$ac_compile"
4082case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098esac
4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_try") 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_try") 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004114 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004115cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004120/* end confdefs.h. */
4121#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004122#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004123
4124int
4125main ()
4126{
4127#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004128 not big endian
4129#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004130
4131 ;
4132 return 0;
4133}
4134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004169 ac_cv_c_bigendian=yes
4170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004174 ac_cv_c_bigendian=no
4175fi
4176
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178else
4179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 # It does not; compile a test program.
4183if test "$cross_compiling" = yes; then
4184 # try to guess the endianness by grepping values into an object file
4185 ac_cv_c_bigendian=unknown
4186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4193short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4194void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4195short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4196short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4197void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004198int
4199main ()
4200{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004202 ;
4203 return 0;
4204}
4205_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004206rm -f conftest.$ac_objext
4207if { (ac_try="$ac_compile"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004241 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004242fi
4243if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4244 if test "$ac_cv_c_bigendian" = unknown; then
4245 ac_cv_c_bigendian=no
4246 else
4247 # finding both strings is unlikely to happen, but who knows?
4248 ac_cv_c_bigendian=unknown
4249 fi
4250fi
Reid Spencera773bd52006-08-04 18:18:08 +00004251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252 echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255
Torok Edwin871384f2010-01-26 08:50:50 +00004256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257
Reid Spencera773bd52006-08-04 18:18:08 +00004258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004265/* end confdefs.h. */
4266$ac_includes_default
4267int
4268main ()
4269{
4270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271 /* Are we little or big endian? From Harbison&Steele. */
4272 union
4273 {
4274 long int l;
4275 char c[sizeof (long int)];
4276 } u;
4277 u.l = 1;
4278 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004279
4280 ;
4281 return 0;
4282}
4283_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284rm -f conftest$ac_exeext
4285if { (ac_try="$ac_link"
4286case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_link") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004304 ac_cv_c_bigendian=no
4305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004306 echo "$as_me: program exited with status $ac_status" >&5
4307echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310( exit $ac_status )
4311ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004313rm -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 +00004314fi
4315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316
Reid Spencera773bd52006-08-04 18:18:08 +00004317fi
4318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320fi
4321{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4322echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4323case $ac_cv_c_bigendian in
4324 yes)
4325 ENDIAN=big
4326 ;;
4327 no)
4328 ENDIAN=little
4329 ;;
4330 *)
4331 { { echo "$as_me:$LINENO: error: unknown endianness
4332presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4333echo "$as_me: error: unknown endianness
4334presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4335 { (exit 1); exit 1; }; } ;;
4336esac
Reid Spencera773bd52006-08-04 18:18:08 +00004337
4338
4339if test "$cross_compiling" = yes; then
4340 LLVM_CROSS_COMPILING=1
4341
4342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4344echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4345if test "${ac_cv_build_exeext+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004347else
4348 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4349 ac_cv_build_exeext=.exe
4350else
4351 ac_build_prefix=${build_alias}-
4352
4353 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4354set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004359else
4360 if test -n "$BUILD_CC"; then
4361 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 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 +00004370 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004372 break 2
4373 fi
4374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375done
Reid Spencera773bd52006-08-04 18:18:08 +00004376IFS=$as_save_IFS
4377
4378fi
4379fi
4380BUILD_CC=$ac_cv_prog_BUILD_CC
4381if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004382 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4383echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385 { echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004387fi
4388
4389
4390 if test -z "$BUILD_CC"; then
4391 # Extract the first word of "gcc", so it can be a program name with args.
4392set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004397else
4398 if test -n "$BUILD_CC"; then
4399 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 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 +00004408 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004410 break 2
4411 fi
4412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413done
Reid Spencera773bd52006-08-04 18:18:08 +00004414IFS=$as_save_IFS
4415
4416fi
4417fi
4418BUILD_CC=$ac_cv_prog_BUILD_CC
4419if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004420 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4421echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423 { echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004425fi
4426
4427
4428 if test -z "$BUILD_CC"; then
4429 # Extract the first word of "cc", so it can be a program name with args.
4430set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004435else
4436 if test -n "$BUILD_CC"; then
4437 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438else
4439 ac_prog_rejected=no
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 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 +00004447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4448 ac_prog_rejected=yes
4449 continue
4450 fi
4451 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004453 break 2
4454 fi
4455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004456done
Reid Spencera773bd52006-08-04 18:18:08 +00004457IFS=$as_save_IFS
4458
4459if test $ac_prog_rejected = yes; then
4460 # We found a bogon in the path, so make sure we never use it.
4461 set dummy $ac_cv_prog_BUILD_CC
4462 shift
4463 if test $# != 0; then
4464 # We chose a different compiler from the bogus one.
4465 # However, it has the same basename, so the bogon will be chosen
4466 # first if we set BUILD_CC to just the basename; use the full file name.
4467 shift
4468 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4469 fi
4470fi
4471fi
4472fi
4473BUILD_CC=$ac_cv_prog_BUILD_CC
4474if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4476echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004478 { echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004480fi
4481
4482
4483 fi
4484 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4486echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4487 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004488 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4489 rm -f conftest*
4490 echo 'int main () { return 0; }' > conftest.$ac_ext
4491 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004493 (eval $ac_build_link) 2>&5
4494 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004497 for file in conftest.*; do
4498 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004499 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004500 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4501 esac
4502 done
4503 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4505echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4506 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004507 fi
4508 rm -f conftest*
4509 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4510fi
4511fi
4512
4513BUILD_EXEEXT=""
4514test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4516echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004517ac_build_exeext=$BUILD_EXEEXT
4518
Jim Grosbach673612e2008-10-02 22:56:44 +00004519 ac_build_prefix=${build_alias}-
4520 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4521set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004526else
4527 if test -n "$BUILD_CXX"; then
4528 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4529else
4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH
4532do
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 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 +00004537 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004539 break 2
4540 fi
4541done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004542done
Jim Grosbach673612e2008-10-02 22:56:44 +00004543IFS=$as_save_IFS
4544
4545fi
4546fi
4547BUILD_CXX=$ac_cv_prog_BUILD_CXX
4548if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4550echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552 { echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004554fi
4555
4556
4557 if test -z "$BUILD_CXX"; then
4558 # Extract the first word of "g++", so it can be a program name with args.
4559set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004564else
4565 if test -n "$BUILD_CXX"; then
4566 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 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 +00004575 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004577 break 2
4578 fi
4579done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580done
Jim Grosbach673612e2008-10-02 22:56:44 +00004581IFS=$as_save_IFS
4582
4583fi
4584fi
4585BUILD_CXX=$ac_cv_prog_BUILD_CXX
4586if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4588echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590 { echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004592fi
4593
4594
4595 if test -z "$BUILD_CXX"; then
4596 # Extract the first word of "c++", so it can be a program name with args.
4597set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004602else
4603 if test -n "$BUILD_CXX"; then
4604 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605else
4606 ac_prog_rejected=no
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 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 +00004614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4615 ac_prog_rejected=yes
4616 continue
4617 fi
4618 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004620 break 2
4621 fi
4622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623done
Jim Grosbach673612e2008-10-02 22:56:44 +00004624IFS=$as_save_IFS
4625
4626if test $ac_prog_rejected = yes; then
4627 # We found a bogon in the path, so make sure we never use it.
4628 set dummy $ac_cv_prog_BUILD_CXX
4629 shift
4630 if test $# != 0; then
4631 # We chose a different compiler from the bogus one.
4632 # However, it has the same basename, so the bogon will be chosen
4633 # first if we set BUILD_CXX to just the basename; use the full file name.
4634 shift
4635 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4636 fi
4637fi
4638fi
4639fi
4640BUILD_CXX=$ac_cv_prog_BUILD_CXX
4641if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4643echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645 { echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004647fi
4648
4649
4650 fi
4651 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004652else
4653 LLVM_CROSS_COMPILING=0
4654
4655fi
4656
Nick Lewycky5b28f862009-04-10 05:18:27 +00004657if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004658 cvsbuild="yes"
4659 optimize="no"
4660 CVSBUILD=CVSBUILD=1
4661
4662else
4663 cvsbuild="no"
4664 optimize="yes"
4665fi
4666
4667
4668# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004670 enableval=$enable_optimized;
4671else
4672 enableval=$optimize
4673fi
4674
4675if test ${enableval} = "no" ; then
4676 ENABLE_OPTIMIZED=
4677
4678else
4679 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4680
4681fi
4682
David Greene2a5a12c2009-04-17 14:50:39 +00004683# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004685 enableval=$enable_profiling;
4686else
4687 enableval="no"
4688fi
4689
4690if test ${enableval} = "no" ; then
4691 ENABLE_PROFILING=
4692
4693else
4694 ENABLE_PROFILING=ENABLE_PROFILING=1
4695
4696fi
4697
Reid Spencera773bd52006-08-04 18:18:08 +00004698# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004700 enableval=$enable_assertions;
4701else
4702 enableval="yes"
4703fi
4704
4705if test ${enableval} = "yes" ; then
4706 DISABLE_ASSERTIONS=
4707
4708else
4709 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4710
4711fi
4712
David Greenea696d242007-06-28 19:36:08 +00004713# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004715 enableval=$enable_expensive_checks;
4716else
4717 enableval="no"
4718fi
4719
4720if test ${enableval} = "yes" ; then
4721 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4722
4723 EXPENSIVE_CHECKS=yes
4724
4725else
4726 ENABLE_EXPENSIVE_CHECKS=
4727
4728 EXPENSIVE_CHECKS=no
4729
4730fi
4731
Reid Spencer8b2e1412006-11-17 03:32:33 +00004732# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004734 enableval=$enable_debug_runtime;
4735else
4736 enableval=no
4737fi
4738
4739if test ${enableval} = "no" ; then
4740 DEBUG_RUNTIME=
4741
4742else
4743 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4744
4745fi
4746
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004747# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004749 enableval=$enable_debug_symbols;
4750else
4751 enableval=no
4752fi
4753
4754if test ${enableval} = "no" ; then
4755 DEBUG_SYMBOLS=
4756
4757else
4758 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4759
4760fi
4761
Reid Spencera773bd52006-08-04 18:18:08 +00004762# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004764 enableval=$enable_jit;
4765else
4766 enableval=default
4767fi
4768
4769if test ${enableval} = "no"
4770then
4771 JIT=
4772
4773else
4774 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004775 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004776 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004777 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004778 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004779 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004780 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004781 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004782 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004783 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004784 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004785 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004786 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004787 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004788 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004789 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004790 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004791 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004792 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004793 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004794 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004795 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004796 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004797 Blackfin) TARGET_HAS_JIT=0
4798 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004799 MBlaze) TARGET_HAS_JIT=0
4800 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004801 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004802 ;;
4803 esac
4804fi
4805
4806# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004808 enableval=$enable_doxygen;
4809else
4810 enableval=default
4811fi
4812
4813case "$enableval" in
4814 yes) ENABLE_DOXYGEN=1
4815 ;;
4816 no) ENABLE_DOXYGEN=0
4817 ;;
4818 default) ENABLE_DOXYGEN=0
4819 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004820 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4821echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4822 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004823esac
4824
4825# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004826if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004827 enableval=$enable_threads;
4828else
Reid Spencer65c5d752006-11-05 17:08:18 +00004829 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004830fi
4831
4832case "$enableval" in
4833 yes) ENABLE_THREADS=1
4834 ;;
4835 no) ENABLE_THREADS=0
4836 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004837 default) ENABLE_THREADS=1
4838 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4840echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004842esac
4843
Owen Andersona8603702009-05-19 22:18:56 +00004844cat >>confdefs.h <<_ACEOF
4845#define ENABLE_THREADS $ENABLE_THREADS
4846_ACEOF
4847
4848
Reid Spencer89b0d992006-12-16 22:07:52 +00004849# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004851 enableval=$enable_pic;
4852else
4853 enableval=default
4854fi
4855
4856case "$enableval" in
4857 yes) ENABLE_PIC=1
4858 ;;
4859 no) ENABLE_PIC=0
4860 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004861 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004862 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4864echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004866esac
4867
4868cat >>confdefs.h <<_ACEOF
4869#define ENABLE_PIC $ENABLE_PIC
4870_ACEOF
4871
4872
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +00004873# Check whether --enable-shared was given.
4874if test "${enable_shared+set}" = set; then
4875 enableval=$enable_shared;
4876else
4877 enableval=default
4878fi
4879
4880case "$enableval" in
4881 yes) ENABLE_SHARED=1
4882 ;;
4883 no) ENABLE_SHARED=0
4884 ;;
4885 default) ENABLE_SHARED=0
4886 ;;
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4888echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4890esac
4891
Reid Spencera773bd52006-08-04 18:18:08 +00004892TARGETS_TO_BUILD=""
4893# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004895 enableval=$enable_targets;
4896else
4897 enableval=all
4898fi
4899
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004900if test "$enableval" = host-only ; then
4901 enableval=host
4902fi
Reid Spencera773bd52006-08-04 18:18:08 +00004903case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004904 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 +00004905 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4906 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004907 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4908 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4909 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4910 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4911 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4912 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4913 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4914 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4915 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4916 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4917 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4918 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4919 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4920 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4921 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4922 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004923 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004924 host) case "$llvm_cv_target_arch" in
4925 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4926 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4928 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4929 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4930 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4931 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004932 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004933 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4934 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4935 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4936 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004937 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004938 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940echo "$as_me: error: Can not set target to build" >&2;}
4941 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004942 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004943 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004946 esac
4947 done
4948 ;;
4949esac
Reid Spencera773bd52006-08-04 18:18:08 +00004950TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4951
4952
Douglas Gregor0711c302009-06-17 00:43:20 +00004953# Determine whether we are building LLVM support for the native architecture.
4954# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4955for a_target in $TARGETS_TO_BUILD; do
4956 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004957 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004958
4959cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004960#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004961_ACEOF
4962
4963 fi
4964done
4965
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004966# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4967# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004968LLVM_ENUM_TARGETS=""
4969LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004970LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004971LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004972for target_to_build in $TARGETS_TO_BUILD; do
4973 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4974 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4975 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4976 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004977 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4978 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4979 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004980 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4981 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4982 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004983done
4984
4985
4986
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004987
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004988
Reid Spencer65c5d752006-11-05 17:08:18 +00004989# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004990if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004991 enableval=$enable_cbe_printf_a;
4992else
4993 enableval=default
4994fi
4995
4996case "$enableval" in
4997 yes) ENABLE_CBE_PRINTF_A=1
4998 ;;
4999 no) ENABLE_CBE_PRINTF_A=0
5000 ;;
5001 default) ENABLE_CBE_PRINTF_A=1
5002 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005003 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5004echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5005 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005006esac
5007
5008cat >>confdefs.h <<_ACEOF
5009#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5010_ACEOF
5011
5012
Reid Spencera773bd52006-08-04 18:18:08 +00005013
5014# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005015if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005016 withval=$with_llvmgccdir;
5017else
5018 withval=default
5019fi
5020
5021case "$withval" in
5022 default) WITH_LLVMGCCDIR=default ;;
5023 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005024 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5025echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5026 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005027esac
5028
5029
Devang Patel5d28b882007-12-04 22:54:47 +00005030# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005031if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005032 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5033 WITH_LLVMGCCDIR=""
5034fi
5035
5036
5037
5038# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005039if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005040 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5041 WITH_LLVMGCCDIR=""
5042fi
5043
Douglas Gregor01746742009-05-11 18:05:52 +00005044
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005045if test -n "$LLVMGCC"; then
5046 LLVMGCCCOMMAND="$LLVMGCC"
5047fi
5048
5049if test -n "$LLVMGXX"; then
5050 LLVMGXXCOMMAND="$LLVMGXX"
5051fi
Devang Patel5d28b882007-12-04 22:54:47 +00005052
5053if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5055echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5056 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005057fi
5058
5059if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005060 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5061echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5062 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005063fi
5064
5065
Daniel Dunbar98515672010-02-23 10:00:49 +00005066# Check whether --with-clang was given.
5067if test "${with_clang+set}" = set; then
5068 withval=$with_clang;
5069else
5070 with_clang=default
5071fi
5072
5073
5074
5075# Check whether --with-built-clang was given.
5076if test "${with_built_clang+set}" = set; then
5077 withval=$with_built_clang;
5078else
5079 with_built_clang=check
5080fi
5081
5082
5083{ echo "$as_me:$LINENO: checking clang compiler" >&5
5084echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5085WITH_CLANGPATH=""
5086WITH_BUILT_CLANG=0
5087if test "$with_clang" != "default"; then
5088 WITH_CLANGPATH="$with_clang"
5089 if ! test -x "$WITH_CLANGPATH"; then
5090 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5091echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5092 { (exit 1); exit 1; }; }
5093 fi
5094elif test "$with_built_clang" = "yes"; then
5095 WITH_BUILT_CLANG=1
5096elif test "$with_built_clang" = "no"; then
5097 WITH_BUILT_CLANG=0
5098else
5099 if test "$with_built_clang" != "check"; then
5100 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5101echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5102 { (exit 1); exit 1; }; }
5103 fi
5104
5105 if test -f ${srcdir}/tools/clang/README.txt; then
5106 WITH_BUILT_CLANG=1
5107 fi
5108fi
5109
5110if ! test -z "$WITH_CLANGPATH"; then
5111 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5112echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5113 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5114elif test "$WITH_BUILT_CLANG" = "1"; then
5115 { echo "$as_me:$LINENO: result: built" >&5
5116echo "${ECHO_T}built" >&6; }
5117else
5118 { echo "$as_me:$LINENO: result: none" >&5
5119echo "${ECHO_T}none" >&6; }
5120fi
5121CLANGPATH=$WITH_CLANGPATH
5122
5123CLANGXXPATH=$WITH_CLANGXXPATH
5124
5125ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5126
5127
5128
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005129# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005130if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005131 withval=$with_optimize_option;
5132else
5133 withval=default
5134fi
5135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005136{ echo "$as_me:$LINENO: checking optimization flags" >&5
5137echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005138case "$withval" in
5139 default)
5140 case "$llvm_cv_os_type" in
5141 MingW) optimize_option=-O3 ;;
5142 *) optimize_option=-O2 ;;
5143 esac ;;
5144 *) optimize_option="$withval" ;;
5145esac
5146OPTIMIZE_OPTION=$optimize_option
5147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5149echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005150
5151
Reid Spencera773bd52006-08-04 18:18:08 +00005152# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005153if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005154 withval=$with_extra_options;
5155else
5156 withval=default
5157fi
5158
5159case "$withval" in
5160 default) EXTRA_OPTIONS= ;;
5161 *) EXTRA_OPTIONS=$withval ;;
5162esac
5163EXTRA_OPTIONS=$EXTRA_OPTIONS
5164
5165
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005166# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005167if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005168 enableval=$enable_bindings;
5169else
5170 enableval=default
5171fi
5172
5173BINDINGS_TO_BUILD=""
5174case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005175 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005176 all ) BINDINGS_TO_BUILD="ocaml" ;;
5177 none | no) BINDINGS_TO_BUILD="" ;;
5178 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5179 case "$a_binding" in
5180 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5182echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5183 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005184 esac
5185 done
5186 ;;
5187esac
5188
Reid Spencera773bd52006-08-04 18:18:08 +00005189
Gordon Henriksenf0915682007-10-02 16:42:22 +00005190# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005191if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005192 withval=$with_ocaml_libdir;
5193else
5194 withval=auto
5195fi
5196
5197case "$withval" in
5198 auto) with_ocaml_libdir="$withval" ;;
5199 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005200 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5201echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5202 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005203esac
5204
5205
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005206# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005207if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005208 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005209else
5210 withval=""
5211fi
5212
5213
5214cat >>confdefs.h <<_ACEOF
5215#define C_INCLUDE_DIRS "$withval"
5216_ACEOF
5217
5218
5219
Rafael Espindola420d23c2009-11-16 19:46:55 +00005220# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005221if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005222 withval=$with_cxx_include_root;
5223else
5224 withval=""
5225fi
5226
5227
5228cat >>confdefs.h <<_ACEOF
5229#define CXX_INCLUDE_ROOT "$withval"
5230_ACEOF
5231
5232
5233
5234# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005235if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005236 withval=$with_cxx_include_arch;
5237else
5238 withval=""
5239fi
5240
5241
5242cat >>confdefs.h <<_ACEOF
5243#define CXX_INCLUDE_ARCH "$withval"
5244_ACEOF
5245
5246
5247
5248# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005249if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005250 withval=$with_cxx_include_32bit_dir;
5251else
5252 withval=""
5253fi
5254
5255
5256cat >>confdefs.h <<_ACEOF
5257#define CXX_INCLUDE_32BIT_DIR "$withval"
5258_ACEOF
5259
5260
5261
5262# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005263if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005264 withval=$with_cxx_include_64bit_dir;
5265else
5266 withval=""
5267fi
5268
5269
5270cat >>confdefs.h <<_ACEOF
5271#define CXX_INCLUDE_64BIT_DIR "$withval"
5272_ACEOF
5273
5274
5275
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005276# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005277if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005278 withval=$with_binutils_include;
5279else
5280 withval=default
5281fi
5282
5283case "$withval" in
5284 default) WITH_BINUTILS_INCDIR=default ;;
5285 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005286 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5287echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5288 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005289esac
5290if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5291 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5292
5293 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5294 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5296echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5297 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005298 fi
5299fi
5300
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005301# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005302if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005303 enableval=$enable_libffi; case "$enableval" in
5304 yes) llvm_cv_enable_libffi="yes" ;;
5305 no) llvm_cv_enable_libffi="no" ;;
5306 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005307echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5308 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005309 esac
5310else
5311 llvm_cv_enable_libffi=no
5312fi
5313
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005314
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005315if test "$llvm_cv_os_type" = "Win32" ; then
5316 llvmc_dynamic="yes"
5317else
5318 llvmc_dynamic="no"
5319fi
5320
5321# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005323 enableval=$enable_llvmc_dynamic;
5324else
5325 enableval=$llvmc_dynamic
5326fi
5327
5328if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5329 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5330
5331else
5332 ENABLE_LLVMC_DYNAMIC=
5333
5334fi
5335
5336# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005338 enableval=$enable_llvmc_dynamic_plugins;
5339else
5340 enableval=yes
5341fi
5342
5343if test ${enableval} = "yes" ; then
5344 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5345
5346else
5347 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5348
5349fi
5350
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005351
Reid Spencera773bd52006-08-04 18:18:08 +00005352ac_ext=c
5353ac_cpp='$CPP $CPPFLAGS'
5354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005357{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5358echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005359# On Suns, sometimes $CPP names a directory.
5360if test -n "$CPP" && test -d "$CPP"; then
5361 CPP=
5362fi
5363if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005364 if test "${ac_cv_prog_CPP+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005366else
5367 # Double quotes because CPP needs to be expanded
5368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5369 do
5370 ac_preproc_ok=false
5371for ac_c_preproc_warn_flag in '' yes
5372do
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379 cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005384/* end confdefs.h. */
5385#ifdef __STDC__
5386# include <limits.h>
5387#else
5388# include <assert.h>
5389#endif
5390 Syntax error
5391_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005392if { (ac_try="$ac_cpp conftest.$ac_ext"
5393case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408 else
5409 ac_cpp_err=
5410 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005412 ac_cpp_err=yes
5413fi
5414if test -z "$ac_cpp_err"; then
5415 :
5416else
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
Reid Spencera773bd52006-08-04 18:18:08 +00005420 # Broken: fails on valid input.
5421continue
5422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423
Reid Spencera773bd52006-08-04 18:18:08 +00005424rm -f conftest.err conftest.$ac_ext
5425
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005428 cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005433/* end confdefs.h. */
5434#include <ac_nonexistent.h>
5435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436if { (ac_try="$ac_cpp conftest.$ac_ext"
5437case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440esac
5441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } >/dev/null; then
5449 if test -s conftest.err; then
5450 ac_cpp_err=$ac_c_preproc_warn_flag
5451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452 else
5453 ac_cpp_err=
5454 fi
5455else
5456 ac_cpp_err=yes
5457fi
5458if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005459 # Broken: success on invalid input.
5460continue
5461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
Reid Spencera773bd52006-08-04 18:18:08 +00005465 # Passes both tests.
5466ac_preproc_ok=:
5467break
5468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469
Reid Spencera773bd52006-08-04 18:18:08 +00005470rm -f conftest.err conftest.$ac_ext
5471
5472done
5473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5474rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005475if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005476 break
5477fi
5478
5479 done
5480 ac_cv_prog_CPP=$CPP
5481
5482fi
5483 CPP=$ac_cv_prog_CPP
5484else
5485 ac_cv_prog_CPP=$CPP
5486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005487{ echo "$as_me:$LINENO: result: $CPP" >&5
5488echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005489ac_preproc_ok=false
5490for ac_c_preproc_warn_flag in '' yes
5491do
5492 # Use a header file that comes with gcc, so configuring glibc
5493 # with a fresh cross-compiler works.
5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 # <limits.h> exists even on freestanding compilers.
5496 # On the NeXT, cc -E runs the code through the compiler's parser,
5497 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498 cat >conftest.$ac_ext <<_ACEOF
5499/* confdefs.h. */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005503/* end confdefs.h. */
5504#ifdef __STDC__
5505# include <limits.h>
5506#else
5507# include <assert.h>
5508#endif
5509 Syntax error
5510_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511if { (ac_try="$ac_cpp conftest.$ac_ext"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null; then
5524 if test -s conftest.err; then
5525 ac_cpp_err=$ac_c_preproc_warn_flag
5526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527 else
5528 ac_cpp_err=
5529 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005531 ac_cpp_err=yes
5532fi
5533if test -z "$ac_cpp_err"; then
5534 :
5535else
5536 echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
Reid Spencera773bd52006-08-04 18:18:08 +00005539 # Broken: fails on valid input.
5540continue
5541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005542
Reid Spencera773bd52006-08-04 18:18:08 +00005543rm -f conftest.err conftest.$ac_ext
5544
5545 # OK, works on sane cases. Now check whether nonexistent headers
5546 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005552/* end confdefs.h. */
5553#include <ac_nonexistent.h>
5554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555if { (ac_try="$ac_cpp conftest.$ac_ext"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } >/dev/null; then
5568 if test -s conftest.err; then
5569 ac_cpp_err=$ac_c_preproc_warn_flag
5570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5571 else
5572 ac_cpp_err=
5573 fi
5574else
5575 ac_cpp_err=yes
5576fi
5577if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005578 # Broken: success on invalid input.
5579continue
5580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
Reid Spencera773bd52006-08-04 18:18:08 +00005584 # Passes both tests.
5585ac_preproc_ok=:
5586break
5587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588
Reid Spencera773bd52006-08-04 18:18:08 +00005589rm -f conftest.err conftest.$ac_ext
5590
5591done
5592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005594if $ac_preproc_ok; then
5595 :
Reid Spencera773bd52006-08-04 18:18:08 +00005596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598See \`config.log' for more details." >&5
5599echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005602fi
5603
5604ac_ext=c
5605ac_cpp='$CPP $CPPFLAGS'
5606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610ac_ext=c
5611ac_cpp='$CPP $CPPFLAGS'
5612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615if test -n "$ac_tool_prefix"; then
5616 for ac_prog in gcc
5617 do
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622if test "${ac_cv_prog_CC+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005624else
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 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 +00005635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005637 break 2
5638 fi
5639done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640done
Reid Spencera773bd52006-08-04 18:18:08 +00005641IFS=$as_save_IFS
5642
5643fi
5644fi
5645CC=$ac_cv_prog_CC
5646if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005647 { echo "$as_me:$LINENO: result: $CC" >&5
5648echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005650 { echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005652fi
5653
5654
5655 test -n "$CC" && break
5656 done
5657fi
5658if test -z "$CC"; then
5659 ac_ct_CC=$CC
5660 for ac_prog in gcc
5661do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005668else
5669 if test -n "$ac_ct_CC"; then
5670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 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 +00005679 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005681 break 2
5682 fi
5683done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684done
Reid Spencera773bd52006-08-04 18:18:08 +00005685IFS=$as_save_IFS
5686
5687fi
5688fi
5689ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5692echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005694 { echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005696fi
5697
5698
5699 test -n "$ac_ct_CC" && break
5700done
5701
5702 if test "x$ac_ct_CC" = x; then
5703 CC=""
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708whose name does not start with the host triplet. If you think this
5709configuration is useful to you, please write to autoconf@gnu.org." >&5
5710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711whose name does not start with the host triplet. If you think this
5712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005713ac_tool_warned=yes ;;
5714esac
5715 CC=$ac_ct_CC
5716 fi
5717fi
5718
5719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005720test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5721See \`config.log' for more details." >&5
5722echo "$as_me: error: no acceptable C compiler found in \$PATH
5723See \`config.log' for more details." >&2;}
5724 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005725
5726# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727echo "$as_me:$LINENO: checking for C compiler version" >&5
5728ac_compiler=`set X $ac_compile; echo $2`
5729{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005736 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }
5739{ (ac_try="$ac_compiler -v >&5"
5740case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743esac
5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compiler -v >&5") 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }
5749{ (ac_try="$ac_compiler -V >&5"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compiler -V >&5") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5761echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5762if test "${ac_cv_c_compiler_gnu+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765 cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h. */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005770/* end confdefs.h. */
5771
5772int
5773main ()
5774{
5775#ifndef __GNUC__
5776 choke me
5777#endif
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783rm -f conftest.$ac_objext
5784if { (ac_try="$ac_compile"
5785case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798 { (case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_try") 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005817 ac_compiler_gnu=yes
5818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824
Reid Spencera773bd52006-08-04 18:18:08 +00005825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826ac_cv_c_compiler_gnu=$ac_compiler_gnu
5827
5828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005829{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5830echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5831GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005832ac_test_CFLAGS=${CFLAGS+set}
5833ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005834{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5835echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5836if test "${ac_cv_prog_cc_g+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005838else
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5841 ac_cv_prog_cc_g=no
5842 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005848/* end confdefs.h. */
5849
5850int
5851main ()
5852{
5853
5854 ;
5855 return 0;
5856}
5857_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858rm -f conftest.$ac_objext
5859if { (ac_try="$ac_compile"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005892 ac_cv_prog_cc_g=yes
5893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 CFLAGS=""
5898 cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005903/* end confdefs.h. */
5904
5905int
5906main ()
5907{
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913rm -f conftest.$ac_objext
5914if { (ac_try="$ac_compile"
5915case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 :
Torok Edwin871384f2010-01-26 08:50:50 +00005948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949 echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005953 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954 cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h. */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005959/* end confdefs.h. */
5960
5961int
5962main ()
5963{
5964
5965 ;
5966 return 0;
5967}
5968_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969rm -f conftest.$ac_objext
5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006003 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
Reid Spencera773bd52006-08-04 18:18:08 +00006009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010
Reid Spencera773bd52006-08-04 18:18:08 +00006011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006013
Reid Spencera773bd52006-08-04 18:18:08 +00006014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016
Reid Spencera773bd52006-08-04 18:18:08 +00006017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_c_werror_flag=$ac_save_c_werror_flag
6019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6021echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006022if test "$ac_test_CFLAGS" = set; then
6023 CFLAGS=$ac_save_CFLAGS
6024elif test $ac_cv_prog_cc_g = yes; then
6025 if test "$GCC" = yes; then
6026 CFLAGS="-g -O2"
6027 else
6028 CFLAGS="-g"
6029 fi
6030else
6031 if test "$GCC" = yes; then
6032 CFLAGS="-O2"
6033 else
6034 CFLAGS=
6035 fi
6036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6038echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6039if test "${ac_cv_prog_cc_c89+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006041else
6042 ac_cv_prog_cc_c89=no
6043ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006049/* end confdefs.h. */
6050#include <stdarg.h>
6051#include <stdio.h>
6052#include <sys/types.h>
6053#include <sys/stat.h>
6054/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6055struct buf { int x; };
6056FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057static char *e (p, i)
6058 char **p;
6059 int i;
6060{
6061 return p[i];
6062}
6063static char *f (char * (*g) (char **, int), char **p, ...)
6064{
6065 char *s;
6066 va_list v;
6067 va_start (v,p);
6068 s = g (p, va_arg (v,int));
6069 va_end (v);
6070 return s;
6071}
6072
6073/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6074 function prototypes and stuff, but not '\xHH' hex character constants.
6075 These don't provoke an error unfortunately, instead are silently treated
6076 as 'x'. The following induces an error, until -std is added to get
6077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6078 array size at least. It's necessary to write '\x00'==0 to get something
6079 that's true only with -std. */
6080int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6081
6082/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083 inside strings and character constants. */
6084#define FOO(x) 'x'
6085int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6086
6087int test (int i, double x);
6088struct s1 {int (*f) (int a);};
6089struct s2 {int (*f) (double a);};
6090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091int argc;
6092char **argv;
6093int
6094main ()
6095{
6096return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6097 ;
6098 return 0;
6099}
6100_ACEOF
6101for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6103do
6104 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 rm -f conftest.$ac_objext
6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006139 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144
Reid Spencera773bd52006-08-04 18:18:08 +00006145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146
Reid Spencera773bd52006-08-04 18:18:08 +00006147rm -f core conftest.err conftest.$ac_objext
6148 test "x$ac_cv_prog_cc_c89" != "xno" && break
6149done
6150rm -f conftest.$ac_ext
6151CC=$ac_save_CC
6152
6153fi
6154# AC_CACHE_VAL
6155case "x$ac_cv_prog_cc_c89" in
6156 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006157 { echo "$as_me:$LINENO: result: none needed" >&5
6158echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006159 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160 { echo "$as_me:$LINENO: result: unsupported" >&5
6161echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006162 *)
6163 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6165echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006166esac
6167
6168
6169ac_ext=c
6170ac_cpp='$CPP $CPPFLAGS'
6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175ac_ext=cpp
6176ac_cpp='$CXXCPP $CPPFLAGS'
6177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6180if test -z "$CXX"; then
6181 if test -n "$CCC"; then
6182 CXX=$CCC
6183 else
6184 if test -n "$ac_tool_prefix"; then
6185 for ac_prog in g++
6186 do
6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_CXX+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006193else
6194 if test -n "$CXX"; then
6195 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 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 +00006204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006206 break 2
6207 fi
6208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209done
Reid Spencera773bd52006-08-04 18:18:08 +00006210IFS=$as_save_IFS
6211
6212fi
6213fi
6214CXX=$ac_cv_prog_CXX
6215if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216 { echo "$as_me:$LINENO: result: $CXX" >&5
6217echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006221fi
6222
6223
6224 test -n "$CXX" && break
6225 done
6226fi
6227if test -z "$CXX"; then
6228 ac_ct_CXX=$CXX
6229 for ac_prog in g++
6230do
6231 # Extract the first word of "$ac_prog", so it can be a program name with args.
6232set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006237else
6238 if test -n "$ac_ct_CXX"; then
6239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006248 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006250 break 2
6251 fi
6252done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253done
Reid Spencera773bd52006-08-04 18:18:08 +00006254IFS=$as_save_IFS
6255
6256fi
6257fi
6258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6259if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006260 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006263 { echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006265fi
6266
6267
6268 test -n "$ac_ct_CXX" && break
6269done
6270
6271 if test "x$ac_ct_CXX" = x; then
6272 CXX="g++"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277whose name does not start with the host triplet. If you think this
6278configuration is useful to you, please write to autoconf@gnu.org." >&5
6279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280whose name does not start with the host triplet. If you think this
6281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006282ac_tool_warned=yes ;;
6283esac
6284 CXX=$ac_ct_CXX
6285 fi
6286fi
6287
6288 fi
6289fi
6290# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6292ac_compiler=`set X $ac_compile; echo $2`
6293{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006300 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }
6303{ (ac_try="$ac_compiler -v >&5"
6304case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compiler -v >&5") 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }
6313{ (ac_try="$ac_compiler -V >&5"
6314case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compiler -V >&5") 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6325echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6326if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329 cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339#ifndef __GNUC__
6340 choke me
6341#endif
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347rm -f conftest.$ac_objext
6348if { (ac_try="$ac_compile"
6349case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compile") 2>conftest.er1
6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362 { (case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365esac
6366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_try") 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006381 ac_compiler_gnu=yes
6382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388
Reid Spencera773bd52006-08-04 18:18:08 +00006389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6391
6392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006393{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6394echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6395GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006396ac_test_CXXFLAGS=${CXXFLAGS+set}
6397ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6399echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6400if test "${ac_cv_prog_cxx_g+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006402else
6403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag=yes
6405 ac_cv_prog_cxx_g=no
6406 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006412/* end confdefs.h. */
6413
6414int
6415main ()
6416{
6417
6418 ;
6419 return 0;
6420}
6421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422rm -f conftest.$ac_objext
6423if { (ac_try="$ac_compile"
6424case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427esac
6428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437 { (case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_try") 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006456 ac_cv_prog_cxx_g=yes
6457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 CXXFLAGS=""
6462 cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006467/* end confdefs.h. */
6468
6469int
6470main ()
6471{
6472
6473 ;
6474 return 0;
6475}
6476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477rm -f conftest.$ac_objext
6478if { (ac_try="$ac_compile"
6479case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482esac
6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6492 { (case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495esac
6496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_try") 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 :
Torok Edwin871384f2010-01-26 08:50:50 +00006512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513 echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006517 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h. */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006523/* end confdefs.h. */
6524
6525int
6526main ()
6527{
6528
6529 ;
6530 return 0;
6531}
6532_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533rm -f conftest.$ac_objext
6534if { (ac_try="$ac_compile"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551esac
6552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006567 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568else
6569 echo "$as_me: failed program was:" >&5
6570sed 's/^/| /' conftest.$ac_ext >&5
6571
6572
Reid Spencera773bd52006-08-04 18:18:08 +00006573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574
Reid Spencera773bd52006-08-04 18:18:08 +00006575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577
Reid Spencera773bd52006-08-04 18:18:08 +00006578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580
Reid Spencera773bd52006-08-04 18:18:08 +00006581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006586if test "$ac_test_CXXFLAGS" = set; then
6587 CXXFLAGS=$ac_save_CXXFLAGS
6588elif test $ac_cv_prog_cxx_g = yes; then
6589 if test "$GXX" = yes; then
6590 CXXFLAGS="-g -O2"
6591 else
6592 CXXFLAGS="-g"
6593 fi
6594else
6595 if test "$GXX" = yes; then
6596 CXXFLAGS="-O2"
6597 else
6598 CXXFLAGS=
6599 fi
6600fi
6601ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
Reid Spencera773bd52006-08-04 18:18:08 +00006607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6609echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6610if test "${lt_cv_path_NM+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006612else
6613 if test -n "$NM"; then
6614 # Let the user override the test.
6615 lt_cv_path_NM="$NM"
6616else
6617 lt_nm_to_check="${ac_tool_prefix}nm"
6618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619 lt_nm_to_check="$lt_nm_to_check nm"
6620 fi
6621 for lt_tmp_nm in $lt_nm_to_check; do
6622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6624 IFS="$lt_save_ifs"
6625 test -z "$ac_dir" && ac_dir=.
6626 tmp_nm="$ac_dir/$lt_tmp_nm"
6627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628 # Check to see if the nm accepts a BSD-compat flag.
6629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6630 # nm: unknown option "B" ignored
6631 # Tru64's nm complains that /dev/null is an invalid object file
6632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633 */dev/null* | *'Invalid file or object type'*)
6634 lt_cv_path_NM="$tmp_nm -B"
6635 break
6636 ;;
6637 *)
6638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6639 */dev/null*)
6640 lt_cv_path_NM="$tmp_nm -p"
6641 break
6642 ;;
6643 *)
6644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645 continue # so that we can try to find one that supports BSD flags
6646 ;;
6647 esac
6648 ;;
6649 esac
6650 fi
6651 done
6652 IFS="$lt_save_ifs"
6653 done
6654 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6655fi
6656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6658echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006659NM="$lt_cv_path_NM"
6660
6661
6662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663{ echo "$as_me:$LINENO: checking for GNU make" >&5
6664echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6665if test "${llvm_cv_gnu_make_command+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006667else
6668 llvm_cv_gnu_make_command=''
6669 for a in "$MAKE" make gmake gnumake ; do
6670 if test -z "$a" ; then continue ; fi ;
6671 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6672 then
6673 llvm_cv_gnu_make_command=$a ;
6674 break;
6675 fi
6676 done
6677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6679echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006680 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6681 ifGNUmake='' ;
6682 else
6683 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6685echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006686 fi
6687
6688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6690echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006691LN_S=$as_ln_s
6692if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693 { echo "$as_me:$LINENO: result: yes" >&5
6694echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6697echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006698fi
6699
6700# Extract the first word of "cmp", so it can be a program name with args.
6701set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704if test "${ac_cv_path_CMP+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006706else
6707 case $CMP in
6708 [\\/]* | ?:[\\/]*)
6709 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6710 ;;
6711 *)
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 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 +00006719 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006721 break 2
6722 fi
6723done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724done
Reid Spencera773bd52006-08-04 18:18:08 +00006725IFS=$as_save_IFS
6726
6727 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6728 ;;
6729esac
6730fi
6731CMP=$ac_cv_path_CMP
6732if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 { echo "$as_me:$LINENO: result: $CMP" >&5
6734echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 { echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006738fi
6739
6740
6741# Extract the first word of "cp", so it can be a program name with args.
6742set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_CP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006747else
6748 case $CP in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 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 +00006760 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006762 break 2
6763 fi
6764done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765done
Reid Spencera773bd52006-08-04 18:18:08 +00006766IFS=$as_save_IFS
6767
6768 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6769 ;;
6770esac
6771fi
6772CP=$ac_cv_path_CP
6773if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774 { echo "$as_me:$LINENO: result: $CP" >&5
6775echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 { echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006779fi
6780
6781
6782# Extract the first word of "date", so it can be a program name with args.
6783set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786if test "${ac_cv_path_DATE+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006788else
6789 case $DATE in
6790 [\\/]* | ?:[\\/]*)
6791 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6792 ;;
6793 *)
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 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 +00006801 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006803 break 2
6804 fi
6805done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806done
Reid Spencera773bd52006-08-04 18:18:08 +00006807IFS=$as_save_IFS
6808
6809 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6810 ;;
6811esac
6812fi
6813DATE=$ac_cv_path_DATE
6814if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 { echo "$as_me:$LINENO: result: $DATE" >&5
6816echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006820fi
6821
6822
6823# Extract the first word of "find", so it can be a program name with args.
6824set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827if test "${ac_cv_path_FIND+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006829else
6830 case $FIND in
6831 [\\/]* | ?:[\\/]*)
6832 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6833 ;;
6834 *)
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 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 +00006842 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006844 break 2
6845 fi
6846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847done
Reid Spencera773bd52006-08-04 18:18:08 +00006848IFS=$as_save_IFS
6849
6850 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6851 ;;
6852esac
6853fi
6854FIND=$ac_cv_path_FIND
6855if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856 { echo "$as_me:$LINENO: result: $FIND" >&5
6857echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006861fi
6862
6863
6864# Extract the first word of "grep", so it can be a program name with args.
6865set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_path_GREP+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006870else
6871 case $GREP in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006883 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006885 break 2
6886 fi
6887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888done
Reid Spencera773bd52006-08-04 18:18:08 +00006889IFS=$as_save_IFS
6890
6891 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6892 ;;
6893esac
6894fi
6895GREP=$ac_cv_path_GREP
6896if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 { echo "$as_me:$LINENO: result: $GREP" >&5
6898echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006902fi
6903
6904
6905# Extract the first word of "mkdir", so it can be a program name with args.
6906set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_MKDIR+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006911else
6912 case $MKDIR in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006924 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006926 break 2
6927 fi
6928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929done
Reid Spencera773bd52006-08-04 18:18:08 +00006930IFS=$as_save_IFS
6931
6932 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6933 ;;
6934esac
6935fi
6936MKDIR=$ac_cv_path_MKDIR
6937if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6939echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006943fi
6944
6945
6946# Extract the first word of "mv", so it can be a program name with args.
6947set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_MV+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006952else
6953 case $MV in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 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 +00006965 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006967 break 2
6968 fi
6969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970done
Reid Spencera773bd52006-08-04 18:18:08 +00006971IFS=$as_save_IFS
6972
6973 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6974 ;;
6975esac
6976fi
6977MV=$ac_cv_path_MV
6978if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 { echo "$as_me:$LINENO: result: $MV" >&5
6980echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006984fi
6985
6986
6987if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992if test "${ac_cv_prog_RANLIB+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006994else
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 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 +00007005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007007 break 2
7008 fi
7009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010done
Reid Spencera773bd52006-08-04 18:18:08 +00007011IFS=$as_save_IFS
7012
7013fi
7014fi
7015RANLIB=$ac_cv_prog_RANLIB
7016if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007034else
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 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 +00007045 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007047 break 2
7048 fi
7049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050done
Reid Spencera773bd52006-08-04 18:18:08 +00007051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007062fi
7063
7064 if test "x$ac_ct_RANLIB" = x; then
7065 RANLIB=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070whose name does not start with the host triplet. If you think this
7071configuration is useful to you, please write to autoconf@gnu.org." >&5
7072echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073whose name does not start with the host triplet. If you think this
7074configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007075ac_tool_warned=yes ;;
7076esac
7077 RANLIB=$ac_ct_RANLIB
7078 fi
7079else
7080 RANLIB="$ac_cv_prog_RANLIB"
7081fi
7082
Torok Edwin871384f2010-01-26 08:50:50 +00007083if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7085set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088if test "${ac_cv_prog_AR+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007090else
7091 if test -n "$AR"; then
7092 ac_cv_prog_AR="$AR" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 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 +00007101 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007103 break 2
7104 fi
7105done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106done
Torok Edwin871384f2010-01-26 08:50:50 +00007107IFS=$as_save_IFS
7108
7109fi
7110fi
7111AR=$ac_cv_prog_AR
7112if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 { echo "$as_me:$LINENO: result: $AR" >&5
7114echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007115else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007116 { echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007118fi
7119
7120
7121fi
7122if test -z "$ac_cv_prog_AR"; then
7123 ac_ct_AR=$AR
7124 # Extract the first word of "ar", so it can be a program name with args.
7125set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007130else
7131 if test -n "$ac_ct_AR"; then
7132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 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 +00007141 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146done
Torok Edwin871384f2010-01-26 08:50:50 +00007147IFS=$as_save_IFS
7148
7149fi
7150fi
7151ac_ct_AR=$ac_cv_prog_ac_ct_AR
7152if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7154echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007158fi
7159
7160 if test "x$ac_ct_AR" = x; then
7161 AR="false"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7166whose name does not start with the host triplet. If you think this
7167configuration is useful to you, please write to autoconf@gnu.org." >&5
7168echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7169whose name does not start with the host triplet. If you think this
7170configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007171ac_tool_warned=yes ;;
7172esac
7173 AR=$ac_ct_AR
7174 fi
7175else
7176 AR="$ac_cv_prog_AR"
7177fi
7178
Reid Spencera773bd52006-08-04 18:18:08 +00007179# Extract the first word of "rm", so it can be a program name with args.
7180set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_path_RM+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
7186 case $RM in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007198 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007200 break 2
7201 fi
7202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203done
Reid Spencera773bd52006-08-04 18:18:08 +00007204IFS=$as_save_IFS
7205
7206 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7207 ;;
7208esac
7209fi
7210RM=$ac_cv_path_RM
7211if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 { echo "$as_me:$LINENO: result: $RM" >&5
7213echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 { echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007217fi
7218
7219
7220# Extract the first word of "sed", so it can be a program name with args.
7221set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_path_SED+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
7227 case $SED in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 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 +00007239 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007241 break 2
7242 fi
7243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244done
Reid Spencera773bd52006-08-04 18:18:08 +00007245IFS=$as_save_IFS
7246
7247 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7248 ;;
7249esac
7250fi
7251SED=$ac_cv_path_SED
7252if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 { echo "$as_me:$LINENO: result: $SED" >&5
7254echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007258fi
7259
7260
7261# Extract the first word of "tar", so it can be a program name with args.
7262set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_TAR+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007267else
7268 case $TAR in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 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 +00007280 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007282 break 2
7283 fi
7284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285done
Reid Spencera773bd52006-08-04 18:18:08 +00007286IFS=$as_save_IFS
7287
7288 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7289 ;;
7290esac
7291fi
7292TAR=$ac_cv_path_TAR
7293if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 { echo "$as_me:$LINENO: result: $TAR" >&5
7295echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007299fi
7300
7301
7302# Extract the first word of "pwd", so it can be a program name with args.
7303set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_BINPWD+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007308else
7309 case $BINPWD in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 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 +00007321 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007323 break 2
7324 fi
7325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326done
Reid Spencera773bd52006-08-04 18:18:08 +00007327IFS=$as_save_IFS
7328
7329 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7330 ;;
7331esac
7332fi
7333BINPWD=$ac_cv_path_BINPWD
7334if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7336echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338 { echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007340fi
7341
7342
7343
7344# Extract the first word of "Graphviz", so it can be a program name with args.
7345set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007350else
7351 case $GRAPHVIZ in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 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 +00007363 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007365 break 2
7366 fi
7367done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368done
Reid Spencera773bd52006-08-04 18:18:08 +00007369IFS=$as_save_IFS
7370
7371 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7372 ;;
7373esac
7374fi
7375GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7376if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007377 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7378echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380 { echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007382fi
7383
7384
7385if test "$GRAPHVIZ" != "echo Graphviz" ; then
7386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387cat >>confdefs.h <<\_ACEOF
7388#define HAVE_GRAPHVIZ 1
7389_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007390
Jeff Cohen28783c32007-01-12 18:22:38 +00007391 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007392 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7393 fi
7394
7395cat >>confdefs.h <<_ACEOF
7396#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7397_ACEOF
7398
7399fi
7400# Extract the first word of "dot", so it can be a program name with args.
7401set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404if test "${ac_cv_path_DOT+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007406else
7407 case $DOT in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7410 ;;
7411 *)
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 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 +00007419 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007421 break 2
7422 fi
7423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424done
Reid Spencera773bd52006-08-04 18:18:08 +00007425IFS=$as_save_IFS
7426
7427 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7428 ;;
7429esac
7430fi
7431DOT=$ac_cv_path_DOT
7432if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433 { echo "$as_me:$LINENO: result: $DOT" >&5
7434echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436 { echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007438fi
7439
7440
7441if test "$DOT" != "echo dot" ; then
7442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443cat >>confdefs.h <<\_ACEOF
7444#define HAVE_DOT 1
7445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007446
Jeff Cohen28783c32007-01-12 18:22:38 +00007447 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007448 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7449 fi
7450
7451cat >>confdefs.h <<_ACEOF
7452#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7453_ACEOF
7454
7455fi
David Greenef0b9eff2009-07-09 17:16:26 +00007456# Extract the first word of "fdp", so it can be a program name with args.
7457set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460if test "${ac_cv_path_FDP+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007462else
7463 case $FDP in
7464 [\\/]* | ?:[\\/]*)
7465 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7466 ;;
7467 *)
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 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 +00007475 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007477 break 2
7478 fi
7479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480done
David Greenef0b9eff2009-07-09 17:16:26 +00007481IFS=$as_save_IFS
7482
7483 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7484 ;;
7485esac
7486fi
7487FDP=$ac_cv_path_FDP
7488if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: $FDP" >&5
7490echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007494fi
7495
7496
7497if test "$FDP" != "echo fdp" ; then
7498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499cat >>confdefs.h <<\_ACEOF
7500#define HAVE_FDP 1
7501_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007502
7503 if test "$llvm_cv_os_type" = "MingW" ; then
7504 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7505 fi
7506
7507cat >>confdefs.h <<_ACEOF
7508#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7509_ACEOF
7510
7511fi
7512# Extract the first word of "neato", so it can be a program name with args.
7513set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516if test "${ac_cv_path_NEATO+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007518else
7519 case $NEATO in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 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 +00007531 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007533 break 2
7534 fi
7535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536done
David Greenef0b9eff2009-07-09 17:16:26 +00007537IFS=$as_save_IFS
7538
7539 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7540 ;;
7541esac
7542fi
7543NEATO=$ac_cv_path_NEATO
7544if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545 { echo "$as_me:$LINENO: result: $NEATO" >&5
7546echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548 { echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007550fi
7551
7552
7553if test "$NEATO" != "echo neato" ; then
7554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555cat >>confdefs.h <<\_ACEOF
7556#define HAVE_NEATO 1
7557_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007558
7559 if test "$llvm_cv_os_type" = "MingW" ; then
7560 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7561 fi
7562
7563cat >>confdefs.h <<_ACEOF
7564#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7565_ACEOF
7566
7567fi
7568# Extract the first word of "twopi", so it can be a program name with args.
7569set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572if test "${ac_cv_path_TWOPI+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007574else
7575 case $TWOPI in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7578 ;;
7579 *)
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 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 +00007587 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007589 break 2
7590 fi
7591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592done
David Greenef0b9eff2009-07-09 17:16:26 +00007593IFS=$as_save_IFS
7594
7595 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7596 ;;
7597esac
7598fi
7599TWOPI=$ac_cv_path_TWOPI
7600if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7602echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 { echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007606fi
7607
7608
7609if test "$TWOPI" != "echo twopi" ; then
7610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611cat >>confdefs.h <<\_ACEOF
7612#define HAVE_TWOPI 1
7613_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007614
7615 if test "$llvm_cv_os_type" = "MingW" ; then
7616 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7617 fi
7618
7619cat >>confdefs.h <<_ACEOF
7620#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7621_ACEOF
7622
7623fi
7624# Extract the first word of "circo", so it can be a program name with args.
7625set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628if test "${ac_cv_path_CIRCO+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007630else
7631 case $CIRCO in
7632 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 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 +00007643 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007645 break 2
7646 fi
7647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648done
David Greenef0b9eff2009-07-09 17:16:26 +00007649IFS=$as_save_IFS
7650
7651 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7652 ;;
7653esac
7654fi
7655CIRCO=$ac_cv_path_CIRCO
7656if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7658echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660 { echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007662fi
7663
7664
7665if test "$CIRCO" != "echo circo" ; then
7666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667cat >>confdefs.h <<\_ACEOF
7668#define HAVE_CIRCO 1
7669_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007670
7671 if test "$llvm_cv_os_type" = "MingW" ; then
7672 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7673 fi
7674
7675cat >>confdefs.h <<_ACEOF
7676#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7677_ACEOF
7678
7679fi
Reid Spencera773bd52006-08-04 18:18:08 +00007680for ac_prog in gv gsview32
7681do
7682 # Extract the first word of "$ac_prog", so it can be a program name with args.
7683set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686if test "${ac_cv_path_GV+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007688else
7689 case $GV in
7690 [\\/]* | ?:[\\/]*)
7691 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7692 ;;
7693 *)
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 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 +00007701 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007703 break 2
7704 fi
7705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706done
Reid Spencera773bd52006-08-04 18:18:08 +00007707IFS=$as_save_IFS
7708
7709 ;;
7710esac
7711fi
7712GV=$ac_cv_path_GV
7713if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714 { echo "$as_me:$LINENO: result: $GV" >&5
7715echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007717 { echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007719fi
7720
7721
7722 test -n "$GV" && break
7723done
7724test -n "$GV" || GV="echo gv"
7725
7726if test "$GV" != "echo gv" ; then
7727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007728cat >>confdefs.h <<\_ACEOF
7729#define HAVE_GV 1
7730_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007731
Jeff Cohen28783c32007-01-12 18:22:38 +00007732 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007733 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7734 fi
7735
7736cat >>confdefs.h <<_ACEOF
7737#define LLVM_PATH_GV "$GV${EXEEXT}"
7738_ACEOF
7739
7740fi
7741# Extract the first word of "dotty", so it can be a program name with args.
7742set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745if test "${ac_cv_path_DOTTY+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007747else
7748 case $DOTTY in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 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 +00007760 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007762 break 2
7763 fi
7764done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765done
Reid Spencera773bd52006-08-04 18:18:08 +00007766IFS=$as_save_IFS
7767
7768 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7769 ;;
7770esac
7771fi
7772DOTTY=$ac_cv_path_DOTTY
7773if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7775echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777 { echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007779fi
7780
7781
7782if test "$DOTTY" != "echo dotty" ; then
7783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784cat >>confdefs.h <<\_ACEOF
7785#define HAVE_DOTTY 1
7786_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007787
Jeff Cohen28783c32007-01-12 18:22:38 +00007788 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007789 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7790 fi
7791
7792cat >>confdefs.h <<_ACEOF
7793#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7794_ACEOF
7795
7796fi
7797
7798
7799# Extract the first word of "perl", so it can be a program name with args.
7800set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803if test "${ac_cv_path_PERL+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007805else
7806 case $PERL in
7807 [\\/]* | ?:[\\/]*)
7808 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7809 ;;
7810 *)
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 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 +00007818 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007820 break 2
7821 fi
7822done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007823done
Reid Spencera773bd52006-08-04 18:18:08 +00007824IFS=$as_save_IFS
7825
7826 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7827 ;;
7828esac
7829fi
7830PERL=$ac_cv_path_PERL
7831if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007832 { echo "$as_me:$LINENO: result: $PERL" >&5
7833echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 { echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007837fi
7838
7839
7840if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007841 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7842echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007843 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007844 { echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007846 else
7847 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848 { echo "$as_me:$LINENO: result: not found" >&5
7849echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007850 fi
7851fi
7852
7853
7854if test x"$PERL" = xnone; then
7855 HAVE_PERL=0
7856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007857 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7858echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7859 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007860else
7861 HAVE_PERL=1
7862
7863fi
7864
7865# Find a good install program. We prefer a C program (faster),
7866# so one script is as good as another. But avoid the broken or
7867# incompatible versions:
7868# SysV /etc/install, /usr/sbin/install
7869# SunOS /usr/etc/install
7870# IRIX /sbin/install
7871# AIX /bin/install
7872# AmigaOS /C/install, which installs bootblocks on floppy discs
7873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7876# OS/2's system install, which has a completely different semantic
7877# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007878{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7879echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007880if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881if test "${ac_cv_path_install+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007883else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889 # Account for people who put trailing slashes in PATH elements.
7890case $as_dir/ in
7891 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007894 /usr/ucb/* ) ;;
7895 *)
7896 # OSF1 and SCO ODT 3.0 have their own names for install.
7897 # Don't use installbsd from OSF since it installs stuff as root
7898 # by default.
7899 for ac_prog in ginstall scoinst install; do
7900 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901 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 +00007902 if test $ac_prog = install &&
7903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7904 # AIX install. It has an incompatible calling convention.
7905 :
7906 elif test $ac_prog = install &&
7907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908 # program-specific install script used by HP pwplus--don't use.
7909 :
7910 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7912 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007913 fi
7914 fi
7915 done
7916 done
7917 ;;
7918esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919done
Reid Spencera773bd52006-08-04 18:18:08 +00007920IFS=$as_save_IFS
7921
7922
7923fi
7924 if test "${ac_cv_path_install+set}" = set; then
7925 INSTALL=$ac_cv_path_install
7926 else
7927 # As a last resort, use the slow shell script. Don't cache a
7928 # value for INSTALL within a source directory, because that will
7929 # break other packages using the cache if that directory is
7930 # removed, or if the value is a relative name.
7931 INSTALL=$ac_install_sh
7932 fi
7933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007934{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7935echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007936
7937# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7938# It thinks the first close brace ends the variable substitution.
7939test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7940
7941test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7942
7943test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7944
7945
7946# Extract the first word of "bzip2", so it can be a program name with args.
7947set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950if test "${ac_cv_path_BZIP2+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007952else
7953 case $BZIP2 in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7956 ;;
7957 *)
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 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 +00007965 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007967 break 2
7968 fi
7969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970done
Reid Spencera773bd52006-08-04 18:18:08 +00007971IFS=$as_save_IFS
7972
Reid Spencera773bd52006-08-04 18:18:08 +00007973 ;;
7974esac
7975fi
7976BZIP2=$ac_cv_path_BZIP2
7977if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007978 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7979echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981 { echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007983fi
7984
7985
7986# Extract the first word of "doxygen", so it can be a program name with args.
7987set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990if test "${ac_cv_path_DOXYGEN+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007992else
7993 case $DOXYGEN in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7996 ;;
7997 *)
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 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 +00008005 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008007 break 2
8008 fi
8009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010done
Reid Spencera773bd52006-08-04 18:18:08 +00008011IFS=$as_save_IFS
8012
Reid Spencera773bd52006-08-04 18:18:08 +00008013 ;;
8014esac
8015fi
8016DOXYGEN=$ac_cv_path_DOXYGEN
8017if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008018 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8019echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021 { echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008023fi
8024
8025
Reid Spencera773bd52006-08-04 18:18:08 +00008026# Extract the first word of "groff", so it can be a program name with args.
8027set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030if test "${ac_cv_path_GROFF+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008032else
8033 case $GROFF in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8036 ;;
8037 *)
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 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 +00008045 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008047 break 2
8048 fi
8049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050done
Reid Spencera773bd52006-08-04 18:18:08 +00008051IFS=$as_save_IFS
8052
Reid Spencera773bd52006-08-04 18:18:08 +00008053 ;;
8054esac
8055fi
8056GROFF=$ac_cv_path_GROFF
8057if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 { echo "$as_me:$LINENO: result: $GROFF" >&5
8059echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 { echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008063fi
8064
8065
8066# Extract the first word of "gzip", so it can be a program name with args.
8067set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070if test "${ac_cv_path_GZIP+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008072else
8073 case $GZIP in
8074 [\\/]* | ?:[\\/]*)
8075 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8076 ;;
8077 *)
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 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 +00008085 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008087 break 2
8088 fi
8089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090done
Reid Spencera773bd52006-08-04 18:18:08 +00008091IFS=$as_save_IFS
8092
Reid Spencera773bd52006-08-04 18:18:08 +00008093 ;;
8094esac
8095fi
8096GZIP=$ac_cv_path_GZIP
8097if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098 { echo "$as_me:$LINENO: result: $GZIP" >&5
8099echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008101 { echo "$as_me:$LINENO: result: no" >&5
8102echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008103fi
8104
8105
8106# Extract the first word of "pod2html", so it can be a program name with args.
8107set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110if test "${ac_cv_path_POD2HTML+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008112else
8113 case $POD2HTML in
8114 [\\/]* | ?:[\\/]*)
8115 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8116 ;;
8117 *)
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 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 +00008125 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008127 break 2
8128 fi
8129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130done
Reid Spencera773bd52006-08-04 18:18:08 +00008131IFS=$as_save_IFS
8132
Reid Spencera773bd52006-08-04 18:18:08 +00008133 ;;
8134esac
8135fi
8136POD2HTML=$ac_cv_path_POD2HTML
8137if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8139echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141 { echo "$as_me:$LINENO: result: no" >&5
8142echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008143fi
8144
8145
8146# Extract the first word of "pod2man", so it can be a program name with args.
8147set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8150if test "${ac_cv_path_POD2MAN+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008152else
8153 case $POD2MAN in
8154 [\\/]* | ?:[\\/]*)
8155 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8156 ;;
8157 *)
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 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 +00008165 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008167 break 2
8168 fi
8169done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170done
Reid Spencera773bd52006-08-04 18:18:08 +00008171IFS=$as_save_IFS
8172
Reid Spencera773bd52006-08-04 18:18:08 +00008173 ;;
8174esac
8175fi
8176POD2MAN=$ac_cv_path_POD2MAN
8177if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008178 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8179echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181 { echo "$as_me:$LINENO: result: no" >&5
8182echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008183fi
8184
8185
8186# Extract the first word of "runtest", so it can be a program name with args.
8187set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190if test "${ac_cv_path_RUNTEST+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008192else
8193 case $RUNTEST in
8194 [\\/]* | ?:[\\/]*)
8195 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8196 ;;
8197 *)
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 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 +00008205 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008207 break 2
8208 fi
8209done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210done
Reid Spencera773bd52006-08-04 18:18:08 +00008211IFS=$as_save_IFS
8212
Reid Spencera773bd52006-08-04 18:18:08 +00008213 ;;
8214esac
8215fi
8216RUNTEST=$ac_cv_path_RUNTEST
8217if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8219echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008220else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008221 { echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008223fi
8224
8225
8226
8227no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8229echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008230
8231# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008233 withval=$with_tclinclude; with_tclinclude=${withval}
8234else
8235 with_tclinclude=''
8236fi
8237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238if test "${ac_cv_path_tclsh+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008240else
8241
8242if test x"${with_tclinclude}" != x ; then
8243 if test -f ${with_tclinclude}/tclsh ; then
8244 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8245 elif test -f ${with_tclinclude}/src/tclsh ; then
8246 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8247 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8249echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251 fi
8252fi
Torok Edwin871384f2010-01-26 08:50:50 +00008253fi
8254
Reid Spencera773bd52006-08-04 18:18:08 +00008255
8256if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 { echo "$as_me:$LINENO: result: none" >&5
8258echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008259 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
8260do
8261 # Extract the first word of "$ac_prog", so it can be a program name with args.
8262set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265if test "${ac_cv_path_TCLSH+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008267else
8268 case $TCLSH in
8269 [\\/]* | ?:[\\/]*)
8270 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8271 ;;
8272 *)
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 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 +00008280 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008282 break 2
8283 fi
8284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285done
Reid Spencera773bd52006-08-04 18:18:08 +00008286IFS=$as_save_IFS
8287
8288 ;;
8289esac
8290fi
8291TCLSH=$ac_cv_path_TCLSH
8292if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008293 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8294echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296 { echo "$as_me:$LINENO: result: no" >&5
8297echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008298fi
8299
8300
8301 test -n "$TCLSH" && break
8302done
8303
8304 if test x"${TCLSH}" = x ; then
8305 ac_cv_path_tclsh='';
8306 else
8307 ac_cv_path_tclsh="${TCLSH}";
8308 fi
8309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8311echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008312 TCLSH="${ac_cv_path_tclsh}"
8313
8314fi
8315
Reid Spencera773bd52006-08-04 18:18:08 +00008316# Extract the first word of "zip", so it can be a program name with args.
8317set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8320if test "${ac_cv_path_ZIP+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008322else
8323 case $ZIP in
8324 [\\/]* | ?:[\\/]*)
8325 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8326 ;;
8327 *)
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 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 +00008335 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008337 break 2
8338 fi
8339done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340done
Reid Spencera773bd52006-08-04 18:18:08 +00008341IFS=$as_save_IFS
8342
Reid Spencera773bd52006-08-04 18:18:08 +00008343 ;;
8344esac
8345fi
8346ZIP=$ac_cv_path_ZIP
8347if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348 { echo "$as_me:$LINENO: result: $ZIP" >&5
8349echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351 { echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008353fi
8354
8355
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008356for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008357do
8358 # Extract the first word of "$ac_prog", so it can be a program name with args.
8359set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362if test "${ac_cv_path_OCAMLC+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008364else
8365 case $OCAMLC in
8366 [\\/]* | ?:[\\/]*)
8367 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8368 ;;
8369 *)
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 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 +00008377 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008379 break 2
8380 fi
8381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008383IFS=$as_save_IFS
8384
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008385 ;;
8386esac
8387fi
8388OCAMLC=$ac_cv_path_OCAMLC
8389if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8391echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393 { echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008395fi
8396
8397
Gordon Henriksene7072162008-03-07 18:20:01 +00008398 test -n "$OCAMLC" && break
8399done
8400
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008401for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008402do
8403 # Extract the first word of "$ac_prog", so it can be a program name with args.
8404set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008409else
8410 case $OCAMLOPT in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8413 ;;
8414 *)
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 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 +00008422 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008424 break 2
8425 fi
8426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008428IFS=$as_save_IFS
8429
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008430 ;;
8431esac
8432fi
8433OCAMLOPT=$ac_cv_path_OCAMLOPT
8434if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8436echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 { echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008440fi
8441
8442
Gordon Henriksene7072162008-03-07 18:20:01 +00008443 test -n "$OCAMLOPT" && break
8444done
8445
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008446for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008447do
8448 # Extract the first word of "$ac_prog", so it can be a program name with args.
8449set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8452if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008454else
8455 case $OCAMLDEP in
8456 [\\/]* | ?:[\\/]*)
8457 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8458 ;;
8459 *)
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 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 +00008467 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008469 break 2
8470 fi
8471done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008472done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008473IFS=$as_save_IFS
8474
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008475 ;;
8476esac
8477fi
8478OCAMLDEP=$ac_cv_path_OCAMLDEP
8479if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8481echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 { echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008485fi
8486
8487
Gordon Henriksene7072162008-03-07 18:20:01 +00008488 test -n "$OCAMLDEP" && break
8489done
8490
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008491for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008492do
8493 # Extract the first word of "$ac_prog", so it can be a program name with args.
8494set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8497if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008499else
8500 case $OCAMLDOC in
8501 [\\/]* | ?:[\\/]*)
8502 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8503 ;;
8504 *)
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 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 +00008512 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008514 break 2
8515 fi
8516done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008518IFS=$as_save_IFS
8519
8520 ;;
8521esac
8522fi
8523OCAMLDOC=$ac_cv_path_OCAMLDOC
8524if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008525 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8526echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528 { echo "$as_me:$LINENO: result: no" >&5
8529echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008530fi
8531
8532
8533 test -n "$OCAMLDOC" && break
8534done
8535
Torok Edwincc499a42008-10-22 09:56:27 +00008536for ac_prog in gas as
8537do
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8542if test "${ac_cv_path_GAS+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008544else
8545 case $GAS in
8546 [\\/]* | ?:[\\/]*)
8547 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8548 ;;
8549 *)
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 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 +00008557 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008559 break 2
8560 fi
8561done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562done
Torok Edwincc499a42008-10-22 09:56:27 +00008563IFS=$as_save_IFS
8564
8565 ;;
8566esac
8567fi
8568GAS=$ac_cv_path_GAS
8569if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570 { echo "$as_me:$LINENO: result: $GAS" >&5
8571echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573 { echo "$as_me:$LINENO: result: no" >&5
8574echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008575fi
8576
8577
8578 test -n "$GAS" && break
8579done
8580
Reid Spencera773bd52006-08-04 18:18:08 +00008581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008582{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8583echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8584if test "${llvm_cv_link_use_r+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008586else
8587 ac_ext=c
8588ac_cpp='$CPP $CPPFLAGS'
8589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592
8593 oldcflags="$CFLAGS"
8594 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008595 cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008600/* end confdefs.h. */
8601
8602int
8603main ()
8604{
8605int main() { return 0; }
8606 ;
8607 return 0;
8608}
8609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008610rm -f conftest.$ac_objext conftest$ac_exeext
8611if { (ac_try="$ac_link"
8612case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615esac
8616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_link") 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628esac
8629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_try") 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_try") 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008644 llvm_cv_link_use_r=yes
8645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651
Bill Wendlingebcceee2009-04-18 11:20:33 +00008652rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008653 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008654 CFLAGS="$oldcflags"
8655 ac_ext=c
8656ac_cpp='$CPP $CPPFLAGS'
8657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660
8661
8662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8664echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008665if test "$llvm_cv_link_use_r" = yes ; then
8666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008667cat >>confdefs.h <<\_ACEOF
8668#define HAVE_LINK_R 1
8669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008670
8671 fi
8672
8673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8675echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8676if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008678else
8679 ac_ext=c
8680ac_cpp='$CPP $CPPFLAGS'
8681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683ac_compiler_gnu=$ac_cv_c_compiler_gnu
8684
8685 oldcflags="$CFLAGS"
8686 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687 cat >conftest.$ac_ext <<_ACEOF
8688/* confdefs.h. */
8689_ACEOF
8690cat confdefs.h >>conftest.$ac_ext
8691cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008692/* end confdefs.h. */
8693
8694int
8695main ()
8696{
8697int main() { return 0; }
8698 ;
8699 return 0;
8700}
8701_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008702rm -f conftest.$ac_objext conftest$ac_exeext
8703if { (ac_try="$ac_link"
8704case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707esac
8708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_link") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_try") 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008736 llvm_cv_link_use_export_dynamic=yes
8737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008738 echo "$as_me: failed program was:" >&5
8739sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008742fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008743
Bill Wendlingebcceee2009-04-18 11:20:33 +00008744rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008745 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008746 CFLAGS="$oldcflags"
8747 ac_ext=c
8748ac_cpp='$CPP $CPPFLAGS'
8749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752
8753
8754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008755{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8756echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008757if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759cat >>confdefs.h <<\_ACEOF
8760#define HAVE_LINK_EXPORT_DYNAMIC 1
8761_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008762
8763 fi
8764
8765
Reid Spencera773bd52006-08-04 18:18:08 +00008766
8767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008768{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8769echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8770if test "${ac_cv_c_const+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008773 cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h. */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008778/* end confdefs.h. */
8779
8780int
8781main ()
8782{
8783/* FIXME: Include the comments suggested by Paul. */
8784#ifndef __cplusplus
8785 /* Ultrix mips cc rejects this. */
8786 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008787 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008788 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008789 char const *const *ccp;
8790 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008791 /* NEC SVR4.0.2 mips cc rejects this. */
8792 struct point {int x, y;};
8793 static struct point const zero = {0,0};
8794 /* AIX XL C 1.02.0.0 rejects this.
8795 It does not let you subtract one const X* pointer from another in
8796 an arm of an if-expression whose if-part is not a constant
8797 expression */
8798 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008799 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008800 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 ++ccp;
8802 p = (char**) ccp;
8803 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008804 { /* SCO 3.2v4 cc rejects this. */
8805 char *t;
8806 char const *s = 0 ? (char *) 0 : (char const *) 0;
8807
8808 *t++ = 0;
8809 if (s) return 0;
8810 }
8811 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8812 int x[] = {25, 17};
8813 const int *foo = &x[0];
8814 ++foo;
8815 }
8816 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8817 typedef const int *iptr;
8818 iptr p = 0;
8819 ++p;
8820 }
8821 { /* AIX XL C 1.02.0.0 rejects this saying
8822 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8823 struct s { int j; const int *ap[3]; };
8824 struct s *b; b->j = 5;
8825 }
8826 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8827 const int foo = 10;
8828 if (!foo) return 0;
8829 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008830 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008831#endif
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008837rm -f conftest.$ac_objext
8838if { (ac_try="$ac_compile"
8839case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842esac
8843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852 { (case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8855esac
8856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_try") 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865esac
8866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008871 ac_cv_c_const=yes
8872else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008873 echo "$as_me: failed program was:" >&5
8874sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008878
Reid Spencera773bd52006-08-04 18:18:08 +00008879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008881{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8882echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008883if test $ac_cv_c_const = no; then
8884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008885cat >>confdefs.h <<\_ACEOF
8886#define const
8887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008888
8889fi
8890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008891
8892
8893
8894
8895
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008896ac_header_dirent=no
8897for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008898 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8899{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8900echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904 cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h. */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008909/* end confdefs.h. */
8910#include <sys/types.h>
8911#include <$ac_hdr>
8912
8913int
8914main ()
8915{
8916if ((DIR *) 0)
8917return 0;
8918 ;
8919 return 0;
8920}
8921_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008922rm -f conftest.$ac_objext
8923if { (ac_try="$ac_compile"
8924case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927esac
8928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_compile") 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940esac
8941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950esac
8951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956 eval "$as_ac_Header=yes"
8957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008958 echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
8960
8961 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008963
Reid Spencera773bd52006-08-04 18:18:08 +00008964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008966ac_res=`eval echo '${'$as_ac_Header'}'`
8967 { echo "$as_me:$LINENO: result: $ac_res" >&5
8968echo "${ECHO_T}$ac_res" >&6; }
8969if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008970 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008971#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008972_ACEOF
8973
8974ac_header_dirent=$ac_hdr; break
8975fi
8976
8977done
8978# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8979if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008980 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982if test "${ac_cv_search_opendir+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008984else
8985 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008991/* end confdefs.h. */
8992
Reid Spencera773bd52006-08-04 18:18:08 +00008993/* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996#ifdef __cplusplus
8997extern "C"
8998#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008999char opendir ();
9000int
9001main ()
9002{
Reid Spencera773bd52006-08-04 18:18:08 +00009003return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009004 ;
9005 return 0;
9006}
9007_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009008for ac_lib in '' dir; do
9009 if test -z "$ac_lib"; then
9010 ac_res="none required"
9011 else
9012 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009014 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009015 rm -f conftest.$ac_objext conftest$ac_exeext
9016if { (ac_try="$ac_link"
9017case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020esac
9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_link") 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033esac
9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_try") 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043esac
9044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_try") 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009049 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009056
Bill Wendlingebcceee2009-04-18 11:20:33 +00009057rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009058 conftest$ac_exeext
9059 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009060 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009061fi
John Criswell7a73b802003-06-30 21:59:07 +00009062done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009063if test "${ac_cv_search_opendir+set}" = set; then
9064 :
Reid Spencera773bd52006-08-04 18:18:08 +00009065else
9066 ac_cv_search_opendir=no
9067fi
9068rm conftest.$ac_ext
9069LIBS=$ac_func_search_save_LIBS
9070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009071{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9072echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009073ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009074if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009076
Reid Spencera773bd52006-08-04 18:18:08 +00009077fi
9078
9079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009080 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9081echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9082if test "${ac_cv_search_opendir+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009084else
9085 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009086cat >conftest.$ac_ext <<_ACEOF
9087/* confdefs.h. */
9088_ACEOF
9089cat confdefs.h >>conftest.$ac_ext
9090cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009091/* end confdefs.h. */
9092
9093/* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9096#ifdef __cplusplus
9097extern "C"
9098#endif
9099char opendir ();
9100int
9101main ()
9102{
9103return opendir ();
9104 ;
9105 return 0;
9106}
9107_ACEOF
9108for ac_lib in '' x; do
9109 if test -z "$ac_lib"; then
9110 ac_res="none required"
9111 else
9112 ac_res=-l$ac_lib
9113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9114 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009115 rm -f conftest.$ac_objext conftest$ac_exeext
9116if { (ac_try="$ac_link"
9117case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120esac
9121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9130 { (case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_try") 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009149 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154
Reid Spencera773bd52006-08-04 18:18:08 +00009155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009156
Bill Wendlingebcceee2009-04-18 11:20:33 +00009157rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009158 conftest$ac_exeext
9159 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009160 break
9161fi
9162done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009163if test "${ac_cv_search_opendir+set}" = set; then
9164 :
Reid Spencera773bd52006-08-04 18:18:08 +00009165else
9166 ac_cv_search_opendir=no
9167fi
9168rm conftest.$ac_ext
9169LIBS=$ac_func_search_save_LIBS
9170fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009171{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9172echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009173ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009174if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9176
9177fi
9178
9179fi
John Criswell7a73b802003-06-30 21:59:07 +00009180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009181
John Criswell7a73b802003-06-30 21:59:07 +00009182for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009183do
9184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190fi
9191ac_res=`eval echo '${'$as_ac_Header'}'`
9192 { echo "$as_me:$LINENO: result: $ac_res" >&5
9193echo "${ECHO_T}$ac_res" >&6; }
9194else
9195 # Is the header compilable?
9196{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9198cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h. */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h. */
9204$ac_includes_default
9205#include <$ac_header>
9206_ACEOF
9207rm -f conftest.$ac_objext
9208if { (ac_try="$ac_compile"
9209case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212esac
9213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9222 { (case "(($ac_try" in
9223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224 *) ac_try_echo=$ac_try;;
9225esac
9226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227 (eval "$ac_try") 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235esac
9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_try") 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_header_compiler=yes
9242else
9243 echo "$as_me: failed program was:" >&5
9244sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 ac_header_compiler=no
9247fi
9248
9249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251echo "${ECHO_T}$ac_header_compiler" >&6; }
9252
9253# Is the header present?
9254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9256cat >conftest.$ac_ext <<_ACEOF
9257/* confdefs.h. */
9258_ACEOF
9259cat confdefs.h >>conftest.$ac_ext
9260cat >>conftest.$ac_ext <<_ACEOF
9261/* end confdefs.h. */
9262#include <$ac_header>
9263_ACEOF
9264if { (ac_try="$ac_cpp conftest.$ac_ext"
9265case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268esac
9269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } >/dev/null; then
9277 if test -s conftest.err; then
9278 ac_cpp_err=$ac_c_preproc_warn_flag
9279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9280 else
9281 ac_cpp_err=
9282 fi
9283else
9284 ac_cpp_err=yes
9285fi
9286if test -z "$ac_cpp_err"; then
9287 ac_header_preproc=yes
9288else
9289 echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 ac_header_preproc=no
9293fi
9294
9295rm -f conftest.err conftest.$ac_ext
9296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9297echo "${ECHO_T}$ac_header_preproc" >&6; }
9298
9299# So? What about this header?
9300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9301 yes:no: )
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9306 ac_header_preproc=yes
9307 ;;
9308 no:yes:* )
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9321 ( cat <<\_ASBOX
9322## ----------------------------------- ##
9323## Report this to llvmbugs@cs.uiuc.edu ##
9324## ----------------------------------- ##
9325_ASBOX
9326 ) | sed "s/^/$as_me: WARNING: /" >&2
9327 ;;
9328esac
9329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333else
9334 eval "$as_ac_Header=\$ac_header_preproc"
9335fi
9336ac_res=`eval echo '${'$as_ac_Header'}'`
9337 { echo "$as_me:$LINENO: result: $ac_res" >&5
9338echo "${ECHO_T}$ac_res" >&6; }
9339
9340fi
9341if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009342 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009344_ACEOF
9345
9346fi
9347
9348done
9349
Reid Spencera773bd52006-08-04 18:18:08 +00009350# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009351if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009352 enableval=$enable_ltdl_install;
9353fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009354
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009356
9357
9358if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359 INSTALL_LTDL_TRUE=
9360 INSTALL_LTDL_FALSE='#'
9361else
9362 INSTALL_LTDL_TRUE='#'
9363 INSTALL_LTDL_FALSE=
9364fi
9365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366
9367
9368if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009369 CONVENIENCE_LTDL_TRUE=
9370 CONVENIENCE_LTDL_FALSE='#'
9371else
9372 CONVENIENCE_LTDL_TRUE='#'
9373 CONVENIENCE_LTDL_FALSE=
9374fi
9375
9376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9378echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379library_names_spec=
9380libname_spec='lib$name'
9381soname_spec=
9382shrext_cmds=".so"
9383postinstall_cmds=
9384postuninstall_cmds=
9385finish_cmds=
9386finish_eval=
9387shlibpath_var=
9388shlibpath_overrides_runpath=unknown
9389version_type=none
9390dynamic_linker="$host_os ld.so"
9391sys_lib_dlsearch_path_spec="/lib /usr/lib"
9392if test "$GCC" = yes; then
9393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9395 # if the path contains ";" then we assume it to be the separator
9396 # otherwise default to the standard path separator (i.e. ":") - it is
9397 # assumed that no part of a normal pathname contains ";" but that should
9398 # okay in the real world where ";" in dirpaths is itself problematic.
9399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9400 else
9401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9402 fi
9403else
9404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9405fi
9406need_lib_prefix=unknown
9407hardcode_into_libs=no
9408
9409# when you set need_version to no, make sure it does not cause -set_version
9410# flags to be left without arguments
9411need_version=unknown
9412
9413case $host_os in
9414aix3*)
9415 version_type=linux
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9417 shlibpath_var=LIBPATH
9418
9419 # AIX 3 has no versioning support, so we append a major version to the name.
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 ;;
9422
9423aix4* | aix5*)
9424 version_type=linux
9425 need_lib_prefix=no
9426 need_version=no
9427 hardcode_into_libs=yes
9428 if test "$host_cpu" = ia64; then
9429 # AIX 5 supports IA64
9430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 else
9433 # With GCC up to 2.95.x, collect2 would create an import file
9434 # for dependence libraries. The import file would start with
9435 # the line `#! .'. This would cause the generated library to
9436 # depend on `.', always an invalid library. This was fixed in
9437 # development snapshots of GCC prior to 3.0.
9438 case $host_os in
9439 aix4 | aix4.[01] | aix4.[01].*)
9440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9441 echo ' yes '
9442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9443 :
9444 else
9445 can_build_shared=no
9446 fi
9447 ;;
9448 esac
9449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9450 # soname into executable. Probably we can add versioning support to
9451 # collect2, so additional links can be useful in future.
9452 if test "$aix_use_runtimelinking" = yes; then
9453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9454 # instead of lib<name>.a to let people know that these are not
9455 # typical AIX shared libraries.
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 else
9458 # We preserve .a as extension for shared libraries through AIX4.2
9459 # and later when we are not doing run time linking.
9460 library_names_spec='${libname}${release}.a $libname.a'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 fi
9463 shlibpath_var=LIBPATH
9464 fi
9465 ;;
9466
9467amigaos*)
9468 library_names_spec='$libname.ixlibrary $libname.a'
9469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9470 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'
9471 ;;
9472
9473beos*)
9474 library_names_spec='${libname}${shared_ext}'
9475 dynamic_linker="$host_os ld.so"
9476 shlibpath_var=LIBRARY_PATH
9477 ;;
9478
9479bsdi[45]*)
9480 version_type=linux
9481 need_version=no
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9488 # the default ld.so.conf also contains /usr/contrib/lib and
9489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9490 # libtool to hard-code these into programs
9491 ;;
9492
9493cygwin* | mingw* | pw32*)
9494 version_type=windows
9495 shrext_cmds=".dll"
9496 need_version=no
9497 need_lib_prefix=no
9498
9499 case $GCC,$host_os in
9500 yes,cygwin* | yes,mingw* | yes,pw32*)
9501 library_names_spec='$libname.dll.a'
9502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9503 postinstall_cmds='base_file=`basename \${file}`~
9504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9505 dldir=$destdir/`dirname \$dlpath`~
9506 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009507 $install_prog $dir/$dlname \$dldir/$dlname~
9508 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9510 dlpath=$dir/\$dldll~
9511 $rm \$dlpath'
9512 shlibpath_overrides_runpath=yes
9513
9514 case $host_os in
9515 cygwin*)
9516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9519 ;;
9520 mingw*)
9521 # MinGW DLLs use traditional 'lib' prefix
9522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9525 # It is most probably a Windows format PATH printed by
9526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9527 # path with ; separators, and with drive letters. We can handle the
9528 # drive letters (cygwin fileutils understands them), so leave them,
9529 # especially as we might pass files found there to a mingw objdump,
9530 # which wouldn't understand a cygwinified path. Ahh.
9531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9532 else
9533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9534 fi
9535 ;;
9536 pw32*)
9537 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009538 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 +00009539 ;;
9540 esac
9541 ;;
9542
9543 *)
9544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9545 ;;
9546 esac
9547 dynamic_linker='Win32 ld.exe'
9548 # FIXME: first we should search . and the directory the executable is in
9549 shlibpath_var=PATH
9550 ;;
9551
9552darwin* | rhapsody*)
9553 dynamic_linker="$host_os dyld"
9554 version_type=darwin
9555 need_lib_prefix=no
9556 need_version=no
9557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9558 soname_spec='${libname}${release}${major}$shared_ext'
9559 shlibpath_overrides_runpath=yes
9560 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009561 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9563 if test "$GCC" = yes; then
9564 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"`
9565 else
9566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9567 fi
9568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9569 ;;
9570
9571dgux*)
9572 version_type=linux
9573 need_lib_prefix=no
9574 need_version=no
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 ;;
9579
9580freebsd1*)
9581 dynamic_linker=no
9582 ;;
9583
9584kfreebsd*-gnu)
9585 version_type=linux
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=no
9592 hardcode_into_libs=yes
9593 dynamic_linker='GNU ld.so'
9594 ;;
9595
Reid Spencera773bd52006-08-04 18:18:08 +00009596freebsd* | dragonfly*)
9597 # DragonFly does not have aout. When/if they implement a new
9598 # versioning mechanism, adjust this.
9599 if test -x /usr/bin/objformat; then
9600 objformat=`/usr/bin/objformat`
9601 else
9602 case $host_os in
9603 freebsd[123]*) objformat=aout ;;
9604 *) objformat=elf ;;
9605 esac
9606 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 version_type=freebsd-$objformat
9608 case $version_type in
9609 freebsd-elf*)
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9611 need_version=no
9612 need_lib_prefix=no
9613 ;;
9614 freebsd-*)
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9616 need_version=yes
9617 ;;
9618 esac
9619 shlibpath_var=LD_LIBRARY_PATH
9620 case $host_os in
9621 freebsd2*)
9622 shlibpath_overrides_runpath=yes
9623 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009624 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 shlibpath_overrides_runpath=no
9631 hardcode_into_libs=yes
9632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009633 freebsd*) # from 4.6 on
9634 shlibpath_overrides_runpath=yes
9635 hardcode_into_libs=yes
9636 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637 esac
9638 ;;
9639
9640gnu*)
9641 version_type=linux
9642 need_lib_prefix=no
9643 need_version=no
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 hardcode_into_libs=yes
9648 ;;
9649
9650hpux9* | hpux10* | hpux11*)
9651 # Give a soname corresponding to the major version so that dld.sl refuses to
9652 # link against other versions.
9653 version_type=sunos
9654 need_lib_prefix=no
9655 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009656 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657 ia64*)
9658 shrext_cmds='.so'
9659 hardcode_into_libs=yes
9660 dynamic_linker="$host_os dld.so"
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 if test "X$HPUX_IA64_MODE" = X32; then
9666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9667 else
9668 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9669 fi
9670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9671 ;;
9672 hppa*64*)
9673 shrext_cmds='.sl'
9674 hardcode_into_libs=yes
9675 dynamic_linker="$host_os dld.sl"
9676 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9682 ;;
9683 *)
9684 shrext_cmds='.sl'
9685 dynamic_linker="$host_os dld.sl"
9686 shlibpath_var=SHLIB_PATH
9687 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 ;;
9691 esac
9692 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9693 postinstall_cmds='chmod 555 $lib'
9694 ;;
9695
Reid Spencera773bd52006-08-04 18:18:08 +00009696interix3*)
9697 version_type=linux
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 shlibpath_overrides_runpath=no
9705 hardcode_into_libs=yes
9706 ;;
9707
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708irix5* | irix6* | nonstopux*)
9709 case $host_os in
9710 nonstopux*) version_type=nonstopux ;;
9711 *)
9712 if test "$lt_cv_prog_gnu_ld" = yes; then
9713 version_type=linux
9714 else
9715 version_type=irix
9716 fi ;;
9717 esac
9718 need_lib_prefix=no
9719 need_version=no
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9722 case $host_os in
9723 irix5* | nonstopux*)
9724 libsuff= shlibsuff=
9725 ;;
9726 *)
9727 case $LD in # libtool.m4 will add one of these switches to LD
9728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9729 libsuff= shlibsuff= libmagic=32-bit;;
9730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9731 libsuff=32 shlibsuff=N32 libmagic=N32;;
9732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9734 *) libsuff= shlibsuff= libmagic=never-match;;
9735 esac
9736 ;;
9737 esac
9738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9739 shlibpath_overrides_runpath=no
9740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9742 hardcode_into_libs=yes
9743 ;;
9744
9745# No shared lib support for Linux oldld, aout, or coff.
9746linux*oldld* | linux*aout* | linux*coff*)
9747 dynamic_linker=no
9748 ;;
9749
9750# This must be Linux ELF.
9751linux*)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=no
9760 # This implies no fast_install, which is unacceptable.
9761 # Some rework will be needed to allow for fast_install
9762 # before this can be enabled.
9763 hardcode_into_libs=yes
9764
9765 # Append ld.so.conf contents to the search path
9766 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009767 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 +00009768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9769 fi
9770
9771 # We used to test for /lib/ld.so.1 and disable shared libraries on
9772 # powerpc, because MkLinux only supported shared libraries with the
9773 # GNU dynamic linker. Since this was broken with cross compilers,
9774 # most powerpc-linux boxes support dynamic linking these days and
9775 # people can always --disable-shared, the test was removed, and we
9776 # assume the GNU/Linux dynamic linker is in use.
9777 dynamic_linker='GNU/Linux ld.so'
9778 ;;
9779
9780knetbsd*-gnu)
9781 version_type=linux
9782 need_lib_prefix=no
9783 need_version=no
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 shlibpath_overrides_runpath=no
9788 hardcode_into_libs=yes
9789 dynamic_linker='GNU ld.so'
9790 ;;
9791
9792netbsd*)
9793 version_type=sunos
9794 need_lib_prefix=no
9795 need_version=no
9796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9799 dynamic_linker='NetBSD (a.out) ld.so'
9800 else
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 dynamic_linker='NetBSD ld.elf_so'
9804 fi
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=yes
9807 hardcode_into_libs=yes
9808 ;;
9809
9810newsos6)
9811 version_type=linux
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 shlibpath_overrides_runpath=yes
9815 ;;
9816
9817nto-qnx*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 shlibpath_overrides_runpath=yes
9825 ;;
9826
9827openbsd*)
9828 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009829 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9832 case $host_os in
9833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9834 *) need_version=no ;;
9835 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9840 case $host_os in
9841 openbsd2.[89] | openbsd2.[89].*)
9842 shlibpath_overrides_runpath=no
9843 ;;
9844 *)
9845 shlibpath_overrides_runpath=yes
9846 ;;
9847 esac
9848 else
9849 shlibpath_overrides_runpath=yes
9850 fi
9851 ;;
9852
9853os2*)
9854 libname_spec='$name'
9855 shrext_cmds=".dll"
9856 need_lib_prefix=no
9857 library_names_spec='$libname${shared_ext} $libname.a'
9858 dynamic_linker='OS/2 ld.exe'
9859 shlibpath_var=LIBPATH
9860 ;;
9861
9862osf3* | osf4* | osf5*)
9863 version_type=osf
9864 need_lib_prefix=no
9865 need_version=no
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9871 ;;
9872
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873solaris*)
9874 version_type=linux
9875 need_lib_prefix=no
9876 need_version=no
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9882 # ldd complains unless libraries are executable
9883 postinstall_cmds='chmod +x $lib'
9884 ;;
9885
9886sunos4*)
9887 version_type=sunos
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 shlibpath_overrides_runpath=yes
9892 if test "$with_gnu_ld" = yes; then
9893 need_lib_prefix=no
9894 fi
9895 need_version=yes
9896 ;;
9897
Reid Spencera773bd52006-08-04 18:18:08 +00009898sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 version_type=linux
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 shlibpath_var=LD_LIBRARY_PATH
9903 case $host_vendor in
9904 sni)
9905 shlibpath_overrides_runpath=no
9906 need_lib_prefix=no
9907 export_dynamic_flag_spec='${wl}-Blargedynsym'
9908 runpath_var=LD_RUN_PATH
9909 ;;
9910 siemens)
9911 need_lib_prefix=no
9912 ;;
9913 motorola)
9914 need_lib_prefix=no
9915 need_version=no
9916 shlibpath_overrides_runpath=no
9917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9918 ;;
9919 esac
9920 ;;
9921
9922sysv4*MP*)
9923 if test -d /usr/nec ;then
9924 version_type=linux
9925 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9926 soname_spec='$libname${shared_ext}.$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 fi
9929 ;;
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9932 version_type=freebsd-elf
9933 need_lib_prefix=no
9934 need_version=no
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 shlibpath_var=LD_LIBRARY_PATH
9938 hardcode_into_libs=yes
9939 if test "$with_gnu_ld" = yes; then
9940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9941 shlibpath_overrides_runpath=no
9942 else
9943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9944 shlibpath_overrides_runpath=yes
9945 case $host_os in
9946 sco3.2v5*)
9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9948 ;;
9949 esac
9950 fi
9951 sys_lib_dlsearch_path_spec='/usr/lib'
9952 ;;
9953
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954uts4*)
9955 version_type=linux
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 ;;
9960
9961*)
9962 dynamic_linker=no
9963 ;;
9964esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009965{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9966echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967test "$dynamic_linker" = no && can_build_shared=no
9968
Reid Spencera773bd52006-08-04 18:18:08 +00009969variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9970if test "$GCC" = yes; then
9971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9972fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973
Reid Spencera773bd52006-08-04 18:18:08 +00009974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009975{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9976echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9977if test "${libltdl_cv_shlibext+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979else
9980
9981module=yes
9982eval libltdl_cv_shlibext=$shrext_cmds
9983
9984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9986echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987if test -n "$libltdl_cv_shlibext"; then
9988
9989cat >>confdefs.h <<_ACEOF
9990#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9991_ACEOF
9992
9993fi
9994
9995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009996{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9997echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9998if test "${libltdl_cv_shlibpath_var+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000else
10001 libltdl_cv_shlibpath_var="$shlibpath_var"
10002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010003{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10004echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005if test -n "$libltdl_cv_shlibpath_var"; then
10006
10007cat >>confdefs.h <<_ACEOF
10008#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10009_ACEOF
10010
10011fi
10012
10013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10015echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10016if test "${libltdl_cv_sys_search_path+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018else
10019 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010021{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10022echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023if test -n "$libltdl_cv_sys_search_path"; then
10024 sys_search_path=
10025 for dir in $libltdl_cv_sys_search_path; do
10026 if test -z "$sys_search_path"; then
10027 sys_search_path="$dir"
10028 else
10029 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10030 fi
10031 done
10032
10033cat >>confdefs.h <<_ACEOF
10034#define LTDL_SYSSEARCHPATH "$sys_search_path"
10035_ACEOF
10036
10037fi
10038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010039{ echo "$as_me:$LINENO: checking for objdir" >&5
10040echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10041if test "${libltdl_cv_objdir+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043else
10044 libltdl_cv_objdir="$objdir"
10045 if test -n "$objdir"; then
10046 :
10047 else
10048 rm -f .libs 2>/dev/null
10049 mkdir .libs 2>/dev/null
10050 if test -d .libs; then
10051 libltdl_cv_objdir=.libs
10052 else
10053 # MS-DOS does not allow filenames that begin with a dot.
10054 libltdl_cv_objdir=_libs
10055 fi
10056 rmdir .libs 2>/dev/null
10057 fi
10058
10059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010060{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10061echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062
10063cat >>confdefs.h <<_ACEOF
10064#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10065_ACEOF
10066
10067
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068
10069
10070
10071
10072# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010073{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10074echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10075if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077else
10078
10079# These are sane defaults that work on at least a few old systems.
10080# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10081
10082# Character class describing NM global symbol codes.
10083symcode='[BCDEGRST]'
10084
10085# Regexp to match symbols that can be accessed directly from C.
10086sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10087
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088# Transform an extracted symbol line into a proper C declaration
10089lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10090
10091# Transform an extracted symbol line into symbol name and symbol address
10092lt_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'"
10093
10094# Define system-specific variables.
10095case $host_os in
10096aix*)
10097 symcode='[BCDT]'
10098 ;;
10099cygwin* | mingw* | pw32*)
10100 symcode='[ABCDGISTW]'
10101 ;;
10102hpux*) # Its linker distinguishes data from code symbols
10103 if test "$host_cpu" = ia64; then
10104 symcode='[ABCDEGRST]'
10105 fi
10106 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10107 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'"
10108 ;;
10109linux*)
10110 if test "$host_cpu" = ia64; then
10111 symcode='[ABCDGIRSTW]'
10112 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10113 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'"
10114 fi
10115 ;;
10116irix* | nonstopux*)
10117 symcode='[BCDEGRST]'
10118 ;;
10119osf*)
10120 symcode='[BCDEGQRST]'
10121 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010122solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123 symcode='[BDRT]'
10124 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010125sco3.2v5*)
10126 symcode='[DT]'
10127 ;;
10128sysv4.2uw2*)
10129 symcode='[DT]'
10130 ;;
10131sysv5* | sco5v6* | unixware* | OpenUNIX*)
10132 symcode='[ABDT]'
10133 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134sysv4)
10135 symcode='[DFNSTU]'
10136 ;;
10137esac
10138
10139# Handle CRLF in mingw tool chain
10140opt_cr=
10141case $build_os in
10142mingw*)
10143 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10144 ;;
10145esac
10146
10147# If we're using GNU nm, then use its standard symbol codes.
10148case `$NM -V 2>&1` in
10149*GNU* | *'with BFD'*)
10150 symcode='[ABCDGIRSTW]' ;;
10151esac
10152
10153# Try without a prefix undercore, then with it.
10154for ac_symprfx in "" "_"; do
10155
Reid Spencera773bd52006-08-04 18:18:08 +000010156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10157 symxfrm="\\1 $ac_symprfx\\2 \\2"
10158
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010160 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 +000010161
10162 # Check to see that the pipe works correctly.
10163 pipe_works=no
10164
10165 rm -f conftest*
10166 cat > conftest.$ac_ext <<EOF
10167#ifdef __cplusplus
10168extern "C" {
10169#endif
10170char nm_test_var;
10171void nm_test_func(){}
10172#ifdef __cplusplus
10173}
10174#endif
10175int main(){nm_test_var='a';nm_test_func();return(0);}
10176EOF
10177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179 (eval $ac_compile) 2>&5
10180 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183 # Now try to grab the symbols.
10184 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010185 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 +000010186 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10187 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190 # Try sorting and uniquifying the output.
10191 if sort "$nlist" | uniq > "$nlist"T; then
10192 mv -f "$nlist"T "$nlist"
10193 else
10194 rm -f "$nlist"T
10195 fi
10196
10197 # Make sure that we snagged all the symbols we need.
10198 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10199 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10200 cat <<EOF > conftest.$ac_ext
10201#ifdef __cplusplus
10202extern "C" {
10203#endif
10204
10205EOF
10206 # Now generate the symbol file.
10207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10208
10209 cat <<EOF >> conftest.$ac_ext
10210#if defined (__STDC__) && __STDC__
10211# define lt_ptr_t void *
10212#else
10213# define lt_ptr_t char *
10214# define const
10215#endif
10216
10217/* The mapping between symbol names and symbols. */
10218const struct {
10219 const char *name;
10220 lt_ptr_t address;
10221}
10222lt_preloaded_symbols[] =
10223{
10224EOF
10225 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10226 cat <<\EOF >> conftest.$ac_ext
10227 {0, (lt_ptr_t) 0}
10228};
10229
10230#ifdef __cplusplus
10231}
10232#endif
10233EOF
10234 # Now try linking the two files.
10235 mv conftest.$ac_objext conftstm.$ac_objext
10236 lt_save_LIBS="$LIBS"
10237 lt_save_CFLAGS="$CFLAGS"
10238 LIBS="conftstm.$ac_objext"
10239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241 (eval $ac_link) 2>&5
10242 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010245 pipe_works=yes
10246 fi
10247 LIBS="$lt_save_LIBS"
10248 CFLAGS="$lt_save_CFLAGS"
10249 else
10250 echo "cannot find nm_test_func in $nlist" >&5
10251 fi
10252 else
10253 echo "cannot find nm_test_var in $nlist" >&5
10254 fi
10255 else
10256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10257 fi
10258 else
10259 echo "$progname: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10261 fi
10262 rm -f conftest* conftst*
10263
10264 # Do not use the global_symbol_pipe unless it works.
10265 if test "$pipe_works" = yes; then
10266 break
10267 else
10268 lt_cv_sys_global_symbol_pipe=
10269 fi
10270done
10271
10272fi
10273
10274if test -z "$lt_cv_sys_global_symbol_pipe"; then
10275 lt_cv_sys_global_symbol_to_cdecl=
10276fi
10277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010278 { echo "$as_me:$LINENO: result: failed" >&5
10279echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010281 { echo "$as_me:$LINENO: result: ok" >&5
10282echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283fi
10284
10285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010286{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10287echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10288if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290else
10291 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10292 libltdl_cv_preloaded_symbols=yes
10293 else
10294 libltdl_cv_preloaded_symbols=no
10295 fi
10296
10297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010298{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10299echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010302cat >>confdefs.h <<\_ACEOF
10303#define HAVE_PRELOADED_SYMBOLS 1
10304_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305
10306fi
10307
10308LIBADD_DL=
10309
10310ac_ext=c
10311ac_cpp='$CPP $CPPFLAGS'
10312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314ac_compiler_gnu=$ac_cv_c_compiler_gnu
10315
10316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010317{ echo "$as_me:$LINENO: checking for shl_load" >&5
10318echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10319if test "${ac_cv_func_shl_load+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322 cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
10328/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10330#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010332/* System header to define __stub macros and hopefully few prototypes,
10333 which can conflict with char shl_load (); below.
10334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10335 <limits.h> exists even on freestanding compilers. */
10336
10337#ifdef __STDC__
10338# include <limits.h>
10339#else
10340# include <assert.h>
10341#endif
10342
10343#undef shl_load
10344
10345/* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348#ifdef __cplusplus
10349extern "C"
10350#endif
10351char shl_load ();
10352/* The GNU C library defines this for functions which it implements
10353 to always fail with ENOSYS. Some functions are actually named
10354 something starting with __ and the normal name is an alias. */
10355#if defined __stub_shl_load || defined __stub___shl_load
10356choke me
10357#endif
10358
10359int
10360main ()
10361{
10362return shl_load ();
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367rm -f conftest.$ac_objext conftest$ac_exeext
10368if { (ac_try="$ac_link"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_link") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10382 { (case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385esac
10386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_try") 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest$ac_exeext'
10392 { (case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395esac
10396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_try") 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_func_shl_load=yes
10402else
10403 echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
10406 ac_cv_func_shl_load=no
10407fi
10408
10409rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411fi
10412{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10413echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10414if test $ac_cv_func_shl_load = yes; then
10415
10416cat >>confdefs.h <<\_ACEOF
10417#define HAVE_SHL_LOAD 1
10418_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419
10420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10422echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10423if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425else
10426 ac_check_lib_save_LIBS=$LIBS
10427LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010428cat >conftest.$ac_ext <<_ACEOF
10429/* confdefs.h. */
10430_ACEOF
10431cat confdefs.h >>conftest.$ac_ext
10432cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433/* end confdefs.h. */
10434
Reid Spencera773bd52006-08-04 18:18:08 +000010435/* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438#ifdef __cplusplus
10439extern "C"
10440#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441char shl_load ();
10442int
10443main ()
10444{
Reid Spencera773bd52006-08-04 18:18:08 +000010445return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 ;
10447 return 0;
10448}
10449_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450rm -f conftest.$ac_objext conftest$ac_exeext
10451if { (ac_try="$ac_link"
10452case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455esac
10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_link") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468esac
10469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484 ac_cv_lib_dld_shl_load=yes
10485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010491
Bill Wendlingebcceee2009-04-18 11:20:33 +000010492rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010493 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494LIBS=$ac_check_lib_save_LIBS
10495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010496{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10497echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10498if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010500cat >>confdefs.h <<\_ACEOF
10501#define HAVE_SHL_LOAD 1
10502_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503
10504 LIBADD_DL="$LIBADD_DL -ldld"
10505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010506 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510else
10511 ac_check_lib_save_LIBS=$LIBS
10512LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518/* end confdefs.h. */
10519
Reid Spencera773bd52006-08-04 18:18:08 +000010520/* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523#ifdef __cplusplus
10524extern "C"
10525#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526char dlopen ();
10527int
10528main ()
10529{
Reid Spencera773bd52006-08-04 18:18:08 +000010530return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531 ;
10532 return 0;
10533}
10534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010535rm -f conftest.$ac_objext conftest$ac_exeext
10536if { (ac_try="$ac_link"
10537case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540esac
10541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563esac
10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 ac_cv_lib_dl_dlopen=yes
10570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010576
Bill Wendlingebcceee2009-04-18 11:20:33 +000010577rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579LIBS=$ac_check_lib_save_LIBS
10580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010581{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10582echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10583if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585cat >>confdefs.h <<\_ACEOF
10586#define HAVE_LIBDL 1
10587_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588
10589 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010591 cat >conftest.$ac_ext <<_ACEOF
10592/* confdefs.h. */
10593_ACEOF
10594cat confdefs.h >>conftest.$ac_ext
10595cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010596/* end confdefs.h. */
10597#if HAVE_DLFCN_H
10598# include <dlfcn.h>
10599#endif
10600
10601int
10602main ()
10603{
10604dlopen(0, 0);
10605 ;
10606 return 0;
10607}
10608_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010609rm -f conftest.$ac_objext conftest$ac_exeext
10610if { (ac_try="$ac_link"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
10615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10624 { (case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627esac
10628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_try") 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest$ac_exeext'
10634 { (case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637esac
10638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_try") 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010644cat >>confdefs.h <<\_ACEOF
10645#define HAVE_LIBDL 1
10646_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 libltdl_cv_func_dlopen="yes"
10648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649 echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10653echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10654if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656else
10657 ac_check_lib_save_LIBS=$LIBS
10658LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659cat >conftest.$ac_ext <<_ACEOF
10660/* confdefs.h. */
10661_ACEOF
10662cat confdefs.h >>conftest.$ac_ext
10663cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664/* end confdefs.h. */
10665
Reid Spencera773bd52006-08-04 18:18:08 +000010666/* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669#ifdef __cplusplus
10670extern "C"
10671#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672char dlopen ();
10673int
10674main ()
10675{
Reid Spencera773bd52006-08-04 18:18:08 +000010676return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677 ;
10678 return 0;
10679}
10680_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010681rm -f conftest.$ac_objext conftest$ac_exeext
10682if { (ac_try="$ac_link"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_link") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } &&
10695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699esac
10700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715 ac_cv_lib_svld_dlopen=yes
10716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010722
Bill Wendlingebcceee2009-04-18 11:20:33 +000010723rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010724 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725LIBS=$ac_check_lib_save_LIBS
10726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010727{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10728echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10729if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010731cat >>confdefs.h <<\_ACEOF
10732#define HAVE_LIBDL 1
10733_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734
10735 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10738echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10739if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741else
10742 ac_check_lib_save_LIBS=$LIBS
10743LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010744cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749/* end confdefs.h. */
10750
Reid Spencera773bd52006-08-04 18:18:08 +000010751/* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754#ifdef __cplusplus
10755extern "C"
10756#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757char dld_link ();
10758int
10759main ()
10760{
Reid Spencera773bd52006-08-04 18:18:08 +000010761return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762 ;
10763 return 0;
10764}
10765_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010766rm -f conftest.$ac_objext conftest$ac_exeext
10767if { (ac_try="$ac_link"
10768case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771esac
10772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_link") 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010800 ac_cv_lib_dld_dld_link=yes
10801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010802 echo "$as_me: failed program was:" >&5
10803sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010807
Bill Wendlingebcceee2009-04-18 11:20:33 +000010808rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010809 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810LIBS=$ac_check_lib_save_LIBS
10811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010812{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10813echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10814if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816cat >>confdefs.h <<\_ACEOF
10817#define HAVE_DLD 1
10818_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819
10820 LIBADD_DL="$LIBADD_DL -ldld"
10821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010822 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10823echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10824if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826else
10827 cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
10832/* end confdefs.h. */
10833/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10835#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837/* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char _dyld_func_lookup (); below.
10839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010842#ifdef __STDC__
10843# include <limits.h>
10844#else
10845# include <assert.h>
10846#endif
10847
10848#undef _dyld_func_lookup
10849
10850/* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853#ifdef __cplusplus
10854extern "C"
10855#endif
10856char _dyld_func_lookup ();
10857/* The GNU C library defines this for functions which it implements
10858 to always fail with ENOSYS. Some functions are actually named
10859 something starting with __ and the normal name is an alias. */
10860#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10861choke me
10862#endif
10863
10864int
10865main ()
10866{
10867return _dyld_func_lookup ();
10868 ;
10869 return 0;
10870}
10871_ACEOF
10872rm -f conftest.$ac_objext conftest$ac_exeext
10873if { (ac_try="$ac_link"
10874case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900esac
10901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_func__dyld_func_lookup=yes
10907else
10908 echo "$as_me: failed program was:" >&5
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912fi
Reid Spencera773bd52006-08-04 18:18:08 +000010913
Bill Wendlingebcceee2009-04-18 11:20:33 +000010914rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010915 conftest$ac_exeext conftest.$ac_ext
10916fi
10917{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10918echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10919if test $ac_cv_func__dyld_func_lookup = yes; then
10920
10921cat >>confdefs.h <<\_ACEOF
10922#define HAVE_DYLD 1
10923_ACEOF
10924
10925fi
10926
10927
10928fi
10929
10930
10931fi
10932
10933
10934fi
10935
10936rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938
10939fi
10940
10941
10942fi
10943
10944
10945fi
10946
10947
10948if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10949then
10950 lt_save_LIBS="$LIBS"
10951 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952
10953for ac_func in dlerror
10954do
10955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10956{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960else
10961 cat >conftest.$ac_ext <<_ACEOF
10962/* confdefs.h. */
10963_ACEOF
10964cat confdefs.h >>conftest.$ac_ext
10965cat >>conftest.$ac_ext <<_ACEOF
10966/* end confdefs.h. */
10967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10969#define $ac_func innocuous_$ac_func
10970
10971/* System header to define __stub macros and hopefully few prototypes,
10972 which can conflict with char $ac_func (); below.
10973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10974 <limits.h> exists even on freestanding compilers. */
10975
10976#ifdef __STDC__
10977# include <limits.h>
10978#else
10979# include <assert.h>
10980#endif
10981
10982#undef $ac_func
10983
10984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987#ifdef __cplusplus
10988extern "C"
10989#endif
10990char $ac_func ();
10991/* The GNU C library defines this for functions which it implements
10992 to always fail with ENOSYS. Some functions are actually named
10993 something starting with __ and the normal name is an alias. */
10994#if defined __stub_$ac_func || defined __stub___$ac_func
10995choke me
10996#endif
10997
10998int
10999main ()
11000{
11001return $ac_func ();
11002 ;
11003 return 0;
11004}
11005_ACEOF
11006rm -f conftest.$ac_objext conftest$ac_exeext
11007if { (ac_try="$ac_link"
11008case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011esac
11012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_link") 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024esac
11025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 eval "$as_ac_var=yes"
11041else
11042 echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 eval "$as_ac_var=no"
11046fi
11047
11048rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050fi
11051ac_res=`eval echo '${'$as_ac_var'}'`
11052 { echo "$as_me:$LINENO: result: $ac_res" >&5
11053echo "${ECHO_T}$ac_res" >&6; }
11054if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057_ACEOF
11058
11059fi
11060done
11061
11062 LIBS="$lt_save_LIBS"
11063fi
11064ac_ext=c
11065ac_cpp='$CPP $CPPFLAGS'
11066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069
11070
11071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011072{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11073echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11074if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076else
11077 ac_cv_sys_symbol_underscore=no
11078 cat > conftest.$ac_ext <<EOF
11079void nm_test_func(){}
11080int main(){nm_test_func;return 0;}
11081EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083 (eval $ac_compile) 2>&5
11084 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 # Now try to grab the symbols.
11088 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011089 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 +000011090 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11091 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094 # See whether the symbols have a leading underscore.
11095 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11096 ac_cv_sys_symbol_underscore=yes
11097 else
11098 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11099 :
11100 else
11101 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11102 fi
11103 fi
11104 else
11105 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11106 fi
11107 else
11108 echo "configure: failed program was:" >&5
11109 cat conftest.c >&5
11110 fi
11111 rm -rf conftest*
11112
11113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011114{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11115echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116
11117
11118if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11119 if test x"$libltdl_cv_func_dlopen" = xyes ||
11120 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011121 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11122echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11123if test "${libltdl_cv_need_uscore+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125else
11126 libltdl_cv_need_uscore=unknown
11127 save_LIBS="$LIBS"
11128 LIBS="$LIBS $LIBADD_DL"
11129 if test "$cross_compiling" = yes; then :
11130 libltdl_cv_need_uscore=cross
11131else
11132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11133 lt_status=$lt_dlunknown
11134 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +000011135#line 11130 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136#include "confdefs.h"
11137
11138#if HAVE_DLFCN_H
11139#include <dlfcn.h>
11140#endif
11141
11142#include <stdio.h>
11143
11144#ifdef RTLD_GLOBAL
11145# define LT_DLGLOBAL RTLD_GLOBAL
11146#else
11147# ifdef DL_GLOBAL
11148# define LT_DLGLOBAL DL_GLOBAL
11149# else
11150# define LT_DLGLOBAL 0
11151# endif
11152#endif
11153
11154/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11155 find out it does not work in some platform. */
11156#ifndef LT_DLLAZY_OR_NOW
11157# ifdef RTLD_LAZY
11158# define LT_DLLAZY_OR_NOW RTLD_LAZY
11159# else
11160# ifdef DL_LAZY
11161# define LT_DLLAZY_OR_NOW DL_LAZY
11162# else
11163# ifdef RTLD_NOW
11164# define LT_DLLAZY_OR_NOW RTLD_NOW
11165# else
11166# ifdef DL_NOW
11167# define LT_DLLAZY_OR_NOW DL_NOW
11168# else
11169# define LT_DLLAZY_OR_NOW 0
11170# endif
11171# endif
11172# endif
11173# endif
11174#endif
11175
11176#ifdef __cplusplus
11177extern "C" void exit (int);
11178#endif
11179
11180void fnord() { int i=42;}
11181int main ()
11182{
11183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184 int status = $lt_dlunknown;
11185
11186 if (self)
11187 {
11188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11190 /* dlclose (self); */
11191 }
Reid Spencera773bd52006-08-04 18:18:08 +000011192 else
11193 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194
11195 exit (status);
11196}
11197EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011199 (eval $ac_link) 2>&5
11200 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011203 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204 lt_status=$?
11205 case x$lt_status in
11206 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11207 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011208 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209 esac
11210 else :
11211 # compilation failed
11212
11213 fi
11214fi
11215rm -fr conftest*
11216
11217 LIBS="$save_LIBS"
11218
11219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011220{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11221echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222 fi
11223fi
11224
11225if test x"$libltdl_cv_need_uscore" = xyes; then
11226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011227cat >>confdefs.h <<\_ACEOF
11228#define NEED_USCORE 1
11229_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230
11231fi
11232
11233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011234{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11235echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11236if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238else
11239 # PORTME does your system automatically load deplibs for dlopen?
11240 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11241 # For now, we just catch OSes we know something about -- in the
11242 # future, we'll try test this programmatically.
11243 libltdl_cv_sys_dlopen_deplibs=unknown
11244 case "$host_os" in
11245 aix3*|aix4.1.*|aix4.2.*)
11246 # Unknown whether this is true for these versions of AIX, but
11247 # we want this `case' here to explicitly catch those versions.
11248 libltdl_cv_sys_dlopen_deplibs=unknown
11249 ;;
11250 aix[45]*)
11251 libltdl_cv_sys_dlopen_deplibs=yes
11252 ;;
11253 darwin*)
11254 # Assuming the user has installed a libdl from somewhere, this is true
11255 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11256 libltdl_cv_sys_dlopen_deplibs=yes
11257 ;;
11258 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11259 # GNU and its variants, using gnu ld.so (Glibc)
11260 libltdl_cv_sys_dlopen_deplibs=yes
11261 ;;
11262 hpux10*|hpux11*)
11263 libltdl_cv_sys_dlopen_deplibs=yes
11264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011265 interix*)
11266 libltdl_cv_sys_dlopen_deplibs=yes
11267 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268 irix[12345]*|irix6.[01]*)
11269 # Catch all versions of IRIX before 6.2, and indicate that we don't
11270 # know how it worked for any of those versions.
11271 libltdl_cv_sys_dlopen_deplibs=unknown
11272 ;;
11273 irix*)
11274 # The case above catches anything before 6.2, and it's known that
11275 # at 6.2 and later dlopen does load deplibs.
11276 libltdl_cv_sys_dlopen_deplibs=yes
11277 ;;
11278 netbsd*)
11279 libltdl_cv_sys_dlopen_deplibs=yes
11280 ;;
11281 openbsd*)
11282 libltdl_cv_sys_dlopen_deplibs=yes
11283 ;;
11284 osf[1234]*)
11285 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11286 # it did *not* use an RPATH in a shared library to find objects the
11287 # library depends on, so we explictly say `no'.
11288 libltdl_cv_sys_dlopen_deplibs=no
11289 ;;
11290 osf5.0|osf5.0a|osf5.1)
11291 # dlopen *does* load deplibs and with the right loader patch applied
11292 # it even uses RPATH in a shared library to search for shared objects
11293 # that the library depends on, but there's no easy way to know if that
11294 # patch is installed. Since this is the case, all we can really
11295 # say is unknown -- it depends on the patch being installed. If
11296 # it is, this changes to `yes'. Without it, it would be `no'.
11297 libltdl_cv_sys_dlopen_deplibs=unknown
11298 ;;
11299 osf*)
11300 # the two cases above should catch all versions of osf <= 5.1. Read
11301 # the comments above for what we know about them.
11302 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11303 # is used to find them so we can finally say `yes'.
11304 libltdl_cv_sys_dlopen_deplibs=yes
11305 ;;
11306 solaris*)
11307 libltdl_cv_sys_dlopen_deplibs=yes
11308 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11310 libltdl_cv_sys_dlopen_deplibs=yes
11311 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 esac
11313
11314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011315{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11316echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011319cat >>confdefs.h <<\_ACEOF
11320#define LTDL_DLOPEN_DEPLIBS 1
11321_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322
11323fi
11324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011325
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011327do
11328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334fi
11335ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337echo "${ECHO_T}$ac_res" >&6; }
11338else
11339 # Is the header compilable?
11340{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
11348$ac_includes_default
11349#include <$ac_header>
11350_ACEOF
11351rm -f conftest.$ac_objext
11352if { (ac_try="$ac_compile"
11353case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_header_compiler=yes
11386else
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 ac_header_compiler=no
11391fi
11392
11393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395echo "${ECHO_T}$ac_header_compiler" >&6; }
11396
11397# Is the header present?
11398{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11400cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
11406#include <$ac_header>
11407_ACEOF
11408if { (ac_try="$ac_cpp conftest.$ac_ext"
11409case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } >/dev/null; then
11421 if test -s conftest.err; then
11422 ac_cpp_err=$ac_c_preproc_warn_flag
11423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11424 else
11425 ac_cpp_err=
11426 fi
11427else
11428 ac_cpp_err=yes
11429fi
11430if test -z "$ac_cpp_err"; then
11431 ac_header_preproc=yes
11432else
11433 echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 ac_header_preproc=no
11437fi
11438
11439rm -f conftest.err conftest.$ac_ext
11440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441echo "${ECHO_T}$ac_header_preproc" >&6; }
11442
11443# So? What about this header?
11444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11445 yes:no: )
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450 ac_header_preproc=yes
11451 ;;
11452 no:yes:* )
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11465 ( cat <<\_ASBOX
11466## ----------------------------------- ##
11467## Report this to llvmbugs@cs.uiuc.edu ##
11468## ----------------------------------- ##
11469_ASBOX
11470 ) | sed "s/^/$as_me: WARNING: /" >&2
11471 ;;
11472esac
11473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 eval "$as_ac_Header=\$ac_header_preproc"
11479fi
11480ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482echo "${ECHO_T}$ac_res" >&6; }
11483
11484fi
11485if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488_ACEOF
11489
11490fi
11491
11492done
11493
11494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011495{ echo "$as_me:$LINENO: checking for error_t" >&5
11496echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11497if test "${ac_cv_type_error_t+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500 cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507# include <argz.h>
11508#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011509
11510typedef error_t ac__type_new_;
11511int
11512main ()
11513{
11514if ((ac__type_new_ *) 0)
11515 return 0;
11516if (sizeof (ac__type_new_))
11517 return 0;
11518 ;
11519 return 0;
11520}
11521_ACEOF
11522rm -f conftest.$ac_objext
11523if { (ac_try="$ac_compile"
11524case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_compile") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11537 { (case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540esac
11541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_try") 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try='test -s conftest.$ac_objext'
11547 { (case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550esac
11551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_try") 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 ac_cv_type_error_t=yes
11557else
11558 echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561 ac_cv_type_error_t=no
11562fi
11563
11564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565fi
11566{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11567echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11568if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569
11570cat >>confdefs.h <<_ACEOF
11571#define HAVE_ERROR_T 1
11572_ACEOF
11573
11574
11575else
11576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011577cat >>confdefs.h <<\_ACEOF
11578#define error_t int
11579_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580
11581fi
11582
11583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584
11585
11586
11587
11588
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011590do
11591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11592{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11594if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11605#define $ac_func innocuous_$ac_func
11606
11607/* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char $ac_func (); below.
11609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11610 <limits.h> exists even on freestanding compilers. */
11611
11612#ifdef __STDC__
11613# include <limits.h>
11614#else
11615# include <assert.h>
11616#endif
11617
11618#undef $ac_func
11619
11620/* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623#ifdef __cplusplus
11624extern "C"
11625#endif
11626char $ac_func ();
11627/* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630#if defined __stub_$ac_func || defined __stub___$ac_func
11631choke me
11632#endif
11633
11634int
11635main ()
11636{
11637return $ac_func ();
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext conftest$ac_exeext
11643if { (ac_try="$ac_link"
11644case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647esac
11648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657 { (case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_try") 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest$ac_exeext'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
11671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 eval "$as_ac_var=yes"
11677else
11678 echo "$as_me: failed program was:" >&5
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681 eval "$as_ac_var=no"
11682fi
11683
11684rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686fi
11687ac_res=`eval echo '${'$as_ac_var'}'`
11688 { echo "$as_me:$LINENO: result: $ac_res" >&5
11689echo "${ECHO_T}$ac_res" >&6; }
11690if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693_ACEOF
11694
11695fi
11696done
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011717
11718
11719
11720
11721
11722
11723
11724
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11726 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011727do
11728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734fi
11735ac_res=`eval echo '${'$as_ac_Header'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737echo "${ECHO_T}$ac_res" >&6; }
11738else
11739 # Is the header compilable?
11740{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11742cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748$ac_includes_default
11749#include <$ac_header>
11750_ACEOF
11751rm -f conftest.$ac_objext
11752if { (ac_try="$ac_compile"
11753case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756esac
11757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_header_compiler=yes
11786else
11787 echo "$as_me: failed program was:" >&5
11788sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_header_compiler=no
11791fi
11792
11793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795echo "${ECHO_T}$ac_header_compiler" >&6; }
11796
11797# Is the header present?
11798{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11800cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806#include <$ac_header>
11807_ACEOF
11808if { (ac_try="$ac_cpp conftest.$ac_ext"
11809case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null; then
11821 if test -s conftest.err; then
11822 ac_cpp_err=$ac_c_preproc_warn_flag
11823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11824 else
11825 ac_cpp_err=
11826 fi
11827else
11828 ac_cpp_err=yes
11829fi
11830if test -z "$ac_cpp_err"; then
11831 ac_header_preproc=yes
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_header_preproc=no
11837fi
11838
11839rm -f conftest.err conftest.$ac_ext
11840{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841echo "${ECHO_T}$ac_header_preproc" >&6; }
11842
11843# So? What about this header?
11844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 yes:no: )
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc=yes
11851 ;;
11852 no:yes:* )
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11860echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865 ( cat <<\_ASBOX
11866## ----------------------------------- ##
11867## Report this to llvmbugs@cs.uiuc.edu ##
11868## ----------------------------------- ##
11869_ASBOX
11870 ) | sed "s/^/$as_me: WARNING: /" >&2
11871 ;;
11872esac
11873{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 eval "$as_ac_Header=\$ac_header_preproc"
11879fi
11880ac_res=`eval echo '${'$as_ac_Header'}'`
11881 { echo "$as_me:$LINENO: result: $ac_res" >&5
11882echo "${ECHO_T}$ac_res" >&6; }
11883
11884fi
11885if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888_ACEOF
11889
11890fi
11891
11892done
11893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011894
11895
11896
11897
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011899do
11900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906fi
11907ac_res=`eval echo '${'$as_ac_Header'}'`
11908 { echo "$as_me:$LINENO: result: $ac_res" >&5
11909echo "${ECHO_T}$ac_res" >&6; }
11910else
11911 # Is the header compilable?
11912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11914cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h. */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h. */
11920$ac_includes_default
11921#include <$ac_header>
11922_ACEOF
11923rm -f conftest.$ac_objext
11924if { (ac_try="$ac_compile"
11925case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11941esac
11942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
11952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_header_compiler=yes
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_header_compiler=no
11963fi
11964
11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11967echo "${ECHO_T}$ac_header_compiler" >&6; }
11968
11969# Is the header present?
11970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11972cat >conftest.$ac_ext <<_ACEOF
11973/* confdefs.h. */
11974_ACEOF
11975cat confdefs.h >>conftest.$ac_ext
11976cat >>conftest.$ac_ext <<_ACEOF
11977/* end confdefs.h. */
11978#include <$ac_header>
11979_ACEOF
11980if { (ac_try="$ac_cpp conftest.$ac_ext"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } >/dev/null; then
11993 if test -s conftest.err; then
11994 ac_cpp_err=$ac_c_preproc_warn_flag
11995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11996 else
11997 ac_cpp_err=
11998 fi
11999else
12000 ac_cpp_err=yes
12001fi
12002if test -z "$ac_cpp_err"; then
12003 ac_header_preproc=yes
12004else
12005 echo "$as_me: failed program was:" >&5
12006sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 ac_header_preproc=no
12009fi
12010
12011rm -f conftest.err conftest.$ac_ext
12012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12013echo "${ECHO_T}$ac_header_preproc" >&6; }
12014
12015# So? What about this header?
12016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12017 yes:no: )
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12022 ac_header_preproc=yes
12023 ;;
12024 no:yes:* )
12025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12037 ( cat <<\_ASBOX
12038## ----------------------------------- ##
12039## Report this to llvmbugs@cs.uiuc.edu ##
12040## ----------------------------------- ##
12041_ASBOX
12042 ) | sed "s/^/$as_me: WARNING: /" >&2
12043 ;;
12044esac
12045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 eval "$as_ac_Header=\$ac_header_preproc"
12051fi
12052ac_res=`eval echo '${'$as_ac_Header'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054echo "${ECHO_T}$ac_res" >&6; }
12055
12056fi
12057if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060_ACEOF
12061
12062fi
12063
12064done
12065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012066
12067
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012068for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012069do
12070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076fi
12077ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079echo "${ECHO_T}$ac_res" >&6; }
12080else
12081 # Is the header compilable?
12082{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12084cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090$ac_includes_default
12091#include <$ac_header>
12092_ACEOF
12093rm -f conftest.$ac_objext
12094if { (ac_try="$ac_compile"
12095case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098esac
12099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_compile") 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12108 { (case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111esac
12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_try") 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121esac
12122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_header_compiler=yes
12128else
12129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132 ac_header_compiler=no
12133fi
12134
12135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12137echo "${ECHO_T}$ac_header_compiler" >&6; }
12138
12139# Is the header present?
12140{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12142cat >conftest.$ac_ext <<_ACEOF
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148#include <$ac_header>
12149_ACEOF
12150if { (ac_try="$ac_cpp conftest.$ac_ext"
12151case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } >/dev/null; then
12163 if test -s conftest.err; then
12164 ac_cpp_err=$ac_c_preproc_warn_flag
12165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12166 else
12167 ac_cpp_err=
12168 fi
12169else
12170 ac_cpp_err=yes
12171fi
12172if test -z "$ac_cpp_err"; then
12173 ac_header_preproc=yes
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 ac_header_preproc=no
12179fi
12180
12181rm -f conftest.err conftest.$ac_ext
12182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12183echo "${ECHO_T}$ac_header_preproc" >&6; }
12184
12185# So? What about this header?
12186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12187 yes:no: )
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12192 ac_header_preproc=yes
12193 ;;
12194 no:yes:* )
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12207 ( cat <<\_ASBOX
12208## ----------------------------------- ##
12209## Report this to llvmbugs@cs.uiuc.edu ##
12210## ----------------------------------- ##
12211_ASBOX
12212 ) | sed "s/^/$as_me: WARNING: /" >&2
12213 ;;
12214esac
12215{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 eval "$as_ac_Header=\$ac_header_preproc"
12221fi
12222ac_res=`eval echo '${'$as_ac_Header'}'`
12223 { echo "$as_me:$LINENO: result: $ac_res" >&5
12224echo "${ECHO_T}$ac_res" >&6; }
12225
12226fi
12227if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230_ACEOF
12231 break
12232fi
12233
12234done
12235
12236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237
12238
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240do
12241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247 cat >conftest.$ac_ext <<_ACEOF
12248/* confdefs.h. */
12249_ACEOF
12250cat confdefs.h >>conftest.$ac_ext
12251cat >>conftest.$ac_ext <<_ACEOF
12252/* end confdefs.h. */
12253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12255#define $ac_func innocuous_$ac_func
12256
12257/* System header to define __stub macros and hopefully few prototypes,
12258 which can conflict with char $ac_func (); below.
12259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12260 <limits.h> exists even on freestanding compilers. */
12261
12262#ifdef __STDC__
12263# include <limits.h>
12264#else
12265# include <assert.h>
12266#endif
12267
12268#undef $ac_func
12269
12270/* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273#ifdef __cplusplus
12274extern "C"
12275#endif
12276char $ac_func ();
12277/* The GNU C library defines this for functions which it implements
12278 to always fail with ENOSYS. Some functions are actually named
12279 something starting with __ and the normal name is an alias. */
12280#if defined __stub_$ac_func || defined __stub___$ac_func
12281choke me
12282#endif
12283
12284int
12285main ()
12286{
12287return $ac_func ();
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext conftest$ac_exeext
12293if { (ac_try="$ac_link"
12294case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_link") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310esac
12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest$ac_exeext'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320esac
12321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 eval "$as_ac_var=yes"
12327else
12328 echo "$as_me: failed program was:" >&5
12329sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 eval "$as_ac_var=no"
12332fi
12333
12334rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336fi
12337ac_res=`eval echo '${'$as_ac_var'}'`
12338 { echo "$as_me:$LINENO: result: $ac_res" >&5
12339echo "${ECHO_T}$ac_res" >&6; }
12340if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343_ACEOF
12344 break
12345fi
12346done
12347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012348
12349
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351do
12352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357else
12358 cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
12364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12366#define $ac_func innocuous_$ac_func
12367
12368/* System header to define __stub macros and hopefully few prototypes,
12369 which can conflict with char $ac_func (); below.
12370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 <limits.h> exists even on freestanding compilers. */
12372
12373#ifdef __STDC__
12374# include <limits.h>
12375#else
12376# include <assert.h>
12377#endif
12378
12379#undef $ac_func
12380
12381/* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12384#ifdef __cplusplus
12385extern "C"
12386#endif
12387char $ac_func ();
12388/* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391#if defined __stub_$ac_func || defined __stub___$ac_func
12392choke me
12393#endif
12394
12395int
12396main ()
12397{
12398return $ac_func ();
12399 ;
12400 return 0;
12401}
12402_ACEOF
12403rm -f conftest.$ac_objext conftest$ac_exeext
12404if { (ac_try="$ac_link"
12405case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408esac
12409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_link") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431esac
12432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 eval "$as_ac_var=yes"
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 eval "$as_ac_var=no"
12443fi
12444
12445rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447fi
12448ac_res=`eval echo '${'$as_ac_var'}'`
12449 { echo "$as_me:$LINENO: result: $ac_res" >&5
12450echo "${ECHO_T}$ac_res" >&6; }
12451if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454_ACEOF
12455 break
12456fi
12457done
12458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012459
12460
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012462do
12463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468else
12469 cat >conftest.$ac_ext <<_ACEOF
12470/* confdefs.h. */
12471_ACEOF
12472cat confdefs.h >>conftest.$ac_ext
12473cat >>conftest.$ac_ext <<_ACEOF
12474/* end confdefs.h. */
12475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12477#define $ac_func innocuous_$ac_func
12478
12479/* System header to define __stub macros and hopefully few prototypes,
12480 which can conflict with char $ac_func (); below.
12481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482 <limits.h> exists even on freestanding compilers. */
12483
12484#ifdef __STDC__
12485# include <limits.h>
12486#else
12487# include <assert.h>
12488#endif
12489
12490#undef $ac_func
12491
12492/* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12495#ifdef __cplusplus
12496extern "C"
12497#endif
12498char $ac_func ();
12499/* The GNU C library defines this for functions which it implements
12500 to always fail with ENOSYS. Some functions are actually named
12501 something starting with __ and the normal name is an alias. */
12502#if defined __stub_$ac_func || defined __stub___$ac_func
12503choke me
12504#endif
12505
12506int
12507main ()
12508{
12509return $ac_func ();
12510 ;
12511 return 0;
12512}
12513_ACEOF
12514rm -f conftest.$ac_objext conftest$ac_exeext
12515if { (ac_try="$ac_link"
12516case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519esac
12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_link") 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 eval "$as_ac_var=yes"
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 eval "$as_ac_var=no"
12554fi
12555
12556rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558fi
12559ac_res=`eval echo '${'$as_ac_var'}'`
12560 { echo "$as_me:$LINENO: result: $ac_res" >&5
12561echo "${ECHO_T}$ac_res" >&6; }
12562if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012565_ACEOF
12566 break
12567fi
12568done
12569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012570
12571
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573do
12574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12577if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579else
12580 cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12588#define $ac_func innocuous_$ac_func
12589
12590/* System header to define __stub macros and hopefully few prototypes,
12591 which can conflict with char $ac_func (); below.
12592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593 <limits.h> exists even on freestanding compilers. */
12594
12595#ifdef __STDC__
12596# include <limits.h>
12597#else
12598# include <assert.h>
12599#endif
12600
12601#undef $ac_func
12602
12603/* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609char $ac_func ();
12610/* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613#if defined __stub_$ac_func || defined __stub___$ac_func
12614choke me
12615#endif
12616
12617int
12618main ()
12619{
12620return $ac_func ();
12621 ;
12622 return 0;
12623}
12624_ACEOF
12625rm -f conftest.$ac_objext conftest$ac_exeext
12626if { (ac_try="$ac_link"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
12654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 eval "$as_ac_var=yes"
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 eval "$as_ac_var=no"
12665fi
12666
12667rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669fi
12670ac_res=`eval echo '${'$as_ac_var'}'`
12671 { echo "$as_me:$LINENO: result: $ac_res" >&5
12672echo "${ECHO_T}$ac_res" >&6; }
12673if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012674 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012676_ACEOF
12677
12678fi
12679done
12680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012681
12682
12683
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685do
12686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
12692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12700#define $ac_func innocuous_$ac_func
12701
12702/* System header to define __stub macros and hopefully few prototypes,
12703 which can conflict with char $ac_func (); below.
12704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12705 <limits.h> exists even on freestanding compilers. */
12706
12707#ifdef __STDC__
12708# include <limits.h>
12709#else
12710# include <assert.h>
12711#endif
12712
12713#undef $ac_func
12714
12715/* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12718#ifdef __cplusplus
12719extern "C"
12720#endif
12721char $ac_func ();
12722/* The GNU C library defines this for functions which it implements
12723 to always fail with ENOSYS. Some functions are actually named
12724 something starting with __ and the normal name is an alias. */
12725#if defined __stub_$ac_func || defined __stub___$ac_func
12726choke me
12727#endif
12728
12729int
12730main ()
12731{
12732return $ac_func ();
12733 ;
12734 return 0;
12735}
12736_ACEOF
12737rm -f conftest.$ac_objext conftest$ac_exeext
12738if { (ac_try="$ac_link"
12739case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12742esac
12743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765esac
12766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_try") 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 eval "$as_ac_var=yes"
12772else
12773 echo "$as_me: failed program was:" >&5
12774sed 's/^/| /' conftest.$ac_ext >&5
12775
12776 eval "$as_ac_var=no"
12777fi
12778
12779rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781fi
12782ac_res=`eval echo '${'$as_ac_var'}'`
12783 { echo "$as_me:$LINENO: result: $ac_res" >&5
12784echo "${ECHO_T}$ac_res" >&6; }
12785if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012786 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012788_ACEOF
12789
12790fi
12791done
12792
12793
Douglas Gregor01746742009-05-11 18:05:52 +000012794
Reid Spencer7931a782004-12-27 06:15:02 +000012795if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012796 LLVMGCC="llvm-gcc${EXEEXT}"
12797 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012798 LLVMGCCCOMMAND="$LLVMGCC"
12799 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012800 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12801
12802 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12803
Reid Spencerc84492c2005-06-02 22:34:49 +000012804 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12805set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12808if test "${ac_cv_path_LLVMGCC+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012810else
12811 case $LLVMGCC in
12812 [\\/]* | ?:[\\/]*)
12813 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12814 ;;
12815 *)
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $PATH
12818do
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 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 +000012823 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012825 break 2
12826 fi
12827done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828done
Reid Spencera773bd52006-08-04 18:18:08 +000012829IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012830
Reid Spencer59473af2004-12-25 07:31:29 +000012831 ;;
12832esac
12833fi
12834LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012835if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12837echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839 { echo "$as_me:$LINENO: result: no" >&5
12840echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012841fi
12842
Reid Spencera773bd52006-08-04 18:18:08 +000012843
Reid Spencerc84492c2005-06-02 22:34:49 +000012844 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12845set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12848if test "${ac_cv_path_LLVMGXX+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012850else
12851 case $LLVMGXX in
12852 [\\/]* | ?:[\\/]*)
12853 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12854 ;;
12855 *)
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 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 +000012863 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012865 break 2
12866 fi
12867done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012868done
Reid Spencera773bd52006-08-04 18:18:08 +000012869IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012870
Reid Spencer59473af2004-12-25 07:31:29 +000012871 ;;
12872esac
12873fi
12874LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012875if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012876 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12877echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012879 { echo "$as_me:$LINENO: result: no" >&5
12880echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012881fi
12882
Reid Spencera773bd52006-08-04 18:18:08 +000012883
Reid Spencer59473af2004-12-25 07:31:29 +000012884else
Devang Patel5d28b882007-12-04 22:54:47 +000012885 if test -z "$LLVMGCC"; then
12886 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012887 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012888 fi
12889 if test -z "$LLVMGXX"; then
12890 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012891 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012892 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012893
Reid Spencer59473af2004-12-25 07:31:29 +000012894 LLVMGCC=$LLVMGCC
12895
12896 LLVMGXX=$LLVMGXX
12897
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012898 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12899
12900 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12901
Reid Spencer59473af2004-12-25 07:31:29 +000012902fi
12903
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012904
Daniel Dunbar98515672010-02-23 10:00:49 +000012905# Check whether --with-llvmcc was given.
12906if test "${with_llvmcc+set}" = set; then
12907 withval=$with_llvmcc;
12908else
12909 with_llvmcc=check
12910fi
12911
12912{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12913echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12914if test "$with_llvmcc" != "check"; then
12915 if (test "$with_llvmcc" != "llvm-gcc" &&
12916 test "$with_llvmcc" != "clang" &&
12917 test "$with_llvmcc" != "none"); then
12918 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12919echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12920 { (exit 1); exit 1; }; }
12921 fi
12922 WITH_LLVMCC="$with_llvmcc"
12923elif test -n "$LLVMGCC"; then
12924 WITH_LLVMCC=llvm-gcc
12925elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12926 WITH_LLVMCC=clang
12927else
12928 WITH_LLVMCC=none
12929fi
12930{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12931echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12932LLVMCC_OPTION=$WITH_LLVMCC
12933
12934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12936echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012937
Reid Spencer86901802004-12-08 23:07:27 +000012938ICC=no
12939IXX=no
12940case $CC in
12941 icc*|icpc*)
12942 ICC=yes
12943 IXX=yes
12944 ;;
12945 *)
12946 ;;
12947esac
12948
Duraid Madina937c60a2006-02-15 07:57:42 +000012949if test "$GCC" != "yes" && test "$ICC" != "yes"
12950then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012951 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12952echo "$as_me: error: gcc|icc required but not found" >&2;}
12953 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012954fi
12955
12956if test "$GXX" != "yes" && test "$IXX" != "yes"
12957then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12959echo "$as_me: error: g++|icc required but not found" >&2;}
12960 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012961fi
12962
Reid Spencer86901802004-12-08 23:07:27 +000012963if test "$GCC" = "yes"
12964then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012965 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012966#if !defined(__GNUC__) || __GNUC__ < 3
12967#error Unsupported GCC version
12968#endif
12969
12970_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971rm -f conftest.$ac_objext
12972if { (ac_try="$ac_compile"
12973case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976esac
12977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_compile") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13011echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13012 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013014
Chris Lattner399c7c72008-02-05 19:43:53 +000013015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013016fi
13017
13018if test -z "$llvm_cv_gnu_make_command"
13019then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13021echo "$as_me: error: GNU Make required but not found" >&2;}
13022 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013023fi
13024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025{ echo "$as_me:$LINENO: result: ok" >&5
13026echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13029echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013030NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13031
13032NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013034{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13035echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013036
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013038
13039{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13040echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13041if test "${ac_cv_lib_m_sin+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013043else
13044 ac_check_lib_save_LIBS=$LIBS
13045LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046cat >conftest.$ac_ext <<_ACEOF
13047/* confdefs.h. */
13048_ACEOF
13049cat confdefs.h >>conftest.$ac_ext
13050cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013051/* end confdefs.h. */
13052
Reid Spencera773bd52006-08-04 18:18:08 +000013053/* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013056#ifdef __cplusplus
13057extern "C"
13058#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013059char sin ();
13060int
13061main ()
13062{
Reid Spencera773bd52006-08-04 18:18:08 +000013063return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013064 ;
13065 return 0;
13066}
13067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013068rm -f conftest.$ac_objext conftest$ac_exeext
13069if { (ac_try="$ac_link"
13070case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_link") 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13083 { (case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086esac
13087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_try") 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try='test -s conftest$ac_exeext'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013102 ac_cv_lib_m_sin=yes
13103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104 echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013109
Bill Wendlingebcceee2009-04-18 11:20:33 +000013110rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013111 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013112LIBS=$ac_check_lib_save_LIBS
13113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13115echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13116if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013117 cat >>confdefs.h <<_ACEOF
13118#define HAVE_LIBM 1
13119_ACEOF
13120
13121 LIBS="-lm $LIBS"
13122
13123fi
13124
Jeff Cohen28783c32007-01-12 18:22:38 +000013125if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013126
13127{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13128echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13129if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013131else
13132 ac_check_lib_save_LIBS=$LIBS
13133LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134cat >conftest.$ac_ext <<_ACEOF
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013139/* end confdefs.h. */
13140
Reid Spencer48fdf912006-06-01 19:03:21 +000013141
Reid Spencer484fc8e2006-06-01 16:55:59 +000013142int
13143main ()
13144{
Reid Spencera773bd52006-08-04 18:18:08 +000013145return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013146 ;
13147 return 0;
13148}
13149_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013150rm -f conftest.$ac_objext conftest$ac_exeext
13151if { (ac_try="$ac_link"
13152case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155esac
13156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_link") 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168esac
13169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest$ac_exeext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178esac
13179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013184 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013186 echo "$as_me: failed program was:" >&5
13187sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013191
Bill Wendlingebcceee2009-04-18 11:20:33 +000013192rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013194LIBS=$ac_check_lib_save_LIBS
13195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13197echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13198if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013199 cat >>confdefs.h <<_ACEOF
13200#define HAVE_LIBIMAGEHLP 1
13201_ACEOF
13202
13203 LIBS="-limagehlp $LIBS"
13204
13205fi
13206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013207
13208{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13209echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13210if test "${ac_cv_lib_psapi_main+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013212else
13213 ac_check_lib_save_LIBS=$LIBS
13214LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013220/* end confdefs.h. */
13221
Reid Spencer48fdf912006-06-01 19:03:21 +000013222
Reid Spencer484fc8e2006-06-01 16:55:59 +000013223int
13224main ()
13225{
Reid Spencera773bd52006-08-04 18:18:08 +000013226return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013227 ;
13228 return 0;
13229}
13230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013231rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259esac
13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013265 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272
Bill Wendlingebcceee2009-04-18 11:20:33 +000013273rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013275LIBS=$ac_check_lib_save_LIBS
13276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13278echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13279if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013280 cat >>confdefs.h <<_ACEOF
13281#define HAVE_LIBPSAPI 1
13282_ACEOF
13283
13284 LIBS="-lpsapi $LIBS"
13285
13286fi
13287
13288fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13291echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13292if test "${ac_cv_search_dlopen+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013294else
13295 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013302
Reid Spencera773bd52006-08-04 18:18:08 +000013303/* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013306#ifdef __cplusplus
13307extern "C"
13308#endif
John Criswell7a73b802003-06-30 21:59:07 +000013309char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013310int
13311main ()
13312{
Reid Spencera773bd52006-08-04 18:18:08 +000013313return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013314 ;
13315 return 0;
13316}
13317_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013318for ac_lib in '' dl; do
13319 if test -z "$ac_lib"; then
13320 ac_res="none required"
13321 else
13322 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013324 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325 rm -f conftest.$ac_objext conftest$ac_exeext
13326if { (ac_try="$ac_link"
13327case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_link") 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest$ac_exeext'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013359 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013360else
13361 echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
13364
John Criswell7a73b802003-06-30 21:59:07 +000013365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366
Bill Wendlingebcceee2009-04-18 11:20:33 +000013367rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368 conftest$ac_exeext
13369 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013370 break
John Criswell7a73b802003-06-30 21:59:07 +000013371fi
Reid Spencera773bd52006-08-04 18:18:08 +000013372done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373if test "${ac_cv_search_dlopen+set}" = set; then
13374 :
Reid Spencera773bd52006-08-04 18:18:08 +000013375else
13376 ac_cv_search_dlopen=no
13377fi
13378rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013379LIBS=$ac_func_search_save_LIBS
13380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013381{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13382echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013383ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013384if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013387cat >>confdefs.h <<\_ACEOF
13388#define HAVE_DLOPEN 1
13389_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013390
13391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13393echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013394fi
13395
13396
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013397if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013398 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13399echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13400if test "${ac_cv_search_ffi_call+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013402else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013403 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013409/* end confdefs.h. */
13410
13411/* Override any GCC internal prototype to avoid an error.
13412 Use char because int might match the return type of a GCC
13413 builtin and then its argument prototype would still apply. */
13414#ifdef __cplusplus
13415extern "C"
13416#endif
13417char ffi_call ();
13418int
13419main ()
13420{
13421return ffi_call ();
13422 ;
13423 return 0;
13424}
13425_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013426for ac_lib in '' ffi; do
13427 if test -z "$ac_lib"; then
13428 ac_res="none required"
13429 else
13430 ac_res=-l$ac_lib
13431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13432 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433 rm -f conftest.$ac_objext conftest$ac_exeext
13434if { (ac_try="$ac_link"
13435case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438esac
13439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_link") 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13451esac
13452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
13458 { (case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461esac
13462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_try") 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013467 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468else
13469 echo "$as_me: failed program was:" >&5
13470sed 's/^/| /' conftest.$ac_ext >&5
13471
13472
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474
Bill Wendlingebcceee2009-04-18 11:20:33 +000013475rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013476 conftest$ac_exeext
13477 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013478 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013479fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013481if test "${ac_cv_search_ffi_call+set}" = set; then
13482 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013483else
13484 ac_cv_search_ffi_call=no
13485fi
13486rm conftest.$ac_ext
13487LIBS=$ac_func_search_save_LIBS
13488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013489{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13490echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013491ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495cat >>confdefs.h <<\_ACEOF
13496#define HAVE_FFI_CALL 1
13497_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013498
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013499else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013500 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13501echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13502 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013503fi
13504
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013505fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013507{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13508echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13509if test "${ac_cv_search_mallinfo+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013511else
13512 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513cat >conftest.$ac_ext <<_ACEOF
13514/* confdefs.h. */
13515_ACEOF
13516cat confdefs.h >>conftest.$ac_ext
13517cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013519
Reid Spencera773bd52006-08-04 18:18:08 +000013520/* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013523#ifdef __cplusplus
13524extern "C"
13525#endif
John Criswell7a73b802003-06-30 21:59:07 +000013526char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013527int
13528main ()
13529{
Reid Spencera773bd52006-08-04 18:18:08 +000013530return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013531 ;
13532 return 0;
13533}
13534_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013535for ac_lib in '' malloc; do
13536 if test -z "$ac_lib"; then
13537 ac_res="none required"
13538 else
13539 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013541 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542 rm -f conftest.$ac_objext conftest$ac_exeext
13543if { (ac_try="$ac_link"
13544case "(($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_link") 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570esac
13571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013576 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013577else
13578 echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
13581
John Criswell7a73b802003-06-30 21:59:07 +000013582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013583
Bill Wendlingebcceee2009-04-18 11:20:33 +000013584rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013585 conftest$ac_exeext
13586 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013587 break
John Criswell7a73b802003-06-30 21:59:07 +000013588fi
Reid Spencera773bd52006-08-04 18:18:08 +000013589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590if test "${ac_cv_search_mallinfo+set}" = set; then
13591 :
Reid Spencera773bd52006-08-04 18:18:08 +000013592else
13593 ac_cv_search_mallinfo=no
13594fi
13595rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013596LIBS=$ac_func_search_save_LIBS
13597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13599echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013600ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013601if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013604cat >>confdefs.h <<\_ACEOF
13605#define HAVE_MALLINFO 1
13606_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013607
13608fi
13609
13610
Reid Spencer0a262ba2005-08-24 10:07:20 +000013611if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013612
13613{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13614echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13615if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013617else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013618 ac_check_lib_save_LIBS=$LIBS
13619LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013625/* end confdefs.h. */
13626
Reid Spencera773bd52006-08-04 18:18:08 +000013627/* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013630#ifdef __cplusplus
13631extern "C"
13632#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013633char pthread_mutex_init ();
13634int
13635main ()
13636{
Reid Spencera773bd52006-08-04 18:18:08 +000013637return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013638 ;
13639 return 0;
13640}
13641_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013642rm -f conftest.$ac_objext conftest$ac_exeext
13643if { (ac_try="$ac_link"
13644case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647esac
13648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_link") 2>conftest.er1
13650 ac_status=$?
13651 grep -v '^ *+' conftest.er1 >conftest.err
13652 rm -f conftest.er1
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660esac
13661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest$ac_exeext'
13667 { (case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670esac
13671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_try") 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013676 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013678 echo "$as_me: failed program was:" >&5
13679sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013683
Bill Wendlingebcceee2009-04-18 11:20:33 +000013684rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013685 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013686LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013688{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13689echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13690if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013691 cat >>confdefs.h <<_ACEOF
13692#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013693_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013694
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013695 LIBS="-lpthread $LIBS"
13696
Reid Spencer22177fe2005-07-12 15:24:20 +000013697fi
13698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013699 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13700echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13701if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013703else
13704 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013705cat >conftest.$ac_ext <<_ACEOF
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013710/* end confdefs.h. */
13711
Reid Spencera773bd52006-08-04 18:18:08 +000013712/* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013715#ifdef __cplusplus
13716extern "C"
13717#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013718char pthread_mutex_lock ();
13719int
13720main ()
13721{
Reid Spencera773bd52006-08-04 18:18:08 +000013722return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013723 ;
13724 return 0;
13725}
13726_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013727for ac_lib in '' pthread; do
13728 if test -z "$ac_lib"; then
13729 ac_res="none required"
13730 else
13731 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013733 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013734 rm -f conftest.$ac_objext conftest$ac_exeext
13735if { (ac_try="$ac_link"
13736case "(($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_link") 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13749 { (case "(($ac_try" in
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751 *) ac_try_echo=$ac_try;;
13752esac
13753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754 (eval "$ac_try") 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762esac
13763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_try") 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013768 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013769else
13770 echo "$as_me: failed program was:" >&5
13771sed 's/^/| /' conftest.$ac_ext >&5
13772
13773
Brian Gaeke5f268f72003-12-05 19:29:01 +000013774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013775
Bill Wendlingebcceee2009-04-18 11:20:33 +000013776rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013777 conftest$ac_exeext
13778 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013779 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013780fi
Reid Spencera773bd52006-08-04 18:18:08 +000013781done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013782if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13783 :
Reid Spencera773bd52006-08-04 18:18:08 +000013784else
13785 ac_cv_search_pthread_mutex_lock=no
13786fi
13787rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013788LIBS=$ac_func_search_save_LIBS
13789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013790{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13791echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013792ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013793if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013796cat >>confdefs.h <<\_ACEOF
13797#define HAVE_PTHREAD_MUTEX_LOCK 1
13798_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013799
13800fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13803echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13804if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013806else
13807 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808cat >conftest.$ac_ext <<_ACEOF
13809/* confdefs.h. */
13810_ACEOF
13811cat confdefs.h >>conftest.$ac_ext
13812cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013813/* end confdefs.h. */
13814
13815/* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13818#ifdef __cplusplus
13819extern "C"
13820#endif
13821char pthread_rwlock_init ();
13822int
13823main ()
13824{
13825return pthread_rwlock_init ();
13826 ;
13827 return 0;
13828}
13829_ACEOF
13830for ac_lib in '' pthread; do
13831 if test -z "$ac_lib"; then
13832 ac_res="none required"
13833 else
13834 ac_res=-l$ac_lib
13835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13836 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837 rm -f conftest.$ac_objext conftest$ac_exeext
13838if { (ac_try="$ac_link"
13839case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13842esac
13843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_link") 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest$ac_exeext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865esac
13866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013871 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872else
13873 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5
13875
13876
Owen Andersonde8aed22009-06-16 18:20:20 +000013877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878
Owen Andersonde8aed22009-06-16 18:20:20 +000013879rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013880 conftest$ac_exeext
13881 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013882 break
13883fi
13884done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013885if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13886 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013887else
13888 ac_cv_search_pthread_rwlock_init=no
13889fi
13890rm conftest.$ac_ext
13891LIBS=$ac_func_search_save_LIBS
13892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013893{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13894echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013895ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013896if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899cat >>confdefs.h <<\_ACEOF
13900#define HAVE_PTHREAD_RWLOCK_INIT 1
13901_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013902
13903fi
13904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13906echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13907if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013909else
13910 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911cat >conftest.$ac_ext <<_ACEOF
13912/* confdefs.h. */
13913_ACEOF
13914cat confdefs.h >>conftest.$ac_ext
13915cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013916/* end confdefs.h. */
13917
13918/* Override any GCC internal prototype to avoid an error.
13919 Use char because int might match the return type of a GCC
13920 builtin and then its argument prototype would still apply. */
13921#ifdef __cplusplus
13922extern "C"
13923#endif
13924char pthread_getspecific ();
13925int
13926main ()
13927{
13928return pthread_getspecific ();
13929 ;
13930 return 0;
13931}
13932_ACEOF
13933for ac_lib in '' pthread; do
13934 if test -z "$ac_lib"; then
13935 ac_res="none required"
13936 else
13937 ac_res=-l$ac_lib
13938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13939 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940 rm -f conftest.$ac_objext conftest$ac_exeext
13941if { (ac_try="$ac_link"
13942case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13945esac
13946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_link") 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968esac
13969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_try") 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013974 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975else
13976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979
Owen Anderson27fcfe12009-06-25 23:10:26 +000013980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981
Owen Anderson27fcfe12009-06-25 23:10:26 +000013982rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013983 conftest$ac_exeext
13984 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013985 break
13986fi
13987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013988if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13989 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013990else
13991 ac_cv_search_pthread_getspecific=no
13992fi
13993rm conftest.$ac_ext
13994LIBS=$ac_func_search_save_LIBS
13995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013996{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13997echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013998ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002cat >>confdefs.h <<\_ACEOF
14003#define HAVE_PTHREAD_GETSPECIFIC 1
14004_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014005
14006fi
14007
Reid Spencer0a262ba2005-08-24 10:07:20 +000014008fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014009
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014010
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014011# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014013 withval=$with_udis86;
14014 USE_UDIS86=1
14015
14016 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014017 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014018 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14019 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020
14021{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14022echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14023if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014025else
14026 ac_check_lib_save_LIBS=$LIBS
14027LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028cat >conftest.$ac_ext <<_ACEOF
14029/* confdefs.h. */
14030_ACEOF
14031cat confdefs.h >>conftest.$ac_ext
14032cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014033/* end confdefs.h. */
14034
14035/* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14038#ifdef __cplusplus
14039extern "C"
14040#endif
14041char ud_init ();
14042int
14043main ()
14044{
14045return ud_init ();
14046 ;
14047 return 0;
14048}
14049_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014050rm -f conftest.$ac_objext conftest$ac_exeext
14051if { (ac_try="$ac_link"
14052case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055esac
14056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14065 { (case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068esac
14069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_try") 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest$ac_exeext'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078esac
14079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014084 ac_cv_lib_udis86_ud_init=yes
14085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086 echo "$as_me: failed program was:" >&5
14087sed 's/^/| /' conftest.$ac_ext >&5
14088
14089 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014091
Bill Wendlingebcceee2009-04-18 11:20:33 +000014092rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014094LIBS=$ac_check_lib_save_LIBS
14095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14097echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14098if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014099 cat >>confdefs.h <<_ACEOF
14100#define HAVE_LIBUDIS86 1
14101_ACEOF
14102
14103 LIBS="-ludis86 $LIBS"
14104
14105else
14106
14107 echo "Error! You need to have libudis86 around."
14108 exit -1
14109
14110fi
14111
14112
14113else
14114 USE_UDIS86=0
14115
14116fi
14117
14118
14119cat >>confdefs.h <<_ACEOF
14120#define USE_UDIS86 $USE_UDIS86
14121_ACEOF
14122
14123
14124
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014125# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014127 withval=$with_oprofile;
14128 USE_OPROFILE=1
14129
14130 case "$withval" in
14131 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014132 no) llvm_cv_oppath=
14133 USE_OPROFILE=0
14134 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014135 *) llvm_cv_oppath="${withval}/lib/oprofile"
14136 CPPFLAGS="-I${withval}/include";;
14137 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014138 if test -n "$llvm_cv_oppath" ; then
14139 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14141echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14142if test "${ac_cv_search_bfd_init+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014144else
14145 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146cat >conftest.$ac_ext <<_ACEOF
14147/* confdefs.h. */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014151/* end confdefs.h. */
14152
14153/* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14156#ifdef __cplusplus
14157extern "C"
14158#endif
14159char bfd_init ();
14160int
14161main ()
14162{
14163return bfd_init ();
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168for ac_lib in '' bfd; do
14169 if test -z "$ac_lib"; then
14170 ac_res="none required"
14171 else
14172 ac_res=-l$ac_lib
14173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14174 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175 rm -f conftest.$ac_objext conftest$ac_exeext
14176if { (ac_try="$ac_link"
14177case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180esac
14181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_link") 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193esac
14194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; } &&
14199 { ac_try='test -s conftest$ac_exeext'
14200 { (case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14203esac
14204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_try") 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014209 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210else
14211 echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014217rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218 conftest$ac_exeext
14219 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014220 break
14221fi
14222done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223if test "${ac_cv_search_bfd_init+set}" = set; then
14224 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014225else
14226 ac_cv_search_bfd_init=no
14227fi
14228rm conftest.$ac_ext
14229LIBS=$ac_func_search_save_LIBS
14230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14232echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014233ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14236
14237fi
14238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014239 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14240echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14241if test "${ac_cv_search_op_open_agent+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014243else
14244 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245cat >conftest.$ac_ext <<_ACEOF
14246/* confdefs.h. */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014250/* end confdefs.h. */
14251
14252/* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14255#ifdef __cplusplus
14256extern "C"
14257#endif
14258char op_open_agent ();
14259int
14260main ()
14261{
14262return op_open_agent ();
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267for ac_lib in '' opagent; do
14268 if test -z "$ac_lib"; then
14269 ac_res="none required"
14270 else
14271 ac_res=-l$ac_lib
14272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14273 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274 rm -f conftest.$ac_objext conftest$ac_exeext
14275if { (ac_try="$ac_link"
14276case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279esac
14280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_link") 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14289 { (case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_try") 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest$ac_exeext'
14299 { (case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302esac
14303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_try") 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014308 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309else
14310 echo "$as_me: failed program was:" >&5
14311sed 's/^/| /' conftest.$ac_ext >&5
14312
14313
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014316rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317 conftest$ac_exeext
14318 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014319 break
14320fi
14321done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322if test "${ac_cv_search_op_open_agent+set}" = set; then
14323 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014324else
14325 ac_cv_search_op_open_agent=no
14326fi
14327rm conftest.$ac_ext
14328LIBS=$ac_func_search_save_LIBS
14329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14331echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014332ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014333if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14335
14336else
14337
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014338 echo "Error! You need to have libopagent around."
14339 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014340
14341fi
14342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014343 if test "${ac_cv_header_opagent_h+set}" = set; then
14344 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14345echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14346if test "${ac_cv_header_opagent_h+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348fi
14349{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14350echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14351else
14352 # Is the header compilable?
14353{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14354echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14355cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361$ac_includes_default
14362#include <opagent.h>
14363_ACEOF
14364rm -f conftest.$ac_objext
14365if { (ac_try="$ac_compile"
14366case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369esac
14370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382esac
14383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
14393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_try") 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_header_compiler=yes
14399else
14400 echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403 ac_header_compiler=no
14404fi
14405
14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408echo "${ECHO_T}$ac_header_compiler" >&6; }
14409
14410# Is the header present?
14411{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14412echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14413cat >conftest.$ac_ext <<_ACEOF
14414/* confdefs.h. */
14415_ACEOF
14416cat confdefs.h >>conftest.$ac_ext
14417cat >>conftest.$ac_ext <<_ACEOF
14418/* end confdefs.h. */
14419#include <opagent.h>
14420_ACEOF
14421if { (ac_try="$ac_cpp conftest.$ac_ext"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } >/dev/null; then
14434 if test -s conftest.err; then
14435 ac_cpp_err=$ac_c_preproc_warn_flag
14436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14437 else
14438 ac_cpp_err=
14439 fi
14440else
14441 ac_cpp_err=yes
14442fi
14443if test -z "$ac_cpp_err"; then
14444 ac_header_preproc=yes
14445else
14446 echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 ac_header_preproc=no
14450fi
14451
14452rm -f conftest.err conftest.$ac_ext
14453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14454echo "${ECHO_T}$ac_header_preproc" >&6; }
14455
14456# So? What about this header?
14457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14458 yes:no: )
14459 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14460echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14462echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14463 ac_header_preproc=yes
14464 ;;
14465 no:yes:* )
14466 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14467echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14469echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14471echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14473echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14475echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14477echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14478 ( cat <<\_ASBOX
14479## ----------------------------------- ##
14480## Report this to llvmbugs@cs.uiuc.edu ##
14481## ----------------------------------- ##
14482_ASBOX
14483 ) | sed "s/^/$as_me: WARNING: /" >&2
14484 ;;
14485esac
14486{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14487echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14488if test "${ac_cv_header_opagent_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490else
14491 ac_cv_header_opagent_h=$ac_header_preproc
14492fi
14493{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14494echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14495
14496fi
14497if test $ac_cv_header_opagent_h = yes; then
14498 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014499else
14500
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014501 echo "Error! You need to have opagent.h around."
14502 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014503
14504fi
14505
14506
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014507 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014508
14509else
14510
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014511 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014512
14513
14514fi
14515
14516
14517cat >>confdefs.h <<_ACEOF
14518#define USE_OPROFILE $USE_OPROFILE
14519_ACEOF
14520
14521
14522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014523
14524
14525
14526
14527
Reid Spencer59473af2004-12-25 07:31:29 +000014528ac_header_dirent=no
14529for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014530 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14531{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14532echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536 cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014541/* end confdefs.h. */
14542#include <sys/types.h>
14543#include <$ac_hdr>
14544
14545int
14546main ()
14547{
14548if ((DIR *) 0)
14549return 0;
14550 ;
14551 return 0;
14552}
14553_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554rm -f conftest.$ac_objext
14555if { (ac_try="$ac_compile"
14556case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_compile") 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try='test -s conftest.$ac_objext'
14579 { (case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14582esac
14583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_try") 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014588 eval "$as_ac_Header=yes"
14589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014595
Reid Spencera773bd52006-08-04 18:18:08 +000014596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014598ac_res=`eval echo '${'$as_ac_Header'}'`
14599 { echo "$as_me:$LINENO: result: $ac_res" >&5
14600echo "${ECHO_T}$ac_res" >&6; }
14601if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014602 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014603#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014604_ACEOF
14605
14606ac_header_dirent=$ac_hdr; break
14607fi
14608
14609done
14610# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14611if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014612 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14613echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14614if test "${ac_cv_search_opendir+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014616else
14617 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014618cat >conftest.$ac_ext <<_ACEOF
14619/* confdefs.h. */
14620_ACEOF
14621cat confdefs.h >>conftest.$ac_ext
14622cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014623/* end confdefs.h. */
14624
Reid Spencera773bd52006-08-04 18:18:08 +000014625/* Override any GCC internal prototype to avoid an error.
14626 Use char because int might match the return type of a GCC
14627 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014628#ifdef __cplusplus
14629extern "C"
14630#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014631char opendir ();
14632int
14633main ()
14634{
Reid Spencera773bd52006-08-04 18:18:08 +000014635return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014636 ;
14637 return 0;
14638}
14639_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014640for ac_lib in '' dir; do
14641 if test -z "$ac_lib"; then
14642 ac_res="none required"
14643 else
14644 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014646 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014647 rm -f conftest.$ac_objext conftest$ac_exeext
14648if { (ac_try="$ac_link"
14649case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652esac
14653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14662 { (case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14665esac
14666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_try") 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; } &&
14671 { ac_try='test -s conftest$ac_exeext'
14672 { (case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675esac
14676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_try") 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014681 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014682else
14683 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
14686
Reid Spencer59473af2004-12-25 07:31:29 +000014687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014688
Bill Wendlingebcceee2009-04-18 11:20:33 +000014689rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014690 conftest$ac_exeext
14691 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014692 break
Reid Spencer59473af2004-12-25 07:31:29 +000014693fi
Reid Spencera773bd52006-08-04 18:18:08 +000014694done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014695if test "${ac_cv_search_opendir+set}" = set; then
14696 :
Reid Spencera773bd52006-08-04 18:18:08 +000014697else
14698 ac_cv_search_opendir=no
14699fi
14700rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014701LIBS=$ac_func_search_save_LIBS
14702fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14704echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014705ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014706if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014708
14709fi
14710
14711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014712 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14713echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14714if test "${ac_cv_search_opendir+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014716else
14717 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014718cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014723/* end confdefs.h. */
14724
Reid Spencera773bd52006-08-04 18:18:08 +000014725/* Override any GCC internal prototype to avoid an error.
14726 Use char because int might match the return type of a GCC
14727 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014728#ifdef __cplusplus
14729extern "C"
14730#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014731char opendir ();
14732int
14733main ()
14734{
Reid Spencera773bd52006-08-04 18:18:08 +000014735return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014736 ;
14737 return 0;
14738}
14739_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014740for ac_lib in '' x; do
14741 if test -z "$ac_lib"; then
14742 ac_res="none required"
14743 else
14744 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014746 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014747 rm -f conftest.$ac_objext conftest$ac_exeext
14748if { (ac_try="$ac_link"
14749case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752esac
14753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_link") 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14762 { (case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765esac
14766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_try") 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest$ac_exeext'
14772 { (case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14775esac
14776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_try") 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014781 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014782else
14783 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786
Reid Spencer59473af2004-12-25 07:31:29 +000014787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014788
Bill Wendlingebcceee2009-04-18 11:20:33 +000014789rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014790 conftest$ac_exeext
14791 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014792 break
Reid Spencer59473af2004-12-25 07:31:29 +000014793fi
Reid Spencera773bd52006-08-04 18:18:08 +000014794done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014795if test "${ac_cv_search_opendir+set}" = set; then
14796 :
Reid Spencera773bd52006-08-04 18:18:08 +000014797else
14798 ac_cv_search_opendir=no
14799fi
14800rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014801LIBS=$ac_func_search_save_LIBS
14802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014803{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14804echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014805ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014806if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014808
14809fi
14810
14811fi
14812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014813{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14814echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14815if test "${ac_cv_header_mmap_anon+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014817else
14818 ac_ext=c
14819ac_cpp='$CPP $CPPFLAGS'
14820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822ac_compiler_gnu=$ac_cv_c_compiler_gnu
14823
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/mman.h>
14831#include <unistd.h>
14832#include <fcntl.h>
14833int
14834main ()
14835{
14836mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14837 ;
14838 return 0;
14839}
14840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014841rm -f conftest.$ac_objext
14842if { (ac_try="$ac_compile"
14843case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846esac
14847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14856 { (case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859esac
14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_try") 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869esac
14870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_try") 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014875 ac_cv_header_mmap_anon=yes
14876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014877 echo "$as_me: failed program was:" >&5
14878sed 's/^/| /' conftest.$ac_ext >&5
14879
14880 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014882
Reid Spencera773bd52006-08-04 18:18:08 +000014883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014884 ac_ext=c
14885ac_cpp='$CPP $CPPFLAGS'
14886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888ac_compiler_gnu=$ac_cv_c_compiler_gnu
14889
14890
14891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014892{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14893echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014894if test "$ac_cv_header_mmap_anon" = yes; then
14895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014896cat >>confdefs.h <<\_ACEOF
14897#define HAVE_MMAP_ANONYMOUS 1
14898_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014899
14900fi
14901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014902{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14903echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14904if test "${ac_cv_header_stat_broken+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014907 cat >conftest.$ac_ext <<_ACEOF
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014912/* end confdefs.h. */
14913#include <sys/types.h>
14914#include <sys/stat.h>
14915
Reid Spencera773bd52006-08-04 18:18:08 +000014916#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014917# if S_ISBLK (S_IFDIR)
14918You lose.
14919# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014920#endif
14921
Reid Spencera773bd52006-08-04 18:18:08 +000014922#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014923# if S_ISBLK (S_IFCHR)
14924You lose.
14925# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014926#endif
14927
Reid Spencera773bd52006-08-04 18:18:08 +000014928#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014929# if S_ISLNK (S_IFREG)
14930You lose.
14931# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014932#endif
14933
Reid Spencera773bd52006-08-04 18:18:08 +000014934#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014935# if S_ISSOCK (S_IFREG)
14936You lose.
14937# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014938#endif
14939
14940_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14942 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014943 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014944else
14945 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014947rm -f conftest*
14948
Reid Spencer59473af2004-12-25 07:31:29 +000014949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014950{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14951echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014952if test $ac_cv_header_stat_broken = yes; then
14953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014954cat >>confdefs.h <<\_ACEOF
14955#define STAT_MACROS_BROKEN 1
14956_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014957
14958fi
14959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014960{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14961echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14962if test "${ac_cv_header_stdc+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965 cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014971#include <stdlib.h>
14972#include <stdarg.h>
14973#include <string.h>
14974#include <float.h>
14975
John Criswell0c38eaf2003-09-10 15:17:25 +000014976int
14977main ()
14978{
14979
14980 ;
14981 return 0;
14982}
John Criswell7a73b802003-06-30 21:59:07 +000014983_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014984rm -f conftest.$ac_objext
14985if { (ac_try="$ac_compile"
14986case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989esac
14990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999 { (case "(($ac_try" in
15000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15002esac
15003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_try") 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012esac
15013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_try") 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015018 ac_cv_header_stdc=yes
15019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015020 echo "$as_me: failed program was:" >&5
15021sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025
Reid Spencera773bd52006-08-04 18:18:08 +000015026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015027
15028if test $ac_cv_header_stdc = yes; then
15029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030 cat >conftest.$ac_ext <<_ACEOF
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015036#include <string.h>
15037
15038_ACEOF
15039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015040 $EGREP "memchr" >/dev/null 2>&1; then
15041 :
John Criswell7a73b802003-06-30 21:59:07 +000015042else
15043 ac_cv_header_stdc=no
15044fi
15045rm -f conftest*
15046
15047fi
15048
15049if test $ac_cv_header_stdc = yes; then
15050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051 cat >conftest.$ac_ext <<_ACEOF
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015057#include <stdlib.h>
15058
15059_ACEOF
15060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015061 $EGREP "free" >/dev/null 2>&1; then
15062 :
John Criswell7a73b802003-06-30 21:59:07 +000015063else
15064 ac_cv_header_stdc=no
15065fi
15066rm -f conftest*
15067
15068fi
15069
15070if test $ac_cv_header_stdc = yes; then
15071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015073 :
15074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015075 cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015081#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015082#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015083#if ((' ' & 0x0FF) == 0x020)
15084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15086#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015087# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015088 (('a' <= (c) && (c) <= 'i') \
15089 || ('j' <= (c) && (c) <= 'r') \
15090 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15092#endif
15093
15094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15095int
15096main ()
15097{
15098 int i;
15099 for (i = 0; i < 256; i++)
15100 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015101 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015102 return 2;
15103 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015104}
15105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106rm -f conftest$ac_exeext
15107if { (ac_try="$ac_link"
15108case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15111esac
15112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_link") 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15117 { (case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120esac
15121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_try") 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 :
John Criswell7a73b802003-06-30 21:59:07 +000015127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015128 echo "$as_me: program exited with status $ac_status" >&5
15129echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132( exit $ac_status )
15133ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015135rm -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 +000015136fi
15137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138
John Criswell7a73b802003-06-30 21:59:07 +000015139fi
15140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15142echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015143if test $ac_cv_header_stdc = yes; then
15144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015145cat >>confdefs.h <<\_ACEOF
15146#define STDC_HEADERS 1
15147_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015148
15149fi
15150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015151{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15152echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15153if test "${ac_cv_header_sys_wait_h+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015156 cat >conftest.$ac_ext <<_ACEOF
15157/* confdefs.h. */
15158_ACEOF
15159cat confdefs.h >>conftest.$ac_ext
15160cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015162#include <sys/types.h>
15163#include <sys/wait.h>
15164#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015165# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015166#endif
15167#ifndef WIFEXITED
15168# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15169#endif
15170
John Criswell7a73b802003-06-30 21:59:07 +000015171int
15172main ()
15173{
15174 int s;
15175 wait (&s);
15176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15177 ;
15178 return 0;
15179}
15180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015181rm -f conftest.$ac_objext
15182if { (ac_try="$ac_compile"
15183case "(($ac_try" in
15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15186esac
15187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188 (eval "$ac_compile") 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15199esac
15200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_try") 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; } &&
15205 { ac_try='test -s conftest.$ac_objext'
15206 { (case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15209esac
15210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_try") 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015215 ac_cv_header_sys_wait_h=yes
15216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217 echo "$as_me: failed program was:" >&5
15218sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015222
Reid Spencera773bd52006-08-04 18:18:08 +000015223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015225{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15226echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015227if test $ac_cv_header_sys_wait_h = yes; then
15228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015229cat >>confdefs.h <<\_ACEOF
15230#define HAVE_SYS_WAIT_H 1
15231_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015232
15233fi
15234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015235{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15236echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15237if test "${ac_cv_header_time+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015240 cat >conftest.$ac_ext <<_ACEOF
15241/* confdefs.h. */
15242_ACEOF
15243cat confdefs.h >>conftest.$ac_ext
15244cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015245/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015246#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015247#include <sys/time.h>
15248#include <time.h>
15249
15250int
15251main ()
15252{
15253if ((struct tm *) 0)
15254return 0;
15255 ;
15256 return 0;
15257}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259rm -f conftest.$ac_objext
15260if { (ac_try="$ac_compile"
15261case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_compile") 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15274 { (case "(($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_try") 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; } &&
15283 { ac_try='test -s conftest.$ac_objext'
15284 { (case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15287esac
15288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_try") 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015293 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015295 echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015300
Reid Spencera773bd52006-08-04 18:18:08 +000015301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015303{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15304echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015305if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015307cat >>confdefs.h <<\_ACEOF
15308#define TIME_WITH_SYS_TIME 1
15309_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015310
15311fi
15312
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015314
15315
15316
15317
15318
15319
Reid Spencer59473af2004-12-25 07:31:29 +000015320for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321do
15322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328fi
15329ac_res=`eval echo '${'$as_ac_Header'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331echo "${ECHO_T}$ac_res" >&6; }
15332else
15333 # Is the header compilable?
15334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15336cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342$ac_includes_default
15343#include <$ac_header>
15344_ACEOF
15345rm -f conftest.$ac_objext
15346if { (ac_try="$ac_compile"
15347case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_compile") 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363esac
15364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest.$ac_objext'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373esac
15374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_header_compiler=yes
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_header_compiler=no
15385fi
15386
15387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389echo "${ECHO_T}$ac_header_compiler" >&6; }
15390
15391# Is the header present?
15392{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15394cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
15399/* end confdefs.h. */
15400#include <$ac_header>
15401_ACEOF
15402if { (ac_try="$ac_cpp conftest.$ac_ext"
15403case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } >/dev/null; then
15415 if test -s conftest.err; then
15416 ac_cpp_err=$ac_c_preproc_warn_flag
15417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15418 else
15419 ac_cpp_err=
15420 fi
15421else
15422 ac_cpp_err=yes
15423fi
15424if test -z "$ac_cpp_err"; then
15425 ac_header_preproc=yes
15426else
15427 echo "$as_me: failed program was:" >&5
15428sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_header_preproc=no
15431fi
15432
15433rm -f conftest.err conftest.$ac_ext
15434{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15435echo "${ECHO_T}$ac_header_preproc" >&6; }
15436
15437# So? What about this header?
15438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15439 yes:no: )
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15444 ac_header_preproc=yes
15445 ;;
15446 no:yes:* )
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15459 ( cat <<\_ASBOX
15460## ----------------------------------- ##
15461## Report this to llvmbugs@cs.uiuc.edu ##
15462## ----------------------------------- ##
15463_ASBOX
15464 ) | sed "s/^/$as_me: WARNING: /" >&2
15465 ;;
15466esac
15467{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471else
15472 eval "$as_ac_Header=\$ac_header_preproc"
15473fi
15474ac_res=`eval echo '${'$as_ac_Header'}'`
15475 { echo "$as_me:$LINENO: result: $ac_res" >&5
15476echo "${ECHO_T}$ac_res" >&6; }
15477
15478fi
15479if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015480 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015482_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015483
15484fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015485
Reid Spencer59473af2004-12-25 07:31:29 +000015486done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015488
15489
15490
15491
15492
15493
Douglas Gregor071d73d2009-05-18 17:21:34 +000015494for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015495do
15496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502fi
15503ac_res=`eval echo '${'$as_ac_Header'}'`
15504 { echo "$as_me:$LINENO: result: $ac_res" >&5
15505echo "${ECHO_T}$ac_res" >&6; }
15506else
15507 # Is the header compilable?
15508{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15510cat >conftest.$ac_ext <<_ACEOF
15511/* confdefs.h. */
15512_ACEOF
15513cat confdefs.h >>conftest.$ac_ext
15514cat >>conftest.$ac_ext <<_ACEOF
15515/* end confdefs.h. */
15516$ac_includes_default
15517#include <$ac_header>
15518_ACEOF
15519rm -f conftest.$ac_objext
15520if { (ac_try="$ac_compile"
15521case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524esac
15525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_compile") 2>conftest.er1
15527 ac_status=$?
15528 grep -v '^ *+' conftest.er1 >conftest.err
15529 rm -f conftest.er1
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15537esac
15538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_header_compiler=yes
15554else
15555 echo "$as_me: failed program was:" >&5
15556sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 ac_header_compiler=no
15559fi
15560
15561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15563echo "${ECHO_T}$ac_header_compiler" >&6; }
15564
15565# Is the header present?
15566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15568cat >conftest.$ac_ext <<_ACEOF
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574#include <$ac_header>
15575_ACEOF
15576if { (ac_try="$ac_cpp conftest.$ac_ext"
15577case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15580esac
15581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } >/dev/null; then
15589 if test -s conftest.err; then
15590 ac_cpp_err=$ac_c_preproc_warn_flag
15591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15592 else
15593 ac_cpp_err=
15594 fi
15595else
15596 ac_cpp_err=yes
15597fi
15598if test -z "$ac_cpp_err"; then
15599 ac_header_preproc=yes
15600else
15601 echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 ac_header_preproc=no
15605fi
15606
15607rm -f conftest.err conftest.$ac_ext
15608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15609echo "${ECHO_T}$ac_header_preproc" >&6; }
15610
15611# So? What about this header?
15612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15613 yes:no: )
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15618 ac_header_preproc=yes
15619 ;;
15620 no:yes:* )
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15633 ( cat <<\_ASBOX
15634## ----------------------------------- ##
15635## Report this to llvmbugs@cs.uiuc.edu ##
15636## ----------------------------------- ##
15637_ASBOX
15638 ) | sed "s/^/$as_me: WARNING: /" >&2
15639 ;;
15640esac
15641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645else
15646 eval "$as_ac_Header=\$ac_header_preproc"
15647fi
15648ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650echo "${ECHO_T}$ac_res" >&6; }
15651
15652fi
15653if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015654 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015656_ACEOF
15657
15658fi
15659
15660done
15661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015662
15663
Douglas Gregor071d73d2009-05-18 17:21:34 +000015664for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015665do
15666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672fi
15673ac_res=`eval echo '${'$as_ac_Header'}'`
15674 { echo "$as_me:$LINENO: result: $ac_res" >&5
15675echo "${ECHO_T}$ac_res" >&6; }
15676else
15677 # Is the header compilable?
15678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15680cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
15686$ac_includes_default
15687#include <$ac_header>
15688_ACEOF
15689rm -f conftest.$ac_objext
15690if { (ac_try="$ac_compile"
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_compile") 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); } &&
15703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15704 { (case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_try") 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; } &&
15713 { ac_try='test -s conftest.$ac_objext'
15714 { (case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15717esac
15718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_try") 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_header_compiler=yes
15724else
15725 echo "$as_me: failed program was:" >&5
15726sed 's/^/| /' conftest.$ac_ext >&5
15727
15728 ac_header_compiler=no
15729fi
15730
15731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15733echo "${ECHO_T}$ac_header_compiler" >&6; }
15734
15735# Is the header present?
15736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15738cat >conftest.$ac_ext <<_ACEOF
15739/* confdefs.h. */
15740_ACEOF
15741cat confdefs.h >>conftest.$ac_ext
15742cat >>conftest.$ac_ext <<_ACEOF
15743/* end confdefs.h. */
15744#include <$ac_header>
15745_ACEOF
15746if { (ac_try="$ac_cpp conftest.$ac_ext"
15747case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } >/dev/null; then
15759 if test -s conftest.err; then
15760 ac_cpp_err=$ac_c_preproc_warn_flag
15761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15762 else
15763 ac_cpp_err=
15764 fi
15765else
15766 ac_cpp_err=yes
15767fi
15768if test -z "$ac_cpp_err"; then
15769 ac_header_preproc=yes
15770else
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_header_preproc=no
15775fi
15776
15777rm -f conftest.err conftest.$ac_ext
15778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15779echo "${ECHO_T}$ac_header_preproc" >&6; }
15780
15781# So? What about this header?
15782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15783 yes:no: )
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15788 ac_header_preproc=yes
15789 ;;
15790 no:yes:* )
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15803 ( cat <<\_ASBOX
15804## ----------------------------------- ##
15805## Report this to llvmbugs@cs.uiuc.edu ##
15806## ----------------------------------- ##
15807_ASBOX
15808 ) | sed "s/^/$as_me: WARNING: /" >&2
15809 ;;
15810esac
15811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815else
15816 eval "$as_ac_Header=\$ac_header_preproc"
15817fi
15818ac_res=`eval echo '${'$as_ac_Header'}'`
15819 { echo "$as_me:$LINENO: result: $ac_res" >&5
15820echo "${ECHO_T}$ac_res" >&6; }
15821
15822fi
15823if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015824 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015826_ACEOF
15827
15828fi
15829
15830done
Reid Spencer59473af2004-12-25 07:31:29 +000015831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015832
15833
15834
15835
Reid Spencerbe3e4192007-08-17 05:45:26 +000015836for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015837do
15838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844fi
15845ac_res=`eval echo '${'$as_ac_Header'}'`
15846 { echo "$as_me:$LINENO: result: $ac_res" >&5
15847echo "${ECHO_T}$ac_res" >&6; }
15848else
15849 # Is the header compilable?
15850{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15852cat >conftest.$ac_ext <<_ACEOF
15853/* confdefs.h. */
15854_ACEOF
15855cat confdefs.h >>conftest.$ac_ext
15856cat >>conftest.$ac_ext <<_ACEOF
15857/* end confdefs.h. */
15858$ac_includes_default
15859#include <$ac_header>
15860_ACEOF
15861rm -f conftest.$ac_objext
15862if { (ac_try="$ac_compile"
15863case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866esac
15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876 { (case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15879esac
15880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_try") 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15889esac
15890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_try") 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_header_compiler=yes
15896else
15897 echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 ac_header_compiler=no
15901fi
15902
15903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15905echo "${ECHO_T}$ac_header_compiler" >&6; }
15906
15907# Is the header present?
15908{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15910cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916#include <$ac_header>
15917_ACEOF
15918if { (ac_try="$ac_cpp conftest.$ac_ext"
15919case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15922esac
15923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } >/dev/null; then
15931 if test -s conftest.err; then
15932 ac_cpp_err=$ac_c_preproc_warn_flag
15933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15934 else
15935 ac_cpp_err=
15936 fi
15937else
15938 ac_cpp_err=yes
15939fi
15940if test -z "$ac_cpp_err"; then
15941 ac_header_preproc=yes
15942else
15943 echo "$as_me: failed program was:" >&5
15944sed 's/^/| /' conftest.$ac_ext >&5
15945
15946 ac_header_preproc=no
15947fi
15948
15949rm -f conftest.err conftest.$ac_ext
15950{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951echo "${ECHO_T}$ac_header_preproc" >&6; }
15952
15953# So? What about this header?
15954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955 yes:no: )
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15961 ;;
15962 no:yes:* )
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15970echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15975 ( cat <<\_ASBOX
15976## ----------------------------------- ##
15977## Report this to llvmbugs@cs.uiuc.edu ##
15978## ----------------------------------- ##
15979_ASBOX
15980 ) | sed "s/^/$as_me: WARNING: /" >&2
15981 ;;
15982esac
15983{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987else
15988 eval "$as_ac_Header=\$ac_header_preproc"
15989fi
15990ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992echo "${ECHO_T}$ac_res" >&6; }
15993
15994fi
15995if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015996 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015998_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015999
16000fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016001
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016002done
16003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016004
16005
16006
16007
Douglas Gregor01746742009-05-11 18:05:52 +000016008for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016009do
16010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016fi
16017ac_res=`eval echo '${'$as_ac_Header'}'`
16018 { echo "$as_me:$LINENO: result: $ac_res" >&5
16019echo "${ECHO_T}$ac_res" >&6; }
16020else
16021 # Is the header compilable?
16022{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16024cat >conftest.$ac_ext <<_ACEOF
16025/* confdefs.h. */
16026_ACEOF
16027cat confdefs.h >>conftest.$ac_ext
16028cat >>conftest.$ac_ext <<_ACEOF
16029/* end confdefs.h. */
16030$ac_includes_default
16031#include <$ac_header>
16032_ACEOF
16033rm -f conftest.$ac_objext
16034if { (ac_try="$ac_compile"
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_compile") 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); } &&
16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061esac
16062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_try") 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_header_compiler=no
16073fi
16074
16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077echo "${ECHO_T}$ac_header_compiler" >&6; }
16078
16079# Is the header present?
16080{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16082cat >conftest.$ac_ext <<_ACEOF
16083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
16088#include <$ac_header>
16089_ACEOF
16090if { (ac_try="$ac_cpp conftest.$ac_ext"
16091case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094esac
16095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } >/dev/null; then
16103 if test -s conftest.err; then
16104 ac_cpp_err=$ac_c_preproc_warn_flag
16105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16106 else
16107 ac_cpp_err=
16108 fi
16109else
16110 ac_cpp_err=yes
16111fi
16112if test -z "$ac_cpp_err"; then
16113 ac_header_preproc=yes
16114else
16115 echo "$as_me: failed program was:" >&5
16116sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 ac_header_preproc=no
16119fi
16120
16121rm -f conftest.err conftest.$ac_ext
16122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123echo "${ECHO_T}$ac_header_preproc" >&6; }
16124
16125# So? What about this header?
16126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16127 yes:no: )
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132 ac_header_preproc=yes
16133 ;;
16134 no:yes:* )
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16147 ( cat <<\_ASBOX
16148## ----------------------------------- ##
16149## Report this to llvmbugs@cs.uiuc.edu ##
16150## ----------------------------------- ##
16151_ASBOX
16152 ) | sed "s/^/$as_me: WARNING: /" >&2
16153 ;;
16154esac
16155{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159else
16160 eval "$as_ac_Header=\$ac_header_preproc"
16161fi
16162ac_res=`eval echo '${'$as_ac_Header'}'`
16163 { echo "$as_me:$LINENO: result: $ac_res" >&5
16164echo "${ECHO_T}$ac_res" >&6; }
16165
16166fi
16167if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016168 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016170_ACEOF
16171
16172fi
16173
16174done
16175
Reid Spencer0a262ba2005-08-24 10:07:20 +000016176if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016177
16178for ac_header in pthread.h
16179do
16180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186fi
16187ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189echo "${ECHO_T}$ac_res" >&6; }
16190else
16191 # Is the header compilable?
16192{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16194cat >conftest.$ac_ext <<_ACEOF
16195/* confdefs.h. */
16196_ACEOF
16197cat confdefs.h >>conftest.$ac_ext
16198cat >>conftest.$ac_ext <<_ACEOF
16199/* end confdefs.h. */
16200$ac_includes_default
16201#include <$ac_header>
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (ac_try="$ac_compile"
16205case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208esac
16209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221esac
16222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_header_compiler=yes
16238else
16239 echo "$as_me: failed program was:" >&5
16240sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_header_compiler=no
16243fi
16244
16245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247echo "${ECHO_T}$ac_header_compiler" >&6; }
16248
16249# Is the header present?
16250{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16252cat >conftest.$ac_ext <<_ACEOF
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258#include <$ac_header>
16259_ACEOF
16260if { (ac_try="$ac_cpp conftest.$ac_ext"
16261case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264esac
16265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null; then
16273 if test -s conftest.err; then
16274 ac_cpp_err=$ac_c_preproc_warn_flag
16275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16276 else
16277 ac_cpp_err=
16278 fi
16279else
16280 ac_cpp_err=yes
16281fi
16282if test -z "$ac_cpp_err"; then
16283 ac_header_preproc=yes
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_header_preproc=no
16289fi
16290
16291rm -f conftest.err conftest.$ac_ext
16292{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16293echo "${ECHO_T}$ac_header_preproc" >&6; }
16294
16295# So? What about this header?
16296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16297 yes:no: )
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16302 ac_header_preproc=yes
16303 ;;
16304 no:yes:* )
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16312echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16317 ( cat <<\_ASBOX
16318## ----------------------------------- ##
16319## Report this to llvmbugs@cs.uiuc.edu ##
16320## ----------------------------------- ##
16321_ASBOX
16322 ) | sed "s/^/$as_me: WARNING: /" >&2
16323 ;;
16324esac
16325{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329else
16330 eval "$as_ac_Header=\$ac_header_preproc"
16331fi
16332ac_res=`eval echo '${'$as_ac_Header'}'`
16333 { echo "$as_me:$LINENO: result: $ac_res" >&5
16334echo "${ECHO_T}$ac_res" >&6; }
16335
16336fi
16337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016340_ACEOF
16341 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016342
16343else
16344 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016345
16346fi
16347
Reid Spencerbe3e4192007-08-17 05:45:26 +000016348done
Reid Spencer1000b732006-12-01 00:37:14 +000016349
16350else
16351 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016352
16353fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016354
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016355if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016356
16357
16358for ac_header in ffi.h ffi/ffi.h
16359do
16360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366fi
16367ac_res=`eval echo '${'$as_ac_Header'}'`
16368 { echo "$as_me:$LINENO: result: $ac_res" >&5
16369echo "${ECHO_T}$ac_res" >&6; }
16370else
16371 # Is the header compilable?
16372{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16374cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381#include <$ac_header>
16382_ACEOF
16383rm -f conftest.$ac_objext
16384if { (ac_try="$ac_compile"
16385case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_compile") 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411esac
16412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_header_compiler=yes
16418else
16419 echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 ac_header_compiler=no
16423fi
16424
16425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427echo "${ECHO_T}$ac_header_compiler" >&6; }
16428
16429# Is the header present?
16430{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16432cat >conftest.$ac_ext <<_ACEOF
16433/* confdefs.h. */
16434_ACEOF
16435cat confdefs.h >>conftest.$ac_ext
16436cat >>conftest.$ac_ext <<_ACEOF
16437/* end confdefs.h. */
16438#include <$ac_header>
16439_ACEOF
16440if { (ac_try="$ac_cpp conftest.$ac_ext"
16441case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444esac
16445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } >/dev/null; then
16453 if test -s conftest.err; then
16454 ac_cpp_err=$ac_c_preproc_warn_flag
16455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16456 else
16457 ac_cpp_err=
16458 fi
16459else
16460 ac_cpp_err=yes
16461fi
16462if test -z "$ac_cpp_err"; then
16463 ac_header_preproc=yes
16464else
16465 echo "$as_me: failed program was:" >&5
16466sed 's/^/| /' conftest.$ac_ext >&5
16467
16468 ac_header_preproc=no
16469fi
16470
16471rm -f conftest.err conftest.$ac_ext
16472{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16473echo "${ECHO_T}$ac_header_preproc" >&6; }
16474
16475# So? What about this header?
16476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16477 yes:no: )
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16482 ac_header_preproc=yes
16483 ;;
16484 no:yes:* )
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16497 ( cat <<\_ASBOX
16498## ----------------------------------- ##
16499## Report this to llvmbugs@cs.uiuc.edu ##
16500## ----------------------------------- ##
16501_ASBOX
16502 ) | sed "s/^/$as_me: WARNING: /" >&2
16503 ;;
16504esac
16505{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509else
16510 eval "$as_ac_Header=\$ac_header_preproc"
16511fi
16512ac_res=`eval echo '${'$as_ac_Header'}'`
16513 { echo "$as_me:$LINENO: result: $ac_res" >&5
16514echo "${ECHO_T}$ac_res" >&6; }
16515
16516fi
16517if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016518 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016520_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016521
16522fi
16523
16524done
16525
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016526fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016527
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016528
Reid Spencer8085cff2005-01-16 02:58:39 +000016529
Torok Edwin871384f2010-01-26 08:50:50 +000016530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016531 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16532echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16533if test "${ac_cv_huge_val_sanity+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016535else
16536
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016537 ac_ext=cpp
16538ac_cpp='$CXXCPP $CPPFLAGS'
16539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016542
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016543 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016544 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016545 ac_cv_huge_val_sanity=yes
16546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016547 cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016552/* end confdefs.h. */
16553#include <math.h>
16554int
16555main ()
16556{
16557double x = HUGE_VAL; return x != x;
16558 ;
16559 return 0;
16560}
16561_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016562rm -f conftest$ac_exeext
16563if { (ac_try="$ac_link"
16564case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16567esac
16568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_link") 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016582 ac_cv_huge_val_sanity=yes
16583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016584 echo "$as_me: program exited with status $ac_status" >&5
16585echo "$as_me: failed program was:" >&5
16586sed 's/^/| /' conftest.$ac_ext >&5
16587
16588( exit $ac_status )
16589ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016591rm -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 +000016592fi
16593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016594
Reid Spencerb2ed05262006-11-03 18:04:08 +000016595 ac_ext=c
16596ac_cpp='$CPP $CPPFLAGS'
16597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16599ac_compiler_gnu=$ac_cv_c_compiler_gnu
16600
16601
16602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016603{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16604echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016605 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16606
16607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016608{ echo "$as_me:$LINENO: checking for pid_t" >&5
16609echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16610if test "${ac_cv_type_pid_t+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16612else
16613 cat >conftest.$ac_ext <<_ACEOF
16614/* confdefs.h. */
16615_ACEOF
16616cat confdefs.h >>conftest.$ac_ext
16617cat >>conftest.$ac_ext <<_ACEOF
16618/* end confdefs.h. */
16619$ac_includes_default
16620typedef pid_t ac__type_new_;
16621int
16622main ()
16623{
16624if ((ac__type_new_ *) 0)
16625 return 0;
16626if (sizeof (ac__type_new_))
16627 return 0;
16628 ;
16629 return 0;
16630}
16631_ACEOF
16632rm -f conftest.$ac_objext
16633if { (ac_try="$ac_compile"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_compile") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_cv_type_pid_t=yes
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016671 ac_cv_type_pid_t=no
16672fi
16673
16674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675fi
16676{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16677echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16678if test $ac_cv_type_pid_t = yes; then
16679 :
John Criswell7a73b802003-06-30 21:59:07 +000016680else
16681
16682cat >>confdefs.h <<_ACEOF
16683#define pid_t int
16684_ACEOF
16685
16686fi
16687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016688{ echo "$as_me:$LINENO: checking for size_t" >&5
16689echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16690if test "${ac_cv_type_size_t+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 cat >conftest.$ac_ext <<_ACEOF
16694/* confdefs.h. */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h. */
16699$ac_includes_default
16700typedef size_t ac__type_new_;
16701int
16702main ()
16703{
16704if ((ac__type_new_ *) 0)
16705 return 0;
16706if (sizeof (ac__type_new_))
16707 return 0;
16708 ;
16709 return 0;
16710}
16711_ACEOF
16712rm -f conftest.$ac_objext
16713if { (ac_try="$ac_compile"
16714case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_compile") 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740esac
16741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_type_size_t=yes
16747else
16748 echo "$as_me: failed program was:" >&5
16749sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016751 ac_cv_type_size_t=no
16752fi
16753
16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755fi
16756{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16757echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16758if test $ac_cv_type_size_t = yes; then
16759 :
John Criswell7a73b802003-06-30 21:59:07 +000016760else
16761
16762cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016763#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016764_ACEOF
16765
16766fi
16767
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016768
16769cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016770#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016771_ACEOF
16772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016773{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16774echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16775if test "${ac_cv_struct_tm+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016778 cat >conftest.$ac_ext <<_ACEOF
16779/* confdefs.h. */
16780_ACEOF
16781cat confdefs.h >>conftest.$ac_ext
16782cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016783/* end confdefs.h. */
16784#include <sys/types.h>
16785#include <time.h>
16786
16787int
16788main ()
16789{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016790struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016791 ;
16792 return 0;
16793}
16794_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016795rm -f conftest.$ac_objext
16796if { (ac_try="$ac_compile"
16797case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_compile") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016829 ac_cv_struct_tm=time.h
16830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016836
Reid Spencera773bd52006-08-04 18:18:08 +000016837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016839{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16840echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016841if test $ac_cv_struct_tm = sys/time.h; then
16842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016843cat >>confdefs.h <<\_ACEOF
16844#define TM_IN_SYS_TIME 1
16845_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016846
16847fi
16848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016849{ echo "$as_me:$LINENO: checking for int64_t" >&5
16850echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16851if test "${ac_cv_type_int64_t+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16853else
16854 cat >conftest.$ac_ext <<_ACEOF
16855/* confdefs.h. */
16856_ACEOF
16857cat confdefs.h >>conftest.$ac_ext
16858cat >>conftest.$ac_ext <<_ACEOF
16859/* end confdefs.h. */
16860$ac_includes_default
16861typedef int64_t ac__type_new_;
16862int
16863main ()
16864{
16865if ((ac__type_new_ *) 0)
16866 return 0;
16867if (sizeof (ac__type_new_))
16868 return 0;
16869 ;
16870 return 0;
16871}
16872_ACEOF
16873rm -f conftest.$ac_objext
16874if { (ac_try="$ac_compile"
16875case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878esac
16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_compile") 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891esac
16892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
16898 { (case "(($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_try") 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_type_int64_t=yes
16908else
16909 echo "$as_me: failed program was:" >&5
16910sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 ac_cv_type_int64_t=no
16913fi
16914
16915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916fi
16917{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16918echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16919if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016920
16921cat >>confdefs.h <<_ACEOF
16922#define HAVE_INT64_T 1
16923_ACEOF
16924
16925
16926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016927 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16928echo "$as_me: error: Type int64_t required but not found" >&2;}
16929 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016930fi
16931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016932{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16933echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16934if test "${ac_cv_type_uint64_t+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
16937 cat >conftest.$ac_ext <<_ACEOF
16938/* confdefs.h. */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h. */
16943$ac_includes_default
16944typedef uint64_t ac__type_new_;
16945int
16946main ()
16947{
16948if ((ac__type_new_ *) 0)
16949 return 0;
16950if (sizeof (ac__type_new_))
16951 return 0;
16952 ;
16953 return 0;
16954}
16955_ACEOF
16956rm -f conftest.$ac_objext
16957if { (ac_try="$ac_compile"
16958case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16961esac
16962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963 (eval "$ac_compile") 2>conftest.er1
16964 ac_status=$?
16965 grep -v '^ *+' conftest.er1 >conftest.err
16966 rm -f conftest.er1
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984esac
16985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_type_uint64_t=yes
16991else
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 ac_cv_type_uint64_t=no
16996fi
16997
16998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999fi
17000{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17001echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17002if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017003
17004cat >>confdefs.h <<_ACEOF
17005#define HAVE_UINT64_T 1
17006_ACEOF
17007
17008
17009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017010 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17011echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17012if test "${ac_cv_type_u_int64_t+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014else
17015 cat >conftest.$ac_ext <<_ACEOF
17016/* confdefs.h. */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h. */
17021$ac_includes_default
17022typedef u_int64_t ac__type_new_;
17023int
17024main ()
17025{
17026if ((ac__type_new_ *) 0)
17027 return 0;
17028if (sizeof (ac__type_new_))
17029 return 0;
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext
17035if { (ac_try="$ac_compile"
17036case "(($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_compile") 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest.$ac_objext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17062esac
17063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_type_u_int64_t=yes
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ac_cv_type_u_int64_t=no
17074fi
17075
17076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077fi
17078{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17079echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17080if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017081
17082cat >>confdefs.h <<_ACEOF
17083#define HAVE_U_INT64_T 1
17084_ACEOF
17085
17086
Misha Brukmanceca9042004-09-02 23:02:30 +000017087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017088 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17089echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17090 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017091fi
17092
John Criswell679ff312004-09-02 18:44:44 +000017093fi
17094
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017095
17096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017097
17098
17099
17100
17101
17102
17103
Reid Spencerdf3be822006-01-23 08:15:53 +000017104for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017105do
17106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17120#define $ac_func innocuous_$ac_func
17121
17122/* System header to define __stub macros and hopefully few prototypes,
17123 which can conflict with char $ac_func (); below.
17124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125 <limits.h> exists even on freestanding compilers. */
17126
17127#ifdef __STDC__
17128# include <limits.h>
17129#else
17130# include <assert.h>
17131#endif
17132
17133#undef $ac_func
17134
17135/* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17138#ifdef __cplusplus
17139extern "C"
17140#endif
17141char $ac_func ();
17142/* The GNU C library defines this for functions which it implements
17143 to always fail with ENOSYS. Some functions are actually named
17144 something starting with __ and the normal name is an alias. */
17145#if defined __stub_$ac_func || defined __stub___$ac_func
17146choke me
17147#endif
17148
17149int
17150main ()
17151{
17152return $ac_func ();
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext conftest$ac_exeext
17158if { (ac_try="$ac_link"
17159case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175esac
17176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 eval "$as_ac_var=yes"
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 eval "$as_ac_var=no"
17197fi
17198
17199rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201fi
17202ac_res=`eval echo '${'$as_ac_var'}'`
17203 { echo "$as_me:$LINENO: result: $ac_res" >&5
17204echo "${ECHO_T}$ac_res" >&6; }
17205if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017206 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017208_ACEOF
17209
17210fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017211done
John Criswell7a73b802003-06-30 21:59:07 +000017212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017213
17214
17215
17216
Reid Spencer96cf5872007-07-13 10:05:30 +000017217for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017218do
17219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224else
17225 cat >conftest.$ac_ext <<_ACEOF
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17233#define $ac_func innocuous_$ac_func
17234
17235/* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func (); below.
17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238 <limits.h> exists even on freestanding compilers. */
17239
17240#ifdef __STDC__
17241# include <limits.h>
17242#else
17243# include <assert.h>
17244#endif
17245
17246#undef $ac_func
17247
17248/* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251#ifdef __cplusplus
17252extern "C"
17253#endif
17254char $ac_func ();
17255/* The GNU C library defines this for functions which it implements
17256 to always fail with ENOSYS. Some functions are actually named
17257 something starting with __ and the normal name is an alias. */
17258#if defined __stub_$ac_func || defined __stub___$ac_func
17259choke me
17260#endif
17261
17262int
17263main ()
17264{
17265return $ac_func ();
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270rm -f conftest.$ac_objext conftest$ac_exeext
17271if { (ac_try="$ac_link"
17272case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275esac
17276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 eval "$as_ac_var=yes"
17305else
17306 echo "$as_me: failed program was:" >&5
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 eval "$as_ac_var=no"
17310fi
17311
17312rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17314fi
17315ac_res=`eval echo '${'$as_ac_var'}'`
17316 { echo "$as_me:$LINENO: result: $ac_res" >&5
17317echo "${ECHO_T}$ac_res" >&6; }
17318if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017319 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017321_ACEOF
17322
17323fi
17324done
17325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017326
17327
17328
17329
17330
Reid Spencerb90645c2007-02-16 19:17:20 +000017331for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017332do
17333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338else
17339 cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347#define $ac_func innocuous_$ac_func
17348
17349/* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17353
17354#ifdef __STDC__
17355# include <limits.h>
17356#else
17357# include <assert.h>
17358#endif
17359
17360#undef $ac_func
17361
17362/* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365#ifdef __cplusplus
17366extern "C"
17367#endif
17368char $ac_func ();
17369/* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372#if defined __stub_$ac_func || defined __stub___$ac_func
17373choke me
17374#endif
17375
17376int
17377main ()
17378{
17379return $ac_func ();
17380 ;
17381 return 0;
17382}
17383_ACEOF
17384rm -f conftest.$ac_objext conftest$ac_exeext
17385if { (ac_try="$ac_link"
17386case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17402esac
17403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412esac
17413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 eval "$as_ac_var=no"
17424fi
17425
17426rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17428fi
17429ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result: $ac_res" >&5
17431echo "${ECHO_T}$ac_res" >&6; }
17432if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017433 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017435_ACEOF
17436
17437fi
17438done
17439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017440
17441
17442
Reid Spencerb90645c2007-02-16 19:17:20 +000017443for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017444do
17445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450else
17451 cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h. */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h. */
17457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459#define $ac_func innocuous_$ac_func
17460
17461/* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17465
17466#ifdef __STDC__
17467# include <limits.h>
17468#else
17469# include <assert.h>
17470#endif
17471
17472#undef $ac_func
17473
17474/* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17477#ifdef __cplusplus
17478extern "C"
17479#endif
17480char $ac_func ();
17481/* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484#if defined __stub_$ac_func || defined __stub___$ac_func
17485choke me
17486#endif
17487
17488int
17489main ()
17490{
17491return $ac_func ();
17492 ;
17493 return 0;
17494}
17495_ACEOF
17496rm -f conftest.$ac_objext conftest$ac_exeext
17497if { (ac_try="$ac_link"
17498case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17504 ac_status=$?
17505 grep -v '^ *+' conftest.er1 >conftest.err
17506 rm -f conftest.er1
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } &&
17510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514esac
17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 eval "$as_ac_var=yes"
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 eval "$as_ac_var=no"
17536fi
17537
17538rm -f core conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17540fi
17541ac_res=`eval echo '${'$as_ac_var'}'`
17542 { echo "$as_me:$LINENO: result: $ac_res" >&5
17543echo "${ECHO_T}$ac_res" >&6; }
17544if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017545 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017547_ACEOF
17548
17549fi
17550done
17551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017552
17553
17554
17555
17556
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017557for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017558do
17559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 cat >conftest.$ac_ext <<_ACEOF
17566/* confdefs.h. */
17567_ACEOF
17568cat confdefs.h >>conftest.$ac_ext
17569cat >>conftest.$ac_ext <<_ACEOF
17570/* end confdefs.h. */
17571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573#define $ac_func innocuous_$ac_func
17574
17575/* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17579
17580#ifdef __STDC__
17581# include <limits.h>
17582#else
17583# include <assert.h>
17584#endif
17585
17586#undef $ac_func
17587
17588/* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17591#ifdef __cplusplus
17592extern "C"
17593#endif
17594char $ac_func ();
17595/* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598#if defined __stub_$ac_func || defined __stub___$ac_func
17599choke me
17600#endif
17601
17602int
17603main ()
17604{
17605return $ac_func ();
17606 ;
17607 return 0;
17608}
17609_ACEOF
17610rm -f conftest.$ac_objext conftest$ac_exeext
17611if { (ac_try="$ac_link"
17612case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17615esac
17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638esac
17639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17645else
17646 echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 eval "$as_ac_var=no"
17650fi
17651
17652rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17654fi
17655ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657echo "${ECHO_T}$ac_res" >&6; }
17658if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017659 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017661_ACEOF
17662
17663fi
17664done
Reid Spencerdf3be822006-01-23 08:15:53 +000017665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666
17667
17668
17669
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017670for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671do
17672as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17673{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17674echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17675if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
17677else
17678 cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17686#define $ac_func innocuous_$ac_func
17687
17688/* System header to define __stub macros and hopefully few prototypes,
17689 which can conflict with char $ac_func (); below.
17690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691 <limits.h> exists even on freestanding compilers. */
17692
17693#ifdef __STDC__
17694# include <limits.h>
17695#else
17696# include <assert.h>
17697#endif
17698
17699#undef $ac_func
17700
17701/* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17704#ifdef __cplusplus
17705extern "C"
17706#endif
17707char $ac_func ();
17708/* The GNU C library defines this for functions which it implements
17709 to always fail with ENOSYS. Some functions are actually named
17710 something starting with __ and the normal name is an alias. */
17711#if defined __stub_$ac_func || defined __stub___$ac_func
17712choke me
17713#endif
17714
17715int
17716main ()
17717{
17718return $ac_func ();
17719 ;
17720 return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext conftest$ac_exeext
17724if { (ac_try="$ac_link"
17725case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728esac
17729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_link") 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest$ac_exeext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17751esac
17752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 eval "$as_ac_var=yes"
17758else
17759 echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
17761
17762 eval "$as_ac_var=no"
17763fi
17764
17765rm -f core conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17767fi
17768ac_res=`eval echo '${'$as_ac_var'}'`
17769 { echo "$as_me:$LINENO: result: $ac_res" >&5
17770echo "${ECHO_T}$ac_res" >&6; }
17771if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017772 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017774_ACEOF
17775
17776fi
17777done
17778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017779
17780
17781
17782
Chris Lattner511f11d2005-11-14 07:25:50 +000017783for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784do
17785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790else
17791 cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17799#define $ac_func innocuous_$ac_func
17800
17801/* System header to define __stub macros and hopefully few prototypes,
17802 which can conflict with char $ac_func (); below.
17803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804 <limits.h> exists even on freestanding compilers. */
17805
17806#ifdef __STDC__
17807# include <limits.h>
17808#else
17809# include <assert.h>
17810#endif
17811
17812#undef $ac_func
17813
17814/* Override any GCC internal prototype to avoid an error.
17815 Use char because int might match the return type of a GCC
17816 builtin and then its argument prototype would still apply. */
17817#ifdef __cplusplus
17818extern "C"
17819#endif
17820char $ac_func ();
17821/* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824#if defined __stub_$ac_func || defined __stub___$ac_func
17825choke me
17826#endif
17827
17828int
17829main ()
17830{
17831return $ac_func ();
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext conftest$ac_exeext
17837if { (ac_try="$ac_link"
17838case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 eval "$as_ac_var=yes"
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 eval "$as_ac_var=no"
17876fi
17877
17878rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880fi
17881ac_res=`eval echo '${'$as_ac_var'}'`
17882 { echo "$as_me:$LINENO: result: $ac_res" >&5
17883echo "${ECHO_T}$ac_res" >&6; }
17884if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017885 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017887_ACEOF
17888
17889fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017890done
John Criswell7a73b802003-06-30 21:59:07 +000017891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017892
17893
17894
17895
Reid Spencerafa22e22006-12-10 23:29:19 +000017896for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017897do
17898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904 cat >conftest.$ac_ext <<_ACEOF
17905/* confdefs.h. */
17906_ACEOF
17907cat confdefs.h >>conftest.$ac_ext
17908cat >>conftest.$ac_ext <<_ACEOF
17909/* end confdefs.h. */
17910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912#define $ac_func innocuous_$ac_func
17913
17914/* System header to define __stub macros and hopefully few prototypes,
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17918
17919#ifdef __STDC__
17920# include <limits.h>
17921#else
17922# include <assert.h>
17923#endif
17924
17925#undef $ac_func
17926
17927/* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17930#ifdef __cplusplus
17931extern "C"
17932#endif
17933char $ac_func ();
17934/* The GNU C library defines this for functions which it implements
17935 to always fail with ENOSYS. Some functions are actually named
17936 something starting with __ and the normal name is an alias. */
17937#if defined __stub_$ac_func || defined __stub___$ac_func
17938choke me
17939#endif
17940
17941int
17942main ()
17943{
17944return $ac_func ();
17945 ;
17946 return 0;
17947}
17948_ACEOF
17949rm -f conftest.$ac_objext conftest$ac_exeext
17950if { (ac_try="$ac_link"
17951case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_link") 2>conftest.er1
17957 ac_status=$?
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17964 { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967esac
17968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_try") 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; } &&
17973 { ac_try='test -s conftest$ac_exeext'
17974 { (case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17977esac
17978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_try") 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 eval "$as_ac_var=yes"
17984else
17985 echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988 eval "$as_ac_var=no"
17989fi
17990
17991rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993fi
17994ac_res=`eval echo '${'$as_ac_var'}'`
17995 { echo "$as_me:$LINENO: result: $ac_res" >&5
17996echo "${ECHO_T}$ac_res" >&6; }
17997if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017998 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018000_ACEOF
18001
18002fi
18003done
18004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018005{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18006echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18007if test "${llvm_cv_c_printf_a+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018009else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018010 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018011ac_cpp='$CPP $CPPFLAGS'
18012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18014ac_compiler_gnu=$ac_cv_c_compiler_gnu
18015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018016 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018017 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018019 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018021 /* confdefs.h. */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
18025/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018026
John Criswella0137d32003-10-13 16:22:01 +000018027#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018028#include <stdlib.h>
18029
John Criswella0137d32003-10-13 16:22:01 +000018030int
18031main ()
18032{
18033
Reid Spencer2706f8c2004-09-19 23:53:36 +000018034volatile double A, B;
18035char Buffer[100];
18036A = 1;
18037A /= 10.0;
18038sprintf(Buffer, "%a", A);
18039B = atof(Buffer);
18040if (A != B)
18041 return (1);
18042if (A != 0x1.999999999999ap-4)
18043 return (1);
18044return (0);
John Criswella0137d32003-10-13 16:22:01 +000018045 ;
18046 return 0;
18047}
18048_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018049rm -f conftest$ac_exeext
18050if { (ac_try="$ac_link"
18051case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063esac
18064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018069 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018071 echo "$as_me: program exited with status $ac_status" >&5
18072echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075( exit $ac_status )
18076llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018078rm -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 +000018079fi
Reid Spencera773bd52006-08-04 18:18:08 +000018080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018081
Reid Spencer2706f8c2004-09-19 23:53:36 +000018082 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018083ac_cpp='$CPP $CPPFLAGS'
18084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18086ac_compiler_gnu=$ac_cv_c_compiler_gnu
18087
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018089{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18090echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018091 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018093cat >>confdefs.h <<\_ACEOF
18094#define HAVE_PRINTF_A 1
18095_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018096
Reid Spencer2706f8c2004-09-19 23:53:36 +000018097 fi
John Criswella0137d32003-10-13 16:22:01 +000018098
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018100{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18101echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18102if test "${ac_cv_func_rand48+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018104else
Reid Spencera773bd52006-08-04 18:18:08 +000018105 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018106ac_cpp='$CXXCPP $CPPFLAGS'
18107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018116/* end confdefs.h. */
18117#include <stdlib.h>
18118int
18119main ()
18120{
18121srand48(0);lrand48();drand48();
18122 ;
18123 return 0;
18124}
18125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018126rm -f conftest.$ac_objext
18127if { (ac_try="$ac_compile"
18128case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131esac
18132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_compile") 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18141 { (case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144esac
18145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_try") 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest.$ac_objext'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154esac
18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_try") 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018160 ac_cv_func_rand48=yes
18161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018167
Reid Spencera773bd52006-08-04 18:18:08 +000018168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018169 ac_ext=c
18170ac_cpp='$CPP $CPPFLAGS'
18171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18173ac_compiler_gnu=$ac_cv_c_compiler_gnu
18174
18175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018176{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18177echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018178
18179if test "$ac_cv_func_rand48" = "yes" ; then
18180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018181cat >>confdefs.h <<\_ACEOF
18182#define HAVE_RAND48 1
18183_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018184
18185fi
John Criswell0021c312004-02-13 21:57:29 +000018186
18187
Torok Edwin871384f2010-01-26 08:50:50 +000018188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018189{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18190echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18191if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018193else
Reid Spencera773bd52006-08-04 18:18:08 +000018194 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018195ac_cpp='$CXXCPP $CPPFLAGS'
18196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018200 cat >conftest.$ac_ext <<_ACEOF
18201/* confdefs.h. */
18202_ACEOF
18203cat confdefs.h >>conftest.$ac_ext
18204cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018205/* end confdefs.h. */
18206#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018207int
18208main ()
18209{
18210float f; isnan(f);
18211 ;
18212 return 0;
18213}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018214_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018215rm -f conftest.$ac_objext
18216if { (ac_try="$ac_compile"
18217case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220esac
18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_compile") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233esac
18234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018249 ac_cv_func_isnan_in_math_h=yes
18250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018256
Reid Spencera773bd52006-08-04 18:18:08 +000018257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018258 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018259ac_cpp='$CPP $CPPFLAGS'
18260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18262ac_compiler_gnu=$ac_cv_c_compiler_gnu
18263
18264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018265{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18266echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018267
18268
18269if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018271cat >>confdefs.h <<\_ACEOF
18272#define HAVE_ISNAN_IN_MATH_H 1
18273_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018274
Reid Spencerabec8f92004-10-27 23:03:44 +000018275fi
18276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018277{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18278echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18279if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018281else
Reid Spencera773bd52006-08-04 18:18:08 +000018282 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018283ac_cpp='$CXXCPP $CPPFLAGS'
18284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018288 cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018293/* end confdefs.h. */
18294#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018295int
18296main ()
18297{
18298float f; isnan(f);
18299 ;
18300 return 0;
18301}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018303rm -f conftest.$ac_objext
18304if { (ac_try="$ac_compile"
18305case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18308esac
18309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_compile") 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18318 { (case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321esac
18322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_try") 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331esac
18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018337 ac_cv_func_isnan_in_cmath=yes
18338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018339 echo "$as_me: failed program was:" >&5
18340sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018344
Reid Spencera773bd52006-08-04 18:18:08 +000018345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018346 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018347ac_cpp='$CPP $CPPFLAGS'
18348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18350ac_compiler_gnu=$ac_cv_c_compiler_gnu
18351
18352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018353{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18354echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018355
18356if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018358cat >>confdefs.h <<\_ACEOF
18359#define HAVE_ISNAN_IN_CMATH 1
18360_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018361
Reid Spencerabec8f92004-10-27 23:03:44 +000018362fi
18363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018364{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18365echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18366if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018368else
Reid Spencera773bd52006-08-04 18:18:08 +000018369 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018370ac_cpp='$CXXCPP $CPPFLAGS'
18371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018375 cat >conftest.$ac_ext <<_ACEOF
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018380/* end confdefs.h. */
18381#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018382int
18383main ()
18384{
18385float f; std::isnan(f);
18386 ;
18387 return 0;
18388}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018390rm -f conftest.$ac_objext
18391if { (ac_try="$ac_compile"
18392case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395esac
18396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405 { (case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408esac
18409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_try") 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418esac
18419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_try") 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018424 ac_cv_func_std_isnan_in_cmath=yes
18425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018426 echo "$as_me: failed program was:" >&5
18427sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018431
Reid Spencera773bd52006-08-04 18:18:08 +000018432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018433 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018434ac_cpp='$CPP $CPPFLAGS'
18435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437ac_compiler_gnu=$ac_cv_c_compiler_gnu
18438
18439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018440{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18441echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018442
18443if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018445cat >>confdefs.h <<\_ACEOF
18446#define HAVE_STD_ISNAN_IN_CMATH 1
18447_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018448
Reid Spencerabec8f92004-10-27 23:03:44 +000018449fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018450
18451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018452{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18453echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18454if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018456else
Reid Spencera773bd52006-08-04 18:18:08 +000018457 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018458ac_cpp='$CXXCPP $CPPFLAGS'
18459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018463 cat >conftest.$ac_ext <<_ACEOF
18464/* confdefs.h. */
18465_ACEOF
18466cat confdefs.h >>conftest.$ac_ext
18467cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018468/* end confdefs.h. */
18469#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018470int
18471main ()
18472{
18473float f; isinf(f);
18474 ;
18475 return 0;
18476}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018477_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018478rm -f conftest.$ac_objext
18479if { (ac_try="$ac_compile"
18480case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483esac
18484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18493 { (case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18496esac
18497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_try") 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest.$ac_objext'
18503 { (case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506esac
18507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_try") 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018512 ac_cv_func_isinf_in_math_h=yes
18513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018514 echo "$as_me: failed program was:" >&5
18515sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018519
Reid Spencera773bd52006-08-04 18:18:08 +000018520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018521 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018522ac_cpp='$CPP $CPPFLAGS'
18523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525ac_compiler_gnu=$ac_cv_c_compiler_gnu
18526
18527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018528{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18529echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018530
18531if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018533cat >>confdefs.h <<\_ACEOF
18534#define HAVE_ISINF_IN_MATH_H 1
18535_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018536
Reid Spencerabec8f92004-10-27 23:03:44 +000018537fi
18538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018539{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18540echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18541if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018543else
Reid Spencera773bd52006-08-04 18:18:08 +000018544 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018545ac_cpp='$CXXCPP $CPPFLAGS'
18546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018550 cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018555/* end confdefs.h. */
18556#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018557int
18558main ()
18559{
18560float f; isinf(f);
18561 ;
18562 return 0;
18563}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018565rm -f conftest.$ac_objext
18566if { (ac_try="$ac_compile"
18567case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_compile") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest.$ac_objext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018599 ac_cv_func_isinf_in_cmath=yes
18600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018606
Reid Spencera773bd52006-08-04 18:18:08 +000018607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018608 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018609ac_cpp='$CPP $CPPFLAGS'
18610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18612ac_compiler_gnu=$ac_cv_c_compiler_gnu
18613
18614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18616echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018617
18618if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018620cat >>confdefs.h <<\_ACEOF
18621#define HAVE_ISINF_IN_CMATH 1
18622_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018623
Reid Spencerabec8f92004-10-27 23:03:44 +000018624fi
18625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018626{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18627echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18628if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018630else
Reid Spencera773bd52006-08-04 18:18:08 +000018631 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018632ac_cpp='$CXXCPP $CPPFLAGS'
18633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018637 cat >conftest.$ac_ext <<_ACEOF
18638/* confdefs.h. */
18639_ACEOF
18640cat confdefs.h >>conftest.$ac_ext
18641cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018642/* end confdefs.h. */
18643#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018644int
18645main ()
18646{
18647float f; std::isinf(f)}
18648 ;
18649 return 0;
18650}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018651_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018652rm -f conftest.$ac_objext
18653if { (ac_try="$ac_compile"
18654case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_compile") 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670esac
18671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18680esac
18681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018686 ac_cv_func_std_isinf_in_cmath=yes
18687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018688 echo "$as_me: failed program was:" >&5
18689sed 's/^/| /' conftest.$ac_ext >&5
18690
18691 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018693
Reid Spencera773bd52006-08-04 18:18:08 +000018694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018695 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018696ac_cpp='$CPP $CPPFLAGS'
18697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18699ac_compiler_gnu=$ac_cv_c_compiler_gnu
18700
18701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018702{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18703echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018704
18705if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018707cat >>confdefs.h <<\_ACEOF
18708#define HAVE_STD_ISINF_IN_CMATH 1
18709_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018710
Reid Spencerabec8f92004-10-27 23:03:44 +000018711fi
18712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018713{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18714echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18715if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018717else
Reid Spencera773bd52006-08-04 18:18:08 +000018718 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018719ac_cpp='$CXXCPP $CPPFLAGS'
18720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018724 cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018729/* end confdefs.h. */
18730#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018731int
18732main ()
18733{
18734float f; finite(f);
18735 ;
18736 return 0;
18737}
Brian Gaeked59a6472004-07-21 03:33:58 +000018738_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018739rm -f conftest.$ac_objext
18740if { (ac_try="$ac_compile"
18741case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_compile") 2>conftest.er1
18747 ac_status=$?
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18754 { (case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18757esac
18758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_try") 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018773 ac_cv_func_finite_in_ieeefp_h=yes
18774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018775 echo "$as_me: failed program was:" >&5
18776sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018780
Reid Spencera773bd52006-08-04 18:18:08 +000018781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018782 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018783ac_cpp='$CPP $CPPFLAGS'
18784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787
18788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018789{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18790echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018791
Brian Gaeke6802b552004-10-28 05:06:45 +000018792if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018794cat >>confdefs.h <<\_ACEOF
18795#define HAVE_FINITE_IN_IEEEFP_H 1
18796_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018797
Reid Spencerabec8f92004-10-27 23:03:44 +000018798fi
18799
18800
18801
Reid Spencer30fe5262007-01-20 07:48:49 +000018802if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018803
18804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018805for ac_header in stdlib.h unistd.h
18806do
18807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813fi
18814ac_res=`eval echo '${'$as_ac_Header'}'`
18815 { echo "$as_me:$LINENO: result: $ac_res" >&5
18816echo "${ECHO_T}$ac_res" >&6; }
18817else
18818 # Is the header compilable?
18819{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18821cat >conftest.$ac_ext <<_ACEOF
18822/* confdefs.h. */
18823_ACEOF
18824cat confdefs.h >>conftest.$ac_ext
18825cat >>conftest.$ac_ext <<_ACEOF
18826/* end confdefs.h. */
18827$ac_includes_default
18828#include <$ac_header>
18829_ACEOF
18830rm -f conftest.$ac_objext
18831if { (ac_try="$ac_compile"
18832case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835esac
18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_compile") 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845 { (case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848esac
18849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_try") 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18858esac
18859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_try") 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_header_compiler=yes
18865else
18866 echo "$as_me: failed program was:" >&5
18867sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018869 ac_header_compiler=no
18870fi
18871
18872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18874echo "${ECHO_T}$ac_header_compiler" >&6; }
18875
18876# Is the header present?
18877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18879cat >conftest.$ac_ext <<_ACEOF
18880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
18884/* end confdefs.h. */
18885#include <$ac_header>
18886_ACEOF
18887if { (ac_try="$ac_cpp conftest.$ac_ext"
18888case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891esac
18892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18894 ac_status=$?
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } >/dev/null; then
18900 if test -s conftest.err; then
18901 ac_cpp_err=$ac_c_preproc_warn_flag
18902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18903 else
18904 ac_cpp_err=
18905 fi
18906else
18907 ac_cpp_err=yes
18908fi
18909if test -z "$ac_cpp_err"; then
18910 ac_header_preproc=yes
18911else
18912 echo "$as_me: failed program was:" >&5
18913sed 's/^/| /' conftest.$ac_ext >&5
18914
18915 ac_header_preproc=no
18916fi
18917
18918rm -f conftest.err conftest.$ac_ext
18919{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18920echo "${ECHO_T}$ac_header_preproc" >&6; }
18921
18922# So? What about this header?
18923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18924 yes:no: )
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18929 ac_header_preproc=yes
18930 ;;
18931 no:yes:* )
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18944 ( cat <<\_ASBOX
18945## ----------------------------------- ##
18946## Report this to llvmbugs@cs.uiuc.edu ##
18947## ----------------------------------- ##
18948_ASBOX
18949 ) | sed "s/^/$as_me: WARNING: /" >&2
18950 ;;
18951esac
18952{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956else
18957 eval "$as_ac_Header=\$ac_header_preproc"
18958fi
18959ac_res=`eval echo '${'$as_ac_Header'}'`
18960 { echo "$as_me:$LINENO: result: $ac_res" >&5
18961echo "${ECHO_T}$ac_res" >&6; }
18962
18963fi
18964if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018965 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018967_ACEOF
18968
18969fi
18970
18971done
18972
18973
18974for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018975do
18976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18977{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981else
18982 cat >conftest.$ac_ext <<_ACEOF
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
18988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18990#define $ac_func innocuous_$ac_func
18991
18992/* System header to define __stub macros and hopefully few prototypes,
18993 which can conflict with char $ac_func (); below.
18994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 <limits.h> exists even on freestanding compilers. */
18996
18997#ifdef __STDC__
18998# include <limits.h>
18999#else
19000# include <assert.h>
19001#endif
19002
19003#undef $ac_func
19004
19005/* Override any GCC internal prototype to avoid an error.
19006 Use char because int might match the return type of a GCC
19007 builtin and then its argument prototype would still apply. */
19008#ifdef __cplusplus
19009extern "C"
19010#endif
19011char $ac_func ();
19012/* The GNU C library defines this for functions which it implements
19013 to always fail with ENOSYS. Some functions are actually named
19014 something starting with __ and the normal name is an alias. */
19015#if defined __stub_$ac_func || defined __stub___$ac_func
19016choke me
19017#endif
19018
19019int
19020main ()
19021{
19022return $ac_func ();
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest.$ac_objext conftest$ac_exeext
19028if { (ac_try="$ac_link"
19029case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_link") 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19045esac
19046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055esac
19056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_try") 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 eval "$as_ac_var=yes"
19062else
19063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 eval "$as_ac_var=no"
19067fi
19068
19069rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071fi
19072ac_res=`eval echo '${'$as_ac_var'}'`
19073 { echo "$as_me:$LINENO: result: $ac_res" >&5
19074echo "${ECHO_T}$ac_res" >&6; }
19075if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019078_ACEOF
19079
19080fi
19081done
19082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019083{ echo "$as_me:$LINENO: checking for working mmap" >&5
19084echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19085if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019088 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019089 ac_cv_func_mmap_fixed_mapped=no
19090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019091 cat >conftest.$ac_ext <<_ACEOF
19092/* confdefs.h. */
19093_ACEOF
19094cat confdefs.h >>conftest.$ac_ext
19095cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019097$ac_includes_default
19098/* malloc might have been renamed as rpl_malloc. */
19099#undef malloc
19100
19101/* Thanks to Mike Haertel and Jim Avera for this test.
19102 Here is a matrix of mmap possibilities:
19103 mmap private not fixed
19104 mmap private fixed at somewhere currently unmapped
19105 mmap private fixed at somewhere already mapped
19106 mmap shared not fixed
19107 mmap shared fixed at somewhere currently unmapped
19108 mmap shared fixed at somewhere already mapped
19109 For private mappings, we should verify that changes cannot be read()
19110 back from the file, nor mmap's back from the file at a different
19111 address. (There have been systems where private was not correctly
19112 implemented like the infamous i386 svr4.0, and systems where the
19113 VM page cache was not coherent with the file system buffer cache
19114 like early versions of FreeBSD and possibly contemporary NetBSD.)
19115 For shared mappings, we should conversely verify that changes get
19116 propagated back to all the places they're supposed to be.
19117
19118 Grep wants private fixed already mapped.
19119 The main things grep needs to know about mmap are:
19120 * does it exist and is it safe to write into the mmap'd area
19121 * how to use it (BSD variants) */
19122
19123#include <fcntl.h>
19124#include <sys/mman.h>
19125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019126#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019127char *malloc ();
19128#endif
19129
19130/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019131#if !HAVE_GETPAGESIZE
19132/* Assume that all systems that can run configure have sys/param.h. */
19133# if !HAVE_SYS_PARAM_H
19134# define HAVE_SYS_PARAM_H 1
19135# endif
19136
John Criswell7a73b802003-06-30 21:59:07 +000019137# ifdef _SC_PAGESIZE
19138# define getpagesize() sysconf(_SC_PAGESIZE)
19139# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019140# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019141# include <sys/param.h>
19142# ifdef EXEC_PAGESIZE
19143# define getpagesize() EXEC_PAGESIZE
19144# else /* no EXEC_PAGESIZE */
19145# ifdef NBPG
19146# define getpagesize() NBPG * CLSIZE
19147# ifndef CLSIZE
19148# define CLSIZE 1
19149# endif /* no CLSIZE */
19150# else /* no NBPG */
19151# ifdef NBPC
19152# define getpagesize() NBPC
19153# else /* no NBPC */
19154# ifdef PAGESIZE
19155# define getpagesize() PAGESIZE
19156# endif /* PAGESIZE */
19157# endif /* no NBPC */
19158# endif /* no NBPG */
19159# endif /* no EXEC_PAGESIZE */
19160# else /* no HAVE_SYS_PARAM_H */
19161# define getpagesize() 8192 /* punt totally */
19162# endif /* no HAVE_SYS_PARAM_H */
19163# endif /* no _SC_PAGESIZE */
19164
19165#endif /* no HAVE_GETPAGESIZE */
19166
19167int
19168main ()
19169{
19170 char *data, *data2, *data3;
19171 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019172 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019173
19174 pagesize = getpagesize ();
19175
19176 /* First, make a file with some known garbage in it. */
19177 data = (char *) malloc (pagesize);
19178 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019179 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019180 for (i = 0; i < pagesize; ++i)
19181 *(data + i) = rand ();
19182 umask (0);
19183 fd = creat ("conftest.mmap", 0600);
19184 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019185 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019186 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019187 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019188 close (fd);
19189
19190 /* Next, try to mmap the file at a fixed address which already has
19191 something else allocated at it. If we can, also make sure that
19192 we see the same garbage. */
19193 fd = open ("conftest.mmap", O_RDWR);
19194 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019195 return 1;
19196 data2 = (char *) malloc (2 * pagesize);
19197 if (!data2)
19198 return 1;
19199 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019200 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019201 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019202 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019203 for (i = 0; i < pagesize; ++i)
19204 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019205 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019206
19207 /* Finally, make sure that changes to the mapped area do not
19208 percolate back to the file as seen by read(). (This is a bug on
19209 some variants of i386 svr4.0.) */
19210 for (i = 0; i < pagesize; ++i)
19211 *(data2 + i) = *(data2 + i) + 1;
19212 data3 = (char *) malloc (pagesize);
19213 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019214 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019215 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019216 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019217 for (i = 0; i < pagesize; ++i)
19218 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019219 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019220 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019221 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019222}
19223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224rm -f conftest$ac_exeext
19225if { (ac_try="$ac_link"
19226case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_link") 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019244 ac_cv_func_mmap_fixed_mapped=yes
19245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019246 echo "$as_me: program exited with status $ac_status" >&5
19247echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250( exit $ac_status )
19251ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019253rm -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 +000019254fi
Reid Spencera773bd52006-08-04 18:18:08 +000019255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019256
John Criswell7a73b802003-06-30 21:59:07 +000019257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019258{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19259echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019260if test $ac_cv_func_mmap_fixed_mapped = yes; then
19261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019262cat >>confdefs.h <<\_ACEOF
19263#define HAVE_MMAP 1
19264_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019265
19266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019267rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019269 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19270echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19271if test "${ac_cv_func_mmap_file+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019273else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019274 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019275ac_cpp='$CPP $CPPFLAGS'
19276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19278ac_compiler_gnu=$ac_cv_c_compiler_gnu
19279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019280 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019281 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019283 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019285 /* confdefs.h. */
19286_ACEOF
19287cat confdefs.h >>conftest.$ac_ext
19288cat >>conftest.$ac_ext <<_ACEOF
19289/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019290
John Criswell7a73b802003-06-30 21:59:07 +000019291#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019292#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019293#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019294
19295int
19296main ()
19297{
John Criswell7a73b802003-06-30 21:59:07 +000019298
19299 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019300 fd = creat ("foo",0777);
19301 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19302 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019303 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019304 ;
19305 return 0;
19306}
John Criswell7a73b802003-06-30 21:59:07 +000019307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308rm -f conftest$ac_exeext
19309if { (ac_try="$ac_link"
19310case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313esac
19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_link") 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19319 { (case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322esac
19323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_try") 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019328 ac_cv_func_mmap_file=yes
19329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019330 echo "$as_me: program exited with status $ac_status" >&5
19331echo "$as_me: failed program was:" >&5
19332sed 's/^/| /' conftest.$ac_ext >&5
19333
19334( exit $ac_status )
19335ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019337rm -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 +000019338fi
Reid Spencera773bd52006-08-04 18:18:08 +000019339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019340
John Criswell7a73b802003-06-30 21:59:07 +000019341 ac_ext=c
19342ac_cpp='$CPP $CPPFLAGS'
19343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345ac_compiler_gnu=$ac_cv_c_compiler_gnu
19346
19347
19348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019349{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19350echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019351if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019353cat >>confdefs.h <<\_ACEOF
19354#define HAVE_MMAP_FILE
19355_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019356
19357 MMAP_FILE=yes
19358
19359fi
19360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019361 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19362echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19363if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019365else
Reid Spencer582a23c2004-12-29 07:07:57 +000019366 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019367 ac_cv_need_dev_zero_for_mmap=yes
19368 else
19369 ac_cv_need_dev_zero_for_mmap=no
19370 fi
19371
19372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019373{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19374echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019375if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377cat >>confdefs.h <<\_ACEOF
19378#define NEED_DEV_ZERO_FOR_MMAP 1
19379_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019380
19381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019382
Reid Spencer30fe5262007-01-20 07:48:49 +000019383 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19384 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019385 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19386echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019387 fi
19388 if test "$ac_cv_func_mmap_file" = "no"
19389 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019390 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19391echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019392 fi
John Criswellb13092b2003-07-22 21:00:24 +000019393fi
John Criswell7a73b802003-06-30 21:59:07 +000019394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19396echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19397cat >conftest.$ac_ext <<_ACEOF
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019402/* end confdefs.h. */
19403int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019404 volatile unsigned long val = 1;
19405 __sync_synchronize();
19406 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019407 __sync_add_and_fetch(&val, 1);
19408 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019409 return 0;
19410 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019411
19412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019413rm -f conftest.$ac_objext conftest$ac_exeext
19414if { (ac_try="$ac_link"
19415case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418esac
19419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431esac
19432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441esac
19442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 { echo "$as_me:$LINENO: result: yes" >&5
19448echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019450cat >>confdefs.h <<\_ACEOF
19451#define LLVM_MULTITHREADED 1
19452_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019453
Owen Andersond4b272b2009-05-18 23:58:51 +000019454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019458 { echo "$as_me:$LINENO: result: no" >&5
19459echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019461cat >>confdefs.h <<\_ACEOF
19462#define LLVM_MULTITHREADED 0
19463_ACEOF
19464
19465 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19466echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468
Owen Andersond4b272b2009-05-18 23:58:51 +000019469rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019471
19472
John Criswell7a73b802003-06-30 21:59:07 +000019473
Nick Lewycky4372e692009-09-29 06:18:23 +000019474if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19476echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19477if test "${llvm_cv_linux_mixed+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019479else
19480 ac_ext=c
19481ac_cpp='$CPP $CPPFLAGS'
19482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486 cat >conftest.$ac_ext <<_ACEOF
19487/* confdefs.h. */
19488_ACEOF
19489cat confdefs.h >>conftest.$ac_ext
19490cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019491/* end confdefs.h. */
19492#ifndef __x86_64__
19493 error: Not x86-64 even if uname says so!
19494 #endif
19495
19496int
19497main ()
19498{
19499
19500 ;
19501 return 0;
19502}
19503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019504rm -f conftest.$ac_objext
19505if { (ac_try="$ac_compile"
19506case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019538 llvm_cv_linux_mixed=no
19539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019545
Nick Lewycky4372e692009-09-29 06:18:23 +000019546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547 ac_ext=c
19548ac_cpp='$CPP $CPPFLAGS'
19549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553
19554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019555{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19556echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019557
19558 if test "$llvm_cv_linux_mixed" = "yes"; then
19559 llvm_cv_target_arch="x86"
19560 ARCH="x86"
19561 fi
19562fi
19563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019564
Reid Spencer9372f152007-07-30 20:13:24 +000019565for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019566do
19567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19568{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19570if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
19579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19581#define $ac_func innocuous_$ac_func
19582
19583/* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char $ac_func (); below.
19585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19586 <limits.h> exists even on freestanding compilers. */
19587
19588#ifdef __STDC__
19589# include <limits.h>
19590#else
19591# include <assert.h>
19592#endif
19593
19594#undef $ac_func
19595
19596/* Override any GCC internal prototype to avoid an error.
19597 Use char because int might match the return type of a GCC
19598 builtin and then its argument prototype would still apply. */
19599#ifdef __cplusplus
19600extern "C"
19601#endif
19602char $ac_func ();
19603/* The GNU C library defines this for functions which it implements
19604 to always fail with ENOSYS. Some functions are actually named
19605 something starting with __ and the normal name is an alias. */
19606#if defined __stub_$ac_func || defined __stub___$ac_func
19607choke me
19608#endif
19609
19610int
19611main ()
19612{
19613return $ac_func ();
19614 ;
19615 return 0;
19616}
19617_ACEOF
19618rm -f conftest.$ac_objext conftest$ac_exeext
19619if { (ac_try="$ac_link"
19620case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19623esac
19624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_link") 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest$ac_exeext'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646esac
19647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 eval "$as_ac_var=yes"
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 eval "$as_ac_var=no"
19658fi
19659
19660rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19662fi
19663ac_res=`eval echo '${'$as_ac_var'}'`
19664 { echo "$as_me:$LINENO: result: $ac_res" >&5
19665echo "${ECHO_T}$ac_res" >&6; }
19666if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019667 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019669_ACEOF
19670
19671fi
19672done
19673
19674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19676echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19677if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019679else
19680 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019681if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019682 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019683 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19684 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019685 if test $? -eq 0 ; then
19686 llvm_cv_llvmgcc_sanity="yes"
19687 fi
19688 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019689fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019690fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019691{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19692echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019693
19694if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019695 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19696echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019697 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019698 LLVMCC1=$llvmcc1path
19699
Reid Spencer502935f2004-12-22 05:56:56 +000019700 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019701 LLVMCC1PLUS=$llvmcc1pluspath
19702
Reid Spencer502935f2004-12-22 05:56:56 +000019703 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19704 LLVMGCCDIR=$llvmgccdir
19705
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019706 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019707 LLVMGCC_LANGS=$llvmgcclangs
19708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019709 { echo "$as_me:$LINENO: result: ok" >&5
19710echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019711fi
19712
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019713SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019714
19715
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +000019716SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19717
19718
Reid Spencere9de0912004-08-20 09:03:57 +000019719# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019720# information into substitutions that will end up in Makefile.config.in
19721# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019722if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019723 prefix="/usr/local"
19724fi
Reid Spencere9de0912004-08-20 09:03:57 +000019725eval LLVM_PREFIX="${prefix}";
19726eval LLVM_BINDIR="${prefix}/bin";
19727eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019728eval LLVM_DATADIR="${prefix}/share/llvm";
19729eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19730eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019731eval LLVM_INCLUDEDIR="${prefix}/include";
19732eval LLVM_INFODIR="${prefix}/info";
19733eval LLVM_MANDIR="${prefix}/man";
19734LLVM_CONFIGTIME=`date`
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019746# Place the various directores into the config.h file as #defines so that we
19747# can know about the installation paths within LLVM.
19748
Reid Spencere9de0912004-08-20 09:03:57 +000019749cat >>confdefs.h <<_ACEOF
19750#define LLVM_PREFIX "$LLVM_PREFIX"
19751_ACEOF
19752
19753
19754cat >>confdefs.h <<_ACEOF
19755#define LLVM_BINDIR "$LLVM_BINDIR"
19756_ACEOF
19757
19758
19759cat >>confdefs.h <<_ACEOF
19760#define LLVM_LIBDIR "$LLVM_LIBDIR"
19761_ACEOF
19762
19763
19764cat >>confdefs.h <<_ACEOF
19765#define LLVM_DATADIR "$LLVM_DATADIR"
19766_ACEOF
19767
19768
19769cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019770#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019771_ACEOF
19772
19773
19774cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019775#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019776_ACEOF
19777
19778
19779cat >>confdefs.h <<_ACEOF
19780#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19781_ACEOF
19782
19783
19784cat >>confdefs.h <<_ACEOF
19785#define LLVM_INFODIR "$LLVM_INFODIR"
19786_ACEOF
19787
19788
19789cat >>confdefs.h <<_ACEOF
19790#define LLVM_MANDIR "$LLVM_MANDIR"
19791_ACEOF
19792
19793
19794cat >>confdefs.h <<_ACEOF
19795#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19796_ACEOF
19797
19798
Eric Christopher790e11c2007-12-01 00:34:39 +000019799cat >>confdefs.h <<_ACEOF
19800#define LLVM_HOSTTRIPLE "$host"
19801_ACEOF
19802
19803
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019804# Determine which bindings to build.
19805if test "$BINDINGS_TO_BUILD" = auto ; then
19806 BINDINGS_TO_BUILD=""
19807 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19808 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19809 fi
19810fi
19811BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19812
19813
19814# This isn't really configurey, but it avoids having to repeat the list in
19815# other files.
19816ALL_BINDINGS=ocaml
19817
19818
Gordon Henriksenf0915682007-10-02 16:42:22 +000019819# Do any work necessary to ensure that bindings have what they need.
19820binding_prereqs_failed=0
19821for a_binding in $BINDINGS_TO_BUILD ; do
19822 case "$a_binding" in
19823 ocaml)
19824 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019825 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19826echo "$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 +000019827 binding_prereqs_failed=1
19828 fi
19829 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019830 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19831echo "$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 +000019832 binding_prereqs_failed=1
19833 fi
19834 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019835 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19836echo "$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 +000019837 fi
19838 if test "x$with_ocaml_libdir" != xauto ; then
19839 OCAML_LIBDIR=$with_ocaml_libdir
19840
19841 else
19842 ocaml_stdlib="`"$OCAMLC" -where`"
19843 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19844 then
19845 # ocaml stdlib is beneath our prefix; use stdlib
19846 OCAML_LIBDIR=$ocaml_stdlib
19847
19848 else
19849 # ocaml stdlib is outside our prefix; use libdir/ocaml
19850 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19851
19852 fi
19853 fi
19854 ;;
19855 esac
19856done
19857if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019858 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19859echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19860 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000019861fi
19862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019863{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19864echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19865if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019867else
19868 ac_ext=cpp
19869ac_cpp='$CXXCPP $CPPFLAGS'
19870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19873
19874 oldcxxflags="$CXXFLAGS"
19875 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019876 cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019881/* end confdefs.h. */
19882
19883int
19884main ()
19885{
19886
19887 ;
19888 return 0;
19889}
19890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019891rm -f conftest.$ac_objext
19892if { (ac_try="$ac_compile"
19893case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_compile") 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19906 { (case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909esac
19910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_try") 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19919esac
19920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_try") 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019925 llvm_cv_cxx_visibility_inlines_hidden=yes
19926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019927 echo "$as_me: failed program was:" >&5
19928sed 's/^/| /' conftest.$ac_ext >&5
19929
19930 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 CXXFLAGS="$oldcxxflags"
19935 ac_ext=c
19936ac_cpp='$CPP $CPPFLAGS'
19937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939ac_compiler_gnu=$ac_cv_c_compiler_gnu
19940
19941
19942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19944echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019945if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19946 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19947
19948else
19949 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19950
19951fi
19952
Gordon Henriksenf0915682007-10-02 16:42:22 +000019953
Nick Lewycky731c6ab2009-03-05 08:20:44 +000019954if test "$llvm_cv_link_use_r" = "yes" ; then
19955 RPATH="-Wl,-R"
19956else
19957 RPATH="-Wl,-rpath"
19958fi
19959
19960
19961if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19962 RDYNAMIC="-Wl,-export-dynamic"
19963else
19964 RDYNAMIC=""
19965fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019966
19967
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019968
Reid Spencera773bd52006-08-04 18:18:08 +000019969ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019970
Douglas Gregor1555a232009-06-16 20:12:29 +000019971ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19972
19973ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19974
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000019975ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19976
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000019977ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19978
Chandler Carruth8b67f772009-10-26 01:35:46 +000019979ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019980
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019981
Reid Spencera773bd52006-08-04 18:18:08 +000019982ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019983
19984
Reid Spencerea949cf2006-08-16 00:45:38 +000019985ac_config_files="$ac_config_files llvm.spec"
19986
19987
Reid Spencera773bd52006-08-04 18:18:08 +000019988ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000019989
19990
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000019991ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19992
19993
Reid Spencera773bd52006-08-04 18:18:08 +000019994ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000019995
19996
Reid Spencera773bd52006-08-04 18:18:08 +000019997ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000019998
Reid Spencera773bd52006-08-04 18:18:08 +000019999ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020000
20001
Reid Spencera773bd52006-08-04 18:18:08 +000020002ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020003
20004
Reid Spencera773bd52006-08-04 18:18:08 +000020005ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020006
20007
Reid Spencera773bd52006-08-04 18:18:08 +000020008ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020009
20010
Reid Spencer8b2e1412006-11-17 03:32:33 +000020011ac_config_commands="$ac_config_commands runtime/Makefile"
20012
20013
Reid Spencera773bd52006-08-04 18:18:08 +000020014ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020015
20016
Reid Spencera773bd52006-08-04 18:18:08 +000020017ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020018
20019
Bill Wendlingf24eb392009-01-04 23:12:30 +000020020ac_config_commands="$ac_config_commands unittests/Makefile"
20021
20022
Reid Spencera773bd52006-08-04 18:18:08 +000020023ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020024
20025
Reid Spencera773bd52006-08-04 18:18:08 +000020026ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020027
20028
Reid Spencera773bd52006-08-04 18:18:08 +000020029ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020030
20031
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020032ac_config_commands="$ac_config_commands bindings/Makefile"
20033
20034
20035ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20036
20037
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020038
John Criswell7a73b802003-06-30 21:59:07 +000020039cat >confcache <<\_ACEOF
20040# This file is a shell script that caches the results of configure
20041# tests run on this system so they can be shared between configure
20042# scripts and configure runs, see configure's option --config-cache.
20043# It is not useful on other systems. If it contains results you don't
20044# want to keep, you may remove or edit it.
20045#
20046# config.status only pays attention to the cache file if you give it
20047# the --recheck option to rerun configure.
20048#
John Criswell0c38eaf2003-09-10 15:17:25 +000020049# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020050# loading this file, other *unset* `ac_cv_foo' will be assigned the
20051# following values.
20052
20053_ACEOF
20054
20055# The following way of writing the cache mishandles newlines in values,
20056# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020057# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020058# Ultrix sh set writes to stderr and can't be redirected directly,
20059# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020060(
20061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20062 eval ac_val=\$$ac_var
20063 case $ac_val in #(
20064 *${as_nl}*)
20065 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20067echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020068 esac
20069 case $ac_var in #(
20070 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020071 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020072 esac ;;
20073 esac
20074 done
20075
John Criswell7a73b802003-06-30 21:59:07 +000020076 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20078 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079 # `set' does not quote correctly, so add quotes (double-quote
20080 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020081 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020082 "s/'/'\\\\''/g;
20083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020084 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020085 *)
20086 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020088 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020089 esac |
20090 sort
20091) |
John Criswell7a73b802003-06-30 21:59:07 +000020092 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020093 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020094 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020095 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20097 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20099 :end' >>confcache
20100if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20101 if test -w "$cache_file"; then
20102 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020103 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20104echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020105 cat confcache >$cache_file
20106 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020107 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20108echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020109 fi
20110fi
20111rm -f confcache
20112
20113test "x$prefix" = xNONE && prefix=$ac_default_prefix
20114# Let make expand exec_prefix.
20115test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20116
John Criswell7a73b802003-06-30 21:59:07 +000020117DEFS=-DHAVE_CONFIG_H
20118
John Criswell0c38eaf2003-09-10 15:17:25 +000020119ac_libobjs=
20120ac_ltlibobjs=
20121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20122 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020124 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20126 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020129done
20130LIBOBJS=$ac_libobjs
20131
20132LTLIBOBJS=$ac_ltlibobjs
20133
20134
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020135if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20137Usually this means the macro was only invoked conditionally." >&5
20138echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20139Usually this means the macro was only invoked conditionally." >&2;}
20140 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020141fi
20142if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20144Usually this means the macro was only invoked conditionally." >&5
20145echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20146Usually this means the macro was only invoked conditionally." >&2;}
20147 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020148fi
John Criswell7a73b802003-06-30 21:59:07 +000020149
20150: ${CONFIG_STATUS=./config.status}
20151ac_clean_files_save=$ac_clean_files
20152ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20154echo "$as_me: creating $CONFIG_STATUS" >&6;}
20155cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020156#! $SHELL
20157# Generated by $as_me.
20158# Run this file to recreate the current configuration.
20159# Compiler output produced by configure, useful for debugging
20160# configure, is in config.log if it exists.
20161
20162debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020163ac_cs_recheck=false
20164ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020165SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020166_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020168cat >>$CONFIG_STATUS <<\_ACEOF
20169## --------------------- ##
20170## M4sh Initialization. ##
20171## --------------------- ##
20172
20173# Be Bourne compatible
20174if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020175 emulate sh
20176 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020178 # is contrary to our usage. Disable this feature.
20179 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020180 setopt NO_GLOB_SUBST
20181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020182 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184BIN_SH=xpg4; export BIN_SH # for Tru64
20185DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020186
John Criswell7a73b802003-06-30 21:59:07 +000020187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188# PATH needs CR
20189# Avoid depending upon Character Ranges.
20190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20193as_cr_digits='0123456789'
20194as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020195
20196# The user is always right.
20197if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020198 echo "#! /bin/sh" >conf$$.sh
20199 echo "exit 0" >>conf$$.sh
20200 chmod +x conf$$.sh
20201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20202 PATH_SEPARATOR=';'
20203 else
20204 PATH_SEPARATOR=:
20205 fi
20206 rm -f conf$$.sh
20207fi
20208
20209# Support unset when possible.
20210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20211 as_unset=unset
20212else
20213 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020214fi
John Criswell7a73b802003-06-30 21:59:07 +000020215
Reid Spencera773bd52006-08-04 18:18:08 +000020216
20217# IFS
20218# We need space, tab and new line, in precisely that order. Quoting is
20219# there to prevent editors from complaining about space-tab.
20220# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20221# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020222as_nl='
20223'
Reid Spencera773bd52006-08-04 18:18:08 +000020224IFS=" "" $as_nl"
20225
20226# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020227case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020228 *[\\/]* ) as_myself=$0 ;;
20229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020230for as_dir in $PATH
20231do
20232 IFS=$as_save_IFS
20233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20235done
Reid Spencera773bd52006-08-04 18:18:08 +000020236IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020237
Reid Spencera773bd52006-08-04 18:18:08 +000020238 ;;
20239esac
20240# We did not find ourselves, most probably we were run as `sh COMMAND'
20241# in which case we are not to be found in the path.
20242if test "x$as_myself" = x; then
20243 as_myself=$0
20244fi
20245if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020246 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20247 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020248fi
20249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020250# Work around bugs in pre-3.0 UWIN ksh.
20251for as_var in ENV MAIL MAILPATH
20252do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020253done
20254PS1='$ '
20255PS2='> '
20256PS4='+ '
20257
20258# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020259for as_var in \
20260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20262 LC_TELEPHONE LC_TIME
20263do
20264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20265 eval $as_var=C; export $as_var
20266 else
20267 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020268 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269done
Torok Edwin871384f2010-01-26 08:50:50 +000020270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020271# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020272if expr a : '\(a\)' >/dev/null 2>&1 &&
20273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20274 as_expr=expr
20275else
20276 as_expr=false
20277fi
20278
20279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20280 as_basename=basename
20281else
20282 as_basename=false
20283fi
20284
20285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020286# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020287as_me=`$as_basename -- "$0" ||
20288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20289 X"$0" : 'X\(//\)$' \| \
20290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020292 sed '/^.*\/\([^/][^/]*\)\/*$/{
20293 s//\1/
20294 q
20295 }
20296 /^X\/\(\/\/\)$/{
20297 s//\1/
20298 q
20299 }
20300 /^X\/\(\/\).*/{
20301 s//\1/
20302 q
20303 }
20304 s/.*/./; q'`
20305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306# CDPATH.
20307$as_unset CDPATH
20308
20309
20310
20311 as_lineno_1=$LINENO
20312 as_lineno_2=$LINENO
20313 test "x$as_lineno_1" != "x$as_lineno_2" &&
20314 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20315
20316 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20317 # uniformly replaced by the line number. The first 'sed' inserts a
20318 # line-number line after each line using $LINENO; the second 'sed'
20319 # does the real work. The second script uses 'N' to pair each
20320 # line-number line with the line containing $LINENO, and appends
20321 # trailing '-' during substitution so that $LINENO is not a special
20322 # case at line end.
20323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20324 # scripts with optimization help from Paolo Bonzini. Blame Lee
20325 # E. McMahon (1931-1989) for sed's syntax. :-)
20326 sed -n '
20327 p
20328 /[$]LINENO/=
20329 ' <$as_myself |
20330 sed '
20331 s/[$]LINENO.*/&-/
20332 t lineno
20333 b
20334 :lineno
20335 N
20336 :loop
20337 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20338 t loop
20339 s/-\n.*//
20340 ' >$as_me.lineno &&
20341 chmod +x "$as_me.lineno" ||
20342 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20343 { (exit 1); exit 1; }; }
20344
20345 # Don't try to exec as it changes $[0], causing all sort of problems
20346 # (the dirname of $[0] is not the place where we might find the
20347 # original and so on. Autoconf is especially sensitive to this).
20348 . "./$as_me.lineno"
20349 # Exit status is that of the last command.
20350 exit
20351}
20352
20353
20354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20355 as_dirname=dirname
20356else
20357 as_dirname=false
20358fi
Reid Spencera773bd52006-08-04 18:18:08 +000020359
20360ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020362-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020366 esac;;
20367*)
20368 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020369esac
20370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371if expr a : '\(a\)' >/dev/null 2>&1 &&
20372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20373 as_expr=expr
20374else
20375 as_expr=false
20376fi
20377
John Criswell7a73b802003-06-30 21:59:07 +000020378rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020379if test -d conf$$.dir; then
20380 rm -f conf$$.dir/conf$$.file
20381else
20382 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020383 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385echo >conf$$.file
20386if ln -s conf$$.file conf$$ 2>/dev/null; then
20387 as_ln_s='ln -s'
20388 # ... but there are two gotchas:
20389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20391 # In both cases, we have to default to `cp -p'.
20392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020393 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394elif ln conf$$.file conf$$ 2>/dev/null; then
20395 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020396else
20397 as_ln_s='cp -p'
20398fi
Reid Spencera773bd52006-08-04 18:18:08 +000020399rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20400rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020401
John Criswell0c38eaf2003-09-10 15:17:25 +000020402if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020404else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020405 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020406 as_mkdir_p=false
20407fi
20408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020409# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20410# systems may use methods other than mode bits to determine executability.
20411cat >conf$$.file <<_ASEOF
20412#! /bin/sh
20413exit 0
20414_ASEOF
20415chmod +x conf$$.file
20416if test -x conf$$.file >/dev/null 2>&1; then
20417 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020419 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020422
20423# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020424as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020425
20426# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020427as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020428
20429
John Criswell7a73b802003-06-30 21:59:07 +000020430exec 6>&1
20431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020432# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020433# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020434# values after options handling.
20435ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000020436This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020437generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020438
20439 CONFIG_FILES = $CONFIG_FILES
20440 CONFIG_HEADERS = $CONFIG_HEADERS
20441 CONFIG_LINKS = $CONFIG_LINKS
20442 CONFIG_COMMANDS = $CONFIG_COMMANDS
20443 $ $0 $@
20444
Reid Spencera773bd52006-08-04 18:18:08 +000020445on `(hostname || uname -n) 2>/dev/null | sed 1q`
20446"
20447
John Criswell7a73b802003-06-30 21:59:07 +000020448_ACEOF
20449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020451# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020452config_files="$ac_config_files"
20453config_headers="$ac_config_headers"
20454config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020455
Reid Spencera773bd52006-08-04 18:18:08 +000020456_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020458cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020459ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460\`$as_me' instantiates files from templates according to the
20461current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020464
20465 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466 -V, --version print version number, then exit
20467 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020468 -d, --debug don't remove temporary files
20469 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020470 --file=FILE[:TEMPLATE]
20471 instantiate the configuration file FILE
20472 --header=FILE[:TEMPLATE]
20473 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020474
20475Configuration files:
20476$config_files
20477
20478Configuration headers:
20479$config_headers
20480
John Criswellc764fbc2003-09-06 15:17:13 +000020481Configuration commands:
20482$config_commands
20483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020485
Reid Spencera773bd52006-08-04 18:18:08 +000020486_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020487cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020488ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000020489llvm config.status 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020490configured by $0, generated by GNU Autoconf 2.60,
20491 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020493Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020494This config.status script is free software; the Free Software Foundation
20495gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020496
20497ac_pwd='$ac_pwd'
20498srcdir='$srcdir'
20499INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020500_ACEOF
20501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502cat >>$CONFIG_STATUS <<\_ACEOF
20503# If no file are specified by the user, then we need to provide default
20504# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020505ac_need_defaults=:
20506while test $# != 0
20507do
20508 case $1 in
20509 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020512 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020514 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020515 ac_option=$1
20516 ac_optarg=$2
20517 ac_shift=shift
20518 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020519 esac
20520
John Criswell0c38eaf2003-09-10 15:17:25 +000020521 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020522 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20524 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020527 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020528 debug=: ;;
20529 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020530 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020532 ac_need_defaults=false;;
20533 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020534 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020536 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020537 --he | --h)
20538 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020539 { echo "$as_me: error: ambiguous option: $1
20540Try \`$0 --help' for more information." >&2
20541 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020542 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020543 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20546 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020547
20548 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020549 -*) { echo "$as_me: error: unrecognized option: $1
20550Try \`$0 --help' for more information." >&2
20551 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020554 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020555
20556 esac
20557 shift
20558done
20559
John Criswell0c38eaf2003-09-10 15:17:25 +000020560ac_configure_extra_args=
20561
20562if $ac_cs_silent; then
20563 exec 6>/dev/null
20564 ac_configure_extra_args="$ac_configure_extra_args --silent"
20565fi
20566
20567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020569if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20571 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020572 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020574fi
20575
John Criswell7a73b802003-06-30 21:59:07 +000020576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020578exec 5>>config.log
20579{
20580 echo
20581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20582## Running $as_me. ##
20583_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020585} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020586
Reid Spencera773bd52006-08-04 18:18:08 +000020587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020589#
Reid Spencera773bd52006-08-04 18:18:08 +000020590# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020591#
Reid Spencerc0682832005-02-24 19:05:19 +000020592llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020593
20594_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020597
20598# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020599for ac_config_target in $ac_config_targets
20600do
Reid Spencera773bd52006-08-04 18:18:08 +000020601 case $ac_config_target in
20602 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020603 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20604 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020605 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020606 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020607 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020608 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020609 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020610 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020611 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020612 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20613 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20614 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20615 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20616 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20617 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020618 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020619 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20620 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020621 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020622 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20623 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20624 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020625 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20626 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20629echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20630 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020631 esac
20632done
20633
Reid Spencera773bd52006-08-04 18:18:08 +000020634
John Criswell7a73b802003-06-30 21:59:07 +000020635# If the user did not use the arguments to specify the items to instantiate,
20636# then the envvar interface is used. Set only those that are not.
20637# We use the long form for the default assignment because of an extremely
20638# bizarre bug on SunOS 4.1.3.
20639if $ac_need_defaults; then
20640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020643fi
20644
John Criswell0c38eaf2003-09-10 15:17:25 +000020645# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020646# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020647# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020648# Hook for its removal unless debugging.
20649# Note that there is a small window in which the directory will not be cleaned:
20650# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020651$debug ||
20652{
Reid Spencera773bd52006-08-04 18:18:08 +000020653 tmp=
20654 trap 'exit_status=$?
20655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20656' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020658}
John Criswell7a73b802003-06-30 21:59:07 +000020659# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020660
John Criswell7a73b802003-06-30 21:59:07 +000020661{
Reid Spencera773bd52006-08-04 18:18:08 +000020662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020663 test -n "$tmp" && test -d "$tmp"
20664} ||
20665{
Reid Spencera773bd52006-08-04 18:18:08 +000020666 tmp=./conf$$-$RANDOM
20667 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668} ||
20669{
20670 echo "$me: cannot create a temporary directory in ." >&2
20671 { (exit 1); exit 1; }
20672}
John Criswell7a73b802003-06-30 21:59:07 +000020673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674#
20675# Set up the sed scripts for CONFIG_FILES section.
20676#
20677
20678# No need to generate the scripts if there are no CONFIG_FILES.
20679# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020680if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020681
20682_ACEOF
20683
Reid Spencera773bd52006-08-04 18:18:08 +000020684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685
Reid Spencera773bd52006-08-04 18:18:08 +000020686ac_delim='%!_!# '
20687for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020688 cat >conf$$subs.sed <<_ACEOF
20689SHELL!$SHELL$ac_delim
20690PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20691PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20692PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20693PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20694PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20695PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20696exec_prefix!$exec_prefix$ac_delim
20697prefix!$prefix$ac_delim
20698program_transform_name!$program_transform_name$ac_delim
20699bindir!$bindir$ac_delim
20700sbindir!$sbindir$ac_delim
20701libexecdir!$libexecdir$ac_delim
20702datarootdir!$datarootdir$ac_delim
20703datadir!$datadir$ac_delim
20704sysconfdir!$sysconfdir$ac_delim
20705sharedstatedir!$sharedstatedir$ac_delim
20706localstatedir!$localstatedir$ac_delim
20707includedir!$includedir$ac_delim
20708oldincludedir!$oldincludedir$ac_delim
20709docdir!$docdir$ac_delim
20710infodir!$infodir$ac_delim
20711htmldir!$htmldir$ac_delim
20712dvidir!$dvidir$ac_delim
20713pdfdir!$pdfdir$ac_delim
20714psdir!$psdir$ac_delim
20715libdir!$libdir$ac_delim
20716localedir!$localedir$ac_delim
20717mandir!$mandir$ac_delim
20718DEFS!$DEFS$ac_delim
20719ECHO_C!$ECHO_C$ac_delim
20720ECHO_N!$ECHO_N$ac_delim
20721ECHO_T!$ECHO_T$ac_delim
20722LIBS!$LIBS$ac_delim
20723build_alias!$build_alias$ac_delim
20724host_alias!$host_alias$ac_delim
20725target_alias!$target_alias$ac_delim
20726LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20727subdirs!$subdirs$ac_delim
20728build!$build$ac_delim
20729build_cpu!$build_cpu$ac_delim
20730build_vendor!$build_vendor$ac_delim
20731build_os!$build_os$ac_delim
20732host!$host$ac_delim
20733host_cpu!$host_cpu$ac_delim
20734host_vendor!$host_vendor$ac_delim
20735host_os!$host_os$ac_delim
20736target!$target$ac_delim
20737target_cpu!$target_cpu$ac_delim
20738target_vendor!$target_vendor$ac_delim
20739target_os!$target_os$ac_delim
20740OS!$OS$ac_delim
20741HOST_OS!$HOST_OS$ac_delim
20742TARGET_OS!$TARGET_OS$ac_delim
20743LINKALL!$LINKALL$ac_delim
20744NOLINKALL!$NOLINKALL$ac_delim
20745LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20746LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20747ARCH!$ARCH$ac_delim
20748ENDIAN!$ENDIAN$ac_delim
20749CC!$CC$ac_delim
20750CFLAGS!$CFLAGS$ac_delim
20751LDFLAGS!$LDFLAGS$ac_delim
20752CPPFLAGS!$CPPFLAGS$ac_delim
20753ac_ct_CC!$ac_ct_CC$ac_delim
20754EXEEXT!$EXEEXT$ac_delim
20755OBJEXT!$OBJEXT$ac_delim
20756CPP!$CPP$ac_delim
20757GREP!$GREP$ac_delim
20758EGREP!$EGREP$ac_delim
20759LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20760BUILD_CC!$BUILD_CC$ac_delim
20761BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20762BUILD_CXX!$BUILD_CXX$ac_delim
20763CVSBUILD!$CVSBUILD$ac_delim
20764ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20765ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20766DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20767ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20768EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20769DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20770DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20771JIT!$JIT$ac_delim
20772TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20773ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20774ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20775ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +000020776ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20778LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20779LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20780LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20781LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20782ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020783CLANGPATH!$CLANGPATH$ac_delim
20784CLANGXXPATH!$CLANGXXPATH$ac_delim
20785ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020789 break
20790 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20792echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20793 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020794 else
20795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020796 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020797done
20798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20800if test -n "$ac_eof"; then
20801 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20802 ac_eof=`expr $ac_eof + 1`
20803fi
20804
20805cat >>$CONFIG_STATUS <<_ACEOF
20806cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20807/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020808_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020809sed '
20810s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20811s/^/s,@/; s/!/@,|#_!!_#|/
20812:n
20813t n
20814s/'"$ac_delim"'$/,g/; t
20815s/$/\\/; p
20816N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20817' >>$CONFIG_STATUS <conf$$subs.sed
20818rm -f conf$$subs.sed
20819cat >>$CONFIG_STATUS <<_ACEOF
20820CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020821_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020822
20823
20824ac_delim='%!_!# '
20825for ac_last_try in false false false false false :; do
20826 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +000020827OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020828EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20829BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20830ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20832CXX!$CXX$ac_delim
20833CXXFLAGS!$CXXFLAGS$ac_delim
20834ac_ct_CXX!$ac_ct_CXX$ac_delim
20835NM!$NM$ac_delim
20836ifGNUmake!$ifGNUmake$ac_delim
20837LN_S!$LN_S$ac_delim
20838CMP!$CMP$ac_delim
20839CP!$CP$ac_delim
20840DATE!$DATE$ac_delim
20841FIND!$FIND$ac_delim
20842MKDIR!$MKDIR$ac_delim
20843MV!$MV$ac_delim
20844RANLIB!$RANLIB$ac_delim
20845AR!$AR$ac_delim
20846RM!$RM$ac_delim
20847SED!$SED$ac_delim
20848TAR!$TAR$ac_delim
20849BINPWD!$BINPWD$ac_delim
20850GRAPHVIZ!$GRAPHVIZ$ac_delim
20851DOT!$DOT$ac_delim
20852FDP!$FDP$ac_delim
20853NEATO!$NEATO$ac_delim
20854TWOPI!$TWOPI$ac_delim
20855CIRCO!$CIRCO$ac_delim
20856GV!$GV$ac_delim
20857DOTTY!$DOTTY$ac_delim
20858PERL!$PERL$ac_delim
20859HAVE_PERL!$HAVE_PERL$ac_delim
20860INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20861INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20862INSTALL_DATA!$INSTALL_DATA$ac_delim
20863BZIP2!$BZIP2$ac_delim
20864DOXYGEN!$DOXYGEN$ac_delim
20865GROFF!$GROFF$ac_delim
20866GZIP!$GZIP$ac_delim
20867POD2HTML!$POD2HTML$ac_delim
20868POD2MAN!$POD2MAN$ac_delim
20869RUNTEST!$RUNTEST$ac_delim
20870TCLSH!$TCLSH$ac_delim
20871ZIP!$ZIP$ac_delim
20872OCAMLC!$OCAMLC$ac_delim
20873OCAMLOPT!$OCAMLOPT$ac_delim
20874OCAMLDEP!$OCAMLDEP$ac_delim
20875OCAMLDOC!$OCAMLDOC$ac_delim
20876GAS!$GAS$ac_delim
20877INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20878INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20879CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20880CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20881LIBADD_DL!$LIBADD_DL$ac_delim
20882LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20883LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20884LLVMGCC!$LLVMGCC$ac_delim
20885LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020886LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20888NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20889USE_UDIS86!$USE_UDIS86$ac_delim
20890USE_OPROFILE!$USE_OPROFILE$ac_delim
20891HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20892HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20893MMAP_FILE!$MMAP_FILE$ac_delim
20894LLVMCC1!$LLVMCC1$ac_delim
20895LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20896LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020897LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20898SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +000020899SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020900LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20901LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20902LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20903LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20904LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20905LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20906LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20907LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20908LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20909LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20910BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20911ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20912OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20913ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20914RPATH!$RPATH$ac_delim
20915RDYNAMIC!$RDYNAMIC$ac_delim
20916LIBOBJS!$LIBOBJS$ac_delim
20917LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000020918_ACEOF
20919
Jeffrey Yasskinea6c39d2010-02-23 18:10:07 +000020920 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020921 break
20922 elif $ac_last_try; then
20923 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20924echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20925 { (exit 1); exit 1; }; }
20926 else
20927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20928 fi
20929done
20930
20931ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20932if test -n "$ac_eof"; then
20933 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20934 ac_eof=`expr $ac_eof + 1`
20935fi
20936
20937cat >>$CONFIG_STATUS <<_ACEOF
20938cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20940_ACEOF
20941sed '
20942s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20943s/^/s,@/; s/!/@,|#_!!_#|/
20944:n
20945t n
20946s/'"$ac_delim"'$/,g/; t
20947s/$/\\/; p
20948N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20949' >>$CONFIG_STATUS <conf$$subs.sed
20950rm -f conf$$subs.sed
20951cat >>$CONFIG_STATUS <<_ACEOF
20952:end
20953s/|#_!!_#|//g
20954CEOF$ac_eof
20955_ACEOF
20956
20957
Reid Spencera773bd52006-08-04 18:18:08 +000020958# VPATH may cause trouble with some makes, so we remove $(srcdir),
20959# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20960# trailing colons and then remove the whole line if VPATH becomes empty
20961# (actually we leave an empty line to preserve line numbers).
20962if test "x$srcdir" = x.; then
20963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20964s/:*\$(srcdir):*/:/
20965s/:*\${srcdir}:*/:/
20966s/:*@srcdir@:*/:/
20967s/^\([^=]*=[ ]*\):*/\1/
20968s/:*$//
20969s/^[^=]*=[ ]*$//
20970}'
20971fi
20972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020974fi # test -n "$CONFIG_FILES"
20975
Reid Spencera773bd52006-08-04 18:18:08 +000020976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020977for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000020978do
20979 case $ac_tag in
20980 :[FHLC]) ac_mode=$ac_tag; continue;;
20981 esac
20982 case $ac_mode$ac_tag in
20983 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20985echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20986 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020987 :[FH]-) ac_tag=-:-;;
20988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20989 esac
20990 ac_save_IFS=$IFS
20991 IFS=:
20992 set x $ac_tag
20993 IFS=$ac_save_IFS
20994 shift
20995 ac_file=$1
20996 shift
20997
20998 case $ac_mode in
20999 :L) ac_source=$1;;
21000 :[FH])
21001 ac_file_inputs=
21002 for ac_f
21003 do
21004 case $ac_f in
21005 -) ac_f="$tmp/stdin";;
21006 *) # Look for the file first in the build tree, then in the source tree
21007 # (if the path is not absolute). The absolute path cannot be DOS-style,
21008 # because $ac_f cannot contain `:'.
21009 test -f "$ac_f" ||
21010 case $ac_f in
21011 [\\/$]*) false;;
21012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21013 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21015echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21016 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021017 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021018 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021019 done
21020
21021 # Let's still pretend it is `configure' which instantiates (i.e., don't
21022 # use $as_me), people would be surprised to read:
21023 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021024 configure_input="Generated from "`IFS=:
21025 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021026 if test x"$ac_file" != x-; then
21027 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028 { echo "$as_me:$LINENO: creating $ac_file" >&5
21029echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021030 fi
21031
21032 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021034 esac
21035 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021036 esac
21037
Reid Spencera773bd52006-08-04 18:18:08 +000021038 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021040 X"$ac_file" : 'X\(//\)[^/]' \| \
21041 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021043echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21045 s//\1/
21046 q
21047 }
21048 /^X\(\/\/\)[^/].*/{
21049 s//\1/
21050 q
21051 }
21052 /^X\(\/\/\)$/{
21053 s//\1/
21054 q
21055 }
21056 /^X\(\/\).*/{
21057 s//\1/
21058 q
21059 }
21060 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061 { as_dir="$ac_dir"
21062 case $as_dir in #(
21063 -*) as_dir=./$as_dir;;
21064 esac
21065 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21066 as_dirs=
21067 while :; do
21068 case $as_dir in #(
21069 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21070 *) as_qdir=$as_dir;;
21071 esac
21072 as_dirs="'$as_qdir' $as_dirs"
21073 as_dir=`$as_dirname -- "$as_dir" ||
21074$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21075 X"$as_dir" : 'X\(//\)[^/]' \| \
21076 X"$as_dir" : 'X\(//\)$' \| \
21077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21078echo X"$as_dir" |
21079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21080 s//\1/
21081 q
21082 }
21083 /^X\(\/\/\)[^/].*/{
21084 s//\1/
21085 q
21086 }
21087 /^X\(\/\/\)$/{
21088 s//\1/
21089 q
21090 }
21091 /^X\(\/\).*/{
21092 s//\1/
21093 q
21094 }
21095 s/.*/./; q'`
21096 test -d "$as_dir" && break
21097 done
21098 test -z "$as_dirs" || eval "mkdir $as_dirs"
21099 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21100echo "$as_me: error: cannot create directory $as_dir" >&2;}
21101 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021102 ac_builddir=.
21103
Reid Spencera773bd52006-08-04 18:18:08 +000021104case "$ac_dir" in
21105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21106*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021108 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021109 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021110 case $ac_top_builddir_sub in
21111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21113 esac ;;
21114esac
21115ac_abs_top_builddir=$ac_pwd
21116ac_abs_builddir=$ac_pwd$ac_dir_suffix
21117# for backward compatibility:
21118ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021119
21120case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021121 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021122 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021123 ac_top_srcdir=$ac_top_builddir_sub
21124 ac_abs_top_srcdir=$ac_pwd ;;
21125 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021126 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021127 ac_top_srcdir=$srcdir
21128 ac_abs_top_srcdir=$srcdir ;;
21129 *) # Relative name.
21130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21131 ac_top_srcdir=$ac_top_build_prefix$srcdir
21132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021133esac
Reid Spencera773bd52006-08-04 18:18:08 +000021134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021135
John Criswell7a73b802003-06-30 21:59:07 +000021136
Reid Spencera773bd52006-08-04 18:18:08 +000021137 case $ac_mode in
21138 :F)
21139 #
21140 # CONFIG_FILE
21141 #
John Criswell7a73b802003-06-30 21:59:07 +000021142
21143 case $INSTALL in
21144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021146 esac
John Criswell7a73b802003-06-30 21:59:07 +000021147_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021150# If the template does not know about datarootdir, expand it.
21151# FIXME: This hack should be removed a few years after 2.60.
21152ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021153
21154case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021155 p
21156 q
21157}
21158/@datadir@/p
21159/@docdir@/p
21160/@infodir@/p
21161/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021162/@mandir@/p
21163' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021164*datarootdir*) ac_datarootdir_seen=yes;;
21165*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021166 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21167echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021169cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021170 ac_datarootdir_hack='
21171 s&@datadir@&$datadir&g
21172 s&@docdir@&$docdir&g
21173 s&@infodir@&$infodir&g
21174 s&@localedir@&$localedir&g
21175 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021176 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021177esac
21178_ACEOF
21179
21180# Neutralize VPATH when `$srcdir' = `.'.
21181# Shell code in configure.ac might set extrasub.
21182# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021183cat >>$CONFIG_STATUS <<_ACEOF
21184 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021185$extrasub
21186_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021188:t
21189/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021190s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021191s&@top_builddir@&$ac_top_builddir_sub&;t t
21192s&@srcdir@&$ac_srcdir&;t t
21193s&@abs_srcdir@&$ac_abs_srcdir&;t t
21194s&@top_srcdir@&$ac_top_srcdir&;t t
21195s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21196s&@builddir@&$ac_builddir&;t t
21197s&@abs_builddir@&$ac_abs_builddir&;t t
21198s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21199s&@INSTALL@&$ac_INSTALL&;t t
21200$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021201" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021202
Reid Spencera773bd52006-08-04 18:18:08 +000021203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21204 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021206 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021207which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021209which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021210
Reid Spencera773bd52006-08-04 18:18:08 +000021211 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021212 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 -) cat "$tmp/out"; rm -f "$tmp/out";;
21214 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21215 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021216 ;;
21217 :H)
21218 #
21219 # CONFIG_HEADER
21220 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021221_ACEOF
21222
21223# Transform confdefs.h into a sed script `conftest.defines', that
21224# substitutes the proper values into config.h.in to produce config.h.
21225rm -f conftest.defines conftest.tail
21226# First, append a space to every undef/define line, to ease matching.
21227echo 's/$/ /' >conftest.defines
21228# Then, protect against being on the right side of a sed subst, or in
21229# an unquoted here document, in config.status. If some macros were
21230# called several times there might be several #defines for the same
21231# symbol, which is useless. But do not sort them, since the last
21232# AC_DEFINE must be honored.
21233ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21234# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21235# NAME is the cpp macro being defined, VALUE is the value it is being given.
21236# PARAMS is the parameter list in the macro definition--in most cases, it's
21237# just an empty string.
21238ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21239ac_dB='\\)[ (].*,\\1define\\2'
21240ac_dC=' '
21241ac_dD=' ,'
21242
21243uniq confdefs.h |
21244 sed -n '
21245 t rset
21246 :rset
21247 s/^[ ]*#[ ]*define[ ][ ]*//
21248 t ok
21249 d
21250 :ok
21251 s/[\\&,]/\\&/g
21252 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21253 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21254 ' >>conftest.defines
21255
21256# Remove the space that was appended to ease matching.
21257# Then replace #undef with comments. This is necessary, for
21258# example, in the case of _POSIX_SOURCE, which is predefined and required
21259# on some systems where configure will not decide to define it.
21260# (The regexp can be short, since the line contains either #define or #undef.)
21261echo 's/ $//
21262s,^[ #]*u.*,/* & */,' >>conftest.defines
21263
21264# Break up conftest.defines:
21265ac_max_sed_lines=50
21266
21267# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21268# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21269# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21270# et cetera.
21271ac_in='$ac_file_inputs'
21272ac_out='"$tmp/out1"'
21273ac_nxt='"$tmp/out2"'
21274
21275while :
21276do
21277 # Write a here document:
21278 cat >>$CONFIG_STATUS <<_ACEOF
21279 # First, check the format of the line:
21280 cat >"\$tmp/defines.sed" <<\\CEOF
21281/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21282/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21283b
21284:def
21285_ACEOF
21286 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21287 echo 'CEOF
21288 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21289 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21290 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21291 grep . conftest.tail >/dev/null || break
21292 rm -f conftest.defines
21293 mv conftest.tail conftest.defines
21294done
21295rm -f conftest.defines conftest.tail
21296
21297echo "ac_result=$ac_in" >>$CONFIG_STATUS
21298cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021299 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300 echo "/* $configure_input */" >"$tmp/config.h"
21301 cat "$ac_result" >>"$tmp/config.h"
21302 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21303 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21304echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021305 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306 rm -f $ac_file
21307 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021308 fi
21309 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310 echo "/* $configure_input */"
21311 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021312 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021313 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021314 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021316 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21317echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021318 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021319 esac
John Criswell7a73b802003-06-30 21:59:07 +000021320
Reid Spencera773bd52006-08-04 18:18:08 +000021321
21322 case $ac_file$ac_mode in
21323 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021324 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021325 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021326 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021327 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021328 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021329 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021330 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021331 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021332 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021333 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021334 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021335 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021336 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021337 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021338 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021339 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021340 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021341 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021342 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021343 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021344 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021345 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021346 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021347 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021348 ${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 +000021349
21350 esac
21351done # for ac_tag
21352
John Criswell7a73b802003-06-30 21:59:07 +000021353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021357ac_clean_files=$ac_clean_files_save
21358
21359
21360# configure is writing to config.log, and then calls config.status.
21361# config.status does its own redirection, appending to config.log.
21362# Unfortunately, on DOS this fails, as config.log is still kept open
21363# by configure, so config.status won't be able to write to it; its
21364# output is simply discarded. So we exec the FD to /dev/null,
21365# effectively closing config.log, so it can be properly (re)opened and
21366# appended to by config.status. When coming back to configure, we
21367# need to make the FD available again.
21368if test "$no_create" != yes; then
21369 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021370 ac_config_status_args=
21371 test "$silent" = yes &&
21372 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021373 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021375 exec 5>>config.log
21376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21377 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021379fi
21380
John Criswell12399a12003-09-30 15:55:44 +000021381#
21382# CONFIG_SUBDIRS section.
21383#
21384if test "$no_recursion" != yes; then
21385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021387 ac_sub_configure_args=
21388 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021389 eval "set x $ac_configure_args"
21390 shift
21391 for ac_arg
21392 do
John Criswell12399a12003-09-30 15:55:44 +000021393 if test -n "$ac_prev"; then
21394 ac_prev=
21395 continue
21396 fi
21397 case $ac_arg in
21398 -cache-file | --cache-file | --cache-fil | --cache-fi \
21399 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21400 ac_prev=cache_file ;;
21401 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21402 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21403 | --c=*)
21404 ;;
21405 --config-cache | -C)
21406 ;;
21407 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21408 ac_prev=srcdir ;;
21409 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21410 ;;
21411 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21412 ac_prev=prefix ;;
21413 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021415 *)
21416 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021417 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021418 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021420 esac
21421 done
21422
21423 # Always prepend --prefix to ensure using the same prefix
21424 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021425 ac_arg="--prefix=$prefix"
21426 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021427 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021428 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021430
21431 ac_popdir=`pwd`
21432 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21433
21434 # Do not complain, so a configure script can configure whichever
21435 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021436 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021437
Reid Spencera773bd52006-08-04 18:18:08 +000021438 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439 echo "$as_me:$LINENO: $ac_msg" >&5
21440 echo "$ac_msg" >&6
21441 { as_dir="$ac_dir"
21442 case $as_dir in #(
21443 -*) as_dir=./$as_dir;;
21444 esac
21445 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21446 as_dirs=
21447 while :; do
21448 case $as_dir in #(
21449 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21450 *) as_qdir=$as_dir;;
21451 esac
21452 as_dirs="'$as_qdir' $as_dirs"
21453 as_dir=`$as_dirname -- "$as_dir" ||
21454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21455 X"$as_dir" : 'X\(//\)[^/]' \| \
21456 X"$as_dir" : 'X\(//\)$' \| \
21457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21458echo X"$as_dir" |
21459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21460 s//\1/
21461 q
21462 }
21463 /^X\(\/\/\)[^/].*/{
21464 s//\1/
21465 q
21466 }
21467 /^X\(\/\/\)$/{
21468 s//\1/
21469 q
21470 }
21471 /^X\(\/\).*/{
21472 s//\1/
21473 q
21474 }
21475 s/.*/./; q'`
21476 test -d "$as_dir" && break
21477 done
21478 test -z "$as_dirs" || eval "mkdir $as_dirs"
21479 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21480echo "$as_me: error: cannot create directory $as_dir" >&2;}
21481 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021482 ac_builddir=.
21483
Reid Spencera773bd52006-08-04 18:18:08 +000021484case "$ac_dir" in
21485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21486*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021490 case $ac_top_builddir_sub in
21491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21493 esac ;;
21494esac
21495ac_abs_top_builddir=$ac_pwd
21496ac_abs_builddir=$ac_pwd$ac_dir_suffix
21497# for backward compatibility:
21498ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021499
21500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021501 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021503 ac_top_srcdir=$ac_top_builddir_sub
21504 ac_abs_top_srcdir=$ac_pwd ;;
21505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021507 ac_top_srcdir=$srcdir
21508 ac_abs_top_srcdir=$srcdir ;;
21509 *) # Relative name.
21510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21511 ac_top_srcdir=$ac_top_build_prefix$srcdir
21512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021513esac
Reid Spencera773bd52006-08-04 18:18:08 +000021514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021515
21516
Reid Spencera773bd52006-08-04 18:18:08 +000021517 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021518
21519 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021520 if test -f "$ac_srcdir/configure.gnu"; then
21521 ac_sub_configure=$ac_srcdir/configure.gnu
21522 elif test -f "$ac_srcdir/configure"; then
21523 ac_sub_configure=$ac_srcdir/configure
21524 elif test -f "$ac_srcdir/configure.in"; then
21525 # This should be Cygnus configure.
21526 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021528 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21529echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021530 ac_sub_configure=
21531 fi
21532
21533 # The recursion is here.
21534 if test -n "$ac_sub_configure"; then
21535 # Make the cache file name correct relative to the subdirectory.
21536 case $cache_file in
21537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021538 *) # Relative name.
21539 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021540 esac
21541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21543echo "$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 +000021544 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021545 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21546 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21548echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21549 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021550 fi
21551
Reid Spencera773bd52006-08-04 18:18:08 +000021552 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021553 done
21554fi
21555