blob: 719c1b7505f6ead64b1898fc45e58004cb08ecbe [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 Yasskinf6afae22010-02-18 02:36:02 +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
699OPTIMIZE_OPTION
700EXTRA_OPTIONS
701BINUTILS_INCDIR
702ENABLE_LLVMC_DYNAMIC
703ENABLE_LLVMC_DYNAMIC_PLUGINS
704CXX
705CXXFLAGS
706ac_ct_CXX
707NM
708ifGNUmake
709LN_S
710CMP
711CP
712DATE
713FIND
714MKDIR
715MV
716RANLIB
717AR
718RM
719SED
720TAR
721BINPWD
722GRAPHVIZ
723DOT
724FDP
725NEATO
726TWOPI
727CIRCO
728GV
729DOTTY
730PERL
731HAVE_PERL
732INSTALL_PROGRAM
733INSTALL_SCRIPT
734INSTALL_DATA
735BZIP2
736DOXYGEN
737GROFF
738GZIP
739POD2HTML
740POD2MAN
741RUNTEST
742TCLSH
743ZIP
744OCAMLC
745OCAMLOPT
746OCAMLDEP
747OCAMLDOC
748GAS
749INSTALL_LTDL_TRUE
750INSTALL_LTDL_FALSE
751CONVENIENCE_LTDL_TRUE
752CONVENIENCE_LTDL_FALSE
753LIBADD_DL
754LLVMGCCCOMMAND
755LLVMGXXCOMMAND
756LLVMGCC
757LLVMGXX
758NO_VARIADIC_MACROS
759NO_MISSING_FIELD_INITIALIZERS
760USE_UDIS86
761USE_OPROFILE
762HAVE_PTHREAD
763HUGE_VAL_SANITY
764MMAP_FILE
765LLVMCC1
766LLVMCC1PLUS
767LLVMGCCDIR
768LLVMGCCLIBEXEC
769LLVMGCC_VERSION
770LLVMGCC_MAJVERS
771LLVMGCC_LANGS
772SHLIBEXT
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
800CPP
801CXX
802CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000803CCC'
Reid Spencera773bd52006-08-04 18:18:08 +0000804ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000805projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000806projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000807projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000808projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000809projects/llvm-reopt
810projects/llvm-gcc
811projects/llvm-java
812projects/llvm-tv
813projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000814projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000842# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000851includedir='${prefix}/include'
852oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000862
863ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000864ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000865for ac_option
866do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000869 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000870 ac_prev=
871 continue
872 fi
873
Reid Spencera773bd52006-08-04 18:18:08 +0000874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
John Criswell7a73b802003-06-30 21:59:07 +0000878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
Reid Spencera773bd52006-08-04 18:18:08 +0000881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
Reid Spencera773bd52006-08-04 18:18:08 +0000905 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000906 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000908 datadir=$ac_optarg ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
John Criswell7a73b802003-06-30 21:59:07 +0000917 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000919 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000935
936 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000938 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
Reid Spencera773bd52006-08-04 18:18:08 +0000970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
John Criswell7a73b802003-06-30 21:59:07 +0000976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
Reid Spencera773bd52006-08-04 18:18:08 +00001000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
John Criswell7a73b802003-06-30 21:59:07 +00001005 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001006 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
Reid Spencera773bd52006-08-04 18:18:08 +00001074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
John Criswell7a73b802003-06-30 21:59:07 +00001084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001135 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001141
1142 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001144 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001180 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001198fi
1199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001205do
Reid Spencera773bd52006-08-04 18:18:08 +00001206 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001207 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001210 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
Reid Spencera773bd52006-08-04 18:18:08 +00001239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247
1248
John Criswell7a73b802003-06-30 21:59:07 +00001249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001252 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001253 ac_confdir=`$as_dirname -- "$0" ||
1254$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001276 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001277 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
Reid Spencera773bd52006-08-04 18:18:08 +00001283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001292 pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
John Criswell7a73b802003-06-30 21:59:07 +00001309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001317\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
John Criswell7a73b802003-06-30 21:59:07 +00001337Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001339 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001370_ACEOF
1371
1372 cat <<\_ACEOF
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001383 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001390 --enable-optimized Compile with optimizations enabled (default is NO)
1391 --enable-profiling Compile with profiling enabled (default is NO)
1392 --enable-assertions Compile with assertion checks enabled (default is
1393 YES)
David Greenea696d242007-06-28 19:36:08 +00001394 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 Compile with expensive debug checks enabled (default
1396 is NO)
1397 --enable-debug-runtime Build runtime libs with debug symbols (default is
1398 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001399 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1400 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001401 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001402 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001403 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001404 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001405 is YES)
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +00001406 --enable-shared Link LLVM tools shared (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001407 --enable-targets Build specific host targets: all or
1408 target1,target2,... Valid targets are: host, x86,
1409 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1410 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1411 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001412 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1413 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001414 --enable-bindings Build specific language bindings:
1415 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001416 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001417 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1418 Win32)
1419 --enable-llvmc-dynamic-plugins
1420 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001421 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001422
1423Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001426 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1427 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001428 --with-llvmgcc Specify location of llvm-gcc driver (default
1429 searches PATH)
1430 --with-llvmgxx Specify location of llvm-g++ driver (default
1431 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001432 --with-optimize-option Select the compiler options to use for optimized
1433 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001434 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001437 --with-c-include-dirs Colon separated list of directories clang will
1438 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001439 --with-cxx-include-root Directory with the libstdc++ headers.
1440 --with-cxx-include-arch Architecture of the libstdc++ headers.
1441 --with-cxx-include-32bit-dir
1442 32 bit multilib dir.
1443 --with-cxx-include-64bit-dir
1444 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001447 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001448 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001449 --with-oprofile=<prefix>
1450 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001451
1452Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001453 CC C compiler command
1454 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001457 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001458 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001459 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Use these variables to override the choices made by `configure' or to help
1464it to find libraries and programs with nonstandard names/locations.
1465
1466Report bugs to <llvmbugs@cs.uiuc.edu>.
1467_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001468ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001469fi
1470
1471if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001474 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001475 ac_builddir=.
1476
Reid Spencera773bd52006-08-04 18:18:08 +00001477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001481 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001482 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001492
1493case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001494 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001495 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001506esac
Reid Spencera773bd52006-08-04 18:18:08 +00001507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001508
Reid Spencera773bd52006-08-04 18:18:08 +00001509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001517 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001521 done
1522fi
1523
Reid Spencera773bd52006-08-04 18:18:08 +00001524test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001525if $ac_init_version; then
1526 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001527llvm configure 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001528generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001530Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15312002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534
Tanya Lattnerc2264592009-08-22 21:01:26 +00001535Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001537 exit
John Criswell7a73b802003-06-30 21:59:07 +00001538fi
Reid Spencera773bd52006-08-04 18:18:08 +00001539cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001540This file contains any messages produced by compilers while
1541running configure, to aid debugging if configure makes a mistake.
1542
Tanya Lattner953042b2009-08-22 04:37:30 +00001543It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001545
1546 $ $0 $@
1547
1548_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001549exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001550{
1551cat <<_ASUNAME
1552## --------- ##
1553## Platform. ##
1554## --------- ##
1555
1556hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1557uname -m = `(uname -m) 2>/dev/null || echo unknown`
1558uname -r = `(uname -r) 2>/dev/null || echo unknown`
1559uname -s = `(uname -s) 2>/dev/null || echo unknown`
1560uname -v = `(uname -v) 2>/dev/null || echo unknown`
1561
1562/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1563/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1564
1565/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1566/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1567/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001568/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001569/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1570/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1571/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1572
1573_ASUNAME
1574
1575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576for as_dir in $PATH
1577do
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001580 echo "PATH: $as_dir"
1581done
Reid Spencera773bd52006-08-04 18:18:08 +00001582IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001583
1584} >&5
1585
1586cat >&5 <<_ACEOF
1587
1588
1589## ----------- ##
1590## Core tests. ##
1591## ----------- ##
1592
1593_ACEOF
1594
1595
1596# Keep a trace of the command line.
1597# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001598# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001599# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001600# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001601ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001602ac_configure_args0=
1603ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001604ac_must_keep_next=false
1605for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001606do
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 for ac_arg
1608 do
1609 case $ac_arg in
1610 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1612 | -silent | --silent | --silen | --sile | --sil)
1613 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001614 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001615 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 esac
1617 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001618 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001620 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001622 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001624 case $ac_arg in
1625 *=* | --config-cache | -C | -disable-* | --disable-* \
1626 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1627 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1628 | -with-* | --with-* | -without-* | --without-* | --x)
1629 case "$ac_configure_args0 " in
1630 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1631 esac
1632 ;;
1633 -* ) ac_must_keep_next=true ;;
1634 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001636 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ;;
1638 esac
1639 done
John Criswell7a73b802003-06-30 21:59:07 +00001640done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001641$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1642$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 +00001643
1644# When interrupted or exit'd, cleanup temporary files, and complete
1645# config.log. We remove comments because anyway the quotes in there
1646# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001647# WARNING: Use '\'' to represent an apostrophe within the trap.
1648# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001649trap 'exit_status=$?
1650 # Save into config.log some information that might help in debugging.
1651 {
1652 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001653
John Criswell7a73b802003-06-30 21:59:07 +00001654 cat <<\_ASBOX
1655## ---------------- ##
1656## Cache variables. ##
1657## ---------------- ##
1658_ASBOX
1659 echo
1660 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001661(
1662 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1663 eval ac_val=\$$ac_var
1664 case $ac_val in #(
1665 *${as_nl}*)
1666 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1668echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001669 esac
1670 case $ac_var in #(
1671 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001673 esac ;;
1674 esac
1675 done
John Criswell7a73b802003-06-30 21:59:07 +00001676 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001677 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1678 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001679 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001680 "s/'\''/'\''\\\\'\'''\''/g;
1681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1682 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001683 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001685 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001686 esac |
1687 sort
1688)
John Criswell7a73b802003-06-30 21:59:07 +00001689 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001690
1691 cat <<\_ASBOX
1692## ----------------- ##
1693## Output variables. ##
1694## ----------------- ##
1695_ASBOX
1696 echo
1697 for ac_var in $ac_subst_vars
1698 do
Reid Spencera773bd52006-08-04 18:18:08 +00001699 eval ac_val=\$$ac_var
1700 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001703 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 done | sort
1705 echo
1706
1707 if test -n "$ac_subst_files"; then
1708 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001709## ------------------- ##
1710## File substitutions. ##
1711## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001712_ASBOX
1713 echo
1714 for ac_var in $ac_subst_files
1715 do
Reid Spencera773bd52006-08-04 18:18:08 +00001716 eval ac_val=\$$ac_var
1717 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001719 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001720 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 done | sort
1722 echo
1723 fi
1724
John Criswell7a73b802003-06-30 21:59:07 +00001725 if test -s confdefs.h; then
1726 cat <<\_ASBOX
1727## ----------- ##
1728## confdefs.h. ##
1729## ----------- ##
1730_ASBOX
1731 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001732 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001733 echo
1734 fi
1735 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001736 echo "$as_me: caught signal $ac_signal"
1737 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001738 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001739 rm -f core *.core core.conftest.* &&
1740 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001741 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001742' 0
John Criswell7a73b802003-06-30 21:59:07 +00001743for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001745done
1746ac_signal=0
1747
1748# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001749rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001750
1751# Predefined preprocessor variables.
1752
1753cat >>confdefs.h <<_ACEOF
1754#define PACKAGE_NAME "$PACKAGE_NAME"
1755_ACEOF
1756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001757
John Criswell7a73b802003-06-30 21:59:07 +00001758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1760_ACEOF
1761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762
John Criswell7a73b802003-06-30 21:59:07 +00001763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_VERSION "$PACKAGE_VERSION"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_STRING "$PACKAGE_STRING"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1775_ACEOF
1776
1777
1778# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001780if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001782elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785 set x "$ac_default_prefix/share/config.site" \
1786 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788shift
1789for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001790do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 if test -r "$ac_site_file"; then
1792 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1793echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001794 sed 's/^/| /' "$ac_site_file" >&5
1795 . "$ac_site_file"
1796 fi
1797done
1798
1799if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 # Some versions of bash will fail to source /dev/null (special
1801 # files actually), so we avoid doing that.
1802 if test -f "$cache_file"; then
1803 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1804echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001805 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001806 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1807 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001808 esac
1809 fi
1810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001811 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1812echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001813 >$cache_file
1814fi
1815
1816# Check that the precious variables saved in the cache have kept the same
1817# value.
1818ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001819for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001820 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1821 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001822 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1823 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001824 case $ac_old_set,$ac_new_set in
1825 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001826 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1827echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001828 ac_cache_corrupted=: ;;
1829 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1831echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 ac_cache_corrupted=: ;;
1833 ,);;
1834 *)
1835 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1837echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1838 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1839echo "$as_me: former value: $ac_old_val" >&2;}
1840 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1841echo "$as_me: current value: $ac_new_val" >&2;}
1842 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001843 fi;;
1844 esac
1845 # Pass precious variables to config.status.
1846 if test "$ac_new_set" = set; then
1847 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001848 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001849 *) ac_arg=$ac_var=$ac_new_val ;;
1850 esac
1851 case " $ac_configure_args " in
1852 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001854 esac
1855 fi
1856done
1857if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1859echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1860 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1861echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1862 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
Reid Spencera773bd52006-08-04 18:18:08 +00001888
John Criswell7a73b802003-06-30 21:59:07 +00001889ac_ext=c
1890ac_cpp='$CPP $CPPFLAGS'
1891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1893ac_compiler_gnu=$ac_cv_c_compiler_gnu
1894
1895
1896
Tanya Lattnerc2264592009-08-22 21:01:26 +00001897LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001898
1899
1900
1901
1902
1903
1904
John Criswell7a73b802003-06-30 21:59:07 +00001905ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001906for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001907 if test -f "$ac_dir/install-sh"; then
1908 ac_aux_dir=$ac_dir
1909 ac_install_sh="$ac_aux_dir/install-sh -c"
1910 break
1911 elif test -f "$ac_dir/install.sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install.sh -c"
1914 break
1915 elif test -f "$ac_dir/shtool"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/shtool install -c"
1918 break
1919 fi
John Criswell7a73b802003-06-30 21:59:07 +00001920done
1921if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1923echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1924 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001925fi
Reid Spencera773bd52006-08-04 18:18:08 +00001926
1927# These three variables are undocumented and unsupported,
1928# and are intended to be withdrawn in a future Autoconf release.
1929# They can cause serious problems if a builder's source tree is in a directory
1930# whose full name contains unusual characters.
1931ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1932ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1933ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1934
John Criswell7a73b802003-06-30 21:59:07 +00001935
John Criswell392aaa32003-07-22 19:18:09 +00001936
Reid Spencer2706f8c2004-09-19 23:53:36 +00001937if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001938 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001939 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1940echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1941 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001942 fi
John Criswell93e1c722003-09-15 17:04:06 +00001943fi
1944
John Criswell33a911a2003-11-25 20:36:46 +00001945for i in `ls ${srcdir}/projects`
1946do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001947 if test -d ${srcdir}/projects/${i} ; then
1948 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001949 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001950 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001951 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001952 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001953 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001954 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001955 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001956 # llvm-test is the old name of the test-suite, kept here for backwards
1957 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001958 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001959 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001960 test-suite) subdirs="$subdirs projects/test-suite"
1961 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001962 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001963;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001964 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001965 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001966 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001967 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001968 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001969 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001970 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001971 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001972 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001973 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001974 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001975 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001976 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1978echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001979 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001980 esac
John Criswell33a911a2003-11-25 20:36:46 +00001981 fi
1982done
John Criswell559a6c12003-09-30 16:31:48 +00001983
John Criswell7a73b802003-06-30 21:59:07 +00001984
1985# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001986$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1988echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1989 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991{ echo "$as_me:$LINENO: checking build system type" >&5
1992echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1993if test "${ac_cv_build+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001995else
Reid Spencera773bd52006-08-04 18:18:08 +00001996 ac_build_alias=$build_alias
1997test "x$ac_build_alias" = x &&
1998 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1999test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2002 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002003ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2005echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002007
2008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002009{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2010echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002011case $ac_cv_build in
2012*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2014echo "$as_me: error: invalid value of canonical build" >&2;}
2015 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002016esac
John Criswell7a73b802003-06-30 21:59:07 +00002017build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002018ac_save_IFS=$IFS; IFS='-'
2019set x $ac_cv_build
2020shift
2021build_cpu=$1
2022build_vendor=$2
2023shift; shift
2024# Remember, the first character of IFS is used to create $*,
2025# except with old shells:
2026build_os=$*
2027IFS=$ac_save_IFS
2028case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002029
2030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031{ echo "$as_me:$LINENO: checking host system type" >&5
2032echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2033if test "${ac_cv_host+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002035else
Reid Spencera773bd52006-08-04 18:18:08 +00002036 if test "x$host_alias" = x; then
2037 ac_cv_host=$ac_cv_build
2038else
2039 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2041echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002043fi
John Criswell7a73b802003-06-30 21:59:07 +00002044
2045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2047echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002048case $ac_cv_host in
2049*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2051echo "$as_me: error: invalid value of canonical host" >&2;}
2052 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002053esac
John Criswell7a73b802003-06-30 21:59:07 +00002054host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002055ac_save_IFS=$IFS; IFS='-'
2056set x $ac_cv_host
2057shift
2058host_cpu=$1
2059host_vendor=$2
2060shift; shift
2061# Remember, the first character of IFS is used to create $*,
2062# except with old shells:
2063host_os=$*
2064IFS=$ac_save_IFS
2065case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002066
2067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: checking target system type" >&5
2069echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2070if test "${ac_cv_target+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
Reid Spencera773bd52006-08-04 18:18:08 +00002073 if test "x$target_alias" = x; then
2074 ac_cv_target=$ac_cv_host
2075else
2076 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2078echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080fi
John Criswell7a73b802003-06-30 21:59:07 +00002081
2082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2084echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002085case $ac_cv_target in
2086*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2088echo "$as_me: error: invalid value of canonical target" >&2;}
2089 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002090esac
John Criswell7a73b802003-06-30 21:59:07 +00002091target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002092ac_save_IFS=$IFS; IFS='-'
2093set x $ac_cv_target
2094shift
2095target_cpu=$1
2096target_vendor=$2
2097shift; shift
2098# Remember, the first character of IFS is used to create $*,
2099# except with old shells:
2100target_os=$*
2101IFS=$ac_save_IFS
2102case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002103
2104
2105# The aliases save the names the user supplied, while $host etc.
2106# will get canonicalized.
2107test -n "$target_alias" &&
2108 test "$program_prefix$program_suffix$program_transform_name" = \
2109 NONENONEs,x,x, &&
2110 program_prefix=${target_alias}-
2111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002112{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2113echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2114if test "${llvm_cv_os_type+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002116else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002117 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002118 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002119 llvm_cv_link_all_option="-Wl,--whole-archive"
2120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002121 llvm_cv_os_type="AIX"
2122 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002123 *-*-irix*)
2124 llvm_cv_link_all_option="-Wl,--whole-archive"
2125 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2126 llvm_cv_os_type="IRIX"
2127 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002128 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002129 llvm_cv_link_all_option="-Wl,--whole-archive"
2130 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002131 llvm_cv_os_type="Cygwin"
2132 llvm_cv_platform_type="Unix" ;;
2133 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002134 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002135 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002136 llvm_cv_os_type="Darwin"
2137 llvm_cv_platform_type="Unix" ;;
2138 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002139 llvm_cv_link_all_option="-Wl,--whole-archive"
2140 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002141 llvm_cv_os_type="FreeBSD"
2142 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002143 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002144 llvm_cv_link_all_option="-Wl,--whole-archive"
2145 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002146 llvm_cv_os_type="OpenBSD"
2147 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002148 *-*-netbsd*)
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="NetBSD"
2152 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002153 *-*-dragonfly*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="DragonFly"
2157 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002158 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002161 llvm_cv_os_type="HP-UX"
2162 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002163 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002164 llvm_cv_link_all_option="-Wl,--whole-archive"
2165 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002166 llvm_cv_os_type="Interix"
2167 llvm_cv_platform_type="Unix" ;;
2168 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002169 llvm_cv_link_all_option="-Wl,--whole-archive"
2170 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002171 llvm_cv_os_type="Linux"
2172 llvm_cv_platform_type="Unix" ;;
2173 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002174 llvm_cv_link_all_option="-Wl,-z,allextract"
2175 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002176 llvm_cv_os_type="SunOS"
2177 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002178 *-*-auroraux*)
2179 llvm_cv_link_all_option="-Wl,-z,allextract"
2180 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2181 llvm_cv_os_type="AuroraUX"
2182 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002183 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002186 llvm_cv_os_type="Win32"
2187 llvm_cv_platform_type="Win32" ;;
2188 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002191 llvm_cv_os_type="MingW"
2192 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002193 *-*-haiku*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="Haiku"
2197 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002198 *-unknown-eabi*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Freestanding"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-unknown-elf*)
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Freestanding"
2207 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option=""
2210 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="Unknown"
2212 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002213esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002215{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2216echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002218{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2219echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2220if test "${llvm_cv_target_os_type+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002222else
2223 case $target in
2224 *-*-aix*)
2225 llvm_cv_target_os_type="AIX" ;;
2226 *-*-irix*)
2227 llvm_cv_target_os_type="IRIX" ;;
2228 *-*-cygwin*)
2229 llvm_cv_target_os_type="Cygwin" ;;
2230 *-*-darwin*)
2231 llvm_cv_target_os_type="Darwin" ;;
2232 *-*-freebsd*)
2233 llvm_cv_target_os_type="FreeBSD" ;;
2234 *-*-openbsd*)
2235 llvm_cv_target_os_type="OpenBSD" ;;
2236 *-*-netbsd*)
2237 llvm_cv_target_os_type="NetBSD" ;;
2238 *-*-dragonfly*)
2239 llvm_cv_target_os_type="DragonFly" ;;
2240 *-*-hpux*)
2241 llvm_cv_target_os_type="HP-UX" ;;
2242 *-*-interix*)
2243 llvm_cv_target_os_type="Interix" ;;
2244 *-*-linux*)
2245 llvm_cv_target_os_type="Linux" ;;
2246 *-*-solaris*)
2247 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002248 *-*-auroraux*)
2249 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002250 *-*-win32*)
2251 llvm_cv_target_os_type="Win32" ;;
2252 *-*-mingw*)
2253 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002254 *-*-haiku*)
2255 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002256 *-unknown-eabi*)
2257 llvm_cv_target_os_type="Freestanding" ;;
2258 *)
2259 llvm_cv_target_os_type="Unknown" ;;
2260esac
2261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2263echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002264
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2267echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2268 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002269fi
2270
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002272
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002273HOST_OS=$llvm_cv_os_type
2274
2275TARGET_OS=$llvm_cv_target_os_type
2276
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002277
Reid Spencera773bd52006-08-04 18:18:08 +00002278LINKALL=$llvm_cv_link_all_option
2279
2280NOLINKALL=$llvm_cv_no_link_all_option
2281
2282
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283case $llvm_cv_platform_type in
2284 Unix)
2285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002286cat >>confdefs.h <<\_ACEOF
2287#define LLVM_ON_UNIX 1
2288_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002290 LLVM_ON_UNIX=1
2291
2292 LLVM_ON_WIN32=0
2293
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 ;;
2295 Win32)
2296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297cat >>confdefs.h <<\_ACEOF
2298#define LLVM_ON_WIN32 1
2299_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002300
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002301 LLVM_ON_UNIX=0
2302
2303 LLVM_ON_WIN32=1
2304
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 ;;
2306esac
2307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308{ echo "$as_me:$LINENO: checking target architecture" >&5
2309echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2310if test "${llvm_cv_target_arch+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002312else
2313 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002314 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002315 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002316 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2317 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002318 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002319 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002320 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002321 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002322 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002323 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002324 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002325 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002326 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002327esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002329{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2330echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002331
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002332if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2334echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335fi
John Criswell76595452003-07-01 22:07:39 +00002336
Nick Lewycky83fc4472009-09-29 05:48:51 +00002337# Determine the LLVM native architecture for the target
2338case "$llvm_cv_target_arch" in
2339 x86) LLVM_NATIVE_ARCH="X86" ;;
2340 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2341 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2342esac
2343
2344ARCH=$llvm_cv_target_arch
2345
2346
2347ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348ac_cpp='$CPP $CPPFLAGS'
2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002352if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357if test "${ac_cv_prog_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359else
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 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 +00002370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372 break 2
2373 fi
2374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002375done
Reid Spencera773bd52006-08-04 18:18:08 +00002376IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377
2378fi
2379fi
2380CC=$ac_cv_prog_CC
2381if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002382 { echo "$as_me:$LINENO: result: $CC" >&5
2383echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002385 { echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387fi
2388
Reid Spencera773bd52006-08-04 18:18:08 +00002389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390fi
2391if test -z "$ac_cv_prog_CC"; then
2392 ac_ct_CC=$CC
2393 # Extract the first word of "gcc", so it can be a program name with args.
2394set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399else
2400 if test -n "$ac_ct_CC"; then
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 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 +00002410 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412 break 2
2413 fi
2414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415done
Reid Spencera773bd52006-08-04 18:18:08 +00002416IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417
2418fi
2419fi
2420ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425 { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427fi
2428
Reid Spencera773bd52006-08-04 18:18:08 +00002429 if test "x$ac_ct_CC" = x; then
2430 CC=""
2431 else
2432 case $cross_compiling:$ac_tool_warned in
2433yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435whose name does not start with the host triplet. If you think this
2436configuration is useful to you, please write to autoconf@gnu.org." >&5
2437echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438whose name does not start with the host triplet. If you think this
2439configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002440ac_tool_warned=yes ;;
2441esac
2442 CC=$ac_ct_CC
2443 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444else
2445 CC="$ac_cv_prog_CC"
2446fi
2447
2448if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002449 if test -n "$ac_tool_prefix"; then
2450 # 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 +00002451set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456else
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 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 +00002467 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469 break 2
2470 fi
2471done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472done
Reid Spencera773bd52006-08-04 18:18:08 +00002473IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474
2475fi
2476fi
2477CC=$ac_cv_prog_CC
2478if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002479 { echo "$as_me:$LINENO: result: $CC" >&5
2480echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482 { echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484fi
2485
Reid Spencera773bd52006-08-04 18:18:08 +00002486
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488fi
2489if test -z "$CC"; then
2490 # Extract the first word of "cc", so it can be a program name with args.
2491set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500 ac_prog_rejected=no
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 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 +00002508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2510 continue
2511 fi
2512 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514 break 2
2515 fi
2516done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517done
Reid Spencera773bd52006-08-04 18:18:08 +00002518IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519
2520if test $ac_prog_rejected = yes; then
2521 # We found a bogon in the path, so make sure we never use it.
2522 set dummy $ac_cv_prog_CC
2523 shift
2524 if test $# != 0; then
2525 # We chose a different compiler from the bogus one.
2526 # However, it has the same basename, so the bogon will be chosen
2527 # first if we set CC to just the basename; use the full file name.
2528 shift
2529 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530 fi
2531fi
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002536 { echo "$as_me:$LINENO: result: $CC" >&5
2537echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002539 { echo "$as_me:$LINENO: result: no" >&5
2540echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541fi
2542
Reid Spencera773bd52006-08-04 18:18:08 +00002543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544fi
2545if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002547 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002548 do
2549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002555else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 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 +00002566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002568 break 2
2569 fi
2570done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002571done
Reid Spencera773bd52006-08-04 18:18:08 +00002572IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002573
2574fi
2575fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576CC=$ac_cv_prog_CC
2577if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: $CC" >&5
2579echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002581 { echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002583fi
2584
Reid Spencera773bd52006-08-04 18:18:08 +00002585
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002587 done
2588fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589if test -z "$CC"; then
2590 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002591 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002592do
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002599else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002612 break 2
2613 fi
2614done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615done
Reid Spencera773bd52006-08-04 18:18:08 +00002616IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002617
2618fi
2619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002627fi
2628
Reid Spencera773bd52006-08-04 18:18:08 +00002629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002631done
John Criswell7a73b802003-06-30 21:59:07 +00002632
Reid Spencera773bd52006-08-04 18:18:08 +00002633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002638{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639whose name does not start with the host triplet. If you think this
2640configuration is useful to you, please write to autoconf@gnu.org." >&5
2641echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642whose name does not start with the host triplet. If you think this
2643configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002644ac_tool_warned=yes ;;
2645esac
2646 CC=$ac_ct_CC
2647 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648fi
2649
John Criswell7a73b802003-06-30 21:59:07 +00002650fi
2651
2652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654See \`config.log' for more details." >&5
2655echo "$as_me: error: no acceptable C compiler found in \$PATH
2656See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658
John Criswell7a73b802003-06-30 21:59:07 +00002659# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660echo "$as_me:$LINENO: checking for C compiler version" >&5
2661ac_compiler=`set X $ac_compile; echo $2`
2662{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002663case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002669 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672{ (ac_try="$ac_compiler -v >&5"
2673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
2677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler -v >&5") 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682{ (ac_try="$ac_compiler -V >&5"
2683case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -V >&5") 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693cat >conftest.$ac_ext <<_ACEOF
2694/* confdefs.h. */
2695_ACEOF
2696cat confdefs.h >>conftest.$ac_ext
2697cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002698/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002699
John Criswell7a73b802003-06-30 21:59:07 +00002700int
2701main ()
2702{
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002710# Try to create an executable without -o first, disregard a.out.
2711# It will help us diagnose broken compilers, and finding out an intuition
2712# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002713{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716#
2717# List of possible output files, starting from the most likely.
2718# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719# only as a last resort. b.out is created by i960 compilers.
2720ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721#
2722# The IRIX 6 linker writes into existing files which may not be
2723# executable, retaining their permissions. Remove them first so a
2724# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002725ac_rmfiles=
2726for ac_file in $ac_files
2727do
2728 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731 esac
2732done
2733rm -f $ac_rmfiles
2734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002741 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002742 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747# in a Makefile. We should not override ac_cv_exeext if it was cached,
2748# so that the user can short-circuit this test for compilers unknown to
2749# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002751do
2752 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002753 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002755 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002756 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002757 # We found the default executable, but exeext='' is most
2758 # certainly right.
2759 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002760 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002762 then :; else
2763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764 fi
2765 # We set ac_cv_exeext here because the later test for it is not
2766 # safe: cross compilers may not add the suffix if given an `-o'
2767 # argument, so we may need to know it at that point already.
2768 # Even if this section looks crufty: it has the advantage of
2769 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002770 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002771 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002772 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002773 esac
2774done
Reid Spencera773bd52006-08-04 18:18:08 +00002775test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
John Criswell7a73b802003-06-30 21:59:07 +00002777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002779sed 's/^/| /' conftest.$ac_ext >&5
2780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002781{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2782See \`config.log' for more details." >&5
2783echo "$as_me: error: C compiler cannot create executables
2784See \`config.log' for more details." >&2;}
2785 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002786fi
John Criswell7a73b802003-06-30 21:59:07 +00002787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788ac_exeext=$ac_cv_exeext
2789{ echo "$as_me:$LINENO: result: $ac_file" >&5
2790echo "${ECHO_T}$ac_file" >&6; }
2791
2792# Check that the compiler produces executables we can run. If not, either
2793# the compiler is broken, or we cross compile.
2794{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2795echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2796# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2797# If not cross compiling, check that we can run a simple program.
2798if test "$cross_compiling" != yes; then
2799 if { ac_try='./$ac_file'
2800 { (case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_try") 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 cross_compiling=no
2810 else
2811 if test "$cross_compiling" = maybe; then
2812 cross_compiling=yes
2813 else
2814 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2815If you meant to cross compile, use \`--host'.
2816See \`config.log' for more details." >&5
2817echo "$as_me: error: cannot run C compiled programs.
2818If you meant to cross compile, use \`--host'.
2819See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2821 fi
2822 fi
2823fi
2824{ echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6; }
2826
2827rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002828ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002829# Check that the compiler produces executables we can run. If not, either
2830# the compiler is broken, or we cross compile.
2831{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2832echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2833{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2834echo "${ECHO_T}$cross_compiling" >&6; }
2835
2836{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2837echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2838if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002844 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002845 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2849# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2850# work properly (i.e., refer to `conftest.exe'), while it won't with
2851# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002852for ac_file in conftest.exe conftest conftest.*; do
2853 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002854 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002858 * ) break;;
2859 esac
2860done
2861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002862 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2863See \`config.log' for more details." >&5
2864echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2865See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868
2869rm -f conftest$ac_cv_exeext
2870{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2871echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002872
2873rm -f conftest.$ac_ext
2874EXEEXT=$ac_cv_exeext
2875ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002876{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2877echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2878if test "${ac_cv_objext+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002881 cat >conftest.$ac_ext <<_ACEOF
2882/* confdefs.h. */
2883_ACEOF
2884cat confdefs.h >>conftest.$ac_ext
2885cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002887
John Criswell7a73b802003-06-30 21:59:07 +00002888int
2889main ()
2890{
2891
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002897if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002903 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002904 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002907 for ac_file in conftest.o conftest.obj conftest.*; do
2908 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002909 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2912 break;;
2913 esac
2914done
2915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002917sed 's/^/| /' conftest.$ac_ext >&5
2918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2920See \`config.log' for more details." >&5
2921echo "$as_me: error: cannot compute suffix of object files: cannot compile
2922See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002925
John Criswell7a73b802003-06-30 21:59:07 +00002926rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002928{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2929echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002930OBJEXT=$ac_cv_objext
2931ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002932{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2933echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2934if test "${ac_cv_c_compiler_gnu+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002943
John Criswell7a73b802003-06-30 21:59:07 +00002944int
2945main ()
2946{
2947#ifndef __GNUC__
2948 choke me
2949#endif
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955rm -f conftest.$ac_objext
2956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002989 ac_compiler_gnu=yes
2990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002991 echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002996
Reid Spencera773bd52006-08-04 18:18:08 +00002997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002998ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002999
3000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003001{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3002echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3003GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003004ac_test_CFLAGS=${CFLAGS+set}
3005ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3007echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3008if test "${ac_cv_prog_cc_g+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003010else
Reid Spencera773bd52006-08-04 18:18:08 +00003011 ac_save_c_werror_flag=$ac_c_werror_flag
3012 ac_c_werror_flag=yes
3013 ac_cv_prog_cc_g=no
3014 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003021
John Criswell7a73b802003-06-30 21:59:07 +00003022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003030rm -f conftest.$ac_objext
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003064 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003066 echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 CFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003075/* end confdefs.h. */
3076
3077int
3078main ()
3079{
3080
3081 ;
3082 return 0;
3083}
3084_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 :
Torok Edwin871384f2010-01-26 08:50:50 +00003120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003121 echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003125 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003175 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
John Criswell7a73b802003-06-30 21:59:07 +00003181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003182
Reid Spencera773bd52006-08-04 18:18:08 +00003183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003185
Reid Spencera773bd52006-08-04 18:18:08 +00003186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003188
Reid Spencera773bd52006-08-04 18:18:08 +00003189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_c_werror_flag=$ac_save_c_werror_flag
3191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003192{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3193echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194if test "$ac_test_CFLAGS" = set; then
3195 CFLAGS=$ac_save_CFLAGS
3196elif test $ac_cv_prog_cc_g = yes; then
3197 if test "$GCC" = yes; then
3198 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003199 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003201 fi
3202else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203 if test "$GCC" = yes; then
3204 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003205 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003207 fi
3208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003209{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3210echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3211if test "${ac_cv_prog_cc_c89+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213else
Reid Spencera773bd52006-08-04 18:18:08 +00003214 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003216cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221/* end confdefs.h. */
3222#include <stdarg.h>
3223#include <stdio.h>
3224#include <sys/types.h>
3225#include <sys/stat.h>
3226/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3227struct buf { int x; };
3228FILE * (*rcsopen) (struct buf *, struct stat *, int);
3229static char *e (p, i)
3230 char **p;
3231 int i;
3232{
3233 return p[i];
3234}
3235static char *f (char * (*g) (char **, int), char **p, ...)
3236{
3237 char *s;
3238 va_list v;
3239 va_start (v,p);
3240 s = g (p, va_arg (v,int));
3241 va_end (v);
3242 return s;
3243}
3244
3245/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3246 function prototypes and stuff, but not '\xHH' hex character constants.
3247 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003248 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3250 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003251 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3253
Reid Spencera773bd52006-08-04 18:18:08 +00003254/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3255 inside strings and character constants. */
3256#define FOO(x) 'x'
3257int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3258
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259int test (int i, double x);
3260struct s1 {int (*f) (int a);};
3261struct s2 {int (*f) (double a);};
3262int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3263int argc;
3264char **argv;
3265int
3266main ()
3267{
3268return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3269 ;
3270 return 0;
3271}
3272_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003273for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3274 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275do
3276 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277 rm -f conftest.$ac_objext
3278if { (ac_try="$ac_compile"
3279case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282esac
3283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_compile") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3292 { (case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_try") 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; } &&
3301 { ac_try='test -s conftest.$ac_objext'
3302 { (case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_try") 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003311 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003318
Reid Spencera773bd52006-08-04 18:18:08 +00003319rm -f core conftest.err conftest.$ac_objext
3320 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321done
Reid Spencera773bd52006-08-04 18:18:08 +00003322rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323CC=$ac_save_CC
3324
3325fi
Reid Spencera773bd52006-08-04 18:18:08 +00003326# AC_CACHE_VAL
3327case "x$ac_cv_prog_cc_c89" in
3328 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003329 { echo "$as_me:$LINENO: result: none needed" >&5
3330echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003331 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332 { echo "$as_me:$LINENO: result: unsupported" >&5
3333echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003335 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3337echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338esac
3339
John Criswell0c38eaf2003-09-10 15:17:25 +00003340
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341ac_ext=c
3342ac_cpp='$CPP $CPPFLAGS'
3343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346
3347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003353{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355# On Suns, sometimes $CPP names a directory.
3356if test -n "$CPP" && test -d "$CPP"; then
3357 CPP=
3358fi
3359if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003360 if test "${ac_cv_prog_CPP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362else
3363 # Double quotes because CPP needs to be expanded
3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365 do
3366 ac_preproc_ok=false
3367for ac_c_preproc_warn_flag in '' yes
3368do
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375 cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h. */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380/* end confdefs.h. */
3381#ifdef __STDC__
3382# include <limits.h>
3383#else
3384# include <assert.h>
3385#endif
3386 Syntax error
3387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388if { (ac_try="$ac_cpp conftest.$ac_ext"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404 else
3405 ac_cpp_err=
3406 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003408 ac_cpp_err=yes
3409fi
3410if test -z "$ac_cpp_err"; then
3411 :
3412else
3413 echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 # Broken: fails on valid input.
3417continue
3418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420rm -f conftest.err conftest.$ac_ext
3421
Reid Spencera773bd52006-08-04 18:18:08 +00003422 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429/* end confdefs.h. */
3430#include <ac_nonexistent.h>
3431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # Broken: success on invalid input.
3456continue
3457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 # Passes both tests.
3462ac_preproc_ok=:
3463break
3464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003471if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472 break
3473fi
3474
3475 done
3476 ac_cv_prog_CPP=$CPP
3477
3478fi
3479 CPP=$ac_cv_prog_CPP
3480else
3481 ac_cv_prog_CPP=$CPP
3482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003483{ echo "$as_me:$LINENO: result: $CPP" >&5
3484echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003485ac_preproc_ok=false
3486for ac_c_preproc_warn_flag in '' yes
3487do
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003494 cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499/* end confdefs.h. */
3500#ifdef __STDC__
3501# include <limits.h>
3502#else
3503# include <assert.h>
3504#endif
3505 Syntax error
3506_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003507if { (ac_try="$ac_cpp conftest.$ac_ext"
3508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
3512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523 else
3524 ac_cpp_err=
3525 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003527 ac_cpp_err=yes
3528fi
3529if test -z "$ac_cpp_err"; then
3530 :
3531else
3532 echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003535 # Broken: fails on valid input.
3536continue
3537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539rm -f conftest.err conftest.$ac_ext
3540
Reid Spencera773bd52006-08-04 18:18:08 +00003541 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003543 cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548/* end confdefs.h. */
3549#include <ac_nonexistent.h>
3550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
3570else
3571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 # Broken: success on invalid input.
3575continue
3576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 # Passes both tests.
3581ac_preproc_ok=:
3582break
3583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003584
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003585rm -f conftest.err conftest.$ac_ext
3586
3587done
3588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3589rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590if $ac_preproc_ok; then
3591 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003593 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3594See \`config.log' for more details." >&5
3595echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3596See \`config.log' for more details." >&2;}
3597 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598fi
3599
John Criswell7a73b802003-06-30 21:59:07 +00003600ac_ext=c
3601ac_cpp='$CPP $CPPFLAGS'
3602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
John Criswell7a73b802003-06-30 21:59:07 +00003606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003607{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3608echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3609if test "${ac_cv_path_GREP+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003612 # Extract the first word of "grep ggrep" to use in msg output
3613if test -z "$GREP"; then
3614set dummy grep ggrep; ac_prog_name=$2
3615if test "${ac_cv_path_GREP+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
Reid Spencera773bd52006-08-04 18:18:08 +00003618 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003619# Loop through the user's path and test for each of PROGNAME-LIST
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003622do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003625 for ac_prog in grep ggrep; do
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3628 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3629 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003630 # Check for GNU $ac_path_GREP
3631case `"$ac_path_GREP" --version 2>&1` in
3632*GNU*)
3633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3634*)
3635 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003636 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003637 while :
3638 do
3639 cat "conftest.in" "conftest.in" >"conftest.tmp"
3640 mv "conftest.tmp" "conftest.in"
3641 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003642 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003645 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3647 # Best one so far, save it but keep looking for a better one
3648 ac_cv_path_GREP="$ac_path_GREP"
3649 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003650 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003651 # 10*(2^10) chars as input seems more than enough
3652 test $ac_count -gt 10 && break
3653 done
3654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3655esac
3656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657
3658 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003659 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003660done
3661
3662done
Reid Spencera773bd52006-08-04 18:18:08 +00003663IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664
3665
3666fi
3667
3668GREP="$ac_cv_path_GREP"
3669if test -z "$GREP"; then
3670 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3671echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3672 { (exit 1); exit 1; }; }
3673fi
3674
Reid Spencera773bd52006-08-04 18:18:08 +00003675else
3676 ac_cv_path_GREP=$GREP
3677fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003679
Reid Spencera773bd52006-08-04 18:18:08 +00003680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003681{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3682echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003683 GREP="$ac_cv_path_GREP"
3684
3685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003686{ echo "$as_me:$LINENO: checking for egrep" >&5
3687echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3688if test "${ac_cv_path_EGREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003690else
3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692 then ac_cv_path_EGREP="$GREP -E"
3693 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003694 # Extract the first word of "egrep" to use in msg output
3695if test -z "$EGREP"; then
3696set dummy egrep; ac_prog_name=$2
3697if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
Reid Spencera773bd52006-08-04 18:18:08 +00003700 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003701# Loop through the user's path and test for each of PROGNAME-LIST
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003707 for ac_prog in egrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3711 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003712 # Check for GNU $ac_path_EGREP
3713case `"$ac_path_EGREP" --version 2>&1` in
3714*GNU*)
3715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3716*)
3717 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003719 while :
3720 do
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003727 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_EGREP="$ac_path_EGREP"
3731 ac_path_EGREP_max=$ac_count
3732 fi
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3735 done
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737esac
3738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739
3740 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003741 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003742done
3743
3744done
Reid Spencera773bd52006-08-04 18:18:08 +00003745IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746
3747
3748fi
3749
3750EGREP="$ac_cv_path_EGREP"
3751if test -z "$EGREP"; then
3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754 { (exit 1); exit 1; }; }
3755fi
3756
Reid Spencera773bd52006-08-04 18:18:08 +00003757else
3758 ac_cv_path_EGREP=$EGREP
3759fi
3760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003761
Reid Spencera773bd52006-08-04 18:18:08 +00003762 fi
3763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3765echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003766 EGREP="$ac_cv_path_EGREP"
3767
3768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3770echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3771if test "${ac_cv_header_stdc+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003774 cat >conftest.$ac_ext <<_ACEOF
3775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003780#include <stdlib.h>
3781#include <stdarg.h>
3782#include <string.h>
3783#include <float.h>
3784
John Criswell0c38eaf2003-09-10 15:17:25 +00003785int
3786main ()
3787{
3788
3789 ;
3790 return 0;
3791}
John Criswell7a73b802003-06-30 21:59:07 +00003792_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003793rm -f conftest.$ac_objext
3794if { (ac_try="$ac_compile"
3795case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798esac
3799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811esac
3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_try") 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_try") 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003827 ac_cv_header_stdc=yes
3828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003829 echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003834
Reid Spencera773bd52006-08-04 18:18:08 +00003835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003836
3837if test $ac_cv_header_stdc = yes; then
3838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003839 cat >conftest.$ac_ext <<_ACEOF
3840/* confdefs.h. */
3841_ACEOF
3842cat confdefs.h >>conftest.$ac_ext
3843cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003845#include <string.h>
3846
3847_ACEOF
3848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003849 $EGREP "memchr" >/dev/null 2>&1; then
3850 :
John Criswell7a73b802003-06-30 21:59:07 +00003851else
3852 ac_cv_header_stdc=no
3853fi
3854rm -f conftest*
3855
3856fi
3857
3858if test $ac_cv_header_stdc = yes; then
3859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003860 cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003866#include <stdlib.h>
3867
3868_ACEOF
3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003870 $EGREP "free" >/dev/null 2>&1; then
3871 :
John Criswell7a73b802003-06-30 21:59:07 +00003872else
3873 ac_cv_header_stdc=no
3874fi
3875rm -f conftest*
3876
3877fi
3878
3879if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003881 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003882 :
3883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003890#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003891#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003892#if ((' ' & 0x0FF) == 0x020)
3893# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3894# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3895#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003896# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003897 (('a' <= (c) && (c) <= 'i') \
3898 || ('j' <= (c) && (c) <= 'r') \
3899 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003900# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3901#endif
3902
3903#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3904int
3905main ()
3906{
3907 int i;
3908 for (i = 0; i < 256; i++)
3909 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003910 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003911 return 2;
3912 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003913}
3914_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003915rm -f conftest$ac_exeext
3916if { (ac_try="$ac_link"
3917case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920esac
3921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_link") 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3926 { (case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 :
John Criswell7a73b802003-06-30 21:59:07 +00003936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937 echo "$as_me: program exited with status $ac_status" >&5
3938echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941( exit $ac_status )
3942ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003944rm -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 +00003945fi
3946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947
John Criswell7a73b802003-06-30 21:59:07 +00003948fi
3949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003950{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3951echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003952if test $ac_cv_header_stdc = yes; then
3953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954cat >>confdefs.h <<\_ACEOF
3955#define STDC_HEADERS 1
3956_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003957
3958fi
3959
Reid Spencera773bd52006-08-04 18:18:08 +00003960# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961
3962
3963
3964
3965
3966
3967
3968
3969
Reid Spencera773bd52006-08-04 18:18:08 +00003970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3971 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003972do
3973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
3984/* end confdefs.h. */
3985$ac_includes_default
3986
3987#include <$ac_header>
3988_ACEOF
3989rm -f conftest.$ac_objext
3990if { (ac_try="$ac_compile"
3991case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994esac
3995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_compile") 2>conftest.er1
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4004 { (case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_try") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; } &&
4013 { ac_try='test -s conftest.$ac_objext'
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 eval "$as_ac_Header=yes"
4024else
4025 echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 eval "$as_ac_Header=no"
4029fi
4030
4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032fi
4033ac_res=`eval echo '${'$as_ac_Header'}'`
4034 { echo "$as_me:$LINENO: result: $ac_res" >&5
4035echo "${ECHO_T}$ac_res" >&6; }
4036if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004037 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004039_ACEOF
4040
4041fi
4042
4043done
4044
4045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4047echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4048if test "${ac_cv_c_bigendian+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004051 # See if sys/param.h defines the BYTE_ORDER macro.
4052cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004054_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004057/* end confdefs.h. */
4058#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004060
4061int
4062main ()
4063{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4065 bogus endian macros
4066#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004067
4068 ;
4069 return 0;
4070}
4071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072rm -f conftest.$ac_objext
4073if { (ac_try="$ac_compile"
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004106 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004107cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004112/* end confdefs.h. */
4113#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004115
4116int
4117main ()
4118{
4119#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004120 not big endian
4121#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004122
4123 ;
4124 return 0;
4125}
4126_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004127rm -f conftest.$ac_objext
4128if { (ac_try="$ac_compile"
4129case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004161 ac_cv_c_bigendian=yes
4162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163 echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004166 ac_cv_c_bigendian=no
4167fi
4168
4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 # It does not; compile a test program.
4175if test "$cross_compiling" = yes; then
4176 # try to guess the endianness by grepping values into an object file
4177 ac_cv_c_bigendian=unknown
4178 cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h. */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h. */
4184short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4185short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4186void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4187short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4188short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4189void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004190int
4191main ()
4192{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004193 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004194 ;
4195 return 0;
4196}
4197_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198rm -f conftest.$ac_objext
4199if { (ac_try="$ac_compile"
4200case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_compile") 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4213 { (case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_try") 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_try") 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004233 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004234fi
4235if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4236 if test "$ac_cv_c_bigendian" = unknown; then
4237 ac_cv_c_bigendian=no
4238 else
4239 # finding both strings is unlikely to happen, but who knows?
4240 ac_cv_c_bigendian=unknown
4241 fi
4242fi
Reid Spencera773bd52006-08-04 18:18:08 +00004243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004244 echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247
Torok Edwin871384f2010-01-26 08:50:50 +00004248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249
Reid Spencera773bd52006-08-04 18:18:08 +00004250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252 cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h. */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004257/* end confdefs.h. */
4258$ac_includes_default
4259int
4260main ()
4261{
4262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004263 /* Are we little or big endian? From Harbison&Steele. */
4264 union
4265 {
4266 long int l;
4267 char c[sizeof (long int)];
4268 } u;
4269 u.l = 1;
4270 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004271
4272 ;
4273 return 0;
4274}
4275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276rm -f conftest$ac_exeext
4277if { (ac_try="$ac_link"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_link") 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004296 ac_cv_c_bigendian=no
4297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004298 echo "$as_me: program exited with status $ac_status" >&5
4299echo "$as_me: failed program was:" >&5
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
4302( exit $ac_status )
4303ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305rm -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 +00004306fi
4307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308
Reid Spencera773bd52006-08-04 18:18:08 +00004309fi
4310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312fi
4313{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4314echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4315case $ac_cv_c_bigendian in
4316 yes)
4317 ENDIAN=big
4318 ;;
4319 no)
4320 ENDIAN=little
4321 ;;
4322 *)
4323 { { echo "$as_me:$LINENO: error: unknown endianness
4324presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4325echo "$as_me: error: unknown endianness
4326presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4327 { (exit 1); exit 1; }; } ;;
4328esac
Reid Spencera773bd52006-08-04 18:18:08 +00004329
4330
4331if test "$cross_compiling" = yes; then
4332 LLVM_CROSS_COMPILING=1
4333
4334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004335{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4336echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4337if test "${ac_cv_build_exeext+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004339else
4340 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4341 ac_cv_build_exeext=.exe
4342else
4343 ac_build_prefix=${build_alias}-
4344
4345 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4346set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
4352 if test -n "$BUILD_CC"; then
4353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 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 +00004362 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004364 break 2
4365 fi
4366done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367done
Reid Spencera773bd52006-08-04 18:18:08 +00004368IFS=$as_save_IFS
4369
4370fi
4371fi
4372BUILD_CC=$ac_cv_prog_BUILD_CC
4373if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4375echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377 { echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004379fi
4380
4381
4382 if test -z "$BUILD_CC"; then
4383 # Extract the first word of "gcc", so it can be a program name with args.
4384set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004389else
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 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 +00004400 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004402 break 2
4403 fi
4404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405done
Reid Spencera773bd52006-08-04 18:18:08 +00004406IFS=$as_save_IFS
4407
4408fi
4409fi
4410BUILD_CC=$ac_cv_prog_BUILD_CC
4411if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415 { echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004417fi
4418
4419
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "cc", so it can be a program name with args.
4422set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004427else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431 ac_prog_rejected=no
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 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 +00004439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4440 ac_prog_rejected=yes
4441 continue
4442 fi
4443 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004445 break 2
4446 fi
4447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004448done
Reid Spencera773bd52006-08-04 18:18:08 +00004449IFS=$as_save_IFS
4450
4451if test $ac_prog_rejected = yes; then
4452 # We found a bogon in the path, so make sure we never use it.
4453 set dummy $ac_cv_prog_BUILD_CC
4454 shift
4455 if test $# != 0; then
4456 # We chose a different compiler from the bogus one.
4457 # However, it has the same basename, so the bogon will be chosen
4458 # first if we set BUILD_CC to just the basename; use the full file name.
4459 shift
4460 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4461 fi
4462fi
4463fi
4464fi
4465BUILD_CC=$ac_cv_prog_BUILD_CC
4466if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4468echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004470 { echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004472fi
4473
4474
4475 fi
4476 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4478echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4479 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004480 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4481 rm -f conftest*
4482 echo 'int main () { return 0; }' > conftest.$ac_ext
4483 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004485 (eval $ac_build_link) 2>&5
4486 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004489 for file in conftest.*; do
4490 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004491 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004492 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4493 esac
4494 done
4495 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4497echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4498 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004499 fi
4500 rm -f conftest*
4501 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4502fi
4503fi
4504
4505BUILD_EXEEXT=""
4506test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4508echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004509ac_build_exeext=$BUILD_EXEEXT
4510
Jim Grosbach673612e2008-10-02 22:56:44 +00004511 ac_build_prefix=${build_alias}-
4512 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4513set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004518else
4519 if test -n "$BUILD_CXX"; then
4520 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 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 +00004529 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004531 break 2
4532 fi
4533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534done
Jim Grosbach673612e2008-10-02 22:56:44 +00004535IFS=$as_save_IFS
4536
4537fi
4538fi
4539BUILD_CXX=$ac_cv_prog_BUILD_CXX
4540if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004541 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4542echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004544 { echo "$as_me:$LINENO: result: no" >&5
4545echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004546fi
4547
4548
4549 if test -z "$BUILD_CXX"; then
4550 # Extract the first word of "g++", so it can be a program name with args.
4551set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004556else
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 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 +00004567 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 break 2
4570 fi
4571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572done
Jim Grosbach673612e2008-10-02 22:56:44 +00004573IFS=$as_save_IFS
4574
4575fi
4576fi
4577BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004584fi
4585
4586
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "c++", so it can be a program name with args.
4589set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004594else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598 ac_prog_rejected=no
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 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 +00004606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4607 ac_prog_rejected=yes
4608 continue
4609 fi
4610 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004612 break 2
4613 fi
4614done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615done
Jim Grosbach673612e2008-10-02 22:56:44 +00004616IFS=$as_save_IFS
4617
4618if test $ac_prog_rejected = yes; then
4619 # We found a bogon in the path, so make sure we never use it.
4620 set dummy $ac_cv_prog_BUILD_CXX
4621 shift
4622 if test $# != 0; then
4623 # We chose a different compiler from the bogus one.
4624 # However, it has the same basename, so the bogon will be chosen
4625 # first if we set BUILD_CXX to just the basename; use the full file name.
4626 shift
4627 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4628 fi
4629fi
4630fi
4631fi
4632BUILD_CXX=$ac_cv_prog_BUILD_CXX
4633if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004634 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4635echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004637 { echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004639fi
4640
4641
4642 fi
4643 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004644else
4645 LLVM_CROSS_COMPILING=0
4646
4647fi
4648
Nick Lewycky5b28f862009-04-10 05:18:27 +00004649if 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 +00004650 cvsbuild="yes"
4651 optimize="no"
4652 CVSBUILD=CVSBUILD=1
4653
4654else
4655 cvsbuild="no"
4656 optimize="yes"
4657fi
4658
4659
4660# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004662 enableval=$enable_optimized;
4663else
4664 enableval=$optimize
4665fi
4666
4667if test ${enableval} = "no" ; then
4668 ENABLE_OPTIMIZED=
4669
4670else
4671 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4672
4673fi
4674
David Greene2a5a12c2009-04-17 14:50:39 +00004675# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004677 enableval=$enable_profiling;
4678else
4679 enableval="no"
4680fi
4681
4682if test ${enableval} = "no" ; then
4683 ENABLE_PROFILING=
4684
4685else
4686 ENABLE_PROFILING=ENABLE_PROFILING=1
4687
4688fi
4689
Reid Spencera773bd52006-08-04 18:18:08 +00004690# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004692 enableval=$enable_assertions;
4693else
4694 enableval="yes"
4695fi
4696
4697if test ${enableval} = "yes" ; then
4698 DISABLE_ASSERTIONS=
4699
4700else
4701 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4702
4703fi
4704
David Greenea696d242007-06-28 19:36:08 +00004705# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004707 enableval=$enable_expensive_checks;
4708else
4709 enableval="no"
4710fi
4711
4712if test ${enableval} = "yes" ; then
4713 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4714
4715 EXPENSIVE_CHECKS=yes
4716
4717else
4718 ENABLE_EXPENSIVE_CHECKS=
4719
4720 EXPENSIVE_CHECKS=no
4721
4722fi
4723
Reid Spencer8b2e1412006-11-17 03:32:33 +00004724# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004726 enableval=$enable_debug_runtime;
4727else
4728 enableval=no
4729fi
4730
4731if test ${enableval} = "no" ; then
4732 DEBUG_RUNTIME=
4733
4734else
4735 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4736
4737fi
4738
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004739# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004741 enableval=$enable_debug_symbols;
4742else
4743 enableval=no
4744fi
4745
4746if test ${enableval} = "no" ; then
4747 DEBUG_SYMBOLS=
4748
4749else
4750 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4751
4752fi
4753
Reid Spencera773bd52006-08-04 18:18:08 +00004754# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004756 enableval=$enable_jit;
4757else
4758 enableval=default
4759fi
4760
4761if test ${enableval} = "no"
4762then
4763 JIT=
4764
4765else
4766 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004767 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004768 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004769 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004770 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004771 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004772 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004773 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004774 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004775 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004776 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004777 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004778 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004779 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004780 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004781 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004782 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004783 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004784 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004785 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004786 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004787 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004788 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004789 Blackfin) TARGET_HAS_JIT=0
4790 ;;
4791 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004792 ;;
4793 esac
4794fi
4795
4796# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004798 enableval=$enable_doxygen;
4799else
4800 enableval=default
4801fi
4802
4803case "$enableval" in
4804 yes) ENABLE_DOXYGEN=1
4805 ;;
4806 no) ENABLE_DOXYGEN=0
4807 ;;
4808 default) ENABLE_DOXYGEN=0
4809 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4811echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4812 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004813esac
4814
4815# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004816if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004817 enableval=$enable_threads;
4818else
Reid Spencer65c5d752006-11-05 17:08:18 +00004819 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004820fi
4821
4822case "$enableval" in
4823 yes) ENABLE_THREADS=1
4824 ;;
4825 no) ENABLE_THREADS=0
4826 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004827 default) ENABLE_THREADS=1
4828 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4830echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4831 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004832esac
4833
Owen Andersona8603702009-05-19 22:18:56 +00004834cat >>confdefs.h <<_ACEOF
4835#define ENABLE_THREADS $ENABLE_THREADS
4836_ACEOF
4837
4838
Reid Spencer89b0d992006-12-16 22:07:52 +00004839# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004841 enableval=$enable_pic;
4842else
4843 enableval=default
4844fi
4845
4846case "$enableval" in
4847 yes) ENABLE_PIC=1
4848 ;;
4849 no) ENABLE_PIC=0
4850 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004851 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004852 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4854echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004856esac
4857
4858cat >>confdefs.h <<_ACEOF
4859#define ENABLE_PIC $ENABLE_PIC
4860_ACEOF
4861
4862
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +00004863# Check whether --enable-shared was given.
4864if test "${enable_shared+set}" = set; then
4865 enableval=$enable_shared;
4866else
4867 enableval=default
4868fi
4869
4870case "$enableval" in
4871 yes) ENABLE_SHARED=1
4872 ;;
4873 no) ENABLE_SHARED=0
4874 ;;
4875 default) ENABLE_SHARED=0
4876 ;;
4877 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4878echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4879 { (exit 1); exit 1; }; } ;;
4880esac
4881
Reid Spencera773bd52006-08-04 18:18:08 +00004882TARGETS_TO_BUILD=""
4883# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004885 enableval=$enable_targets;
4886else
4887 enableval=all
4888fi
4889
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004890if test "$enableval" = host-only ; then
4891 enableval=host
4892fi
Reid Spencera773bd52006-08-04 18:18:08 +00004893case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00004894 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004895 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4896 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004897 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4898 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4899 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4900 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4901 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4902 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4903 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4904 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4905 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4906 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4907 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4908 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4909 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4910 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4911 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4912 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004913 host) case "$llvm_cv_target_arch" in
4914 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4920 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4921 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4922 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4923 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4924 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004925 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004926 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004927 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4928echo "$as_me: error: Can not set target to build" >&2;}
4929 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004930 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4932echo "$as_me: error: Unrecognized target $a_target" >&2;}
4933 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004934 esac
4935 done
4936 ;;
4937esac
Reid Spencera773bd52006-08-04 18:18:08 +00004938TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4939
4940
Douglas Gregor0711c302009-06-17 00:43:20 +00004941# Determine whether we are building LLVM support for the native architecture.
4942# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4943for a_target in $TARGETS_TO_BUILD; do
4944 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004945 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004946
4947cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004948#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004949_ACEOF
4950
4951 fi
4952done
4953
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004954# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4955# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004956LLVM_ENUM_TARGETS=""
4957LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004958LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004959LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004960for target_to_build in $TARGETS_TO_BUILD; do
4961 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4962 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4963 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4964 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004965 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4966 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4967 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004968 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4969 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4970 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004971done
4972
4973
4974
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004975
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004976
Reid Spencer65c5d752006-11-05 17:08:18 +00004977# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004978if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004979 enableval=$enable_cbe_printf_a;
4980else
4981 enableval=default
4982fi
4983
4984case "$enableval" in
4985 yes) ENABLE_CBE_PRINTF_A=1
4986 ;;
4987 no) ENABLE_CBE_PRINTF_A=0
4988 ;;
4989 default) ENABLE_CBE_PRINTF_A=1
4990 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004991 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4992echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4993 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004994esac
4995
4996cat >>confdefs.h <<_ACEOF
4997#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4998_ACEOF
4999
5000
Reid Spencera773bd52006-08-04 18:18:08 +00005001
5002# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005003if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005004 withval=$with_llvmgccdir;
5005else
5006 withval=default
5007fi
5008
5009case "$withval" in
5010 default) WITH_LLVMGCCDIR=default ;;
5011 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005012 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5013echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5014 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005015esac
5016
5017
Devang Patel5d28b882007-12-04 22:54:47 +00005018# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005019if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005020 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5021 WITH_LLVMGCCDIR=""
5022fi
5023
5024
5025
5026# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005027if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005028 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5029 WITH_LLVMGCCDIR=""
5030fi
5031
Douglas Gregor01746742009-05-11 18:05:52 +00005032
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005033if test -n "$LLVMGCC"; then
5034 LLVMGCCCOMMAND="$LLVMGCC"
5035fi
5036
5037if test -n "$LLVMGXX"; then
5038 LLVMGXXCOMMAND="$LLVMGXX"
5039fi
Devang Patel5d28b882007-12-04 22:54:47 +00005040
5041if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005042 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5043echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5044 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005045fi
5046
5047if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005048 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5049echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5050 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005051fi
5052
5053
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005054# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005056 withval=$with_optimize_option;
5057else
5058 withval=default
5059fi
5060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005061{ echo "$as_me:$LINENO: checking optimization flags" >&5
5062echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005063case "$withval" in
5064 default)
5065 case "$llvm_cv_os_type" in
5066 MingW) optimize_option=-O3 ;;
5067 *) optimize_option=-O2 ;;
5068 esac ;;
5069 *) optimize_option="$withval" ;;
5070esac
5071OPTIMIZE_OPTION=$optimize_option
5072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5074echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005075
5076
Reid Spencera773bd52006-08-04 18:18:08 +00005077# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005078if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005079 withval=$with_extra_options;
5080else
5081 withval=default
5082fi
5083
5084case "$withval" in
5085 default) EXTRA_OPTIONS= ;;
5086 *) EXTRA_OPTIONS=$withval ;;
5087esac
5088EXTRA_OPTIONS=$EXTRA_OPTIONS
5089
5090
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005091# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005092if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005093 enableval=$enable_bindings;
5094else
5095 enableval=default
5096fi
5097
5098BINDINGS_TO_BUILD=""
5099case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005100 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005101 all ) BINDINGS_TO_BUILD="ocaml" ;;
5102 none | no) BINDINGS_TO_BUILD="" ;;
5103 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5104 case "$a_binding" in
5105 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005106 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5107echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5108 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005109 esac
5110 done
5111 ;;
5112esac
5113
Reid Spencera773bd52006-08-04 18:18:08 +00005114
Gordon Henriksenf0915682007-10-02 16:42:22 +00005115# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005116if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005117 withval=$with_ocaml_libdir;
5118else
5119 withval=auto
5120fi
5121
5122case "$withval" in
5123 auto) with_ocaml_libdir="$withval" ;;
5124 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005125 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5126echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5127 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005128esac
5129
5130
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005131# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005133 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005134else
5135 withval=""
5136fi
5137
5138
5139cat >>confdefs.h <<_ACEOF
5140#define C_INCLUDE_DIRS "$withval"
5141_ACEOF
5142
5143
5144
Rafael Espindola420d23c2009-11-16 19:46:55 +00005145# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005146if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005147 withval=$with_cxx_include_root;
5148else
5149 withval=""
5150fi
5151
5152
5153cat >>confdefs.h <<_ACEOF
5154#define CXX_INCLUDE_ROOT "$withval"
5155_ACEOF
5156
5157
5158
5159# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005160if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005161 withval=$with_cxx_include_arch;
5162else
5163 withval=""
5164fi
5165
5166
5167cat >>confdefs.h <<_ACEOF
5168#define CXX_INCLUDE_ARCH "$withval"
5169_ACEOF
5170
5171
5172
5173# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005174if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005175 withval=$with_cxx_include_32bit_dir;
5176else
5177 withval=""
5178fi
5179
5180
5181cat >>confdefs.h <<_ACEOF
5182#define CXX_INCLUDE_32BIT_DIR "$withval"
5183_ACEOF
5184
5185
5186
5187# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005188if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005189 withval=$with_cxx_include_64bit_dir;
5190else
5191 withval=""
5192fi
5193
5194
5195cat >>confdefs.h <<_ACEOF
5196#define CXX_INCLUDE_64BIT_DIR "$withval"
5197_ACEOF
5198
5199
5200
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005201# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005202if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005203 withval=$with_binutils_include;
5204else
5205 withval=default
5206fi
5207
5208case "$withval" in
5209 default) WITH_BINUTILS_INCDIR=default ;;
5210 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5212echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5213 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005214esac
5215if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5216 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5217
5218 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5219 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005220 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5221echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5222 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005223 fi
5224fi
5225
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005226# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005227if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005228 enableval=$enable_libffi; case "$enableval" in
5229 yes) llvm_cv_enable_libffi="yes" ;;
5230 no) llvm_cv_enable_libffi="no" ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005234 esac
5235else
5236 llvm_cv_enable_libffi=no
5237fi
5238
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005239
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005240if test "$llvm_cv_os_type" = "Win32" ; then
5241 llvmc_dynamic="yes"
5242else
5243 llvmc_dynamic="no"
5244fi
5245
5246# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005247if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005248 enableval=$enable_llvmc_dynamic;
5249else
5250 enableval=$llvmc_dynamic
5251fi
5252
5253if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5254 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5255
5256else
5257 ENABLE_LLVMC_DYNAMIC=
5258
5259fi
5260
5261# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005262if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005263 enableval=$enable_llvmc_dynamic_plugins;
5264else
5265 enableval=yes
5266fi
5267
5268if test ${enableval} = "yes" ; then
5269 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5270
5271else
5272 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5273
5274fi
5275
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005276
Reid Spencera773bd52006-08-04 18:18:08 +00005277ac_ext=c
5278ac_cpp='$CPP $CPPFLAGS'
5279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005282{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5283echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005284# On Suns, sometimes $CPP names a directory.
5285if test -n "$CPP" && test -d "$CPP"; then
5286 CPP=
5287fi
5288if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005289 if test "${ac_cv_prog_CPP+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005291else
5292 # Double quotes because CPP needs to be expanded
5293 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5294 do
5295 ac_preproc_ok=false
5296for ac_c_preproc_warn_flag in '' yes
5297do
5298 # Use a header file that comes with gcc, so configuring glibc
5299 # with a fresh cross-compiler works.
5300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301 # <limits.h> exists even on freestanding compilers.
5302 # On the NeXT, cc -E runs the code through the compiler's parser,
5303 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005309/* end confdefs.h. */
5310#ifdef __STDC__
5311# include <limits.h>
5312#else
5313# include <assert.h>
5314#endif
5315 Syntax error
5316_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005317if { (ac_try="$ac_cpp conftest.$ac_ext"
5318case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321esac
5322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } >/dev/null; then
5330 if test -s conftest.err; then
5331 ac_cpp_err=$ac_c_preproc_warn_flag
5332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5333 else
5334 ac_cpp_err=
5335 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337 ac_cpp_err=yes
5338fi
5339if test -z "$ac_cpp_err"; then
5340 :
5341else
5342 echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
Reid Spencera773bd52006-08-04 18:18:08 +00005345 # Broken: fails on valid input.
5346continue
5347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348
Reid Spencera773bd52006-08-04 18:18:08 +00005349rm -f conftest.err conftest.$ac_ext
5350
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005353 cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h. */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005358/* end confdefs.h. */
5359#include <ac_nonexistent.h>
5360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005361if { (ac_try="$ac_cpp conftest.$ac_ext"
5362case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365esac
5366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev/null; then
5374 if test -s conftest.err; then
5375 ac_cpp_err=$ac_c_preproc_warn_flag
5376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5377 else
5378 ac_cpp_err=
5379 fi
5380else
5381 ac_cpp_err=yes
5382fi
5383if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005384 # Broken: success on invalid input.
5385continue
5386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
Reid Spencera773bd52006-08-04 18:18:08 +00005390 # Passes both tests.
5391ac_preproc_ok=:
5392break
5393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005394
Reid Spencera773bd52006-08-04 18:18:08 +00005395rm -f conftest.err conftest.$ac_ext
5396
5397done
5398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5399rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005400if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005401 break
5402fi
5403
5404 done
5405 ac_cv_prog_CPP=$CPP
5406
5407fi
5408 CPP=$ac_cv_prog_CPP
5409else
5410 ac_cv_prog_CPP=$CPP
5411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005412{ echo "$as_me:$LINENO: result: $CPP" >&5
5413echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005414ac_preproc_ok=false
5415for ac_c_preproc_warn_flag in '' yes
5416do
5417 # Use a header file that comes with gcc, so configuring glibc
5418 # with a fresh cross-compiler works.
5419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420 # <limits.h> exists even on freestanding compilers.
5421 # On the NeXT, cc -E runs the code through the compiler's parser,
5422 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423 cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005428/* end confdefs.h. */
5429#ifdef __STDC__
5430# include <limits.h>
5431#else
5432# include <assert.h>
5433#endif
5434 Syntax error
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
Torok Edwin871384f2010-01-26 08:50:50 +00005455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005456 ac_cpp_err=yes
5457fi
5458if test -z "$ac_cpp_err"; then
5459 :
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
Reid Spencera773bd52006-08-04 18:18:08 +00005464 # Broken: fails on valid input.
5465continue
5466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005467
Reid Spencera773bd52006-08-04 18:18:08 +00005468rm -f conftest.err conftest.$ac_ext
5469
5470 # OK, works on sane cases. Now check whether nonexistent headers
5471 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005477/* end confdefs.h. */
5478#include <ac_nonexistent.h>
5479_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480if { (ac_try="$ac_cpp conftest.$ac_ext"
5481case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } >/dev/null; then
5493 if test -s conftest.err; then
5494 ac_cpp_err=$ac_c_preproc_warn_flag
5495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5496 else
5497 ac_cpp_err=
5498 fi
5499else
5500 ac_cpp_err=yes
5501fi
5502if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005503 # Broken: success on invalid input.
5504continue
5505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005506 echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
Reid Spencera773bd52006-08-04 18:18:08 +00005509 # Passes both tests.
5510ac_preproc_ok=:
5511break
5512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005513
Reid Spencera773bd52006-08-04 18:18:08 +00005514rm -f conftest.err conftest.$ac_ext
5515
5516done
5517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5518rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519if $ac_preproc_ok; then
5520 :
Reid Spencera773bd52006-08-04 18:18:08 +00005521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5523See \`config.log' for more details." >&5
5524echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5525See \`config.log' for more details." >&2;}
5526 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005527fi
5528
5529ac_ext=c
5530ac_cpp='$CPP $CPPFLAGS'
5531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535ac_ext=c
5536ac_cpp='$CPP $CPPFLAGS'
5537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540if test -n "$ac_tool_prefix"; then
5541 for ac_prog in gcc
5542 do
5543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5544set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5547if test "${ac_cv_prog_CC+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005549else
5550 if test -n "$CC"; then
5551 ac_cv_prog_CC="$CC" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 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 +00005560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005562 break 2
5563 fi
5564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565done
Reid Spencera773bd52006-08-04 18:18:08 +00005566IFS=$as_save_IFS
5567
5568fi
5569fi
5570CC=$ac_cv_prog_CC
5571if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572 { echo "$as_me:$LINENO: result: $CC" >&5
5573echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575 { echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005577fi
5578
5579
5580 test -n "$CC" && break
5581 done
5582fi
5583if test -z "$CC"; then
5584 ac_ct_CC=$CC
5585 for ac_prog in gcc
5586do
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005593else
5594 if test -n "$ac_ct_CC"; then
5595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 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 +00005604 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005606 break 2
5607 fi
5608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609done
Reid Spencera773bd52006-08-04 18:18:08 +00005610IFS=$as_save_IFS
5611
5612fi
5613fi
5614ac_ct_CC=$ac_cv_prog_ac_ct_CC
5615if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5617echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005619 { echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005621fi
5622
5623
5624 test -n "$ac_ct_CC" && break
5625done
5626
5627 if test "x$ac_ct_CC" = x; then
5628 CC=""
5629 else
5630 case $cross_compiling:$ac_tool_warned in
5631yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005632{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5633whose name does not start with the host triplet. If you think this
5634configuration is useful to you, please write to autoconf@gnu.org." >&5
5635echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5636whose name does not start with the host triplet. If you think this
5637configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005638ac_tool_warned=yes ;;
5639esac
5640 CC=$ac_ct_CC
5641 fi
5642fi
5643
5644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5646See \`config.log' for more details." >&5
5647echo "$as_me: error: no acceptable C compiler found in \$PATH
5648See \`config.log' for more details." >&2;}
5649 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005650
5651# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005652echo "$as_me:$LINENO: checking for C compiler version" >&5
5653ac_compiler=`set X $ac_compile; echo $2`
5654{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005655case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005661 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }
5664{ (ac_try="$ac_compiler -v >&5"
5665case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compiler -v >&5") 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }
5674{ (ac_try="$ac_compiler -V >&5"
5675case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compiler -V >&5") 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5686echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5687if test "${ac_cv_c_compiler_gnu+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005695/* end confdefs.h. */
5696
5697int
5698main ()
5699{
5700#ifndef __GNUC__
5701 choke me
5702#endif
5703
5704 ;
5705 return 0;
5706}
5707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708rm -f conftest.$ac_objext
5709if { (ac_try="$ac_compile"
5710case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_compile") 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5723 { (case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_try") 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; } &&
5732 { ac_try='test -s conftest.$ac_objext'
5733 { (case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_try") 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005742 ac_compiler_gnu=yes
5743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744 echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749
Reid Spencera773bd52006-08-04 18:18:08 +00005750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751ac_cv_c_compiler_gnu=$ac_compiler_gnu
5752
5753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005754{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5755echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5756GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005757ac_test_CFLAGS=${CFLAGS+set}
5758ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5760echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5761if test "${ac_cv_prog_cc_g+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005763else
5764 ac_save_c_werror_flag=$ac_c_werror_flag
5765 ac_c_werror_flag=yes
5766 ac_cv_prog_cc_g=no
5767 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768 cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h. */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005773/* end confdefs.h. */
5774
5775int
5776main ()
5777{
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_cv_prog_cc_g=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 CFLAGS=""
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005828/* end confdefs.h. */
5829
5830int
5831main ()
5832{
5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838rm -f conftest.$ac_objext
5839if { (ac_try="$ac_compile"
5840case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843esac
5844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5853 { (case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856esac
5857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_try") 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866esac
5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 :
Torok Edwin871384f2010-01-26 08:50:50 +00005873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005878 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005884/* end confdefs.h. */
5885
5886int
5887main ()
5888{
5889
5890 ;
5891 return 0;
5892}
5893_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894rm -f conftest.$ac_objext
5895if { (ac_try="$ac_compile"
5896case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5909 { (case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912esac
5913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_try") 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest.$ac_objext'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005928 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929else
5930 echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933
Reid Spencera773bd52006-08-04 18:18:08 +00005934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935
Reid Spencera773bd52006-08-04 18:18:08 +00005936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938
Reid Spencera773bd52006-08-04 18:18:08 +00005939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941
Reid Spencera773bd52006-08-04 18:18:08 +00005942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_c_werror_flag=$ac_save_c_werror_flag
5944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5946echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005947if test "$ac_test_CFLAGS" = set; then
5948 CFLAGS=$ac_save_CFLAGS
5949elif test $ac_cv_prog_cc_g = yes; then
5950 if test "$GCC" = yes; then
5951 CFLAGS="-g -O2"
5952 else
5953 CFLAGS="-g"
5954 fi
5955else
5956 if test "$GCC" = yes; then
5957 CFLAGS="-O2"
5958 else
5959 CFLAGS=
5960 fi
5961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5963echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5964if test "${ac_cv_prog_cc_c89+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005966else
5967 ac_cv_prog_cc_c89=no
5968ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005974/* end confdefs.h. */
5975#include <stdarg.h>
5976#include <stdio.h>
5977#include <sys/types.h>
5978#include <sys/stat.h>
5979/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5980struct buf { int x; };
5981FILE * (*rcsopen) (struct buf *, struct stat *, int);
5982static char *e (p, i)
5983 char **p;
5984 int i;
5985{
5986 return p[i];
5987}
5988static char *f (char * (*g) (char **, int), char **p, ...)
5989{
5990 char *s;
5991 va_list v;
5992 va_start (v,p);
5993 s = g (p, va_arg (v,int));
5994 va_end (v);
5995 return s;
5996}
5997
5998/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5999 function prototypes and stuff, but not '\xHH' hex character constants.
6000 These don't provoke an error unfortunately, instead are silently treated
6001 as 'x'. The following induces an error, until -std is added to get
6002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6003 array size at least. It's necessary to write '\x00'==0 to get something
6004 that's true only with -std. */
6005int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6006
6007/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6008 inside strings and character constants. */
6009#define FOO(x) 'x'
6010int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6011
6012int test (int i, double x);
6013struct s1 {int (*f) (int a);};
6014struct s2 {int (*f) (double a);};
6015int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6016int argc;
6017char **argv;
6018int
6019main ()
6020{
6021return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6022 ;
6023 return 0;
6024}
6025_ACEOF
6026for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6028do
6029 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030 rm -f conftest.$ac_objext
6031if { (ac_try="$ac_compile"
6032case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6045 { (case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_try") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_try") 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006064 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006065else
6066 echo "$as_me: failed program was:" >&5
6067sed 's/^/| /' conftest.$ac_ext >&5
6068
6069
Reid Spencera773bd52006-08-04 18:18:08 +00006070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071
Reid Spencera773bd52006-08-04 18:18:08 +00006072rm -f core conftest.err conftest.$ac_objext
6073 test "x$ac_cv_prog_cc_c89" != "xno" && break
6074done
6075rm -f conftest.$ac_ext
6076CC=$ac_save_CC
6077
6078fi
6079# AC_CACHE_VAL
6080case "x$ac_cv_prog_cc_c89" in
6081 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082 { echo "$as_me:$LINENO: result: none needed" >&5
6083echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006084 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085 { echo "$as_me:$LINENO: result: unsupported" >&5
6086echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006087 *)
6088 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6090echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006091esac
6092
6093
6094ac_ext=c
6095ac_cpp='$CPP $CPPFLAGS'
6096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100ac_ext=cpp
6101ac_cpp='$CXXCPP $CPPFLAGS'
6102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105if test -z "$CXX"; then
6106 if test -n "$CCC"; then
6107 CXX=$CCC
6108 else
6109 if test -n "$ac_tool_prefix"; then
6110 for ac_prog in g++
6111 do
6112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116if test "${ac_cv_prog_CXX+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006118else
6119 if test -n "$CXX"; then
6120 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 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 +00006129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006131 break 2
6132 fi
6133done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006134done
Reid Spencera773bd52006-08-04 18:18:08 +00006135IFS=$as_save_IFS
6136
6137fi
6138fi
6139CXX=$ac_cv_prog_CXX
6140if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006141 { echo "$as_me:$LINENO: result: $CXX" >&5
6142echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 { echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006146fi
6147
6148
6149 test -n "$CXX" && break
6150 done
6151fi
6152if test -z "$CXX"; then
6153 ac_ct_CXX=$CXX
6154 for ac_prog in g++
6155do
6156 # Extract the first word of "$ac_prog", so it can be a program name with args.
6157set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006162else
6163 if test -n "$ac_ct_CXX"; then
6164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 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 +00006173 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006175 break 2
6176 fi
6177done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006178done
Reid Spencera773bd52006-08-04 18:18:08 +00006179IFS=$as_save_IFS
6180
6181fi
6182fi
6183ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6184if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6186echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 { echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006190fi
6191
6192
6193 test -n "$ac_ct_CXX" && break
6194done
6195
6196 if test "x$ac_ct_CXX" = x; then
6197 CXX="g++"
6198 else
6199 case $cross_compiling:$ac_tool_warned in
6200yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6202whose name does not start with the host triplet. If you think this
6203configuration is useful to you, please write to autoconf@gnu.org." >&5
6204echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6205whose name does not start with the host triplet. If you think this
6206configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006207ac_tool_warned=yes ;;
6208esac
6209 CXX=$ac_ct_CXX
6210 fi
6211fi
6212
6213 fi
6214fi
6215# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6217ac_compiler=`set X $ac_compile; echo $2`
6218{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006219case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006225 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }
6228{ (ac_try="$ac_compiler -v >&5"
6229case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compiler -v >&5") 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }
6238{ (ac_try="$ac_compiler -V >&5"
6239case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6242esac
6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_compiler -V >&5") 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6250echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6251if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254 cat >conftest.$ac_ext <<_ACEOF
6255/* confdefs.h. */
6256_ACEOF
6257cat confdefs.h >>conftest.$ac_ext
6258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006259/* end confdefs.h. */
6260
6261int
6262main ()
6263{
6264#ifndef __GNUC__
6265 choke me
6266#endif
6267
6268 ;
6269 return 0;
6270}
6271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272rm -f conftest.$ac_objext
6273if { (ac_try="$ac_compile"
6274case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
6278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6287 { (case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_try") 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300esac
6301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_try") 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006306 ac_compiler_gnu=yes
6307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308 echo "$as_me: failed program was:" >&5
6309sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313
Reid Spencera773bd52006-08-04 18:18:08 +00006314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6316
6317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6320GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006321ac_test_CXXFLAGS=${CXXFLAGS+set}
6322ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6324echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6325if test "${ac_cv_prog_cxx_g+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006327else
6328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6329 ac_cxx_werror_flag=yes
6330 ac_cv_prog_cxx_g=no
6331 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006337/* end confdefs.h. */
6338
6339int
6340main ()
6341{
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_cv_prog_cxx_g=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 CXXFLAGS=""
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006392/* end confdefs.h. */
6393
6394int
6395main ()
6396{
6397
6398 ;
6399 return 0;
6400}
6401_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402rm -f conftest.$ac_objext
6403if { (ac_try="$ac_compile"
6404case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407esac
6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6417 { (case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6420esac
6421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422 (eval "$ac_try") 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430esac
6431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_try") 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 :
Torok Edwin871384f2010-01-26 08:50:50 +00006437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 echo "$as_me: failed program was:" >&5
6439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006442 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443 cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006448/* end confdefs.h. */
6449
6450int
6451main ()
6452{
6453
6454 ;
6455 return 0;
6456}
6457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458rm -f conftest.$ac_objext
6459if { (ac_try="$ac_compile"
6460case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_compile") 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest.$ac_objext'
6483 { (case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_try") 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006492 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493else
6494 echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497
Reid Spencera773bd52006-08-04 18:18:08 +00006498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499
Reid Spencera773bd52006-08-04 18:18:08 +00006500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502
Reid Spencera773bd52006-08-04 18:18:08 +00006503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505
Reid Spencera773bd52006-08-04 18:18:08 +00006506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6510echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006511if test "$ac_test_CXXFLAGS" = set; then
6512 CXXFLAGS=$ac_save_CXXFLAGS
6513elif test $ac_cv_prog_cxx_g = yes; then
6514 if test "$GXX" = yes; then
6515 CXXFLAGS="-g -O2"
6516 else
6517 CXXFLAGS="-g"
6518 fi
6519else
6520 if test "$GXX" = yes; then
6521 CXXFLAGS="-O2"
6522 else
6523 CXXFLAGS=
6524 fi
6525fi
6526ac_ext=c
6527ac_cpp='$CPP $CPPFLAGS'
6528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531
Reid Spencera773bd52006-08-04 18:18:08 +00006532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6534echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6535if test "${lt_cv_path_NM+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006537else
6538 if test -n "$NM"; then
6539 # Let the user override the test.
6540 lt_cv_path_NM="$NM"
6541else
6542 lt_nm_to_check="${ac_tool_prefix}nm"
6543 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6544 lt_nm_to_check="$lt_nm_to_check nm"
6545 fi
6546 for lt_tmp_nm in $lt_nm_to_check; do
6547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6548 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6549 IFS="$lt_save_ifs"
6550 test -z "$ac_dir" && ac_dir=.
6551 tmp_nm="$ac_dir/$lt_tmp_nm"
6552 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6553 # Check to see if the nm accepts a BSD-compat flag.
6554 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6555 # nm: unknown option "B" ignored
6556 # Tru64's nm complains that /dev/null is an invalid object file
6557 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6558 */dev/null* | *'Invalid file or object type'*)
6559 lt_cv_path_NM="$tmp_nm -B"
6560 break
6561 ;;
6562 *)
6563 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6564 */dev/null*)
6565 lt_cv_path_NM="$tmp_nm -p"
6566 break
6567 ;;
6568 *)
6569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6570 continue # so that we can try to find one that supports BSD flags
6571 ;;
6572 esac
6573 ;;
6574 esac
6575 fi
6576 done
6577 IFS="$lt_save_ifs"
6578 done
6579 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6580fi
6581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006582{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6583echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006584NM="$lt_cv_path_NM"
6585
6586
6587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588{ echo "$as_me:$LINENO: checking for GNU make" >&5
6589echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6590if test "${llvm_cv_gnu_make_command+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006592else
6593 llvm_cv_gnu_make_command=''
6594 for a in "$MAKE" make gmake gnumake ; do
6595 if test -z "$a" ; then continue ; fi ;
6596 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6597 then
6598 llvm_cv_gnu_make_command=$a ;
6599 break;
6600 fi
6601 done
6602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6604echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006605 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6606 ifGNUmake='' ;
6607 else
6608 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6610echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006611 fi
6612
6613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6615echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006616LN_S=$as_ln_s
6617if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618 { echo "$as_me:$LINENO: result: yes" >&5
6619echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6622echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006623fi
6624
6625# Extract the first word of "cmp", so it can be a program name with args.
6626set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629if test "${ac_cv_path_CMP+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006631else
6632 case $CMP in
6633 [\\/]* | ?:[\\/]*)
6634 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6635 ;;
6636 *)
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 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 +00006644 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006646 break 2
6647 fi
6648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649done
Reid Spencera773bd52006-08-04 18:18:08 +00006650IFS=$as_save_IFS
6651
6652 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6653 ;;
6654esac
6655fi
6656CMP=$ac_cv_path_CMP
6657if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658 { echo "$as_me:$LINENO: result: $CMP" >&5
6659echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661 { echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006663fi
6664
6665
6666# Extract the first word of "cp", so it can be a program name with args.
6667set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670if test "${ac_cv_path_CP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006672else
6673 case $CP in
6674 [\\/]* | ?:[\\/]*)
6675 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6676 ;;
6677 *)
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 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 +00006685 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006687 break 2
6688 fi
6689done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690done
Reid Spencera773bd52006-08-04 18:18:08 +00006691IFS=$as_save_IFS
6692
6693 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6694 ;;
6695esac
6696fi
6697CP=$ac_cv_path_CP
6698if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699 { echo "$as_me:$LINENO: result: $CP" >&5
6700echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 { echo "$as_me:$LINENO: result: no" >&5
6703echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006704fi
6705
6706
6707# Extract the first word of "date", so it can be a program name with args.
6708set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711if test "${ac_cv_path_DATE+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006713else
6714 case $DATE in
6715 [\\/]* | ?:[\\/]*)
6716 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6717 ;;
6718 *)
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 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 +00006726 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006728 break 2
6729 fi
6730done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731done
Reid Spencera773bd52006-08-04 18:18:08 +00006732IFS=$as_save_IFS
6733
6734 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6735 ;;
6736esac
6737fi
6738DATE=$ac_cv_path_DATE
6739if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 { echo "$as_me:$LINENO: result: $DATE" >&5
6741echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006745fi
6746
6747
6748# Extract the first word of "find", so it can be a program name with args.
6749set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752if test "${ac_cv_path_FIND+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006754else
6755 case $FIND in
6756 [\\/]* | ?:[\\/]*)
6757 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6758 ;;
6759 *)
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 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 +00006767 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006769 break 2
6770 fi
6771done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772done
Reid Spencera773bd52006-08-04 18:18:08 +00006773IFS=$as_save_IFS
6774
6775 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6776 ;;
6777esac
6778fi
6779FIND=$ac_cv_path_FIND
6780if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781 { echo "$as_me:$LINENO: result: $FIND" >&5
6782echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006786fi
6787
6788
6789# Extract the first word of "grep", so it can be a program name with args.
6790set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793if test "${ac_cv_path_GREP+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006795else
6796 case $GREP in
6797 [\\/]* | ?:[\\/]*)
6798 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6799 ;;
6800 *)
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 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 +00006808 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006810 break 2
6811 fi
6812done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006813done
Reid Spencera773bd52006-08-04 18:18:08 +00006814IFS=$as_save_IFS
6815
6816 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6817 ;;
6818esac
6819fi
6820GREP=$ac_cv_path_GREP
6821if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 { echo "$as_me:$LINENO: result: $GREP" >&5
6823echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006827fi
6828
6829
6830# Extract the first word of "mkdir", so it can be a program name with args.
6831set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834if test "${ac_cv_path_MKDIR+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006836else
6837 case $MKDIR in
6838 [\\/]* | ?:[\\/]*)
6839 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6840 ;;
6841 *)
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 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 +00006849 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006851 break 2
6852 fi
6853done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854done
Reid Spencera773bd52006-08-04 18:18:08 +00006855IFS=$as_save_IFS
6856
6857 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6858 ;;
6859esac
6860fi
6861MKDIR=$ac_cv_path_MKDIR
6862if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6864echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006865else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866 { echo "$as_me:$LINENO: result: no" >&5
6867echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006868fi
6869
6870
6871# Extract the first word of "mv", so it can be a program name with args.
6872set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875if test "${ac_cv_path_MV+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006877else
6878 case $MV in
6879 [\\/]* | ?:[\\/]*)
6880 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6881 ;;
6882 *)
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 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 +00006890 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006892 break 2
6893 fi
6894done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006895done
Reid Spencera773bd52006-08-04 18:18:08 +00006896IFS=$as_save_IFS
6897
6898 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6899 ;;
6900esac
6901fi
6902MV=$ac_cv_path_MV
6903if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904 { echo "$as_me:$LINENO: result: $MV" >&5
6905echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907 { echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006909fi
6910
6911
6912if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917if test "${ac_cv_prog_RANLIB+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006919else
6920 if test -n "$RANLIB"; then
6921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 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 +00006930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006932 break 2
6933 fi
6934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935done
Reid Spencera773bd52006-08-04 18:18:08 +00006936IFS=$as_save_IFS
6937
6938fi
6939fi
6940RANLIB=$ac_cv_prog_RANLIB
6941if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6943echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006947fi
6948
6949
6950fi
6951if test -z "$ac_cv_prog_RANLIB"; then
6952 ac_ct_RANLIB=$RANLIB
6953 # Extract the first word of "ranlib", so it can be a program name with args.
6954set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006959else
6960 if test -n "$ac_ct_RANLIB"; then
6961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 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 +00006970 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006972 break 2
6973 fi
6974done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006975done
Reid Spencera773bd52006-08-04 18:18:08 +00006976IFS=$as_save_IFS
6977
6978fi
6979fi
6980ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6983echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006987fi
6988
6989 if test "x$ac_ct_RANLIB" = x; then
6990 RANLIB=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6995whose name does not start with the host triplet. If you think this
6996configuration is useful to you, please write to autoconf@gnu.org." >&5
6997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6998whose name does not start with the host triplet. If you think this
6999configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007000ac_tool_warned=yes ;;
7001esac
7002 RANLIB=$ac_ct_RANLIB
7003 fi
7004else
7005 RANLIB="$ac_cv_prog_RANLIB"
7006fi
7007
Torok Edwin871384f2010-01-26 08:50:50 +00007008if test -n "$ac_tool_prefix"; then
7009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7010set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013if test "${ac_cv_prog_AR+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007015else
7016 if test -n "$AR"; then
7017 ac_cv_prog_AR="$AR" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 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 +00007026 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007028 break 2
7029 fi
7030done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007031done
Torok Edwin871384f2010-01-26 08:50:50 +00007032IFS=$as_save_IFS
7033
7034fi
7035fi
7036AR=$ac_cv_prog_AR
7037if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 { echo "$as_me:$LINENO: result: $AR" >&5
7039echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007043fi
7044
7045
7046fi
7047if test -z "$ac_cv_prog_AR"; then
7048 ac_ct_AR=$AR
7049 # Extract the first word of "ar", so it can be a program name with args.
7050set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007055else
7056 if test -n "$ac_ct_AR"; then
7057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7058else
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 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 +00007066 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007068 break 2
7069 fi
7070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071done
Torok Edwin871384f2010-01-26 08:50:50 +00007072IFS=$as_save_IFS
7073
7074fi
7075fi
7076ac_ct_AR=$ac_cv_prog_ac_ct_AR
7077if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7079echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 { echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007083fi
7084
7085 if test "x$ac_ct_AR" = x; then
7086 AR="false"
7087 else
7088 case $cross_compiling:$ac_tool_warned in
7089yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7091whose name does not start with the host triplet. If you think this
7092configuration is useful to you, please write to autoconf@gnu.org." >&5
7093echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7094whose name does not start with the host triplet. If you think this
7095configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007096ac_tool_warned=yes ;;
7097esac
7098 AR=$ac_ct_AR
7099 fi
7100else
7101 AR="$ac_cv_prog_AR"
7102fi
7103
Reid Spencera773bd52006-08-04 18:18:08 +00007104# Extract the first word of "rm", so it can be a program name with args.
7105set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108if test "${ac_cv_path_RM+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007110else
7111 case $RM in
7112 [\\/]* | ?:[\\/]*)
7113 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7114 ;;
7115 *)
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 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 +00007123 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007125 break 2
7126 fi
7127done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128done
Reid Spencera773bd52006-08-04 18:18:08 +00007129IFS=$as_save_IFS
7130
7131 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7132 ;;
7133esac
7134fi
7135RM=$ac_cv_path_RM
7136if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: $RM" >&5
7138echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007142fi
7143
7144
7145# Extract the first word of "sed", so it can be a program name with args.
7146set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149if test "${ac_cv_path_SED+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007151else
7152 case $SED in
7153 [\\/]* | ?:[\\/]*)
7154 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7155 ;;
7156 *)
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 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 +00007164 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007166 break 2
7167 fi
7168done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007169done
Reid Spencera773bd52006-08-04 18:18:08 +00007170IFS=$as_save_IFS
7171
7172 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7173 ;;
7174esac
7175fi
7176SED=$ac_cv_path_SED
7177if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 { echo "$as_me:$LINENO: result: $SED" >&5
7179echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 { echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007183fi
7184
7185
7186# Extract the first word of "tar", so it can be a program name with args.
7187set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190if test "${ac_cv_path_TAR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007192else
7193 case $TAR in
7194 [\\/]* | ?:[\\/]*)
7195 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7196 ;;
7197 *)
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 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 +00007205 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007207 break 2
7208 fi
7209done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210done
Reid Spencera773bd52006-08-04 18:18:08 +00007211IFS=$as_save_IFS
7212
7213 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7214 ;;
7215esac
7216fi
7217TAR=$ac_cv_path_TAR
7218if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 { echo "$as_me:$LINENO: result: $TAR" >&5
7220echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 { echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007224fi
7225
7226
7227# Extract the first word of "pwd", so it can be a program name with args.
7228set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231if test "${ac_cv_path_BINPWD+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007233else
7234 case $BINPWD in
7235 [\\/]* | ?:[\\/]*)
7236 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7237 ;;
7238 *)
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 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 +00007246 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007248 break 2
7249 fi
7250done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251done
Reid Spencera773bd52006-08-04 18:18:08 +00007252IFS=$as_save_IFS
7253
7254 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7255 ;;
7256esac
7257fi
7258BINPWD=$ac_cv_path_BINPWD
7259if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7261echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 { echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007265fi
7266
7267
7268
7269# Extract the first word of "Graphviz", so it can be a program name with args.
7270set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007275else
7276 case $GRAPHVIZ in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 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 +00007288 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007290 break 2
7291 fi
7292done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293done
Reid Spencera773bd52006-08-04 18:18:08 +00007294IFS=$as_save_IFS
7295
7296 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7297 ;;
7298esac
7299fi
7300GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7301if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7303echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 { echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007307fi
7308
7309
7310if test "$GRAPHVIZ" != "echo Graphviz" ; then
7311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007312cat >>confdefs.h <<\_ACEOF
7313#define HAVE_GRAPHVIZ 1
7314_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007315
Jeff Cohen28783c32007-01-12 18:22:38 +00007316 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007317 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7318 fi
7319
7320cat >>confdefs.h <<_ACEOF
7321#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7322_ACEOF
7323
7324fi
7325# Extract the first word of "dot", so it can be a program name with args.
7326set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329if test "${ac_cv_path_DOT+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007331else
7332 case $DOT in
7333 [\\/]* | ?:[\\/]*)
7334 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7335 ;;
7336 *)
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 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 +00007344 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007346 break 2
7347 fi
7348done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007349done
Reid Spencera773bd52006-08-04 18:18:08 +00007350IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7353 ;;
7354esac
7355fi
7356DOT=$ac_cv_path_DOT
7357if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 { echo "$as_me:$LINENO: result: $DOT" >&5
7359echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 { echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007363fi
7364
7365
7366if test "$DOT" != "echo dot" ; then
7367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368cat >>confdefs.h <<\_ACEOF
7369#define HAVE_DOT 1
7370_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007371
Jeff Cohen28783c32007-01-12 18:22:38 +00007372 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007373 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7374 fi
7375
7376cat >>confdefs.h <<_ACEOF
7377#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7378_ACEOF
7379
7380fi
David Greenef0b9eff2009-07-09 17:16:26 +00007381# Extract the first word of "fdp", so it can be a program name with args.
7382set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385if test "${ac_cv_path_FDP+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007387else
7388 case $FDP in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7391 ;;
7392 *)
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 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 +00007400 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007402 break 2
7403 fi
7404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405done
David Greenef0b9eff2009-07-09 17:16:26 +00007406IFS=$as_save_IFS
7407
7408 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7409 ;;
7410esac
7411fi
7412FDP=$ac_cv_path_FDP
7413if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: $FDP" >&5
7415echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 { echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007419fi
7420
7421
7422if test "$FDP" != "echo fdp" ; then
7423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424cat >>confdefs.h <<\_ACEOF
7425#define HAVE_FDP 1
7426_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007427
7428 if test "$llvm_cv_os_type" = "MingW" ; then
7429 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430 fi
7431
7432cat >>confdefs.h <<_ACEOF
7433#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7434_ACEOF
7435
7436fi
7437# Extract the first word of "neato", so it can be a program name with args.
7438set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_NEATO+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007443else
7444 case $NEATO in
7445 [\\/]* | ?:[\\/]*)
7446 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7447 ;;
7448 *)
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 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 +00007456 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007458 break 2
7459 fi
7460done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461done
David Greenef0b9eff2009-07-09 17:16:26 +00007462IFS=$as_save_IFS
7463
7464 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7465 ;;
7466esac
7467fi
7468NEATO=$ac_cv_path_NEATO
7469if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 { echo "$as_me:$LINENO: result: $NEATO" >&5
7471echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 { echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007475fi
7476
7477
7478if test "$NEATO" != "echo neato" ; then
7479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480cat >>confdefs.h <<\_ACEOF
7481#define HAVE_NEATO 1
7482_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007483
7484 if test "$llvm_cv_os_type" = "MingW" ; then
7485 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486 fi
7487
7488cat >>confdefs.h <<_ACEOF
7489#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7490_ACEOF
7491
7492fi
7493# Extract the first word of "twopi", so it can be a program name with args.
7494set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_TWOPI+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007499else
7500 case $TWOPI in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 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 +00007512 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007514 break 2
7515 fi
7516done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007517done
David Greenef0b9eff2009-07-09 17:16:26 +00007518IFS=$as_save_IFS
7519
7520 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7521 ;;
7522esac
7523fi
7524TWOPI=$ac_cv_path_TWOPI
7525if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7527echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007531fi
7532
7533
7534if test "$TWOPI" != "echo twopi" ; then
7535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536cat >>confdefs.h <<\_ACEOF
7537#define HAVE_TWOPI 1
7538_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007539
7540 if test "$llvm_cv_os_type" = "MingW" ; then
7541 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542 fi
7543
7544cat >>confdefs.h <<_ACEOF
7545#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7546_ACEOF
7547
7548fi
7549# Extract the first word of "circo", so it can be a program name with args.
7550set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553if test "${ac_cv_path_CIRCO+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007555else
7556 case $CIRCO in
7557 [\\/]* | ?:[\\/]*)
7558 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7559 ;;
7560 *)
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 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 +00007568 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007570 break 2
7571 fi
7572done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573done
David Greenef0b9eff2009-07-09 17:16:26 +00007574IFS=$as_save_IFS
7575
7576 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7577 ;;
7578esac
7579fi
7580CIRCO=$ac_cv_path_CIRCO
7581if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7583echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585 { echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007587fi
7588
7589
7590if test "$CIRCO" != "echo circo" ; then
7591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592cat >>confdefs.h <<\_ACEOF
7593#define HAVE_CIRCO 1
7594_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007595
7596 if test "$llvm_cv_os_type" = "MingW" ; then
7597 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598 fi
7599
7600cat >>confdefs.h <<_ACEOF
7601#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7602_ACEOF
7603
7604fi
Reid Spencera773bd52006-08-04 18:18:08 +00007605for ac_prog in gv gsview32
7606do
7607 # Extract the first word of "$ac_prog", so it can be a program name with args.
7608set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611if test "${ac_cv_path_GV+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007613else
7614 case $GV in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 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 +00007626 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007628 break 2
7629 fi
7630done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631done
Reid Spencera773bd52006-08-04 18:18:08 +00007632IFS=$as_save_IFS
7633
7634 ;;
7635esac
7636fi
7637GV=$ac_cv_path_GV
7638if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 { echo "$as_me:$LINENO: result: $GV" >&5
7640echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 { echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007644fi
7645
7646
7647 test -n "$GV" && break
7648done
7649test -n "$GV" || GV="echo gv"
7650
7651if test "$GV" != "echo gv" ; then
7652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653cat >>confdefs.h <<\_ACEOF
7654#define HAVE_GV 1
7655_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007656
Jeff Cohen28783c32007-01-12 18:22:38 +00007657 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007658 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 fi
7660
7661cat >>confdefs.h <<_ACEOF
7662#define LLVM_PATH_GV "$GV${EXEEXT}"
7663_ACEOF
7664
7665fi
7666# Extract the first word of "dotty", so it can be a program name with args.
7667set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7670if test "${ac_cv_path_DOTTY+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007672else
7673 case $DOTTY in
7674 [\\/]* | ?:[\\/]*)
7675 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7676 ;;
7677 *)
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 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 +00007685 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007687 break 2
7688 fi
7689done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690done
Reid Spencera773bd52006-08-04 18:18:08 +00007691IFS=$as_save_IFS
7692
7693 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7694 ;;
7695esac
7696fi
7697DOTTY=$ac_cv_path_DOTTY
7698if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7700echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702 { echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007704fi
7705
7706
7707if test "$DOTTY" != "echo dotty" ; then
7708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709cat >>confdefs.h <<\_ACEOF
7710#define HAVE_DOTTY 1
7711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007712
Jeff Cohen28783c32007-01-12 18:22:38 +00007713 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007714 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715 fi
7716
7717cat >>confdefs.h <<_ACEOF
7718#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7719_ACEOF
7720
7721fi
7722
7723
7724# Extract the first word of "perl", so it can be a program name with args.
7725set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728if test "${ac_cv_path_PERL+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007730else
7731 case $PERL in
7732 [\\/]* | ?:[\\/]*)
7733 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7734 ;;
7735 *)
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 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 +00007743 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007745 break 2
7746 fi
7747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748done
Reid Spencera773bd52006-08-04 18:18:08 +00007749IFS=$as_save_IFS
7750
7751 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7752 ;;
7753esac
7754fi
7755PERL=$ac_cv_path_PERL
7756if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 { echo "$as_me:$LINENO: result: $PERL" >&5
7758echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760 { echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007762fi
7763
7764
7765if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7767echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007768 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769 { echo "$as_me:$LINENO: result: yes" >&5
7770echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007771 else
7772 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007773 { echo "$as_me:$LINENO: result: not found" >&5
7774echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007775 fi
7776fi
7777
7778
7779if test x"$PERL" = xnone; then
7780 HAVE_PERL=0
7781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7783echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7784 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007785else
7786 HAVE_PERL=1
7787
7788fi
7789
7790# Find a good install program. We prefer a C program (faster),
7791# so one script is as good as another. But avoid the broken or
7792# incompatible versions:
7793# SysV /etc/install, /usr/sbin/install
7794# SunOS /usr/etc/install
7795# IRIX /sbin/install
7796# AIX /bin/install
7797# AmigaOS /C/install, which installs bootblocks on floppy discs
7798# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7799# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7800# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7801# OS/2's system install, which has a completely different semantic
7802# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7804echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007805if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806if test "${ac_cv_path_install+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007808else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 # Account for people who put trailing slashes in PATH elements.
7815case $as_dir/ in
7816 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007819 /usr/ucb/* ) ;;
7820 *)
7821 # OSF1 and SCO ODT 3.0 have their own names for install.
7822 # Don't use installbsd from OSF since it installs stuff as root
7823 # by default.
7824 for ac_prog in ginstall scoinst install; do
7825 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826 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 +00007827 if test $ac_prog = install &&
7828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7829 # AIX install. It has an incompatible calling convention.
7830 :
7831 elif test $ac_prog = install &&
7832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7833 # program-specific install script used by HP pwplus--don't use.
7834 :
7835 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7837 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007838 fi
7839 fi
7840 done
7841 done
7842 ;;
7843esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007844done
Reid Spencera773bd52006-08-04 18:18:08 +00007845IFS=$as_save_IFS
7846
7847
7848fi
7849 if test "${ac_cv_path_install+set}" = set; then
7850 INSTALL=$ac_cv_path_install
7851 else
7852 # As a last resort, use the slow shell script. Don't cache a
7853 # value for INSTALL within a source directory, because that will
7854 # break other packages using the cache if that directory is
7855 # removed, or if the value is a relative name.
7856 INSTALL=$ac_install_sh
7857 fi
7858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7860echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007861
7862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7863# It thinks the first close brace ends the variable substitution.
7864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7865
7866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7867
7868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7869
7870
7871# Extract the first word of "bzip2", so it can be a program name with args.
7872set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7875if test "${ac_cv_path_BZIP2+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007877else
7878 case $BZIP2 in
7879 [\\/]* | ?:[\\/]*)
7880 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7881 ;;
7882 *)
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 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 +00007890 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007892 break 2
7893 fi
7894done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895done
Reid Spencera773bd52006-08-04 18:18:08 +00007896IFS=$as_save_IFS
7897
Reid Spencera773bd52006-08-04 18:18:08 +00007898 ;;
7899esac
7900fi
7901BZIP2=$ac_cv_path_BZIP2
7902if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7904echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 { echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007908fi
7909
7910
7911# Extract the first word of "doxygen", so it can be a program name with args.
7912set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915if test "${ac_cv_path_DOXYGEN+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007917else
7918 case $DOXYGEN in
7919 [\\/]* | ?:[\\/]*)
7920 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7921 ;;
7922 *)
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 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 +00007930 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007932 break 2
7933 fi
7934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935done
Reid Spencera773bd52006-08-04 18:18:08 +00007936IFS=$as_save_IFS
7937
Reid Spencera773bd52006-08-04 18:18:08 +00007938 ;;
7939esac
7940fi
7941DOXYGEN=$ac_cv_path_DOXYGEN
7942if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7944echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 { echo "$as_me:$LINENO: result: no" >&5
7947echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007948fi
7949
7950
Reid Spencera773bd52006-08-04 18:18:08 +00007951# Extract the first word of "groff", so it can be a program name with args.
7952set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955if test "${ac_cv_path_GROFF+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007957else
7958 case $GROFF in
7959 [\\/]* | ?:[\\/]*)
7960 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7961 ;;
7962 *)
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 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 +00007970 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007972 break 2
7973 fi
7974done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975done
Reid Spencera773bd52006-08-04 18:18:08 +00007976IFS=$as_save_IFS
7977
Reid Spencera773bd52006-08-04 18:18:08 +00007978 ;;
7979esac
7980fi
7981GROFF=$ac_cv_path_GROFF
7982if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 { echo "$as_me:$LINENO: result: $GROFF" >&5
7984echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986 { echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007988fi
7989
7990
7991# Extract the first word of "gzip", so it can be a program name with args.
7992set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7995if test "${ac_cv_path_GZIP+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007997else
7998 case $GZIP in
7999 [\\/]* | ?:[\\/]*)
8000 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8001 ;;
8002 *)
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006 IFS=$as_save_IFS
8007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 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 +00008010 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008012 break 2
8013 fi
8014done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008015done
Reid Spencera773bd52006-08-04 18:18:08 +00008016IFS=$as_save_IFS
8017
Reid Spencera773bd52006-08-04 18:18:08 +00008018 ;;
8019esac
8020fi
8021GZIP=$ac_cv_path_GZIP
8022if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008023 { echo "$as_me:$LINENO: result: $GZIP" >&5
8024echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 { echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008028fi
8029
8030
8031# Extract the first word of "pod2html", so it can be a program name with args.
8032set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8035if test "${ac_cv_path_POD2HTML+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008037else
8038 case $POD2HTML in
8039 [\\/]* | ?:[\\/]*)
8040 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8041 ;;
8042 *)
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 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 +00008050 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008052 break 2
8053 fi
8054done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055done
Reid Spencera773bd52006-08-04 18:18:08 +00008056IFS=$as_save_IFS
8057
Reid Spencera773bd52006-08-04 18:18:08 +00008058 ;;
8059esac
8060fi
8061POD2HTML=$ac_cv_path_POD2HTML
8062if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8064echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066 { echo "$as_me:$LINENO: result: no" >&5
8067echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008068fi
8069
8070
8071# Extract the first word of "pod2man", so it can be a program name with args.
8072set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8075if test "${ac_cv_path_POD2MAN+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008077else
8078 case $POD2MAN in
8079 [\\/]* | ?:[\\/]*)
8080 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8081 ;;
8082 *)
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 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 +00008090 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008092 break 2
8093 fi
8094done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095done
Reid Spencera773bd52006-08-04 18:18:08 +00008096IFS=$as_save_IFS
8097
Reid Spencera773bd52006-08-04 18:18:08 +00008098 ;;
8099esac
8100fi
8101POD2MAN=$ac_cv_path_POD2MAN
8102if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008103 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8104echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106 { echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008108fi
8109
8110
8111# Extract the first word of "runtest", so it can be a program name with args.
8112set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8115if test "${ac_cv_path_RUNTEST+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008117else
8118 case $RUNTEST in
8119 [\\/]* | ?:[\\/]*)
8120 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8121 ;;
8122 *)
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 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 +00008130 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008132 break 2
8133 fi
8134done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135done
Reid Spencera773bd52006-08-04 18:18:08 +00008136IFS=$as_save_IFS
8137
Reid Spencera773bd52006-08-04 18:18:08 +00008138 ;;
8139esac
8140fi
8141RUNTEST=$ac_cv_path_RUNTEST
8142if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8144echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146 { echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008148fi
8149
8150
8151
8152no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8154echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008155
8156# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008158 withval=$with_tclinclude; with_tclinclude=${withval}
8159else
8160 with_tclinclude=''
8161fi
8162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163if test "${ac_cv_path_tclsh+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008165else
8166
8167if test x"${with_tclinclude}" != x ; then
8168 if test -f ${with_tclinclude}/tclsh ; then
8169 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8170 elif test -f ${with_tclinclude}/src/tclsh ; then
8171 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8172 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008173 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8174echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8175 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008176 fi
8177fi
Torok Edwin871384f2010-01-26 08:50:50 +00008178fi
8179
Reid Spencera773bd52006-08-04 18:18:08 +00008180
8181if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182 { echo "$as_me:$LINENO: result: none" >&5
8183echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008184 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
8185do
8186 # Extract the first word of "$ac_prog", so it can be a program name with args.
8187set dummy $ac_prog; 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_TCLSH+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008192else
8193 case $TCLSH in
8194 [\\/]* | ?:[\\/]*)
8195 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$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
8213 ;;
8214esac
8215fi
8216TCLSH=$ac_cv_path_TCLSH
8217if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8219echo "${ECHO_T}$TCLSH" >&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 test -n "$TCLSH" && break
8227done
8228
8229 if test x"${TCLSH}" = x ; then
8230 ac_cv_path_tclsh='';
8231 else
8232 ac_cv_path_tclsh="${TCLSH}";
8233 fi
8234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8236echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008237 TCLSH="${ac_cv_path_tclsh}"
8238
8239fi
8240
Reid Spencera773bd52006-08-04 18:18:08 +00008241# Extract the first word of "zip", so it can be a program name with args.
8242set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245if test "${ac_cv_path_ZIP+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008247else
8248 case $ZIP in
8249 [\\/]* | ?:[\\/]*)
8250 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8251 ;;
8252 *)
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254for as_dir in $PATH
8255do
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 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 +00008260 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008262 break 2
8263 fi
8264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265done
Reid Spencera773bd52006-08-04 18:18:08 +00008266IFS=$as_save_IFS
8267
Reid Spencera773bd52006-08-04 18:18:08 +00008268 ;;
8269esac
8270fi
8271ZIP=$ac_cv_path_ZIP
8272if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273 { echo "$as_me:$LINENO: result: $ZIP" >&5
8274echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276 { echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008278fi
8279
8280
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008281for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008282do
8283 # Extract the first word of "$ac_prog", so it can be a program name with args.
8284set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287if test "${ac_cv_path_OCAMLC+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008289else
8290 case $OCAMLC in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8293 ;;
8294 *)
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 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 +00008302 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008304 break 2
8305 fi
8306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008308IFS=$as_save_IFS
8309
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008310 ;;
8311esac
8312fi
8313OCAMLC=$ac_cv_path_OCAMLC
8314if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8316echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318 { echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008320fi
8321
8322
Gordon Henriksene7072162008-03-07 18:20:01 +00008323 test -n "$OCAMLC" && break
8324done
8325
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008326for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008327do
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008334else
8335 case $OCAMLOPT in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8338 ;;
8339 *)
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341for as_dir in $PATH
8342do
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 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 +00008347 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008349 break 2
8350 fi
8351done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008353IFS=$as_save_IFS
8354
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008355 ;;
8356esac
8357fi
8358OCAMLOPT=$ac_cv_path_OCAMLOPT
8359if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8361echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363 { echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008365fi
8366
8367
Gordon Henriksene7072162008-03-07 18:20:01 +00008368 test -n "$OCAMLOPT" && break
8369done
8370
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008371for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008372do
8373 # Extract the first word of "$ac_prog", so it can be a program name with args.
8374set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8377if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008379else
8380 case $OCAMLDEP in
8381 [\\/]* | ?:[\\/]*)
8382 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8383 ;;
8384 *)
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 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 +00008392 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008394 break 2
8395 fi
8396done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008398IFS=$as_save_IFS
8399
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008400 ;;
8401esac
8402fi
8403OCAMLDEP=$ac_cv_path_OCAMLDEP
8404if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8406echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408 { echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008410fi
8411
8412
Gordon Henriksene7072162008-03-07 18:20:01 +00008413 test -n "$OCAMLDEP" && break
8414done
8415
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008416for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008417do
8418 # Extract the first word of "$ac_prog", so it can be a program name with args.
8419set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8422if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008424else
8425 case $OCAMLDOC in
8426 [\\/]* | ?:[\\/]*)
8427 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8428 ;;
8429 *)
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431for as_dir in $PATH
8432do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 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 +00008437 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008439 break 2
8440 fi
8441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008443IFS=$as_save_IFS
8444
8445 ;;
8446esac
8447fi
8448OCAMLDOC=$ac_cv_path_OCAMLDOC
8449if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8451echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008453 { echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008455fi
8456
8457
8458 test -n "$OCAMLDOC" && break
8459done
8460
Torok Edwincc499a42008-10-22 09:56:27 +00008461for ac_prog in gas as
8462do
8463 # Extract the first word of "$ac_prog", so it can be a program name with args.
8464set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8467if test "${ac_cv_path_GAS+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008469else
8470 case $GAS in
8471 [\\/]* | ?:[\\/]*)
8472 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8473 ;;
8474 *)
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 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 +00008482 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008484 break 2
8485 fi
8486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008487done
Torok Edwincc499a42008-10-22 09:56:27 +00008488IFS=$as_save_IFS
8489
8490 ;;
8491esac
8492fi
8493GAS=$ac_cv_path_GAS
8494if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495 { echo "$as_me:$LINENO: result: $GAS" >&5
8496echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498 { echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008500fi
8501
8502
8503 test -n "$GAS" && break
8504done
8505
Reid Spencera773bd52006-08-04 18:18:08 +00008506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8508echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8509if test "${llvm_cv_link_use_r+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008511else
8512 ac_ext=c
8513ac_cpp='$CPP $CPPFLAGS'
8514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516ac_compiler_gnu=$ac_cv_c_compiler_gnu
8517
8518 oldcflags="$CFLAGS"
8519 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520 cat >conftest.$ac_ext <<_ACEOF
8521/* confdefs.h. */
8522_ACEOF
8523cat confdefs.h >>conftest.$ac_ext
8524cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008525/* end confdefs.h. */
8526
8527int
8528main ()
8529{
8530int main() { return 0; }
8531 ;
8532 return 0;
8533}
8534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535rm -f conftest.$ac_objext conftest$ac_exeext
8536if { (ac_try="$ac_link"
8537case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540esac
8541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
8554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_try") 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008569 llvm_cv_link_use_r=yes
8570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008571 echo "$as_me: failed program was:" >&5
8572sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576
Bill Wendlingebcceee2009-04-18 11:20:33 +00008577rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008578 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008579 CFLAGS="$oldcflags"
8580 ac_ext=c
8581ac_cpp='$CPP $CPPFLAGS'
8582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584ac_compiler_gnu=$ac_cv_c_compiler_gnu
8585
8586
8587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8589echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008590if test "$llvm_cv_link_use_r" = yes ; then
8591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008592cat >>confdefs.h <<\_ACEOF
8593#define HAVE_LINK_R 1
8594_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008595
8596 fi
8597
8598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8600echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8601if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008603else
8604 ac_ext=c
8605ac_cpp='$CPP $CPPFLAGS'
8606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609
8610 oldcflags="$CFLAGS"
8611 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008612 cat >conftest.$ac_ext <<_ACEOF
8613/* confdefs.h. */
8614_ACEOF
8615cat confdefs.h >>conftest.$ac_ext
8616cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008617/* end confdefs.h. */
8618
8619int
8620main ()
8621{
8622int main() { return 0; }
8623 ;
8624 return 0;
8625}
8626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (ac_try="$ac_link"
8629case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_link") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8642 { (case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645esac
8646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_try") 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 { (case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_try") 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008661 llvm_cv_link_use_export_dynamic=yes
8662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663 echo "$as_me: failed program was:" >&5
8664sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008668
Bill Wendlingebcceee2009-04-18 11:20:33 +00008669rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008671 CFLAGS="$oldcflags"
8672 ac_ext=c
8673ac_cpp='$CPP $CPPFLAGS'
8674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676ac_compiler_gnu=$ac_cv_c_compiler_gnu
8677
8678
8679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8681echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008682if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684cat >>confdefs.h <<\_ACEOF
8685#define HAVE_LINK_EXPORT_DYNAMIC 1
8686_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008687
8688 fi
8689
8690
Reid Spencera773bd52006-08-04 18:18:08 +00008691
8692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8694echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8695if test "${ac_cv_c_const+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698 cat >conftest.$ac_ext <<_ACEOF
8699/* confdefs.h. */
8700_ACEOF
8701cat confdefs.h >>conftest.$ac_ext
8702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008703/* end confdefs.h. */
8704
8705int
8706main ()
8707{
8708/* FIXME: Include the comments suggested by Paul. */
8709#ifndef __cplusplus
8710 /* Ultrix mips cc rejects this. */
8711 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008712 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008713 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714 char const *const *ccp;
8715 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008716 /* NEC SVR4.0.2 mips cc rejects this. */
8717 struct point {int x, y;};
8718 static struct point const zero = {0,0};
8719 /* AIX XL C 1.02.0.0 rejects this.
8720 It does not let you subtract one const X* pointer from another in
8721 an arm of an if-expression whose if-part is not a constant
8722 expression */
8723 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008725 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726 ++ccp;
8727 p = (char**) ccp;
8728 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008729 { /* SCO 3.2v4 cc rejects this. */
8730 char *t;
8731 char const *s = 0 ? (char *) 0 : (char const *) 0;
8732
8733 *t++ = 0;
8734 if (s) return 0;
8735 }
8736 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8737 int x[] = {25, 17};
8738 const int *foo = &x[0];
8739 ++foo;
8740 }
8741 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8742 typedef const int *iptr;
8743 iptr p = 0;
8744 ++p;
8745 }
8746 { /* AIX XL C 1.02.0.0 rejects this saying
8747 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8748 struct s { int j; const int *ap[3]; };
8749 struct s *b; b->j = 5;
8750 }
8751 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8752 const int foo = 10;
8753 if (!foo) return 0;
8754 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008755 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008756#endif
8757
8758 ;
8759 return 0;
8760}
8761_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008762rm -f conftest.$ac_objext
8763if { (ac_try="$ac_compile"
8764case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767esac
8768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780esac
8781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_try") 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest.$ac_objext'
8787 { (case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_try") 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008796 ac_cv_c_const=yes
8797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008798 echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008803
Reid Spencera773bd52006-08-04 18:18:08 +00008804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8807echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008808if test $ac_cv_c_const = no; then
8809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008810cat >>confdefs.h <<\_ACEOF
8811#define const
8812_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008813
8814fi
8815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816
8817
8818
8819
8820
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008821ac_header_dirent=no
8822for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008823 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8824{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8825echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008834/* end confdefs.h. */
8835#include <sys/types.h>
8836#include <$ac_hdr>
8837
8838int
8839main ()
8840{
8841if ((DIR *) 0)
8842return 0;
8843 ;
8844 return 0;
8845}
8846_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008847rm -f conftest.$ac_objext
8848if { (ac_try="$ac_compile"
8849case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875esac
8876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_try") 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008881 eval "$as_ac_Header=yes"
8882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008883 echo "$as_me: failed program was:" >&5
8884sed 's/^/| /' conftest.$ac_ext >&5
8885
8886 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008888
Reid Spencera773bd52006-08-04 18:18:08 +00008889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008891ac_res=`eval echo '${'$as_ac_Header'}'`
8892 { echo "$as_me:$LINENO: result: $ac_res" >&5
8893echo "${ECHO_T}$ac_res" >&6; }
8894if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008895 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008896#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008897_ACEOF
8898
8899ac_header_dirent=$ac_hdr; break
8900fi
8901
8902done
8903# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8904if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008905 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8906echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8907if test "${ac_cv_search_opendir+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008909else
8910 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008911cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008916/* end confdefs.h. */
8917
Reid Spencera773bd52006-08-04 18:18:08 +00008918/* Override any GCC internal prototype to avoid an error.
8919 Use char because int might match the return type of a GCC
8920 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008921#ifdef __cplusplus
8922extern "C"
8923#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008924char opendir ();
8925int
8926main ()
8927{
Reid Spencera773bd52006-08-04 18:18:08 +00008928return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008929 ;
8930 return 0;
8931}
8932_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008933for ac_lib in '' dir; do
8934 if test -z "$ac_lib"; then
8935 ac_res="none required"
8936 else
8937 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008939 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008940 rm -f conftest.$ac_objext conftest$ac_exeext
8941if { (ac_try="$ac_link"
8942case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945esac
8946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_link") 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8955 { (case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_try") 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; } &&
8964 { ac_try='test -s conftest$ac_exeext'
8965 { (case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968esac
8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_try") 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008974 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008975else
8976 echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
8979
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008981
Bill Wendlingebcceee2009-04-18 11:20:33 +00008982rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008983 conftest$ac_exeext
8984 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008985 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008986fi
John Criswell7a73b802003-06-30 21:59:07 +00008987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008988if test "${ac_cv_search_opendir+set}" = set; then
8989 :
Reid Spencera773bd52006-08-04 18:18:08 +00008990else
8991 ac_cv_search_opendir=no
8992fi
8993rm conftest.$ac_ext
8994LIBS=$ac_func_search_save_LIBS
8995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008996{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8997echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008998ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008999if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009001
Reid Spencera773bd52006-08-04 18:18:08 +00009002fi
9003
9004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009005 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9006echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9007if test "${ac_cv_search_opendir+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009009else
9010 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009011cat >conftest.$ac_ext <<_ACEOF
9012/* confdefs.h. */
9013_ACEOF
9014cat confdefs.h >>conftest.$ac_ext
9015cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009016/* end confdefs.h. */
9017
9018/* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021#ifdef __cplusplus
9022extern "C"
9023#endif
9024char opendir ();
9025int
9026main ()
9027{
9028return opendir ();
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033for ac_lib in '' x; do
9034 if test -z "$ac_lib"; then
9035 ac_res="none required"
9036 else
9037 ac_res=-l$ac_lib
9038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9039 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009040 rm -f conftest.$ac_objext conftest$ac_exeext
9041if { (ac_try="$ac_link"
9042case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045esac
9046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_link") 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055 { (case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058esac
9059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_try") 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_try") 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009074 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075else
9076 echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079
Reid Spencera773bd52006-08-04 18:18:08 +00009080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081
Bill Wendlingebcceee2009-04-18 11:20:33 +00009082rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009083 conftest$ac_exeext
9084 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009085 break
9086fi
9087done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009088if test "${ac_cv_search_opendir+set}" = set; then
9089 :
Reid Spencera773bd52006-08-04 18:18:08 +00009090else
9091 ac_cv_search_opendir=no
9092fi
9093rm conftest.$ac_ext
9094LIBS=$ac_func_search_save_LIBS
9095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009096{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9097echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009098ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009099if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9101
9102fi
9103
9104fi
John Criswell7a73b802003-06-30 21:59:07 +00009105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009106
John Criswell7a73b802003-06-30 21:59:07 +00009107for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009108do
9109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115fi
9116ac_res=`eval echo '${'$as_ac_Header'}'`
9117 { echo "$as_me:$LINENO: result: $ac_res" >&5
9118echo "${ECHO_T}$ac_res" >&6; }
9119else
9120 # Is the header compilable?
9121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9123cat >conftest.$ac_ext <<_ACEOF
9124/* confdefs.h. */
9125_ACEOF
9126cat confdefs.h >>conftest.$ac_ext
9127cat >>conftest.$ac_ext <<_ACEOF
9128/* end confdefs.h. */
9129$ac_includes_default
9130#include <$ac_header>
9131_ACEOF
9132rm -f conftest.$ac_objext
9133if { (ac_try="$ac_compile"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_compile") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160esac
9161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_header_compiler=yes
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_header_compiler=no
9172fi
9173
9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176echo "${ECHO_T}$ac_header_compiler" >&6; }
9177
9178# Is the header present?
9179{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9181cat >conftest.$ac_ext <<_ACEOF
9182/* confdefs.h. */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h. */
9187#include <$ac_header>
9188_ACEOF
9189if { (ac_try="$ac_cpp conftest.$ac_ext"
9190case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9193esac
9194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } >/dev/null; then
9202 if test -s conftest.err; then
9203 ac_cpp_err=$ac_c_preproc_warn_flag
9204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9205 else
9206 ac_cpp_err=
9207 fi
9208else
9209 ac_cpp_err=yes
9210fi
9211if test -z "$ac_cpp_err"; then
9212 ac_header_preproc=yes
9213else
9214 echo "$as_me: failed program was:" >&5
9215sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_header_preproc=no
9218fi
9219
9220rm -f conftest.err conftest.$ac_ext
9221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9222echo "${ECHO_T}$ac_header_preproc" >&6; }
9223
9224# So? What about this header?
9225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9226 yes:no: )
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9231 ac_header_preproc=yes
9232 ;;
9233 no:yes:* )
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9246 ( cat <<\_ASBOX
9247## ----------------------------------- ##
9248## Report this to llvmbugs@cs.uiuc.edu ##
9249## ----------------------------------- ##
9250_ASBOX
9251 ) | sed "s/^/$as_me: WARNING: /" >&2
9252 ;;
9253esac
9254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259 eval "$as_ac_Header=\$ac_header_preproc"
9260fi
9261ac_res=`eval echo '${'$as_ac_Header'}'`
9262 { echo "$as_me:$LINENO: result: $ac_res" >&5
9263echo "${ECHO_T}$ac_res" >&6; }
9264
9265fi
9266if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009267 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009269_ACEOF
9270
9271fi
9272
9273done
9274
Reid Spencera773bd52006-08-04 18:18:08 +00009275# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009276if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009277 enableval=$enable_ltdl_install;
9278fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281
9282
9283if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284 INSTALL_LTDL_TRUE=
9285 INSTALL_LTDL_FALSE='#'
9286else
9287 INSTALL_LTDL_TRUE='#'
9288 INSTALL_LTDL_FALSE=
9289fi
9290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009291
9292
9293if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009294 CONVENIENCE_LTDL_TRUE=
9295 CONVENIENCE_LTDL_FALSE='#'
9296else
9297 CONVENIENCE_LTDL_TRUE='#'
9298 CONVENIENCE_LTDL_FALSE=
9299fi
9300
9301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9303echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009304library_names_spec=
9305libname_spec='lib$name'
9306soname_spec=
9307shrext_cmds=".so"
9308postinstall_cmds=
9309postuninstall_cmds=
9310finish_cmds=
9311finish_eval=
9312shlibpath_var=
9313shlibpath_overrides_runpath=unknown
9314version_type=none
9315dynamic_linker="$host_os ld.so"
9316sys_lib_dlsearch_path_spec="/lib /usr/lib"
9317if test "$GCC" = yes; then
9318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9319 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9320 # if the path contains ";" then we assume it to be the separator
9321 # otherwise default to the standard path separator (i.e. ":") - it is
9322 # assumed that no part of a normal pathname contains ";" but that should
9323 # okay in the real world where ";" in dirpaths is itself problematic.
9324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9325 else
9326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9327 fi
9328else
9329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9330fi
9331need_lib_prefix=unknown
9332hardcode_into_libs=no
9333
9334# when you set need_version to no, make sure it does not cause -set_version
9335# flags to be left without arguments
9336need_version=unknown
9337
9338case $host_os in
9339aix3*)
9340 version_type=linux
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9342 shlibpath_var=LIBPATH
9343
9344 # AIX 3 has no versioning support, so we append a major version to the name.
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 ;;
9347
9348aix4* | aix5*)
9349 version_type=linux
9350 need_lib_prefix=no
9351 need_version=no
9352 hardcode_into_libs=yes
9353 if test "$host_cpu" = ia64; then
9354 # AIX 5 supports IA64
9355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 else
9358 # With GCC up to 2.95.x, collect2 would create an import file
9359 # for dependence libraries. The import file would start with
9360 # the line `#! .'. This would cause the generated library to
9361 # depend on `.', always an invalid library. This was fixed in
9362 # development snapshots of GCC prior to 3.0.
9363 case $host_os in
9364 aix4 | aix4.[01] | aix4.[01].*)
9365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9366 echo ' yes '
9367 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9368 :
9369 else
9370 can_build_shared=no
9371 fi
9372 ;;
9373 esac
9374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9375 # soname into executable. Probably we can add versioning support to
9376 # collect2, so additional links can be useful in future.
9377 if test "$aix_use_runtimelinking" = yes; then
9378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9379 # instead of lib<name>.a to let people know that these are not
9380 # typical AIX shared libraries.
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 else
9383 # We preserve .a as extension for shared libraries through AIX4.2
9384 # and later when we are not doing run time linking.
9385 library_names_spec='${libname}${release}.a $libname.a'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 fi
9388 shlibpath_var=LIBPATH
9389 fi
9390 ;;
9391
9392amigaos*)
9393 library_names_spec='$libname.ixlibrary $libname.a'
9394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9395 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'
9396 ;;
9397
9398beos*)
9399 library_names_spec='${libname}${shared_ext}'
9400 dynamic_linker="$host_os ld.so"
9401 shlibpath_var=LIBRARY_PATH
9402 ;;
9403
9404bsdi[45]*)
9405 version_type=linux
9406 need_version=no
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9413 # the default ld.so.conf also contains /usr/contrib/lib and
9414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9415 # libtool to hard-code these into programs
9416 ;;
9417
9418cygwin* | mingw* | pw32*)
9419 version_type=windows
9420 shrext_cmds=".dll"
9421 need_version=no
9422 need_lib_prefix=no
9423
9424 case $GCC,$host_os in
9425 yes,cygwin* | yes,mingw* | yes,pw32*)
9426 library_names_spec='$libname.dll.a'
9427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9428 postinstall_cmds='base_file=`basename \${file}`~
9429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9430 dldir=$destdir/`dirname \$dlpath`~
9431 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009432 $install_prog $dir/$dlname \$dldir/$dlname~
9433 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9435 dlpath=$dir/\$dldll~
9436 $rm \$dlpath'
9437 shlibpath_overrides_runpath=yes
9438
9439 case $host_os in
9440 cygwin*)
9441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9444 ;;
9445 mingw*)
9446 # MinGW DLLs use traditional 'lib' prefix
9447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9449 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9450 # It is most probably a Windows format PATH printed by
9451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9452 # path with ; separators, and with drive letters. We can handle the
9453 # drive letters (cygwin fileutils understands them), so leave them,
9454 # especially as we might pass files found there to a mingw objdump,
9455 # which wouldn't understand a cygwinified path. Ahh.
9456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9457 else
9458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9459 fi
9460 ;;
9461 pw32*)
9462 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009463 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 +00009464 ;;
9465 esac
9466 ;;
9467
9468 *)
9469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9470 ;;
9471 esac
9472 dynamic_linker='Win32 ld.exe'
9473 # FIXME: first we should search . and the directory the executable is in
9474 shlibpath_var=PATH
9475 ;;
9476
9477darwin* | rhapsody*)
9478 dynamic_linker="$host_os dyld"
9479 version_type=darwin
9480 need_lib_prefix=no
9481 need_version=no
9482 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9483 soname_spec='${libname}${release}${major}$shared_ext'
9484 shlibpath_overrides_runpath=yes
9485 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009486 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9488 if test "$GCC" = yes; then
9489 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"`
9490 else
9491 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9492 fi
9493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9494 ;;
9495
9496dgux*)
9497 version_type=linux
9498 need_lib_prefix=no
9499 need_version=no
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 ;;
9504
9505freebsd1*)
9506 dynamic_linker=no
9507 ;;
9508
9509kfreebsd*-gnu)
9510 version_type=linux
9511 need_lib_prefix=no
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=no
9517 hardcode_into_libs=yes
9518 dynamic_linker='GNU ld.so'
9519 ;;
9520
Reid Spencera773bd52006-08-04 18:18:08 +00009521freebsd* | dragonfly*)
9522 # DragonFly does not have aout. When/if they implement a new
9523 # versioning mechanism, adjust this.
9524 if test -x /usr/bin/objformat; then
9525 objformat=`/usr/bin/objformat`
9526 else
9527 case $host_os in
9528 freebsd[123]*) objformat=aout ;;
9529 *) objformat=elf ;;
9530 esac
9531 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009532 version_type=freebsd-$objformat
9533 case $version_type in
9534 freebsd-elf*)
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9536 need_version=no
9537 need_lib_prefix=no
9538 ;;
9539 freebsd-*)
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9541 need_version=yes
9542 ;;
9543 esac
9544 shlibpath_var=LD_LIBRARY_PATH
9545 case $host_os in
9546 freebsd2*)
9547 shlibpath_overrides_runpath=yes
9548 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009549 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550 shlibpath_overrides_runpath=yes
9551 hardcode_into_libs=yes
9552 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009555 shlibpath_overrides_runpath=no
9556 hardcode_into_libs=yes
9557 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009558 freebsd*) # from 4.6 on
9559 shlibpath_overrides_runpath=yes
9560 hardcode_into_libs=yes
9561 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009562 esac
9563 ;;
9564
9565gnu*)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 hardcode_into_libs=yes
9573 ;;
9574
9575hpux9* | hpux10* | hpux11*)
9576 # Give a soname corresponding to the major version so that dld.sl refuses to
9577 # link against other versions.
9578 version_type=sunos
9579 need_lib_prefix=no
9580 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009581 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582 ia64*)
9583 shrext_cmds='.so'
9584 hardcode_into_libs=yes
9585 dynamic_linker="$host_os dld.so"
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9592 else
9593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9594 fi
9595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9596 ;;
9597 hppa*64*)
9598 shrext_cmds='.sl'
9599 hardcode_into_libs=yes
9600 dynamic_linker="$host_os dld.sl"
9601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9607 ;;
9608 *)
9609 shrext_cmds='.sl'
9610 dynamic_linker="$host_os dld.sl"
9611 shlibpath_var=SHLIB_PATH
9612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614 soname_spec='${libname}${release}${shared_ext}$major'
9615 ;;
9616 esac
9617 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9618 postinstall_cmds='chmod 555 $lib'
9619 ;;
9620
Reid Spencera773bd52006-08-04 18:18:08 +00009621interix3*)
9622 version_type=linux
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 shlibpath_overrides_runpath=no
9630 hardcode_into_libs=yes
9631 ;;
9632
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633irix5* | irix6* | nonstopux*)
9634 case $host_os in
9635 nonstopux*) version_type=nonstopux ;;
9636 *)
9637 if test "$lt_cv_prog_gnu_ld" = yes; then
9638 version_type=linux
9639 else
9640 version_type=irix
9641 fi ;;
9642 esac
9643 need_lib_prefix=no
9644 need_version=no
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9647 case $host_os in
9648 irix5* | nonstopux*)
9649 libsuff= shlibsuff=
9650 ;;
9651 *)
9652 case $LD in # libtool.m4 will add one of these switches to LD
9653 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9654 libsuff= shlibsuff= libmagic=32-bit;;
9655 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9656 libsuff=32 shlibsuff=N32 libmagic=N32;;
9657 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9658 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9659 *) libsuff= shlibsuff= libmagic=never-match;;
9660 esac
9661 ;;
9662 esac
9663 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9664 shlibpath_overrides_runpath=no
9665 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9666 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9667 hardcode_into_libs=yes
9668 ;;
9669
9670# No shared lib support for Linux oldld, aout, or coff.
9671linux*oldld* | linux*aout* | linux*coff*)
9672 dynamic_linker=no
9673 ;;
9674
9675# This must be Linux ELF.
9676linux*)
9677 version_type=linux
9678 need_lib_prefix=no
9679 need_version=no
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 shlibpath_overrides_runpath=no
9685 # This implies no fast_install, which is unacceptable.
9686 # Some rework will be needed to allow for fast_install
9687 # before this can be enabled.
9688 hardcode_into_libs=yes
9689
9690 # Append ld.so.conf contents to the search path
9691 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009692 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 +00009693 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9694 fi
9695
9696 # We used to test for /lib/ld.so.1 and disable shared libraries on
9697 # powerpc, because MkLinux only supported shared libraries with the
9698 # GNU dynamic linker. Since this was broken with cross compilers,
9699 # most powerpc-linux boxes support dynamic linking these days and
9700 # people can always --disable-shared, the test was removed, and we
9701 # assume the GNU/Linux dynamic linker is in use.
9702 dynamic_linker='GNU/Linux ld.so'
9703 ;;
9704
9705knetbsd*-gnu)
9706 version_type=linux
9707 need_lib_prefix=no
9708 need_version=no
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=no
9713 hardcode_into_libs=yes
9714 dynamic_linker='GNU ld.so'
9715 ;;
9716
9717netbsd*)
9718 version_type=sunos
9719 need_lib_prefix=no
9720 need_version=no
9721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9724 dynamic_linker='NetBSD (a.out) ld.so'
9725 else
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 dynamic_linker='NetBSD ld.elf_so'
9729 fi
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=yes
9732 hardcode_into_libs=yes
9733 ;;
9734
9735newsos6)
9736 version_type=linux
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 shlibpath_overrides_runpath=yes
9740 ;;
9741
9742nto-qnx*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=yes
9750 ;;
9751
9752openbsd*)
9753 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009754 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9757 case $host_os in
9758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9759 *) need_version=no ;;
9760 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9765 case $host_os in
9766 openbsd2.[89] | openbsd2.[89].*)
9767 shlibpath_overrides_runpath=no
9768 ;;
9769 *)
9770 shlibpath_overrides_runpath=yes
9771 ;;
9772 esac
9773 else
9774 shlibpath_overrides_runpath=yes
9775 fi
9776 ;;
9777
9778os2*)
9779 libname_spec='$name'
9780 shrext_cmds=".dll"
9781 need_lib_prefix=no
9782 library_names_spec='$libname${shared_ext} $libname.a'
9783 dynamic_linker='OS/2 ld.exe'
9784 shlibpath_var=LIBPATH
9785 ;;
9786
9787osf3* | osf4* | osf5*)
9788 version_type=osf
9789 need_lib_prefix=no
9790 need_version=no
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9796 ;;
9797
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798solaris*)
9799 version_type=linux
9800 need_lib_prefix=no
9801 need_version=no
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9806 hardcode_into_libs=yes
9807 # ldd complains unless libraries are executable
9808 postinstall_cmds='chmod +x $lib'
9809 ;;
9810
9811sunos4*)
9812 version_type=sunos
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 shlibpath_overrides_runpath=yes
9817 if test "$with_gnu_ld" = yes; then
9818 need_lib_prefix=no
9819 fi
9820 need_version=yes
9821 ;;
9822
Reid Spencera773bd52006-08-04 18:18:08 +00009823sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 version_type=linux
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 case $host_vendor in
9829 sni)
9830 shlibpath_overrides_runpath=no
9831 need_lib_prefix=no
9832 export_dynamic_flag_spec='${wl}-Blargedynsym'
9833 runpath_var=LD_RUN_PATH
9834 ;;
9835 siemens)
9836 need_lib_prefix=no
9837 ;;
9838 motorola)
9839 need_lib_prefix=no
9840 need_version=no
9841 shlibpath_overrides_runpath=no
9842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9843 ;;
9844 esac
9845 ;;
9846
9847sysv4*MP*)
9848 if test -d /usr/nec ;then
9849 version_type=linux
9850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9851 soname_spec='$libname${shared_ext}.$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 fi
9854 ;;
9855
Reid Spencera773bd52006-08-04 18:18:08 +00009856sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9857 version_type=freebsd-elf
9858 need_lib_prefix=no
9859 need_version=no
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 hardcode_into_libs=yes
9864 if test "$with_gnu_ld" = yes; then
9865 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9866 shlibpath_overrides_runpath=no
9867 else
9868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9869 shlibpath_overrides_runpath=yes
9870 case $host_os in
9871 sco3.2v5*)
9872 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9873 ;;
9874 esac
9875 fi
9876 sys_lib_dlsearch_path_spec='/usr/lib'
9877 ;;
9878
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879uts4*)
9880 version_type=linux
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 ;;
9885
9886*)
9887 dynamic_linker=no
9888 ;;
9889esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009890{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9891echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892test "$dynamic_linker" = no && can_build_shared=no
9893
Reid Spencera773bd52006-08-04 18:18:08 +00009894variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9895if test "$GCC" = yes; then
9896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9897fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898
Reid Spencera773bd52006-08-04 18:18:08 +00009899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009900{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9901echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9902if test "${libltdl_cv_shlibext+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904else
9905
9906module=yes
9907eval libltdl_cv_shlibext=$shrext_cmds
9908
9909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9911echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912if test -n "$libltdl_cv_shlibext"; then
9913
9914cat >>confdefs.h <<_ACEOF
9915#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9916_ACEOF
9917
9918fi
9919
9920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009921{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9922echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9923if test "${libltdl_cv_shlibpath_var+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925else
9926 libltdl_cv_shlibpath_var="$shlibpath_var"
9927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009928{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9929echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930if test -n "$libltdl_cv_shlibpath_var"; then
9931
9932cat >>confdefs.h <<_ACEOF
9933#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9934_ACEOF
9935
9936fi
9937
9938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9940echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9941if test "${libltdl_cv_sys_search_path+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943else
9944 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009946{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9947echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948if test -n "$libltdl_cv_sys_search_path"; then
9949 sys_search_path=
9950 for dir in $libltdl_cv_sys_search_path; do
9951 if test -z "$sys_search_path"; then
9952 sys_search_path="$dir"
9953 else
9954 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9955 fi
9956 done
9957
9958cat >>confdefs.h <<_ACEOF
9959#define LTDL_SYSSEARCHPATH "$sys_search_path"
9960_ACEOF
9961
9962fi
9963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009964{ echo "$as_me:$LINENO: checking for objdir" >&5
9965echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9966if test "${libltdl_cv_objdir+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968else
9969 libltdl_cv_objdir="$objdir"
9970 if test -n "$objdir"; then
9971 :
9972 else
9973 rm -f .libs 2>/dev/null
9974 mkdir .libs 2>/dev/null
9975 if test -d .libs; then
9976 libltdl_cv_objdir=.libs
9977 else
9978 # MS-DOS does not allow filenames that begin with a dot.
9979 libltdl_cv_objdir=_libs
9980 fi
9981 rmdir .libs 2>/dev/null
9982 fi
9983
9984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9986echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987
9988cat >>confdefs.h <<_ACEOF
9989#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9990_ACEOF
9991
9992
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993
9994
9995
9996
9997# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9999echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10000if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002else
10003
10004# These are sane defaults that work on at least a few old systems.
10005# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10006
10007# Character class describing NM global symbol codes.
10008symcode='[BCDEGRST]'
10009
10010# Regexp to match symbols that can be accessed directly from C.
10011sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10012
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013# Transform an extracted symbol line into a proper C declaration
10014lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10015
10016# Transform an extracted symbol line into symbol name and symbol address
10017lt_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'"
10018
10019# Define system-specific variables.
10020case $host_os in
10021aix*)
10022 symcode='[BCDT]'
10023 ;;
10024cygwin* | mingw* | pw32*)
10025 symcode='[ABCDGISTW]'
10026 ;;
10027hpux*) # Its linker distinguishes data from code symbols
10028 if test "$host_cpu" = ia64; then
10029 symcode='[ABCDEGRST]'
10030 fi
10031 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10032 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'"
10033 ;;
10034linux*)
10035 if test "$host_cpu" = ia64; then
10036 symcode='[ABCDGIRSTW]'
10037 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10038 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'"
10039 fi
10040 ;;
10041irix* | nonstopux*)
10042 symcode='[BCDEGRST]'
10043 ;;
10044osf*)
10045 symcode='[BCDEGQRST]'
10046 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010047solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048 symcode='[BDRT]'
10049 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010050sco3.2v5*)
10051 symcode='[DT]'
10052 ;;
10053sysv4.2uw2*)
10054 symcode='[DT]'
10055 ;;
10056sysv5* | sco5v6* | unixware* | OpenUNIX*)
10057 symcode='[ABDT]'
10058 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059sysv4)
10060 symcode='[DFNSTU]'
10061 ;;
10062esac
10063
10064# Handle CRLF in mingw tool chain
10065opt_cr=
10066case $build_os in
10067mingw*)
10068 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10069 ;;
10070esac
10071
10072# If we're using GNU nm, then use its standard symbol codes.
10073case `$NM -V 2>&1` in
10074*GNU* | *'with BFD'*)
10075 symcode='[ABCDGIRSTW]' ;;
10076esac
10077
10078# Try without a prefix undercore, then with it.
10079for ac_symprfx in "" "_"; do
10080
Reid Spencera773bd52006-08-04 18:18:08 +000010081 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10082 symxfrm="\\1 $ac_symprfx\\2 \\2"
10083
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010084 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010085 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 +000010086
10087 # Check to see that the pipe works correctly.
10088 pipe_works=no
10089
10090 rm -f conftest*
10091 cat > conftest.$ac_ext <<EOF
10092#ifdef __cplusplus
10093extern "C" {
10094#endif
10095char nm_test_var;
10096void nm_test_func(){}
10097#ifdef __cplusplus
10098}
10099#endif
10100int main(){nm_test_var='a';nm_test_func();return(0);}
10101EOF
10102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104 (eval $ac_compile) 2>&5
10105 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108 # Now try to grab the symbols.
10109 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010110 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 +000010111 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10112 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115 # Try sorting and uniquifying the output.
10116 if sort "$nlist" | uniq > "$nlist"T; then
10117 mv -f "$nlist"T "$nlist"
10118 else
10119 rm -f "$nlist"T
10120 fi
10121
10122 # Make sure that we snagged all the symbols we need.
10123 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10124 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10125 cat <<EOF > conftest.$ac_ext
10126#ifdef __cplusplus
10127extern "C" {
10128#endif
10129
10130EOF
10131 # Now generate the symbol file.
10132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10133
10134 cat <<EOF >> conftest.$ac_ext
10135#if defined (__STDC__) && __STDC__
10136# define lt_ptr_t void *
10137#else
10138# define lt_ptr_t char *
10139# define const
10140#endif
10141
10142/* The mapping between symbol names and symbols. */
10143const struct {
10144 const char *name;
10145 lt_ptr_t address;
10146}
10147lt_preloaded_symbols[] =
10148{
10149EOF
10150 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10151 cat <<\EOF >> conftest.$ac_ext
10152 {0, (lt_ptr_t) 0}
10153};
10154
10155#ifdef __cplusplus
10156}
10157#endif
10158EOF
10159 # Now try linking the two files.
10160 mv conftest.$ac_objext conftstm.$ac_objext
10161 lt_save_LIBS="$LIBS"
10162 lt_save_CFLAGS="$CFLAGS"
10163 LIBS="conftstm.$ac_objext"
10164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166 (eval $ac_link) 2>&5
10167 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170 pipe_works=yes
10171 fi
10172 LIBS="$lt_save_LIBS"
10173 CFLAGS="$lt_save_CFLAGS"
10174 else
10175 echo "cannot find nm_test_func in $nlist" >&5
10176 fi
10177 else
10178 echo "cannot find nm_test_var in $nlist" >&5
10179 fi
10180 else
10181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10182 fi
10183 else
10184 echo "$progname: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 fi
10187 rm -f conftest* conftst*
10188
10189 # Do not use the global_symbol_pipe unless it works.
10190 if test "$pipe_works" = yes; then
10191 break
10192 else
10193 lt_cv_sys_global_symbol_pipe=
10194 fi
10195done
10196
10197fi
10198
10199if test -z "$lt_cv_sys_global_symbol_pipe"; then
10200 lt_cv_sys_global_symbol_to_cdecl=
10201fi
10202if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010203 { echo "$as_me:$LINENO: result: failed" >&5
10204echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010206 { echo "$as_me:$LINENO: result: ok" >&5
10207echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208fi
10209
10210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010211{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10212echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10213if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215else
10216 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10217 libltdl_cv_preloaded_symbols=yes
10218 else
10219 libltdl_cv_preloaded_symbols=no
10220 fi
10221
10222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010223{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10224echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010227cat >>confdefs.h <<\_ACEOF
10228#define HAVE_PRELOADED_SYMBOLS 1
10229_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230
10231fi
10232
10233LIBADD_DL=
10234
10235ac_ext=c
10236ac_cpp='$CPP $CPPFLAGS'
10237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240
10241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010242{ echo "$as_me:$LINENO: checking for shl_load" >&5
10243echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10244if test "${ac_cv_func_shl_load+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246else
10247 cat >conftest.$ac_ext <<_ACEOF
10248/* confdefs.h. */
10249_ACEOF
10250cat confdefs.h >>conftest.$ac_ext
10251cat >>conftest.$ac_ext <<_ACEOF
10252/* end confdefs.h. */
10253/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10255#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010257/* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char shl_load (); below.
10259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10260 <limits.h> exists even on freestanding compilers. */
10261
10262#ifdef __STDC__
10263# include <limits.h>
10264#else
10265# include <assert.h>
10266#endif
10267
10268#undef shl_load
10269
10270/* Override any GCC internal prototype to avoid an error.
10271 Use char because int might match the return type of a GCC
10272 builtin and then its argument prototype would still apply. */
10273#ifdef __cplusplus
10274extern "C"
10275#endif
10276char shl_load ();
10277/* The GNU C library defines this for functions which it implements
10278 to always fail with ENOSYS. Some functions are actually named
10279 something starting with __ and the normal name is an alias. */
10280#if defined __stub_shl_load || defined __stub___shl_load
10281choke me
10282#endif
10283
10284int
10285main ()
10286{
10287return shl_load ();
10288 ;
10289 return 0;
10290}
10291_ACEOF
10292rm -f conftest.$ac_objext conftest$ac_exeext
10293if { (ac_try="$ac_link"
10294case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>conftest.er1
10300 ac_status=$?
10301 grep -v '^ *+' conftest.er1 >conftest.err
10302 rm -f conftest.er1
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10307 { (case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310esac
10311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_try") 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320esac
10321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_try") 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_cv_func_shl_load=yes
10327else
10328 echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_cv_func_shl_load=no
10332fi
10333
10334rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336fi
10337{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10338echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10339if test $ac_cv_func_shl_load = yes; then
10340
10341cat >>confdefs.h <<\_ACEOF
10342#define HAVE_SHL_LOAD 1
10343_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344
10345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010346 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10347echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10348if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350else
10351 ac_check_lib_save_LIBS=$LIBS
10352LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010353cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358/* end confdefs.h. */
10359
Reid Spencera773bd52006-08-04 18:18:08 +000010360/* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363#ifdef __cplusplus
10364extern "C"
10365#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366char shl_load ();
10367int
10368main ()
10369{
Reid Spencera773bd52006-08-04 18:18:08 +000010370return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 ;
10372 return 0;
10373}
10374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010375rm -f conftest.$ac_objext conftest$ac_exeext
10376if { (ac_try="$ac_link"
10377case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10380esac
10381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_link") 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393esac
10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try='test -s conftest$ac_exeext'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409 ac_cv_lib_dld_shl_load=yes
10410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010411 echo "$as_me: failed program was:" >&5
10412sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416
Bill Wendlingebcceee2009-04-18 11:20:33 +000010417rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010418 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419LIBS=$ac_check_lib_save_LIBS
10420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10422echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10423if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010425cat >>confdefs.h <<\_ACEOF
10426#define HAVE_SHL_LOAD 1
10427_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428
10429 LIBADD_DL="$LIBADD_DL -ldld"
10430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10432echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10433if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435else
10436 ac_check_lib_save_LIBS=$LIBS
10437LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438cat >conftest.$ac_ext <<_ACEOF
10439/* confdefs.h. */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443/* end confdefs.h. */
10444
Reid Spencera773bd52006-08-04 18:18:08 +000010445/* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448#ifdef __cplusplus
10449extern "C"
10450#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451char dlopen ();
10452int
10453main ()
10454{
Reid Spencera773bd52006-08-04 18:18:08 +000010455return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456 ;
10457 return 0;
10458}
10459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010460rm -f conftest.$ac_objext conftest$ac_exeext
10461if { (ac_try="$ac_link"
10462case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10465esac
10466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488esac
10489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_try") 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494 ac_cv_lib_dl_dlopen=yes
10495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010496 echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010501
Bill Wendlingebcceee2009-04-18 11:20:33 +000010502rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010503 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504LIBS=$ac_check_lib_save_LIBS
10505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010506{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10507echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10508if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510cat >>confdefs.h <<\_ACEOF
10511#define HAVE_LIBDL 1
10512_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513
10514 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010516 cat >conftest.$ac_ext <<_ACEOF
10517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521/* end confdefs.h. */
10522#if HAVE_DLFCN_H
10523# include <dlfcn.h>
10524#endif
10525
10526int
10527main ()
10528{
10529dlopen(0, 0);
10530 ;
10531 return 0;
10532}
10533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010534rm -f conftest.$ac_objext conftest$ac_exeext
10535if { (ac_try="$ac_link"
10536case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562esac
10563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010569cat >>confdefs.h <<\_ACEOF
10570#define HAVE_LIBDL 1
10571_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572 libltdl_cv_func_dlopen="yes"
10573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10578echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10579if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581else
10582 ac_check_lib_save_LIBS=$LIBS
10583LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589/* end confdefs.h. */
10590
Reid Spencera773bd52006-08-04 18:18:08 +000010591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594#ifdef __cplusplus
10595extern "C"
10596#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597char dlopen ();
10598int
10599main ()
10600{
Reid Spencera773bd52006-08-04 18:18:08 +000010601return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602 ;
10603 return 0;
10604}
10605_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010606rm -f conftest.$ac_objext conftest$ac_exeext
10607if { (ac_try="$ac_link"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624esac
10625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest$ac_exeext'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634esac
10635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640 ac_cv_lib_svld_dlopen=yes
10641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647
Bill Wendlingebcceee2009-04-18 11:20:33 +000010648rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650LIBS=$ac_check_lib_save_LIBS
10651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10653echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10654if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010656cat >>confdefs.h <<\_ACEOF
10657#define HAVE_LIBDL 1
10658_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659
10660 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010662 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10663echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10664if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666else
10667 ac_check_lib_save_LIBS=$LIBS
10668LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h. */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674/* end confdefs.h. */
10675
Reid Spencera773bd52006-08-04 18:18:08 +000010676/* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679#ifdef __cplusplus
10680extern "C"
10681#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682char dld_link ();
10683int
10684main ()
10685{
Reid Spencera773bd52006-08-04 18:18:08 +000010686return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687 ;
10688 return 0;
10689}
10690_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010691rm -f conftest.$ac_objext conftest$ac_exeext
10692if { (ac_try="$ac_link"
10693case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10696esac
10697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_link") 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10719esac
10720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725 ac_cv_lib_dld_dld_link=yes
10726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010727 echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010732
Bill Wendlingebcceee2009-04-18 11:20:33 +000010733rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010734 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735LIBS=$ac_check_lib_save_LIBS
10736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10739if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741cat >>confdefs.h <<\_ACEOF
10742#define HAVE_DLD 1
10743_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744
10745 LIBADD_DL="$LIBADD_DL -ldld"
10746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010747 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10748echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10749if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010762/* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char _dyld_func_lookup (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010767#ifdef __STDC__
10768# include <limits.h>
10769#else
10770# include <assert.h>
10771#endif
10772
10773#undef _dyld_func_lookup
10774
10775/* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10778#ifdef __cplusplus
10779extern "C"
10780#endif
10781char _dyld_func_lookup ();
10782/* The GNU C library defines this for functions which it implements
10783 to always fail with ENOSYS. Some functions are actually named
10784 something starting with __ and the normal name is an alias. */
10785#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10786choke me
10787#endif
10788
10789int
10790main ()
10791{
10792return _dyld_func_lookup ();
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797rm -f conftest.$ac_objext conftest$ac_exeext
10798if { (ac_try="$ac_link"
10799case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802esac
10803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_func__dyld_func_lookup=yes
10832else
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837fi
Reid Spencera773bd52006-08-04 18:18:08 +000010838
Bill Wendlingebcceee2009-04-18 11:20:33 +000010839rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840 conftest$ac_exeext conftest.$ac_ext
10841fi
10842{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10843echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10844if test $ac_cv_func__dyld_func_lookup = yes; then
10845
10846cat >>confdefs.h <<\_ACEOF
10847#define HAVE_DYLD 1
10848_ACEOF
10849
10850fi
10851
10852
10853fi
10854
10855
10856fi
10857
10858
10859fi
10860
10861rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863
10864fi
10865
10866
10867fi
10868
10869
10870fi
10871
10872
10873if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10874then
10875 lt_save_LIBS="$LIBS"
10876 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010877
10878for ac_func in dlerror
10879do
10880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885else
10886 cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h. */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
10891/* end confdefs.h. */
10892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10894#define $ac_func innocuous_$ac_func
10895
10896/* System header to define __stub macros and hopefully few prototypes,
10897 which can conflict with char $ac_func (); below.
10898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10899 <limits.h> exists even on freestanding compilers. */
10900
10901#ifdef __STDC__
10902# include <limits.h>
10903#else
10904# include <assert.h>
10905#endif
10906
10907#undef $ac_func
10908
10909/* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912#ifdef __cplusplus
10913extern "C"
10914#endif
10915char $ac_func ();
10916/* The GNU C library defines this for functions which it implements
10917 to always fail with ENOSYS. Some functions are actually named
10918 something starting with __ and the normal name is an alias. */
10919#if defined __stub_$ac_func || defined __stub___$ac_func
10920choke me
10921#endif
10922
10923int
10924main ()
10925{
10926return $ac_func ();
10927 ;
10928 return 0;
10929}
10930_ACEOF
10931rm -f conftest.$ac_objext conftest$ac_exeext
10932if { (ac_try="$ac_link"
10933case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_link") 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10959esac
10960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 eval "$as_ac_var=yes"
10966else
10967 echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 eval "$as_ac_var=no"
10971fi
10972
10973rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975fi
10976ac_res=`eval echo '${'$as_ac_var'}'`
10977 { echo "$as_me:$LINENO: result: $ac_res" >&5
10978echo "${ECHO_T}$ac_res" >&6; }
10979if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982_ACEOF
10983
10984fi
10985done
10986
10987 LIBS="$lt_save_LIBS"
10988fi
10989ac_ext=c
10990ac_cpp='$CPP $CPPFLAGS'
10991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994
10995
10996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010997{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10998echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10999if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001else
11002 ac_cv_sys_symbol_underscore=no
11003 cat > conftest.$ac_ext <<EOF
11004void nm_test_func(){}
11005int main(){nm_test_func;return 0;}
11006EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 (eval $ac_compile) 2>&5
11009 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 # Now try to grab the symbols.
11013 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011014 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 +000011015 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11016 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019 # See whether the symbols have a leading underscore.
11020 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11021 ac_cv_sys_symbol_underscore=yes
11022 else
11023 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11024 :
11025 else
11026 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11027 fi
11028 fi
11029 else
11030 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11031 fi
11032 else
11033 echo "configure: failed program was:" >&5
11034 cat conftest.c >&5
11035 fi
11036 rm -rf conftest*
11037
11038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011039{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11040echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041
11042
11043if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11044 if test x"$libltdl_cv_func_dlopen" = xyes ||
11045 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011046 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11047echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11048if test "${libltdl_cv_need_uscore+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050else
11051 libltdl_cv_need_uscore=unknown
11052 save_LIBS="$LIBS"
11053 LIBS="$LIBS $LIBADD_DL"
11054 if test "$cross_compiling" = yes; then :
11055 libltdl_cv_need_uscore=cross
11056else
11057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11058 lt_status=$lt_dlunknown
11059 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +000011060#line 11060 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061#include "confdefs.h"
11062
11063#if HAVE_DLFCN_H
11064#include <dlfcn.h>
11065#endif
11066
11067#include <stdio.h>
11068
11069#ifdef RTLD_GLOBAL
11070# define LT_DLGLOBAL RTLD_GLOBAL
11071#else
11072# ifdef DL_GLOBAL
11073# define LT_DLGLOBAL DL_GLOBAL
11074# else
11075# define LT_DLGLOBAL 0
11076# endif
11077#endif
11078
11079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11080 find out it does not work in some platform. */
11081#ifndef LT_DLLAZY_OR_NOW
11082# ifdef RTLD_LAZY
11083# define LT_DLLAZY_OR_NOW RTLD_LAZY
11084# else
11085# ifdef DL_LAZY
11086# define LT_DLLAZY_OR_NOW DL_LAZY
11087# else
11088# ifdef RTLD_NOW
11089# define LT_DLLAZY_OR_NOW RTLD_NOW
11090# else
11091# ifdef DL_NOW
11092# define LT_DLLAZY_OR_NOW DL_NOW
11093# else
11094# define LT_DLLAZY_OR_NOW 0
11095# endif
11096# endif
11097# endif
11098# endif
11099#endif
11100
11101#ifdef __cplusplus
11102extern "C" void exit (int);
11103#endif
11104
11105void fnord() { int i=42;}
11106int main ()
11107{
11108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11109 int status = $lt_dlunknown;
11110
11111 if (self)
11112 {
11113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11114 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11115 /* dlclose (self); */
11116 }
Reid Spencera773bd52006-08-04 18:18:08 +000011117 else
11118 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119
11120 exit (status);
11121}
11122EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124 (eval $ac_link) 2>&5
11125 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011128 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129 lt_status=$?
11130 case x$lt_status in
11131 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11132 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011133 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134 esac
11135 else :
11136 # compilation failed
11137
11138 fi
11139fi
11140rm -fr conftest*
11141
11142 LIBS="$save_LIBS"
11143
11144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011145{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11146echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147 fi
11148fi
11149
11150if test x"$libltdl_cv_need_uscore" = xyes; then
11151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011152cat >>confdefs.h <<\_ACEOF
11153#define NEED_USCORE 1
11154_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155
11156fi
11157
11158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011159{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11160echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11161if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163else
11164 # PORTME does your system automatically load deplibs for dlopen?
11165 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11166 # For now, we just catch OSes we know something about -- in the
11167 # future, we'll try test this programmatically.
11168 libltdl_cv_sys_dlopen_deplibs=unknown
11169 case "$host_os" in
11170 aix3*|aix4.1.*|aix4.2.*)
11171 # Unknown whether this is true for these versions of AIX, but
11172 # we want this `case' here to explicitly catch those versions.
11173 libltdl_cv_sys_dlopen_deplibs=unknown
11174 ;;
11175 aix[45]*)
11176 libltdl_cv_sys_dlopen_deplibs=yes
11177 ;;
11178 darwin*)
11179 # Assuming the user has installed a libdl from somewhere, this is true
11180 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11181 libltdl_cv_sys_dlopen_deplibs=yes
11182 ;;
11183 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11184 # GNU and its variants, using gnu ld.so (Glibc)
11185 libltdl_cv_sys_dlopen_deplibs=yes
11186 ;;
11187 hpux10*|hpux11*)
11188 libltdl_cv_sys_dlopen_deplibs=yes
11189 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011190 interix*)
11191 libltdl_cv_sys_dlopen_deplibs=yes
11192 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011193 irix[12345]*|irix6.[01]*)
11194 # Catch all versions of IRIX before 6.2, and indicate that we don't
11195 # know how it worked for any of those versions.
11196 libltdl_cv_sys_dlopen_deplibs=unknown
11197 ;;
11198 irix*)
11199 # The case above catches anything before 6.2, and it's known that
11200 # at 6.2 and later dlopen does load deplibs.
11201 libltdl_cv_sys_dlopen_deplibs=yes
11202 ;;
11203 netbsd*)
11204 libltdl_cv_sys_dlopen_deplibs=yes
11205 ;;
11206 openbsd*)
11207 libltdl_cv_sys_dlopen_deplibs=yes
11208 ;;
11209 osf[1234]*)
11210 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11211 # it did *not* use an RPATH in a shared library to find objects the
11212 # library depends on, so we explictly say `no'.
11213 libltdl_cv_sys_dlopen_deplibs=no
11214 ;;
11215 osf5.0|osf5.0a|osf5.1)
11216 # dlopen *does* load deplibs and with the right loader patch applied
11217 # it even uses RPATH in a shared library to search for shared objects
11218 # that the library depends on, but there's no easy way to know if that
11219 # patch is installed. Since this is the case, all we can really
11220 # say is unknown -- it depends on the patch being installed. If
11221 # it is, this changes to `yes'. Without it, it would be `no'.
11222 libltdl_cv_sys_dlopen_deplibs=unknown
11223 ;;
11224 osf*)
11225 # the two cases above should catch all versions of osf <= 5.1. Read
11226 # the comments above for what we know about them.
11227 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11228 # is used to find them so we can finally say `yes'.
11229 libltdl_cv_sys_dlopen_deplibs=yes
11230 ;;
11231 solaris*)
11232 libltdl_cv_sys_dlopen_deplibs=yes
11233 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235 libltdl_cv_sys_dlopen_deplibs=yes
11236 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 esac
11238
11239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011240{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11241echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011244cat >>confdefs.h <<\_ACEOF
11245#define LTDL_DLOPEN_DEPLIBS 1
11246_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247
11248fi
11249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011250
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252do
11253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259fi
11260ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262echo "${ECHO_T}$ac_res" >&6; }
11263else
11264 # Is the header compilable?
11265{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273$ac_includes_default
11274#include <$ac_header>
11275_ACEOF
11276rm -f conftest.$ac_objext
11277if { (ac_try="$ac_compile"
11278case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304esac
11305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_header_compiler=no
11316fi
11317
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322# Is the header present?
11323{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331#include <$ac_header>
11332_ACEOF
11333if { (ac_try="$ac_cpp conftest.$ac_ext"
11334case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349 else
11350 ac_cpp_err=
11351 fi
11352else
11353 ac_cpp_err=yes
11354fi
11355if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11357else
11358 echo "$as_me: failed program was:" >&5
11359sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_header_preproc=no
11362fi
11363
11364rm -f conftest.err conftest.$ac_ext
11365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366echo "${ECHO_T}$ac_header_preproc" >&6; }
11367
11368# So? What about this header?
11369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 yes:no: )
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11376 ;;
11377 no:yes:* )
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390 ( cat <<\_ASBOX
11391## ----------------------------------- ##
11392## Report this to llvmbugs@cs.uiuc.edu ##
11393## ----------------------------------- ##
11394_ASBOX
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 ;;
11397esac
11398{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 eval "$as_ac_Header=\$ac_header_preproc"
11404fi
11405ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407echo "${ECHO_T}$ac_res" >&6; }
11408
11409fi
11410if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413_ACEOF
11414
11415fi
11416
11417done
11418
11419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011420{ echo "$as_me:$LINENO: checking for error_t" >&5
11421echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11422if test "${ac_cv_type_error_t+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425 cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432# include <argz.h>
11433#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011434
11435typedef error_t ac__type_new_;
11436int
11437main ()
11438{
11439if ((ac__type_new_ *) 0)
11440 return 0;
11441if (sizeof (ac__type_new_))
11442 return 0;
11443 ;
11444 return 0;
11445}
11446_ACEOF
11447rm -f conftest.$ac_objext
11448if { (ac_try="$ac_compile"
11449case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452esac
11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11462 { (case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_try") 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
11472 { (case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475esac
11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_try") 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_cv_type_error_t=yes
11482else
11483 echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 ac_cv_type_error_t=no
11487fi
11488
11489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490fi
11491{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11492echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11493if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494
11495cat >>confdefs.h <<_ACEOF
11496#define HAVE_ERROR_T 1
11497_ACEOF
11498
11499
11500else
11501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011502cat >>confdefs.h <<\_ACEOF
11503#define error_t int
11504_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505
11506fi
11507
11508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011509
11510
11511
11512
11513
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011515do
11516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11517{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11519if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521else
11522 cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
11528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11530#define $ac_func innocuous_$ac_func
11531
11532/* System header to define __stub macros and hopefully few prototypes,
11533 which can conflict with char $ac_func (); below.
11534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11535 <limits.h> exists even on freestanding compilers. */
11536
11537#ifdef __STDC__
11538# include <limits.h>
11539#else
11540# include <assert.h>
11541#endif
11542
11543#undef $ac_func
11544
11545/* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548#ifdef __cplusplus
11549extern "C"
11550#endif
11551char $ac_func ();
11552/* The GNU C library defines this for functions which it implements
11553 to always fail with ENOSYS. Some functions are actually named
11554 something starting with __ and the normal name is an alias. */
11555#if defined __stub_$ac_func || defined __stub___$ac_func
11556choke me
11557#endif
11558
11559int
11560main ()
11561{
11562return $ac_func ();
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567rm -f conftest.$ac_objext conftest$ac_exeext
11568if { (ac_try="$ac_link"
11569case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572esac
11573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_link") 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11582 { (case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585esac
11586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_try") 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest$ac_exeext'
11592 { (case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595esac
11596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_try") 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 eval "$as_ac_var=yes"
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 eval "$as_ac_var=no"
11607fi
11608
11609rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611fi
11612ac_res=`eval echo '${'$as_ac_var'}'`
11613 { echo "$as_me:$LINENO: result: $ac_res" >&5
11614echo "${ECHO_T}$ac_res" >&6; }
11615if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618_ACEOF
11619
11620fi
11621done
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011642
11643
11644
11645
11646
11647
11648
11649
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11651 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011652do
11653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659fi
11660ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662echo "${ECHO_T}$ac_res" >&6; }
11663else
11664 # Is the header compilable?
11665{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11667cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673$ac_includes_default
11674#include <$ac_header>
11675_ACEOF
11676rm -f conftest.$ac_objext
11677if { (ac_try="$ac_compile"
11678case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_header_compiler=yes
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 ac_header_compiler=no
11716fi
11717
11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11720echo "${ECHO_T}$ac_header_compiler" >&6; }
11721
11722# Is the header present?
11723{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11725cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731#include <$ac_header>
11732_ACEOF
11733if { (ac_try="$ac_cpp conftest.$ac_ext"
11734case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737esac
11738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } >/dev/null; then
11746 if test -s conftest.err; then
11747 ac_cpp_err=$ac_c_preproc_warn_flag
11748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11749 else
11750 ac_cpp_err=
11751 fi
11752else
11753 ac_cpp_err=yes
11754fi
11755if test -z "$ac_cpp_err"; then
11756 ac_header_preproc=yes
11757else
11758 echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761 ac_header_preproc=no
11762fi
11763
11764rm -f conftest.err conftest.$ac_ext
11765{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11766echo "${ECHO_T}$ac_header_preproc" >&6; }
11767
11768# So? What about this header?
11769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11770 yes:no: )
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11775 ac_header_preproc=yes
11776 ;;
11777 no:yes:* )
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11781echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11785echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11790 ( cat <<\_ASBOX
11791## ----------------------------------- ##
11792## Report this to llvmbugs@cs.uiuc.edu ##
11793## ----------------------------------- ##
11794_ASBOX
11795 ) | sed "s/^/$as_me: WARNING: /" >&2
11796 ;;
11797esac
11798{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 eval "$as_ac_Header=\$ac_header_preproc"
11804fi
11805ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807echo "${ECHO_T}$ac_res" >&6; }
11808
11809fi
11810if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011812#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813_ACEOF
11814
11815fi
11816
11817done
11818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011819
11820
11821
11822
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011824do
11825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831fi
11832ac_res=`eval echo '${'$as_ac_Header'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834echo "${ECHO_T}$ac_res" >&6; }
11835else
11836 # Is the header compilable?
11837{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845$ac_includes_default
11846#include <$ac_header>
11847_ACEOF
11848rm -f conftest.$ac_objext
11849if { (ac_try="$ac_compile"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866esac
11867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_header_compiler=yes
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 ac_header_compiler=no
11888fi
11889
11890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892echo "${ECHO_T}$ac_header_compiler" >&6; }
11893
11894# Is the header present?
11895{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11897cat >conftest.$ac_ext <<_ACEOF
11898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
11903#include <$ac_header>
11904_ACEOF
11905if { (ac_try="$ac_cpp conftest.$ac_ext"
11906case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } >/dev/null; then
11918 if test -s conftest.err; then
11919 ac_cpp_err=$ac_c_preproc_warn_flag
11920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11921 else
11922 ac_cpp_err=
11923 fi
11924else
11925 ac_cpp_err=yes
11926fi
11927if test -z "$ac_cpp_err"; then
11928 ac_header_preproc=yes
11929else
11930 echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_header_preproc=no
11934fi
11935
11936rm -f conftest.err conftest.$ac_ext
11937{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11938echo "${ECHO_T}$ac_header_preproc" >&6; }
11939
11940# So? What about this header?
11941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11942 yes:no: )
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11947 ac_header_preproc=yes
11948 ;;
11949 no:yes:* )
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11962 ( cat <<\_ASBOX
11963## ----------------------------------- ##
11964## Report this to llvmbugs@cs.uiuc.edu ##
11965## ----------------------------------- ##
11966_ASBOX
11967 ) | sed "s/^/$as_me: WARNING: /" >&2
11968 ;;
11969esac
11970{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 eval "$as_ac_Header=\$ac_header_preproc"
11976fi
11977ac_res=`eval echo '${'$as_ac_Header'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979echo "${ECHO_T}$ac_res" >&6; }
11980
11981fi
11982if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985_ACEOF
11986
11987fi
11988
11989done
11990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011991
11992
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011994do
11995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12001fi
12002ac_res=`eval echo '${'$as_ac_Header'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004echo "${ECHO_T}$ac_res" >&6; }
12005else
12006 # Is the header compilable?
12007{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12009cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015$ac_includes_default
12016#include <$ac_header>
12017_ACEOF
12018rm -f conftest.$ac_objext
12019if { (ac_try="$ac_compile"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_compile") 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_header_compiler=yes
12053else
12054 echo "$as_me: failed program was:" >&5
12055sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 ac_header_compiler=no
12058fi
12059
12060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062echo "${ECHO_T}$ac_header_compiler" >&6; }
12063
12064# Is the header present?
12065{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12067cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073#include <$ac_header>
12074_ACEOF
12075if { (ac_try="$ac_cpp conftest.$ac_ext"
12076case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079esac
12080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } >/dev/null; then
12088 if test -s conftest.err; then
12089 ac_cpp_err=$ac_c_preproc_warn_flag
12090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12091 else
12092 ac_cpp_err=
12093 fi
12094else
12095 ac_cpp_err=yes
12096fi
12097if test -z "$ac_cpp_err"; then
12098 ac_header_preproc=yes
12099else
12100 echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 ac_header_preproc=no
12104fi
12105
12106rm -f conftest.err conftest.$ac_ext
12107{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12108echo "${ECHO_T}$ac_header_preproc" >&6; }
12109
12110# So? What about this header?
12111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12112 yes:no: )
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12117 ac_header_preproc=yes
12118 ;;
12119 no:yes:* )
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12127echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12132 ( cat <<\_ASBOX
12133## ----------------------------------- ##
12134## Report this to llvmbugs@cs.uiuc.edu ##
12135## ----------------------------------- ##
12136_ASBOX
12137 ) | sed "s/^/$as_me: WARNING: /" >&2
12138 ;;
12139esac
12140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12144else
12145 eval "$as_ac_Header=\$ac_header_preproc"
12146fi
12147ac_res=`eval echo '${'$as_ac_Header'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149echo "${ECHO_T}$ac_res" >&6; }
12150
12151fi
12152if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155_ACEOF
12156 break
12157fi
12158
12159done
12160
12161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012162
12163
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012165do
12166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171else
12172 cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */
12178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12180#define $ac_func innocuous_$ac_func
12181
12182/* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12186
12187#ifdef __STDC__
12188# include <limits.h>
12189#else
12190# include <assert.h>
12191#endif
12192
12193#undef $ac_func
12194
12195/* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12198#ifdef __cplusplus
12199extern "C"
12200#endif
12201char $ac_func ();
12202/* The GNU C library defines this for functions which it implements
12203 to always fail with ENOSYS. Some functions are actually named
12204 something starting with __ and the normal name is an alias. */
12205#if defined __stub_$ac_func || defined __stub___$ac_func
12206choke me
12207#endif
12208
12209int
12210main ()
12211{
12212return $ac_func ();
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217rm -f conftest.$ac_objext conftest$ac_exeext
12218if { (ac_try="$ac_link"
12219case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_link") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
12231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12232 { (case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235esac
12236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_try") 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest$ac_exeext'
12242 { (case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245esac
12246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_try") 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 eval "$as_ac_var=yes"
12252else
12253 echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 eval "$as_ac_var=no"
12257fi
12258
12259rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261fi
12262ac_res=`eval echo '${'$as_ac_var'}'`
12263 { echo "$as_me:$LINENO: result: $ac_res" >&5
12264echo "${ECHO_T}$ac_res" >&6; }
12265if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012266 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268_ACEOF
12269 break
12270fi
12271done
12272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012273
12274
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012275for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012276do
12277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12278{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12280if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283 cat >conftest.$ac_ext <<_ACEOF
12284/* confdefs.h. */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h. */
12289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291#define $ac_func innocuous_$ac_func
12292
12293/* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char $ac_func (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12297
12298#ifdef __STDC__
12299# include <limits.h>
12300#else
12301# include <assert.h>
12302#endif
12303
12304#undef $ac_func
12305
12306/* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12309#ifdef __cplusplus
12310extern "C"
12311#endif
12312char $ac_func ();
12313/* The GNU C library defines this for functions which it implements
12314 to always fail with ENOSYS. Some functions are actually named
12315 something starting with __ and the normal name is an alias. */
12316#if defined __stub_$ac_func || defined __stub___$ac_func
12317choke me
12318#endif
12319
12320int
12321main ()
12322{
12323return $ac_func ();
12324 ;
12325 return 0;
12326}
12327_ACEOF
12328rm -f conftest.$ac_objext conftest$ac_exeext
12329if { (ac_try="$ac_link"
12330case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333esac
12334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_link") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346esac
12347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356esac
12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 eval "$as_ac_var=yes"
12363else
12364 echo "$as_me: failed program was:" >&5
12365sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 eval "$as_ac_var=no"
12368fi
12369
12370rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372fi
12373ac_res=`eval echo '${'$as_ac_var'}'`
12374 { echo "$as_me:$LINENO: result: $ac_res" >&5
12375echo "${ECHO_T}$ac_res" >&6; }
12376if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012377 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379_ACEOF
12380 break
12381fi
12382done
12383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012384
12385
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012386for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012387do
12388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12389{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12402#define $ac_func innocuous_$ac_func
12403
12404/* System header to define __stub macros and hopefully few prototypes,
12405 which can conflict with char $ac_func (); below.
12406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12407 <limits.h> exists even on freestanding compilers. */
12408
12409#ifdef __STDC__
12410# include <limits.h>
12411#else
12412# include <assert.h>
12413#endif
12414
12415#undef $ac_func
12416
12417/* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12420#ifdef __cplusplus
12421extern "C"
12422#endif
12423char $ac_func ();
12424/* The GNU C library defines this for functions which it implements
12425 to always fail with ENOSYS. Some functions are actually named
12426 something starting with __ and the normal name is an alias. */
12427#if defined __stub_$ac_func || defined __stub___$ac_func
12428choke me
12429#endif
12430
12431int
12432main ()
12433{
12434return $ac_func ();
12435 ;
12436 return 0;
12437}
12438_ACEOF
12439rm -f conftest.$ac_objext conftest$ac_exeext
12440if { (ac_try="$ac_link"
12441case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12444esac
12445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_link") 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457esac
12458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 eval "$as_ac_var=yes"
12474else
12475 echo "$as_me: failed program was:" >&5
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 eval "$as_ac_var=no"
12479fi
12480
12481rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483fi
12484ac_res=`eval echo '${'$as_ac_var'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486echo "${ECHO_T}$ac_res" >&6; }
12487if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012488 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490_ACEOF
12491 break
12492fi
12493done
12494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495
12496
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498do
12499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12500{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12502if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505 cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12513#define $ac_func innocuous_$ac_func
12514
12515/* System header to define __stub macros and hopefully few prototypes,
12516 which can conflict with char $ac_func (); below.
12517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518 <limits.h> exists even on freestanding compilers. */
12519
12520#ifdef __STDC__
12521# include <limits.h>
12522#else
12523# include <assert.h>
12524#endif
12525
12526#undef $ac_func
12527
12528/* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531#ifdef __cplusplus
12532extern "C"
12533#endif
12534char $ac_func ();
12535/* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538#if defined __stub_$ac_func || defined __stub___$ac_func
12539choke me
12540#endif
12541
12542int
12543main ()
12544{
12545return $ac_func ();
12546 ;
12547 return 0;
12548}
12549_ACEOF
12550rm -f conftest.$ac_objext conftest$ac_exeext
12551if { (ac_try="$ac_link"
12552case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_link") 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_try") 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 eval "$as_ac_var=yes"
12585else
12586 echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 eval "$as_ac_var=no"
12590fi
12591
12592rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12594fi
12595ac_res=`eval echo '${'$as_ac_var'}'`
12596 { echo "$as_me:$LINENO: result: $ac_res" >&5
12597echo "${ECHO_T}$ac_res" >&6; }
12598if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012599 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012601_ACEOF
12602
12603fi
12604done
12605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606
12607
12608
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012609for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610do
12611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12625#define $ac_func innocuous_$ac_func
12626
12627/* System header to define __stub macros and hopefully few prototypes,
12628 which can conflict with char $ac_func (); below.
12629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12630 <limits.h> exists even on freestanding compilers. */
12631
12632#ifdef __STDC__
12633# include <limits.h>
12634#else
12635# include <assert.h>
12636#endif
12637
12638#undef $ac_func
12639
12640/* Override any GCC internal prototype to avoid an error.
12641 Use char because int might match the return type of a GCC
12642 builtin and then its argument prototype would still apply. */
12643#ifdef __cplusplus
12644extern "C"
12645#endif
12646char $ac_func ();
12647/* The GNU C library defines this for functions which it implements
12648 to always fail with ENOSYS. Some functions are actually named
12649 something starting with __ and the normal name is an alias. */
12650#if defined __stub_$ac_func || defined __stub___$ac_func
12651choke me
12652#endif
12653
12654int
12655main ()
12656{
12657return $ac_func ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (ac_try="$ac_link"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_link") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680esac
12681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_try") 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 eval "$as_ac_var=no"
12702fi
12703
12704rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706fi
12707ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709echo "${ECHO_T}$ac_res" >&6; }
12710if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012713_ACEOF
12714
12715fi
12716done
12717
12718
Douglas Gregor01746742009-05-11 18:05:52 +000012719
Reid Spencer7931a782004-12-27 06:15:02 +000012720if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012721 LLVMGCC="llvm-gcc${EXEEXT}"
12722 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012723 LLVMGCCCOMMAND="$LLVMGCC"
12724 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012725 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12726
12727 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12728
Reid Spencerc84492c2005-06-02 22:34:49 +000012729 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12730set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12733if test "${ac_cv_path_LLVMGCC+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012735else
12736 case $LLVMGCC in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12739 ;;
12740 *)
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742for as_dir in $PATH
12743do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 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 +000012748 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012750 break 2
12751 fi
12752done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012753done
Reid Spencera773bd52006-08-04 18:18:08 +000012754IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012755
Reid Spencer59473af2004-12-25 07:31:29 +000012756 ;;
12757esac
12758fi
12759LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012760if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012761 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12762echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012763else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012764 { echo "$as_me:$LINENO: result: no" >&5
12765echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012766fi
12767
Reid Spencera773bd52006-08-04 18:18:08 +000012768
Reid Spencerc84492c2005-06-02 22:34:49 +000012769 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12770set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12773if test "${ac_cv_path_LLVMGXX+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012775else
12776 case $LLVMGXX in
12777 [\\/]* | ?:[\\/]*)
12778 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12779 ;;
12780 *)
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 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 +000012788 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012790 break 2
12791 fi
12792done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012793done
Reid Spencera773bd52006-08-04 18:18:08 +000012794IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012795
Reid Spencer59473af2004-12-25 07:31:29 +000012796 ;;
12797esac
12798fi
12799LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012800if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12802echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804 { echo "$as_me:$LINENO: result: no" >&5
12805echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012806fi
12807
Reid Spencera773bd52006-08-04 18:18:08 +000012808
Reid Spencer59473af2004-12-25 07:31:29 +000012809else
Devang Patel5d28b882007-12-04 22:54:47 +000012810 if test -z "$LLVMGCC"; then
12811 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012812 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012813 fi
12814 if test -z "$LLVMGXX"; then
12815 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012816 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012817 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012818
Reid Spencer59473af2004-12-25 07:31:29 +000012819 LLVMGCC=$LLVMGCC
12820
12821 LLVMGXX=$LLVMGXX
12822
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012823 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12824
12825 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12826
Reid Spencer59473af2004-12-25 07:31:29 +000012827fi
12828
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12831echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012832
Reid Spencer86901802004-12-08 23:07:27 +000012833ICC=no
12834IXX=no
12835case $CC in
12836 icc*|icpc*)
12837 ICC=yes
12838 IXX=yes
12839 ;;
12840 *)
12841 ;;
12842esac
12843
Duraid Madina937c60a2006-02-15 07:57:42 +000012844if test "$GCC" != "yes" && test "$ICC" != "yes"
12845then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12847echo "$as_me: error: gcc|icc required but not found" >&2;}
12848 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012849fi
12850
12851if test "$GXX" != "yes" && test "$IXX" != "yes"
12852then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012853 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12854echo "$as_me: error: g++|icc required but not found" >&2;}
12855 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012856fi
12857
Reid Spencer86901802004-12-08 23:07:27 +000012858if test "$GCC" = "yes"
12859then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012861#if !defined(__GNUC__) || __GNUC__ < 3
12862#error Unsupported GCC version
12863#endif
12864
12865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866rm -f conftest.$ac_objext
12867if { (ac_try="$ac_compile"
12868case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12906echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12907 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012909
Chris Lattner399c7c72008-02-05 19:43:53 +000012910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012911fi
12912
12913if test -z "$llvm_cv_gnu_make_command"
12914then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12916echo "$as_me: error: GNU Make required but not found" >&2;}
12917 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012918fi
12919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012920{ echo "$as_me:$LINENO: result: ok" >&5
12921echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12924echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012925NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12926
12927NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12930echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012931
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933
12934{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12935echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12936if test "${ac_cv_lib_m_sin+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012938else
12939 ac_check_lib_save_LIBS=$LIBS
12940LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012946/* end confdefs.h. */
12947
Reid Spencera773bd52006-08-04 18:18:08 +000012948/* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012951#ifdef __cplusplus
12952extern "C"
12953#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012954char sin ();
12955int
12956main ()
12957{
Reid Spencera773bd52006-08-04 18:18:08 +000012958return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012959 ;
12960 return 0;
12961}
12962_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963rm -f conftest.$ac_objext conftest$ac_exeext
12964if { (ac_try="$ac_link"
12965case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_link") 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest$ac_exeext'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012997 ac_cv_lib_m_sin=yes
12998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999 echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004
Bill Wendlingebcceee2009-04-18 11:20:33 +000013005rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013006 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013007LIBS=$ac_check_lib_save_LIBS
13008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013009{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13010echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13011if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013012 cat >>confdefs.h <<_ACEOF
13013#define HAVE_LIBM 1
13014_ACEOF
13015
13016 LIBS="-lm $LIBS"
13017
13018fi
13019
Jeff Cohen28783c32007-01-12 18:22:38 +000013020if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021
13022{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13023echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13024if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013026else
13027 ac_check_lib_save_LIBS=$LIBS
13028LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013034/* end confdefs.h. */
13035
Reid Spencer48fdf912006-06-01 19:03:21 +000013036
Reid Spencer484fc8e2006-06-01 16:55:59 +000013037int
13038main ()
13039{
Reid Spencera773bd52006-08-04 18:18:08 +000013040return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013041 ;
13042 return 0;
13043}
13044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013045rm -f conftest.$ac_objext conftest$ac_exeext
13046if { (ac_try="$ac_link"
13047case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_link") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063esac
13064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest$ac_exeext'
13070 { (case "(($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_try") 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013079 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081 echo "$as_me: failed program was:" >&5
13082sed 's/^/| /' conftest.$ac_ext >&5
13083
13084 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013086
Bill Wendlingebcceee2009-04-18 11:20:33 +000013087rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013089LIBS=$ac_check_lib_save_LIBS
13090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13092echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13093if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013094 cat >>confdefs.h <<_ACEOF
13095#define HAVE_LIBIMAGEHLP 1
13096_ACEOF
13097
13098 LIBS="-limagehlp $LIBS"
13099
13100fi
13101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013102
13103{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13104echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13105if test "${ac_cv_lib_psapi_main+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013107else
13108 ac_check_lib_save_LIBS=$LIBS
13109LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013115/* end confdefs.h. */
13116
Reid Spencer48fdf912006-06-01 19:03:21 +000013117
Reid Spencer484fc8e2006-06-01 16:55:59 +000013118int
13119main ()
13120{
Reid Spencera773bd52006-08-04 18:18:08 +000013121return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013122 ;
13123 return 0;
13124}
13125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013126rm -f conftest.$ac_objext conftest$ac_exeext
13127if { (ac_try="$ac_link"
13128case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_link") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
13145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest$ac_exeext'
13151 { (case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13154esac
13155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_try") 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013160 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167
Bill Wendlingebcceee2009-04-18 11:20:33 +000013168rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013170LIBS=$ac_check_lib_save_LIBS
13171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013172{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13173echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13174if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013175 cat >>confdefs.h <<_ACEOF
13176#define HAVE_LIBPSAPI 1
13177_ACEOF
13178
13179 LIBS="-lpsapi $LIBS"
13180
13181fi
13182
13183fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13186echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13187if test "${ac_cv_search_dlopen+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013189else
13190 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013191cat >conftest.$ac_ext <<_ACEOF
13192/* confdefs.h. */
13193_ACEOF
13194cat confdefs.h >>conftest.$ac_ext
13195cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013196/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013197
Reid Spencera773bd52006-08-04 18:18:08 +000013198/* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013201#ifdef __cplusplus
13202extern "C"
13203#endif
John Criswell7a73b802003-06-30 21:59:07 +000013204char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013205int
13206main ()
13207{
Reid Spencera773bd52006-08-04 18:18:08 +000013208return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013209 ;
13210 return 0;
13211}
13212_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013213for ac_lib in '' dl; do
13214 if test -z "$ac_lib"; then
13215 ac_res="none required"
13216 else
13217 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013219 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220 rm -f conftest.$ac_objext conftest$ac_exeext
13221if { (ac_try="$ac_link"
13222case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225esac
13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_link") 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest$ac_exeext'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248esac
13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013254 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259
John Criswell7a73b802003-06-30 21:59:07 +000013260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013261
Bill Wendlingebcceee2009-04-18 11:20:33 +000013262rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013263 conftest$ac_exeext
13264 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013265 break
John Criswell7a73b802003-06-30 21:59:07 +000013266fi
Reid Spencera773bd52006-08-04 18:18:08 +000013267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268if test "${ac_cv_search_dlopen+set}" = set; then
13269 :
Reid Spencera773bd52006-08-04 18:18:08 +000013270else
13271 ac_cv_search_dlopen=no
13272fi
13273rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013274LIBS=$ac_func_search_save_LIBS
13275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13277echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013278ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282cat >>confdefs.h <<\_ACEOF
13283#define HAVE_DLOPEN 1
13284_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013285
13286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13288echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013289fi
13290
13291
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013292if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13294echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13295if test "${ac_cv_search_ffi_call+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013297else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013298 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013299cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013304/* end confdefs.h. */
13305
13306/* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13309#ifdef __cplusplus
13310extern "C"
13311#endif
13312char ffi_call ();
13313int
13314main ()
13315{
13316return ffi_call ();
13317 ;
13318 return 0;
13319}
13320_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013321for ac_lib in '' ffi; do
13322 if test -z "$ac_lib"; then
13323 ac_res="none required"
13324 else
13325 ac_res=-l$ac_lib
13326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13327 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328 rm -f conftest.$ac_objext conftest$ac_exeext
13329if { (ac_try="$ac_link"
13330case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_link") 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest$ac_exeext'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356esac
13357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013362 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363else
13364 echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
13367
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369
Bill Wendlingebcceee2009-04-18 11:20:33 +000013370rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371 conftest$ac_exeext
13372 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013373 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013374fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013375done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376if test "${ac_cv_search_ffi_call+set}" = set; then
13377 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013378else
13379 ac_cv_search_ffi_call=no
13380fi
13381rm conftest.$ac_ext
13382LIBS=$ac_func_search_save_LIBS
13383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013384{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13385echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013386ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013387if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390cat >>confdefs.h <<\_ACEOF
13391#define HAVE_FFI_CALL 1
13392_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013393
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013394else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013395 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13396echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13397 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013398fi
13399
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013400fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013402{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13403echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13404if test "${ac_cv_search_mallinfo+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013406else
13407 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408cat >conftest.$ac_ext <<_ACEOF
13409/* confdefs.h. */
13410_ACEOF
13411cat confdefs.h >>conftest.$ac_ext
13412cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013414
Reid Spencera773bd52006-08-04 18:18:08 +000013415/* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013418#ifdef __cplusplus
13419extern "C"
13420#endif
John Criswell7a73b802003-06-30 21:59:07 +000013421char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013422int
13423main ()
13424{
Reid Spencera773bd52006-08-04 18:18:08 +000013425return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013426 ;
13427 return 0;
13428}
13429_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013430for ac_lib in '' malloc; do
13431 if test -z "$ac_lib"; then
13432 ac_res="none required"
13433 else
13434 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013436 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437 rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (ac_try="$ac_link"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013471 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476
John Criswell7a73b802003-06-30 21:59:07 +000013477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478
Bill Wendlingebcceee2009-04-18 11:20:33 +000013479rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013480 conftest$ac_exeext
13481 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013482 break
John Criswell7a73b802003-06-30 21:59:07 +000013483fi
Reid Spencera773bd52006-08-04 18:18:08 +000013484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013485if test "${ac_cv_search_mallinfo+set}" = set; then
13486 :
Reid Spencera773bd52006-08-04 18:18:08 +000013487else
13488 ac_cv_search_mallinfo=no
13489fi
13490rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013491LIBS=$ac_func_search_save_LIBS
13492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13494echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013495ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499cat >>confdefs.h <<\_ACEOF
13500#define HAVE_MALLINFO 1
13501_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013502
13503fi
13504
13505
Reid Spencer0a262ba2005-08-24 10:07:20 +000013506if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013507
13508{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13509echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13510if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013512else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013513 ac_check_lib_save_LIBS=$LIBS
13514LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013515cat >conftest.$ac_ext <<_ACEOF
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013520/* end confdefs.h. */
13521
Reid Spencera773bd52006-08-04 18:18:08 +000013522/* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013525#ifdef __cplusplus
13526extern "C"
13527#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013528char pthread_mutex_init ();
13529int
13530main ()
13531{
Reid Spencera773bd52006-08-04 18:18:08 +000013532return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013533 ;
13534 return 0;
13535}
13536_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537rm -f conftest.$ac_objext conftest$ac_exeext
13538if { (ac_try="$ac_link"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565esac
13566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013571 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573 echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578
Bill Wendlingebcceee2009-04-18 11:20:33 +000013579rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013580 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013581LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013583{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13584echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13585if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013586 cat >>confdefs.h <<_ACEOF
13587#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013588_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013589
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013590 LIBS="-lpthread $LIBS"
13591
Reid Spencer22177fe2005-07-12 15:24:20 +000013592fi
13593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013594 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13595echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13596if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013598else
13599 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600cat >conftest.$ac_ext <<_ACEOF
13601/* confdefs.h. */
13602_ACEOF
13603cat confdefs.h >>conftest.$ac_ext
13604cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013605/* end confdefs.h. */
13606
Reid Spencera773bd52006-08-04 18:18:08 +000013607/* Override any GCC internal prototype to avoid an error.
13608 Use char because int might match the return type of a GCC
13609 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013610#ifdef __cplusplus
13611extern "C"
13612#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013613char pthread_mutex_lock ();
13614int
13615main ()
13616{
Reid Spencera773bd52006-08-04 18:18:08 +000013617return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013618 ;
13619 return 0;
13620}
13621_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013622for ac_lib in '' pthread; do
13623 if test -z "$ac_lib"; then
13624 ac_res="none required"
13625 else
13626 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013628 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013629 rm -f conftest.$ac_objext conftest$ac_exeext
13630if { (ac_try="$ac_link"
13631case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634esac
13635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_link") 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13644 { (case "(($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_try") 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } &&
13653 { ac_try='test -s conftest$ac_exeext'
13654 { (case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13657esac
13658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_try") 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013663 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013664else
13665 echo "$as_me: failed program was:" >&5
13666sed 's/^/| /' conftest.$ac_ext >&5
13667
13668
Brian Gaeke5f268f72003-12-05 19:29:01 +000013669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013670
Bill Wendlingebcceee2009-04-18 11:20:33 +000013671rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013672 conftest$ac_exeext
13673 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013674 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013675fi
Reid Spencera773bd52006-08-04 18:18:08 +000013676done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013677if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13678 :
Reid Spencera773bd52006-08-04 18:18:08 +000013679else
13680 ac_cv_search_pthread_mutex_lock=no
13681fi
13682rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013683LIBS=$ac_func_search_save_LIBS
13684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013685{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13686echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013687ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013688if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013691cat >>confdefs.h <<\_ACEOF
13692#define HAVE_PTHREAD_MUTEX_LOCK 1
13693_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013694
13695fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013697 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13698echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13699if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013701else
13702 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013708/* end confdefs.h. */
13709
13710/* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13713#ifdef __cplusplus
13714extern "C"
13715#endif
13716char pthread_rwlock_init ();
13717int
13718main ()
13719{
13720return pthread_rwlock_init ();
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725for ac_lib in '' pthread; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13728 else
13729 ac_res=-l$ac_lib
13730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13731 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013732 rm -f conftest.$ac_objext conftest$ac_exeext
13733if { (ac_try="$ac_link"
13734case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760esac
13761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013766 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013767else
13768 echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
13771
Owen Andersonde8aed22009-06-16 18:20:20 +000013772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773
Owen Andersonde8aed22009-06-16 18:20:20 +000013774rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013775 conftest$ac_exeext
13776 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013777 break
13778fi
13779done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013780if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13781 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013782else
13783 ac_cv_search_pthread_rwlock_init=no
13784fi
13785rm conftest.$ac_ext
13786LIBS=$ac_func_search_save_LIBS
13787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13789echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013790ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013791if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794cat >>confdefs.h <<\_ACEOF
13795#define HAVE_PTHREAD_RWLOCK_INIT 1
13796_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013797
13798fi
13799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013800 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13801echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13802if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013804else
13805 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806cat >conftest.$ac_ext <<_ACEOF
13807/* confdefs.h. */
13808_ACEOF
13809cat confdefs.h >>conftest.$ac_ext
13810cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013811/* end confdefs.h. */
13812
13813/* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
13816#ifdef __cplusplus
13817extern "C"
13818#endif
13819char pthread_getspecific ();
13820int
13821main ()
13822{
13823return pthread_getspecific ();
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828for ac_lib in '' pthread; do
13829 if test -z "$ac_lib"; then
13830 ac_res="none required"
13831 else
13832 ac_res=-l$ac_lib
13833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13834 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013835 rm -f conftest.$ac_objext conftest$ac_exeext
13836if { (ac_try="$ac_link"
13837case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853esac
13854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_try") 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863esac
13864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_try") 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013869 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013870else
13871 echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874
Owen Anderson27fcfe12009-06-25 23:10:26 +000013875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876
Owen Anderson27fcfe12009-06-25 23:10:26 +000013877rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878 conftest$ac_exeext
13879 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013880 break
13881fi
13882done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013883if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13884 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013885else
13886 ac_cv_search_pthread_getspecific=no
13887fi
13888rm conftest.$ac_ext
13889LIBS=$ac_func_search_save_LIBS
13890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013891{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13892echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013893ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013894if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897cat >>confdefs.h <<\_ACEOF
13898#define HAVE_PTHREAD_GETSPECIFIC 1
13899_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013900
13901fi
13902
Reid Spencer0a262ba2005-08-24 10:07:20 +000013903fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013904
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013905
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013906# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013908 withval=$with_udis86;
13909 USE_UDIS86=1
13910
13911 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013912 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013913 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13914 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915
13916{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13917echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13918if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013920else
13921 ac_check_lib_save_LIBS=$LIBS
13922LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923cat >conftest.$ac_ext <<_ACEOF
13924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013928/* end confdefs.h. */
13929
13930/* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933#ifdef __cplusplus
13934extern "C"
13935#endif
13936char ud_init ();
13937int
13938main ()
13939{
13940return ud_init ();
13941 ;
13942 return 0;
13943}
13944_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945rm -f conftest.$ac_objext conftest$ac_exeext
13946if { (ac_try="$ac_link"
13947case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950esac
13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13963esac
13964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest$ac_exeext'
13970 { (case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13973esac
13974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_try") 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013979 ac_cv_lib_udis86_ud_init=yes
13980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
13984 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986
Bill Wendlingebcceee2009-04-18 11:20:33 +000013987rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013988 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013989LIBS=$ac_check_lib_save_LIBS
13990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013991{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13992echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13993if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013994 cat >>confdefs.h <<_ACEOF
13995#define HAVE_LIBUDIS86 1
13996_ACEOF
13997
13998 LIBS="-ludis86 $LIBS"
13999
14000else
14001
14002 echo "Error! You need to have libudis86 around."
14003 exit -1
14004
14005fi
14006
14007
14008else
14009 USE_UDIS86=0
14010
14011fi
14012
14013
14014cat >>confdefs.h <<_ACEOF
14015#define USE_UDIS86 $USE_UDIS86
14016_ACEOF
14017
14018
14019
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014020# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014022 withval=$with_oprofile;
14023 USE_OPROFILE=1
14024
14025 case "$withval" in
14026 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014027 no) llvm_cv_oppath=
14028 USE_OPROFILE=0
14029 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014030 *) llvm_cv_oppath="${withval}/lib/oprofile"
14031 CPPFLAGS="-I${withval}/include";;
14032 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014033 if test -n "$llvm_cv_oppath" ; then
14034 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14036echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14037if test "${ac_cv_search_bfd_init+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014039else
14040 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014046/* end confdefs.h. */
14047
14048/* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14051#ifdef __cplusplus
14052extern "C"
14053#endif
14054char bfd_init ();
14055int
14056main ()
14057{
14058return bfd_init ();
14059 ;
14060 return 0;
14061}
14062_ACEOF
14063for ac_lib in '' bfd; do
14064 if test -z "$ac_lib"; then
14065 ac_res="none required"
14066 else
14067 ac_res=-l$ac_lib
14068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14069 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070 rm -f conftest.$ac_objext conftest$ac_exeext
14071if { (ac_try="$ac_link"
14072case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14075esac
14076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_link") 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14085 { (case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088esac
14089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_try") 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest$ac_exeext'
14095 { (case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098esac
14099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_try") 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014104 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014112rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014113 conftest$ac_exeext
14114 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014115 break
14116fi
14117done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118if test "${ac_cv_search_bfd_init+set}" = set; then
14119 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014120else
14121 ac_cv_search_bfd_init=no
14122fi
14123rm conftest.$ac_ext
14124LIBS=$ac_func_search_save_LIBS
14125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14127echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014128ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014129if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14131
14132fi
14133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14135echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14136if test "${ac_cv_search_op_open_agent+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014138else
14139 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014145/* end confdefs.h. */
14146
14147/* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14150#ifdef __cplusplus
14151extern "C"
14152#endif
14153char op_open_agent ();
14154int
14155main ()
14156{
14157return op_open_agent ();
14158 ;
14159 return 0;
14160}
14161_ACEOF
14162for ac_lib in '' opagent; do
14163 if test -z "$ac_lib"; then
14164 ac_res="none required"
14165 else
14166 ac_res=-l$ac_lib
14167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14168 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169 rm -f conftest.$ac_objext conftest$ac_exeext
14170if { (ac_try="$ac_link"
14171case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_link") 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187esac
14188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try='test -s conftest$ac_exeext'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014203 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204else
14205 echo "$as_me: failed program was:" >&5
14206sed 's/^/| /' conftest.$ac_ext >&5
14207
14208
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014211rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212 conftest$ac_exeext
14213 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014214 break
14215fi
14216done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217if test "${ac_cv_search_op_open_agent+set}" = set; then
14218 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014219else
14220 ac_cv_search_op_open_agent=no
14221fi
14222rm conftest.$ac_ext
14223LIBS=$ac_func_search_save_LIBS
14224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14226echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014227ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14230
14231else
14232
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014233 echo "Error! You need to have libopagent around."
14234 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014235
14236fi
14237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238 if test "${ac_cv_header_opagent_h+set}" = set; then
14239 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14240echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14241if test "${ac_cv_header_opagent_h+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243fi
14244{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14245echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14246else
14247 # Is the header compilable?
14248{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14249echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14250cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
14256$ac_includes_default
14257#include <opagent.h>
14258_ACEOF
14259rm -f conftest.$ac_objext
14260if { (ac_try="$ac_compile"
14261case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_header_compiler=yes
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014298 ac_header_compiler=no
14299fi
14300
14301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303echo "${ECHO_T}$ac_header_compiler" >&6; }
14304
14305# Is the header present?
14306{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14307echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14308cat >conftest.$ac_ext <<_ACEOF
14309/* confdefs.h. */
14310_ACEOF
14311cat confdefs.h >>conftest.$ac_ext
14312cat >>conftest.$ac_ext <<_ACEOF
14313/* end confdefs.h. */
14314#include <opagent.h>
14315_ACEOF
14316if { (ac_try="$ac_cpp conftest.$ac_ext"
14317case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null; then
14329 if test -s conftest.err; then
14330 ac_cpp_err=$ac_c_preproc_warn_flag
14331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14332 else
14333 ac_cpp_err=
14334 fi
14335else
14336 ac_cpp_err=yes
14337fi
14338if test -z "$ac_cpp_err"; then
14339 ac_header_preproc=yes
14340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 ac_header_preproc=no
14345fi
14346
14347rm -f conftest.err conftest.$ac_ext
14348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14349echo "${ECHO_T}$ac_header_preproc" >&6; }
14350
14351# So? What about this header?
14352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14353 yes:no: )
14354 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14355echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14357echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14358 ac_header_preproc=yes
14359 ;;
14360 no:yes:* )
14361 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14362echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14364echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14366echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14368echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14370echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14372echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14373 ( cat <<\_ASBOX
14374## ----------------------------------- ##
14375## Report this to llvmbugs@cs.uiuc.edu ##
14376## ----------------------------------- ##
14377_ASBOX
14378 ) | sed "s/^/$as_me: WARNING: /" >&2
14379 ;;
14380esac
14381{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14382echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14383if test "${ac_cv_header_opagent_h+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386 ac_cv_header_opagent_h=$ac_header_preproc
14387fi
14388{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14389echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14390
14391fi
14392if test $ac_cv_header_opagent_h = yes; then
14393 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014394else
14395
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014396 echo "Error! You need to have opagent.h around."
14397 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014398
14399fi
14400
14401
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014402 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014403
14404else
14405
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014406 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014407
14408
14409fi
14410
14411
14412cat >>confdefs.h <<_ACEOF
14413#define USE_OPROFILE $USE_OPROFILE
14414_ACEOF
14415
14416
14417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418
14419
14420
14421
14422
Reid Spencer59473af2004-12-25 07:31:29 +000014423ac_header_dirent=no
14424for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014425 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14426{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14427echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431 cat >conftest.$ac_ext <<_ACEOF
14432/* confdefs.h. */
14433_ACEOF
14434cat confdefs.h >>conftest.$ac_ext
14435cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014436/* end confdefs.h. */
14437#include <sys/types.h>
14438#include <$ac_hdr>
14439
14440int
14441main ()
14442{
14443if ((DIR *) 0)
14444return 0;
14445 ;
14446 return 0;
14447}
14448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449rm -f conftest.$ac_objext
14450if { (ac_try="$ac_compile"
14451case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454esac
14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_compile") 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
14468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477esac
14478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_try") 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014483 eval "$as_ac_Header=yes"
14484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485 echo "$as_me: failed program was:" >&5
14486sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014490
Reid Spencera773bd52006-08-04 18:18:08 +000014491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493ac_res=`eval echo '${'$as_ac_Header'}'`
14494 { echo "$as_me:$LINENO: result: $ac_res" >&5
14495echo "${ECHO_T}$ac_res" >&6; }
14496if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014497 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014499_ACEOF
14500
14501ac_header_dirent=$ac_hdr; break
14502fi
14503
14504done
14505# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14506if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014507 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14508echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14509if test "${ac_cv_search_opendir+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014511else
14512 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014513cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h. */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014518/* end confdefs.h. */
14519
Reid Spencera773bd52006-08-04 18:18:08 +000014520/* Override any GCC internal prototype to avoid an error.
14521 Use char because int might match the return type of a GCC
14522 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014523#ifdef __cplusplus
14524extern "C"
14525#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014526char opendir ();
14527int
14528main ()
14529{
Reid Spencera773bd52006-08-04 18:18:08 +000014530return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014531 ;
14532 return 0;
14533}
14534_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014535for ac_lib in '' dir; do
14536 if test -z "$ac_lib"; then
14537 ac_res="none required"
14538 else
14539 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014541 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542 rm -f conftest.$ac_objext conftest$ac_exeext
14543if { (ac_try="$ac_link"
14544case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>conftest.er1
14550 ac_status=$?
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest$ac_exeext'
14567 { (case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570esac
14571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_try") 2>&5
14573 ac_status=$?
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014576 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014577else
14578 echo "$as_me: failed program was:" >&5
14579sed 's/^/| /' conftest.$ac_ext >&5
14580
14581
Reid Spencer59473af2004-12-25 07:31:29 +000014582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014583
Bill Wendlingebcceee2009-04-18 11:20:33 +000014584rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585 conftest$ac_exeext
14586 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014587 break
Reid Spencer59473af2004-12-25 07:31:29 +000014588fi
Reid Spencera773bd52006-08-04 18:18:08 +000014589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590if test "${ac_cv_search_opendir+set}" = set; then
14591 :
Reid Spencera773bd52006-08-04 18:18:08 +000014592else
14593 ac_cv_search_opendir=no
14594fi
14595rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014596LIBS=$ac_func_search_save_LIBS
14597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014598{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14599echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014600ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014601if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014603
14604fi
14605
14606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014607 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14608echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14609if test "${ac_cv_search_opendir+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014611else
14612 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014613cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014618/* end confdefs.h. */
14619
Reid Spencera773bd52006-08-04 18:18:08 +000014620/* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014623#ifdef __cplusplus
14624extern "C"
14625#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014626char opendir ();
14627int
14628main ()
14629{
Reid Spencera773bd52006-08-04 18:18:08 +000014630return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014631 ;
14632 return 0;
14633}
14634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014635for ac_lib in '' x; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14638 else
14639 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014641 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014642 rm -f conftest.$ac_objext conftest$ac_exeext
14643if { (ac_try="$ac_link"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660esac
14661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670esac
14671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_try") 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014676 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014677else
14678 echo "$as_me: failed program was:" >&5
14679sed 's/^/| /' conftest.$ac_ext >&5
14680
14681
Reid Spencer59473af2004-12-25 07:31:29 +000014682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014683
Bill Wendlingebcceee2009-04-18 11:20:33 +000014684rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014685 conftest$ac_exeext
14686 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014687 break
Reid Spencer59473af2004-12-25 07:31:29 +000014688fi
Reid Spencera773bd52006-08-04 18:18:08 +000014689done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014690if test "${ac_cv_search_opendir+set}" = set; then
14691 :
Reid Spencera773bd52006-08-04 18:18:08 +000014692else
14693 ac_cv_search_opendir=no
14694fi
14695rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014696LIBS=$ac_func_search_save_LIBS
14697fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014698{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14699echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014700ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014701if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014703
14704fi
14705
14706fi
14707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014708{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14709echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14710if test "${ac_cv_header_mmap_anon+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014712else
14713 ac_ext=c
14714ac_cpp='$CPP $CPPFLAGS'
14715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14717ac_compiler_gnu=$ac_cv_c_compiler_gnu
14718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014724/* end confdefs.h. */
14725#include <sys/mman.h>
14726#include <unistd.h>
14727#include <fcntl.h>
14728int
14729main ()
14730{
14731mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14732 ;
14733 return 0;
14734}
14735_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014736rm -f conftest.$ac_objext
14737if { (ac_try="$ac_compile"
14738case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764esac
14765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_try") 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014770 ac_cv_header_mmap_anon=yes
14771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772 echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014777
Reid Spencera773bd52006-08-04 18:18:08 +000014778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014779 ac_ext=c
14780ac_cpp='$CPP $CPPFLAGS'
14781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14783ac_compiler_gnu=$ac_cv_c_compiler_gnu
14784
14785
14786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014787{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14788echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014789if test "$ac_cv_header_mmap_anon" = yes; then
14790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014791cat >>confdefs.h <<\_ACEOF
14792#define HAVE_MMAP_ANONYMOUS 1
14793_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014794
14795fi
14796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014797{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14798echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14799if test "${ac_cv_header_stat_broken+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014802 cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014807/* end confdefs.h. */
14808#include <sys/types.h>
14809#include <sys/stat.h>
14810
Reid Spencera773bd52006-08-04 18:18:08 +000014811#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014812# if S_ISBLK (S_IFDIR)
14813You lose.
14814# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014815#endif
14816
Reid Spencera773bd52006-08-04 18:18:08 +000014817#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014818# if S_ISBLK (S_IFCHR)
14819You lose.
14820# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014821#endif
14822
Reid Spencera773bd52006-08-04 18:18:08 +000014823#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014824# if S_ISLNK (S_IFREG)
14825You lose.
14826# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014827#endif
14828
Reid Spencera773bd52006-08-04 18:18:08 +000014829#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014830# if S_ISSOCK (S_IFREG)
14831You lose.
14832# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014833#endif
14834
14835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014838 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014839else
14840 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014842rm -f conftest*
14843
Reid Spencer59473af2004-12-25 07:31:29 +000014844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014845{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14846echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014847if test $ac_cv_header_stat_broken = yes; then
14848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014849cat >>confdefs.h <<\_ACEOF
14850#define STAT_MACROS_BROKEN 1
14851_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014852
14853fi
14854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014855{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14856echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14857if test "${ac_cv_header_stdc+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014860 cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014866#include <stdlib.h>
14867#include <stdarg.h>
14868#include <string.h>
14869#include <float.h>
14870
John Criswell0c38eaf2003-09-10 15:17:25 +000014871int
14872main ()
14873{
14874
14875 ;
14876 return 0;
14877}
John Criswell7a73b802003-06-30 21:59:07 +000014878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014879rm -f conftest.$ac_objext
14880if { (ac_try="$ac_compile"
14881case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884esac
14885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14894 { (case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897esac
14898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_try") 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014913 ac_cv_header_stdc=yes
14914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014920
Reid Spencera773bd52006-08-04 18:18:08 +000014921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014922
14923if test $ac_cv_header_stdc = yes; then
14924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014925 cat >conftest.$ac_ext <<_ACEOF
14926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014931#include <string.h>
14932
14933_ACEOF
14934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014935 $EGREP "memchr" >/dev/null 2>&1; then
14936 :
John Criswell7a73b802003-06-30 21:59:07 +000014937else
14938 ac_cv_header_stdc=no
14939fi
14940rm -f conftest*
14941
14942fi
14943
14944if test $ac_cv_header_stdc = yes; then
14945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014952#include <stdlib.h>
14953
14954_ACEOF
14955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014956 $EGREP "free" >/dev/null 2>&1; then
14957 :
John Criswell7a73b802003-06-30 21:59:07 +000014958else
14959 ac_cv_header_stdc=no
14960fi
14961rm -f conftest*
14962
14963fi
14964
14965if test $ac_cv_header_stdc = yes; then
14966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014967 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014968 :
14969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014970 cat >conftest.$ac_ext <<_ACEOF
14971/* confdefs.h. */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014976#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014977#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014978#if ((' ' & 0x0FF) == 0x020)
14979# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14980# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14981#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014982# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014983 (('a' <= (c) && (c) <= 'i') \
14984 || ('j' <= (c) && (c) <= 'r') \
14985 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014986# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14987#endif
14988
14989#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14990int
14991main ()
14992{
14993 int i;
14994 for (i = 0; i < 256; i++)
14995 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014996 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014997 return 2;
14998 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014999}
15000_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015001rm -f conftest$ac_exeext
15002if { (ac_try="$ac_link"
15003case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006esac
15007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15012 { (case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015esac
15016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_try") 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 :
John Criswell7a73b802003-06-30 21:59:07 +000015022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015023 echo "$as_me: program exited with status $ac_status" >&5
15024echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
15026
15027( exit $ac_status )
15028ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030rm -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 +000015031fi
15032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033
John Criswell7a73b802003-06-30 21:59:07 +000015034fi
15035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15037echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015038if test $ac_cv_header_stdc = yes; then
15039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015040cat >>confdefs.h <<\_ACEOF
15041#define STDC_HEADERS 1
15042_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015043
15044fi
15045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015046{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15047echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15048if test "${ac_cv_header_sys_wait_h+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015050else
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 <sys/types.h>
15058#include <sys/wait.h>
15059#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015060# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015061#endif
15062#ifndef WIFEXITED
15063# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15064#endif
15065
John Criswell7a73b802003-06-30 21:59:07 +000015066int
15067main ()
15068{
15069 int s;
15070 wait (&s);
15071 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15072 ;
15073 return 0;
15074}
15075_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076rm -f conftest.$ac_objext
15077if { (ac_try="$ac_compile"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015110 ac_cv_header_sys_wait_h=yes
15111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015112 echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117
Reid Spencera773bd52006-08-04 18:18:08 +000015118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015120{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15121echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015122if test $ac_cv_header_sys_wait_h = yes; then
15123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015124cat >>confdefs.h <<\_ACEOF
15125#define HAVE_SYS_WAIT_H 1
15126_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015127
15128fi
15129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015130{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15131echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15132if test "${ac_cv_header_time+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015135 cat >conftest.$ac_ext <<_ACEOF
15136/* confdefs.h. */
15137_ACEOF
15138cat confdefs.h >>conftest.$ac_ext
15139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015140/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015141#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015142#include <sys/time.h>
15143#include <time.h>
15144
15145int
15146main ()
15147{
15148if ((struct tm *) 0)
15149return 0;
15150 ;
15151 return 0;
15152}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154rm -f conftest.$ac_objext
15155if { (ac_try="$ac_compile"
15156case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015188 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195
Reid Spencera773bd52006-08-04 18:18:08 +000015196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015198{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15199echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015200if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015202cat >>confdefs.h <<\_ACEOF
15203#define TIME_WITH_SYS_TIME 1
15204_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015205
15206fi
15207
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015209
15210
15211
15212
15213
15214
Reid Spencer59473af2004-12-25 07:31:29 +000015215for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015216do
15217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223fi
15224ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226echo "${ECHO_T}$ac_res" >&6; }
15227else
15228 # Is the header compilable?
15229{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h. */
15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
15236/* end confdefs.h. */
15237$ac_includes_default
15238#include <$ac_header>
15239_ACEOF
15240rm -f conftest.$ac_objext
15241if { (ac_try="$ac_compile"
15242case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_compile") 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268esac
15269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_try") 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_header_compiler=yes
15275else
15276 echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_header_compiler=no
15280fi
15281
15282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284echo "${ECHO_T}$ac_header_compiler" >&6; }
15285
15286# Is the header present?
15287{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h. */
15295#include <$ac_header>
15296_ACEOF
15297if { (ac_try="$ac_cpp conftest.$ac_ext"
15298case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301esac
15302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313 else
15314 ac_cpp_err=
15315 fi
15316else
15317 ac_cpp_err=yes
15318fi
15319if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15321else
15322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 ac_header_preproc=no
15326fi
15327
15328rm -f conftest.err conftest.$ac_ext
15329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330echo "${ECHO_T}$ac_header_preproc" >&6; }
15331
15332# So? What about this header?
15333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 yes:no: )
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15340 ;;
15341 no:yes:* )
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354 ( cat <<\_ASBOX
15355## ----------------------------------- ##
15356## Report this to llvmbugs@cs.uiuc.edu ##
15357## ----------------------------------- ##
15358_ASBOX
15359 ) | sed "s/^/$as_me: WARNING: /" >&2
15360 ;;
15361esac
15362{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366else
15367 eval "$as_ac_Header=\$ac_header_preproc"
15368fi
15369ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371echo "${ECHO_T}$ac_res" >&6; }
15372
15373fi
15374if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015375 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015377_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015378
15379fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015380
Reid Spencer59473af2004-12-25 07:31:29 +000015381done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383
15384
15385
15386
15387
15388
Douglas Gregor071d73d2009-05-18 17:21:34 +000015389for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015390do
15391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397fi
15398ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400echo "${ECHO_T}$ac_res" >&6; }
15401else
15402 # Is the header compilable?
15403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h. */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h. */
15411$ac_includes_default
15412#include <$ac_header>
15413_ACEOF
15414rm -f conftest.$ac_objext
15415if { (ac_try="$ac_compile"
15416case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442esac
15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 ac_header_compiler=no
15454fi
15455
15456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460# Is the header present?
15461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469#include <$ac_header>
15470_ACEOF
15471if { (ac_try="$ac_cpp conftest.$ac_ext"
15472case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null; then
15484 if test -s conftest.err; then
15485 ac_cpp_err=$ac_c_preproc_warn_flag
15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487 else
15488 ac_cpp_err=
15489 fi
15490else
15491 ac_cpp_err=yes
15492fi
15493if test -z "$ac_cpp_err"; then
15494 ac_header_preproc=yes
15495else
15496 echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499 ac_header_preproc=no
15500fi
15501
15502rm -f conftest.err conftest.$ac_ext
15503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506# So? What about this header?
15507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508 yes:no: )
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513 ac_header_preproc=yes
15514 ;;
15515 no:yes:* )
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528 ( cat <<\_ASBOX
15529## ----------------------------------- ##
15530## Report this to llvmbugs@cs.uiuc.edu ##
15531## ----------------------------------- ##
15532_ASBOX
15533 ) | sed "s/^/$as_me: WARNING: /" >&2
15534 ;;
15535esac
15536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541 eval "$as_ac_Header=\$ac_header_preproc"
15542fi
15543ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545echo "${ECHO_T}$ac_res" >&6; }
15546
15547fi
15548if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015549 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015551_ACEOF
15552
15553fi
15554
15555done
15556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557
15558
Douglas Gregor071d73d2009-05-18 17:21:34 +000015559for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560do
15561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567fi
15568ac_res=`eval echo '${'$as_ac_Header'}'`
15569 { echo "$as_me:$LINENO: result: $ac_res" >&5
15570echo "${ECHO_T}$ac_res" >&6; }
15571else
15572 # Is the header compilable?
15573{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15575cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h. */
15581$ac_includes_default
15582#include <$ac_header>
15583_ACEOF
15584rm -f conftest.$ac_objext
15585if { (ac_try="$ac_compile"
15586case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_compile") 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602esac
15603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612esac
15613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_try") 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_header_compiler=yes
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ac_header_compiler=no
15624fi
15625
15626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15628echo "${ECHO_T}$ac_header_compiler" >&6; }
15629
15630# Is the header present?
15631{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15633cat >conftest.$ac_ext <<_ACEOF
15634/* confdefs.h. */
15635_ACEOF
15636cat confdefs.h >>conftest.$ac_ext
15637cat >>conftest.$ac_ext <<_ACEOF
15638/* end confdefs.h. */
15639#include <$ac_header>
15640_ACEOF
15641if { (ac_try="$ac_cpp conftest.$ac_ext"
15642case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } >/dev/null; then
15654 if test -s conftest.err; then
15655 ac_cpp_err=$ac_c_preproc_warn_flag
15656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15657 else
15658 ac_cpp_err=
15659 fi
15660else
15661 ac_cpp_err=yes
15662fi
15663if test -z "$ac_cpp_err"; then
15664 ac_header_preproc=yes
15665else
15666 echo "$as_me: failed program was:" >&5
15667sed 's/^/| /' conftest.$ac_ext >&5
15668
15669 ac_header_preproc=no
15670fi
15671
15672rm -f conftest.err conftest.$ac_ext
15673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674echo "${ECHO_T}$ac_header_preproc" >&6; }
15675
15676# So? What about this header?
15677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678 yes:no: )
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683 ac_header_preproc=yes
15684 ;;
15685 no:yes:* )
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15698 ( cat <<\_ASBOX
15699## ----------------------------------- ##
15700## Report this to llvmbugs@cs.uiuc.edu ##
15701## ----------------------------------- ##
15702_ASBOX
15703 ) | sed "s/^/$as_me: WARNING: /" >&2
15704 ;;
15705esac
15706{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710else
15711 eval "$as_ac_Header=\$ac_header_preproc"
15712fi
15713ac_res=`eval echo '${'$as_ac_Header'}'`
15714 { echo "$as_me:$LINENO: result: $ac_res" >&5
15715echo "${ECHO_T}$ac_res" >&6; }
15716
15717fi
15718if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015719 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015721_ACEOF
15722
15723fi
15724
15725done
Reid Spencer59473af2004-12-25 07:31:29 +000015726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015727
15728
15729
15730
Reid Spencerbe3e4192007-08-17 05:45:26 +000015731for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015732do
15733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743else
15744 # Is the header compilable?
15745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753$ac_includes_default
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (ac_try="$ac_compile"
15758case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_header_compiler=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802# Is the header present?
15803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811#include <$ac_header>
15812_ACEOF
15813if { (ac_try="$ac_cpp conftest.$ac_ext"
15814case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829 else
15830 ac_cpp_err=
15831 fi
15832else
15833 ac_cpp_err=yes
15834fi
15835if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_header_preproc=no
15842fi
15843
15844rm -f conftest.err conftest.$ac_ext
15845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848# So? What about this header?
15849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850 yes:no: )
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15856 ;;
15857 no:yes:* )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870 ( cat <<\_ASBOX
15871## ----------------------------------- ##
15872## Report this to llvmbugs@cs.uiuc.edu ##
15873## ----------------------------------- ##
15874_ASBOX
15875 ) | sed "s/^/$as_me: WARNING: /" >&2
15876 ;;
15877esac
15878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883 eval "$as_ac_Header=\$ac_header_preproc"
15884fi
15885ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887echo "${ECHO_T}$ac_res" >&6; }
15888
15889fi
15890if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015891 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015893_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015894
15895fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015896
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015897done
15898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015899
15900
15901
15902
Douglas Gregor01746742009-05-11 18:05:52 +000015903for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015904do
15905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911fi
15912ac_res=`eval echo '${'$as_ac_Header'}'`
15913 { echo "$as_me:$LINENO: result: $ac_res" >&5
15914echo "${ECHO_T}$ac_res" >&6; }
15915else
15916 # Is the header compilable?
15917{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15919cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926#include <$ac_header>
15927_ACEOF
15928rm -f conftest.$ac_objext
15929if { (ac_try="$ac_compile"
15930case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933esac
15934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_compile") 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946esac
15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_try") 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956esac
15957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_try") 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_header_compiler=yes
15963else
15964 echo "$as_me: failed program was:" >&5
15965sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 ac_header_compiler=no
15968fi
15969
15970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15972echo "${ECHO_T}$ac_header_compiler" >&6; }
15973
15974# Is the header present?
15975{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15977cat >conftest.$ac_ext <<_ACEOF
15978/* confdefs.h. */
15979_ACEOF
15980cat confdefs.h >>conftest.$ac_ext
15981cat >>conftest.$ac_ext <<_ACEOF
15982/* end confdefs.h. */
15983#include <$ac_header>
15984_ACEOF
15985if { (ac_try="$ac_cpp conftest.$ac_ext"
15986case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989esac
15990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } >/dev/null; then
15998 if test -s conftest.err; then
15999 ac_cpp_err=$ac_c_preproc_warn_flag
16000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16001 else
16002 ac_cpp_err=
16003 fi
16004else
16005 ac_cpp_err=yes
16006fi
16007if test -z "$ac_cpp_err"; then
16008 ac_header_preproc=yes
16009else
16010 echo "$as_me: failed program was:" >&5
16011sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 ac_header_preproc=no
16014fi
16015
16016rm -f conftest.err conftest.$ac_ext
16017{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16018echo "${ECHO_T}$ac_header_preproc" >&6; }
16019
16020# So? What about this header?
16021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16022 yes:no: )
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16027 ac_header_preproc=yes
16028 ;;
16029 no:yes:* )
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16042 ( cat <<\_ASBOX
16043## ----------------------------------- ##
16044## Report this to llvmbugs@cs.uiuc.edu ##
16045## ----------------------------------- ##
16046_ASBOX
16047 ) | sed "s/^/$as_me: WARNING: /" >&2
16048 ;;
16049esac
16050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054else
16055 eval "$as_ac_Header=\$ac_header_preproc"
16056fi
16057ac_res=`eval echo '${'$as_ac_Header'}'`
16058 { echo "$as_me:$LINENO: result: $ac_res" >&5
16059echo "${ECHO_T}$ac_res" >&6; }
16060
16061fi
16062if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016063 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016065_ACEOF
16066
16067fi
16068
16069done
16070
Reid Spencer0a262ba2005-08-24 10:07:20 +000016071if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016072
16073for ac_header in pthread.h
16074do
16075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16081fi
16082ac_res=`eval echo '${'$as_ac_Header'}'`
16083 { echo "$as_me:$LINENO: result: $ac_res" >&5
16084echo "${ECHO_T}$ac_res" >&6; }
16085else
16086 # Is the header compilable?
16087{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16089cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h. */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
16095$ac_includes_default
16096#include <$ac_header>
16097_ACEOF
16098rm -f conftest.$ac_objext
16099if { (ac_try="$ac_compile"
16100case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103esac
16104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_compile") 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16113 { (case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116esac
16117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_try") 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126esac
16127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_try") 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_header_compiler=yes
16133else
16134 echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_header_compiler=no
16138fi
16139
16140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16142echo "${ECHO_T}$ac_header_compiler" >&6; }
16143
16144# Is the header present?
16145{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16147cat >conftest.$ac_ext <<_ACEOF
16148/* confdefs.h. */
16149_ACEOF
16150cat confdefs.h >>conftest.$ac_ext
16151cat >>conftest.$ac_ext <<_ACEOF
16152/* end confdefs.h. */
16153#include <$ac_header>
16154_ACEOF
16155if { (ac_try="$ac_cpp conftest.$ac_ext"
16156case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } >/dev/null; then
16168 if test -s conftest.err; then
16169 ac_cpp_err=$ac_c_preproc_warn_flag
16170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16171 else
16172 ac_cpp_err=
16173 fi
16174else
16175 ac_cpp_err=yes
16176fi
16177if test -z "$ac_cpp_err"; then
16178 ac_header_preproc=yes
16179else
16180 echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_header_preproc=no
16184fi
16185
16186rm -f conftest.err conftest.$ac_ext
16187{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16188echo "${ECHO_T}$ac_header_preproc" >&6; }
16189
16190# So? What about this header?
16191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16192 yes:no: )
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16197 ac_header_preproc=yes
16198 ;;
16199 no:yes:* )
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16212 ( cat <<\_ASBOX
16213## ----------------------------------- ##
16214## Report this to llvmbugs@cs.uiuc.edu ##
16215## ----------------------------------- ##
16216_ASBOX
16217 ) | sed "s/^/$as_me: WARNING: /" >&2
16218 ;;
16219esac
16220{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224else
16225 eval "$as_ac_Header=\$ac_header_preproc"
16226fi
16227ac_res=`eval echo '${'$as_ac_Header'}'`
16228 { echo "$as_me:$LINENO: result: $ac_res" >&5
16229echo "${ECHO_T}$ac_res" >&6; }
16230
16231fi
16232if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016233 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016235_ACEOF
16236 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016237
16238else
16239 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016240
16241fi
16242
Reid Spencerbe3e4192007-08-17 05:45:26 +000016243done
Reid Spencer1000b732006-12-01 00:37:14 +000016244
16245else
16246 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016247
16248fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016249
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016250if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016251
16252
16253for ac_header in ffi.h ffi/ffi.h
16254do
16255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261fi
16262ac_res=`eval echo '${'$as_ac_Header'}'`
16263 { echo "$as_me:$LINENO: result: $ac_res" >&5
16264echo "${ECHO_T}$ac_res" >&6; }
16265else
16266 # Is the header compilable?
16267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16269cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
16274/* end confdefs.h. */
16275$ac_includes_default
16276#include <$ac_header>
16277_ACEOF
16278rm -f conftest.$ac_objext
16279if { (ac_try="$ac_compile"
16280case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16283esac
16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296esac
16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest.$ac_objext'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
16307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_header_compiler=yes
16313else
16314 echo "$as_me: failed program was:" >&5
16315sed 's/^/| /' conftest.$ac_ext >&5
16316
16317 ac_header_compiler=no
16318fi
16319
16320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322echo "${ECHO_T}$ac_header_compiler" >&6; }
16323
16324# Is the header present?
16325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327cat >conftest.$ac_ext <<_ACEOF
16328/* confdefs.h. */
16329_ACEOF
16330cat confdefs.h >>conftest.$ac_ext
16331cat >>conftest.$ac_ext <<_ACEOF
16332/* end confdefs.h. */
16333#include <$ac_header>
16334_ACEOF
16335if { (ac_try="$ac_cpp conftest.$ac_ext"
16336case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } >/dev/null; then
16348 if test -s conftest.err; then
16349 ac_cpp_err=$ac_c_preproc_warn_flag
16350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16351 else
16352 ac_cpp_err=
16353 fi
16354else
16355 ac_cpp_err=yes
16356fi
16357if test -z "$ac_cpp_err"; then
16358 ac_header_preproc=yes
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_header_preproc=no
16364fi
16365
16366rm -f conftest.err conftest.$ac_ext
16367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368echo "${ECHO_T}$ac_header_preproc" >&6; }
16369
16370# So? What about this header?
16371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16372 yes:no: )
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377 ac_header_preproc=yes
16378 ;;
16379 no:yes:* )
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16392 ( cat <<\_ASBOX
16393## ----------------------------------- ##
16394## Report this to llvmbugs@cs.uiuc.edu ##
16395## ----------------------------------- ##
16396_ASBOX
16397 ) | sed "s/^/$as_me: WARNING: /" >&2
16398 ;;
16399esac
16400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404else
16405 eval "$as_ac_Header=\$ac_header_preproc"
16406fi
16407ac_res=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409echo "${ECHO_T}$ac_res" >&6; }
16410
16411fi
16412if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016413 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016415_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016416
16417fi
16418
16419done
16420
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016421fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016422
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016423
Reid Spencer8085cff2005-01-16 02:58:39 +000016424
Torok Edwin871384f2010-01-26 08:50:50 +000016425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016426 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16427echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16428if test "${ac_cv_huge_val_sanity+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016430else
16431
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016432 ac_ext=cpp
16433ac_cpp='$CXXCPP $CPPFLAGS'
16434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016437
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016438 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016439 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016440 ac_cv_huge_val_sanity=yes
16441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016442 cat >conftest.$ac_ext <<_ACEOF
16443/* confdefs.h. */
16444_ACEOF
16445cat confdefs.h >>conftest.$ac_ext
16446cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016447/* end confdefs.h. */
16448#include <math.h>
16449int
16450main ()
16451{
16452double x = HUGE_VAL; return x != x;
16453 ;
16454 return 0;
16455}
16456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457rm -f conftest$ac_exeext
16458if { (ac_try="$ac_link"
16459case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462esac
16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016477 ac_cv_huge_val_sanity=yes
16478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016479 echo "$as_me: program exited with status $ac_status" >&5
16480echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483( exit $ac_status )
16484ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016486rm -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 +000016487fi
16488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016489
Reid Spencerb2ed05262006-11-03 18:04:08 +000016490 ac_ext=c
16491ac_cpp='$CPP $CPPFLAGS'
16492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496
16497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016498{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16499echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016500 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16501
16502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016503{ echo "$as_me:$LINENO: checking for pid_t" >&5
16504echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16505if test "${ac_cv_type_pid_t+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
16508 cat >conftest.$ac_ext <<_ACEOF
16509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
16514$ac_includes_default
16515typedef pid_t ac__type_new_;
16516int
16517main ()
16518{
16519if ((ac__type_new_ *) 0)
16520 return 0;
16521if (sizeof (ac__type_new_))
16522 return 0;
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext
16528if { (ac_try="$ac_compile"
16529case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_compile") 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545esac
16546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest.$ac_objext'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_cv_type_pid_t=yes
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016566 ac_cv_type_pid_t=no
16567fi
16568
16569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570fi
16571{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16572echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16573if test $ac_cv_type_pid_t = yes; then
16574 :
John Criswell7a73b802003-06-30 21:59:07 +000016575else
16576
16577cat >>confdefs.h <<_ACEOF
16578#define pid_t int
16579_ACEOF
16580
16581fi
16582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016583{ echo "$as_me:$LINENO: checking for size_t" >&5
16584echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16585if test "${ac_cv_type_size_t+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587else
16588 cat >conftest.$ac_ext <<_ACEOF
16589/* confdefs.h. */
16590_ACEOF
16591cat confdefs.h >>conftest.$ac_ext
16592cat >>conftest.$ac_ext <<_ACEOF
16593/* end confdefs.h. */
16594$ac_includes_default
16595typedef size_t ac__type_new_;
16596int
16597main ()
16598{
16599if ((ac__type_new_ *) 0)
16600 return 0;
16601if (sizeof (ac__type_new_))
16602 return 0;
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext
16608if { (ac_try="$ac_compile"
16609case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_compile") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; } &&
16631 { ac_try='test -s conftest.$ac_objext'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_cv_type_size_t=yes
16642else
16643 echo "$as_me: failed program was:" >&5
16644sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016646 ac_cv_type_size_t=no
16647fi
16648
16649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650fi
16651{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16652echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16653if test $ac_cv_type_size_t = yes; then
16654 :
John Criswell7a73b802003-06-30 21:59:07 +000016655else
16656
16657cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016658#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016659_ACEOF
16660
16661fi
16662
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016663
16664cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016665#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016666_ACEOF
16667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016668{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16669echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16670if test "${ac_cv_struct_tm+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016673 cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016678/* end confdefs.h. */
16679#include <sys/types.h>
16680#include <time.h>
16681
16682int
16683main ()
16684{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016685struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016686 ;
16687 return 0;
16688}
16689_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016690rm -f conftest.$ac_objext
16691if { (ac_try="$ac_compile"
16692case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708esac
16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016724 ac_cv_struct_tm=time.h
16725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
16729 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016731
Reid Spencera773bd52006-08-04 18:18:08 +000016732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016734{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16735echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016736if test $ac_cv_struct_tm = sys/time.h; then
16737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016738cat >>confdefs.h <<\_ACEOF
16739#define TM_IN_SYS_TIME 1
16740_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016741
16742fi
16743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016744{ echo "$as_me:$LINENO: checking for int64_t" >&5
16745echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16746if test "${ac_cv_type_int64_t+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748else
16749 cat >conftest.$ac_ext <<_ACEOF
16750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
16755$ac_includes_default
16756typedef int64_t ac__type_new_;
16757int
16758main ()
16759{
16760if ((ac__type_new_ *) 0)
16761 return 0;
16762if (sizeof (ac__type_new_))
16763 return 0;
16764 ;
16765 return 0;
16766}
16767_ACEOF
16768rm -f conftest.$ac_objext
16769if { (ac_try="$ac_compile"
16770case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_compile") 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796esac
16797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_type_int64_t=yes
16803else
16804 echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807 ac_cv_type_int64_t=no
16808fi
16809
16810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811fi
16812{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16813echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16814if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016815
16816cat >>confdefs.h <<_ACEOF
16817#define HAVE_INT64_T 1
16818_ACEOF
16819
16820
16821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016822 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16823echo "$as_me: error: Type int64_t required but not found" >&2;}
16824 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016825fi
16826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016827{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16828echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16829if test "${ac_cv_type_uint64_t+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16831else
16832 cat >conftest.$ac_ext <<_ACEOF
16833/* confdefs.h. */
16834_ACEOF
16835cat confdefs.h >>conftest.$ac_ext
16836cat >>conftest.$ac_ext <<_ACEOF
16837/* end confdefs.h. */
16838$ac_includes_default
16839typedef uint64_t ac__type_new_;
16840int
16841main ()
16842{
16843if ((ac__type_new_ *) 0)
16844 return 0;
16845if (sizeof (ac__type_new_))
16846 return 0;
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext
16852if { (ac_try="$ac_compile"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_compile") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_type_uint64_t=yes
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890 ac_cv_type_uint64_t=no
16891fi
16892
16893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894fi
16895{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16896echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16897if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016898
16899cat >>confdefs.h <<_ACEOF
16900#define HAVE_UINT64_T 1
16901_ACEOF
16902
16903
16904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016905 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16906echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16907if test "${ac_cv_type_u_int64_t+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
16917typedef u_int64_t ac__type_new_;
16918int
16919main ()
16920{
16921if ((ac__type_new_ *) 0)
16922 return 0;
16923if (sizeof (ac__type_new_))
16924 return 0;
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext
16930if { (ac_try="$ac_compile"
16931case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_compile") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947esac
16948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957esac
16958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_type_u_int64_t=yes
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 ac_cv_type_u_int64_t=no
16969fi
16970
16971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972fi
16973{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16974echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16975if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016976
16977cat >>confdefs.h <<_ACEOF
16978#define HAVE_U_INT64_T 1
16979_ACEOF
16980
16981
Misha Brukmanceca9042004-09-02 23:02:30 +000016982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016983 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16984echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16985 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016986fi
16987
John Criswell679ff312004-09-02 18:44:44 +000016988fi
16989
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016990
16991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016992
16993
16994
16995
16996
16997
16998
Reid Spencerdf3be822006-01-23 08:15:53 +000016999for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017000do
17001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006else
17007 cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17015#define $ac_func innocuous_$ac_func
17016
17017/* System header to define __stub macros and hopefully few prototypes,
17018 which can conflict with char $ac_func (); below.
17019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17020 <limits.h> exists even on freestanding compilers. */
17021
17022#ifdef __STDC__
17023# include <limits.h>
17024#else
17025# include <assert.h>
17026#endif
17027
17028#undef $ac_func
17029
17030/* Override any GCC internal prototype to avoid an error.
17031 Use char because int might match the return type of a GCC
17032 builtin and then its argument prototype would still apply. */
17033#ifdef __cplusplus
17034extern "C"
17035#endif
17036char $ac_func ();
17037/* The GNU C library defines this for functions which it implements
17038 to always fail with ENOSYS. Some functions are actually named
17039 something starting with __ and the normal name is an alias. */
17040#if defined __stub_$ac_func || defined __stub___$ac_func
17041choke me
17042#endif
17043
17044int
17045main ()
17046{
17047return $ac_func ();
17048 ;
17049 return 0;
17050}
17051_ACEOF
17052rm -f conftest.$ac_objext conftest$ac_exeext
17053if { (ac_try="$ac_link"
17054case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070esac
17071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; } &&
17076 { ac_try='test -s conftest$ac_exeext'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 eval "$as_ac_var=yes"
17087else
17088 echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091 eval "$as_ac_var=no"
17092fi
17093
17094rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096fi
17097ac_res=`eval echo '${'$as_ac_var'}'`
17098 { echo "$as_me:$LINENO: result: $ac_res" >&5
17099echo "${ECHO_T}$ac_res" >&6; }
17100if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017101 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017103_ACEOF
17104
17105fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017106done
John Criswell7a73b802003-06-30 21:59:07 +000017107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017108
17109
17110
17111
Reid Spencer96cf5872007-07-13 10:05:30 +000017112for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017113do
17114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17115{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 cat >conftest.$ac_ext <<_ACEOF
17121/* confdefs.h. */
17122_ACEOF
17123cat confdefs.h >>conftest.$ac_ext
17124cat >>conftest.$ac_ext <<_ACEOF
17125/* end confdefs.h. */
17126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17128#define $ac_func innocuous_$ac_func
17129
17130/* System header to define __stub macros and hopefully few prototypes,
17131 which can conflict with char $ac_func (); below.
17132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17133 <limits.h> exists even on freestanding compilers. */
17134
17135#ifdef __STDC__
17136# include <limits.h>
17137#else
17138# include <assert.h>
17139#endif
17140
17141#undef $ac_func
17142
17143/* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17146#ifdef __cplusplus
17147extern "C"
17148#endif
17149char $ac_func ();
17150/* The GNU C library defines this for functions which it implements
17151 to always fail with ENOSYS. Some functions are actually named
17152 something starting with __ and the normal name is an alias. */
17153#if defined __stub_$ac_func || defined __stub___$ac_func
17154choke me
17155#endif
17156
17157int
17158main ()
17159{
17160return $ac_func ();
17161 ;
17162 return 0;
17163}
17164_ACEOF
17165rm -f conftest.$ac_objext conftest$ac_exeext
17166if { (ac_try="$ac_link"
17167case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_link") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17180 { (case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183esac
17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_try") 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest$ac_exeext'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 eval "$as_ac_var=yes"
17200else
17201 echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204 eval "$as_ac_var=no"
17205fi
17206
17207rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17209fi
17210ac_res=`eval echo '${'$as_ac_var'}'`
17211 { echo "$as_me:$LINENO: result: $ac_res" >&5
17212echo "${ECHO_T}$ac_res" >&6; }
17213if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017214 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017216_ACEOF
17217
17218fi
17219done
17220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017221
17222
17223
17224
17225
Reid Spencerb90645c2007-02-16 19:17:20 +000017226for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017227do
17228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 cat >conftest.$ac_ext <<_ACEOF
17235/* confdefs.h. */
17236_ACEOF
17237cat confdefs.h >>conftest.$ac_ext
17238cat >>conftest.$ac_ext <<_ACEOF
17239/* end confdefs.h. */
17240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17242#define $ac_func innocuous_$ac_func
17243
17244/* System header to define __stub macros and hopefully few prototypes,
17245 which can conflict with char $ac_func (); below.
17246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17247 <limits.h> exists even on freestanding compilers. */
17248
17249#ifdef __STDC__
17250# include <limits.h>
17251#else
17252# include <assert.h>
17253#endif
17254
17255#undef $ac_func
17256
17257/* Override any GCC internal prototype to avoid an error.
17258 Use char because int might match the return type of a GCC
17259 builtin and then its argument prototype would still apply. */
17260#ifdef __cplusplus
17261extern "C"
17262#endif
17263char $ac_func ();
17264/* The GNU C library defines this for functions which it implements
17265 to always fail with ENOSYS. Some functions are actually named
17266 something starting with __ and the normal name is an alias. */
17267#if defined __stub_$ac_func || defined __stub___$ac_func
17268choke me
17269#endif
17270
17271int
17272main ()
17273{
17274return $ac_func ();
17275 ;
17276 return 0;
17277}
17278_ACEOF
17279rm -f conftest.$ac_objext conftest$ac_exeext
17280if { (ac_try="$ac_link"
17281case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17284esac
17285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_link") 2>conftest.er1
17287 ac_status=$?
17288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
17304 { (case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17307esac
17308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_try") 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 eval "$as_ac_var=yes"
17314else
17315 echo "$as_me: failed program was:" >&5
17316sed 's/^/| /' conftest.$ac_ext >&5
17317
17318 eval "$as_ac_var=no"
17319fi
17320
17321rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17323fi
17324ac_res=`eval echo '${'$as_ac_var'}'`
17325 { echo "$as_me:$LINENO: result: $ac_res" >&5
17326echo "${ECHO_T}$ac_res" >&6; }
17327if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017328 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017330_ACEOF
17331
17332fi
17333done
17334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017335
17336
17337
Reid Spencerb90645c2007-02-16 19:17:20 +000017338for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017339do
17340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17341{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346 cat >conftest.$ac_ext <<_ACEOF
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
17352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17354#define $ac_func innocuous_$ac_func
17355
17356/* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func (); below.
17358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17359 <limits.h> exists even on freestanding compilers. */
17360
17361#ifdef __STDC__
17362# include <limits.h>
17363#else
17364# include <assert.h>
17365#endif
17366
17367#undef $ac_func
17368
17369/* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17372#ifdef __cplusplus
17373extern "C"
17374#endif
17375char $ac_func ();
17376/* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379#if defined __stub_$ac_func || defined __stub___$ac_func
17380choke me
17381#endif
17382
17383int
17384main ()
17385{
17386return $ac_func ();
17387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest.$ac_objext conftest$ac_exeext
17392if { (ac_try="$ac_link"
17393case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_link") 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409esac
17410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
17416 { (case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17419esac
17420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_try") 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 eval "$as_ac_var=yes"
17426else
17427 echo "$as_me: failed program was:" >&5
17428sed 's/^/| /' conftest.$ac_ext >&5
17429
17430 eval "$as_ac_var=no"
17431fi
17432
17433rm -f core conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
17435fi
17436ac_res=`eval echo '${'$as_ac_var'}'`
17437 { echo "$as_me:$LINENO: result: $ac_res" >&5
17438echo "${ECHO_T}$ac_res" >&6; }
17439if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017440 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017442_ACEOF
17443
17444fi
17445done
17446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017447
17448
17449
17450
17451
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017452for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017453do
17454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17455{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17457if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459else
17460 cat >conftest.$ac_ext <<_ACEOF
17461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
17466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468#define $ac_func innocuous_$ac_func
17469
17470/* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char $ac_func (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17474
17475#ifdef __STDC__
17476# include <limits.h>
17477#else
17478# include <assert.h>
17479#endif
17480
17481#undef $ac_func
17482
17483/* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17486#ifdef __cplusplus
17487extern "C"
17488#endif
17489char $ac_func ();
17490/* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
17493#if defined __stub_$ac_func || defined __stub___$ac_func
17494choke me
17495#endif
17496
17497int
17498main ()
17499{
17500return $ac_func ();
17501 ;
17502 return 0;
17503}
17504_ACEOF
17505rm -f conftest.$ac_objext conftest$ac_exeext
17506if { (ac_try="$ac_link"
17507case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 eval "$as_ac_var=yes"
17540else
17541 echo "$as_me: failed program was:" >&5
17542sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 eval "$as_ac_var=no"
17545fi
17546
17547rm -f core conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17549fi
17550ac_res=`eval echo '${'$as_ac_var'}'`
17551 { echo "$as_me:$LINENO: result: $ac_res" >&5
17552echo "${ECHO_T}$ac_res" >&6; }
17553if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017554 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017556_ACEOF
17557
17558fi
17559done
Reid Spencerdf3be822006-01-23 08:15:53 +000017560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017561
17562
17563
17564
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017565for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017566do
17567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17568{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17570if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572else
17573 cat >conftest.$ac_ext <<_ACEOF
17574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
17579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581#define $ac_func innocuous_$ac_func
17582
17583/* System header to define __stub macros and hopefully few prototypes,
17584 which can conflict with char $ac_func (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
17587
17588#ifdef __STDC__
17589# include <limits.h>
17590#else
17591# include <assert.h>
17592#endif
17593
17594#undef $ac_func
17595
17596/* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17599#ifdef __cplusplus
17600extern "C"
17601#endif
17602char $ac_func ();
17603/* The GNU C library defines this for functions which it implements
17604 to always fail with ENOSYS. Some functions are actually named
17605 something starting with __ and the normal name is an alias. */
17606#if defined __stub_$ac_func || defined __stub___$ac_func
17607choke me
17608#endif
17609
17610int
17611main ()
17612{
17613return $ac_func ();
17614 ;
17615 return 0;
17616}
17617_ACEOF
17618rm -f conftest.$ac_objext conftest$ac_exeext
17619if { (ac_try="$ac_link"
17620case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623esac
17624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_link") 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
17632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_try") 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
17643 { (case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646esac
17647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_try") 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 eval "$as_ac_var=yes"
17653else
17654 echo "$as_me: failed program was:" >&5
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 eval "$as_ac_var=no"
17658fi
17659
17660rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662fi
17663ac_res=`eval echo '${'$as_ac_var'}'`
17664 { echo "$as_me:$LINENO: result: $ac_res" >&5
17665echo "${ECHO_T}$ac_res" >&6; }
17666if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017667 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017669_ACEOF
17670
17671fi
17672done
17673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017674
17675
17676
17677
Chris Lattner511f11d2005-11-14 07:25:50 +000017678for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017679do
17680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685else
17686 cat >conftest.$ac_ext <<_ACEOF
17687/* confdefs.h. */
17688_ACEOF
17689cat confdefs.h >>conftest.$ac_ext
17690cat >>conftest.$ac_ext <<_ACEOF
17691/* end confdefs.h. */
17692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694#define $ac_func innocuous_$ac_func
17695
17696/* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char $ac_func (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17700
17701#ifdef __STDC__
17702# include <limits.h>
17703#else
17704# include <assert.h>
17705#endif
17706
17707#undef $ac_func
17708
17709/* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17712#ifdef __cplusplus
17713extern "C"
17714#endif
17715char $ac_func ();
17716/* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719#if defined __stub_$ac_func || defined __stub___$ac_func
17720choke me
17721#endif
17722
17723int
17724main ()
17725{
17726return $ac_func ();
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest.$ac_objext conftest$ac_exeext
17732if { (ac_try="$ac_link"
17733case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest$ac_exeext'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759esac
17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 eval "$as_ac_var=yes"
17766else
17767 echo "$as_me: failed program was:" >&5
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 eval "$as_ac_var=no"
17771fi
17772
17773rm -f core conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17775fi
17776ac_res=`eval echo '${'$as_ac_var'}'`
17777 { echo "$as_me:$LINENO: result: $ac_res" >&5
17778echo "${ECHO_T}$ac_res" >&6; }
17779if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017780 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017782_ACEOF
17783
17784fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017785done
John Criswell7a73b802003-06-30 21:59:07 +000017786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017787
17788
17789
17790
Reid Spencerafa22e22006-12-10 23:29:19 +000017791for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017792do
17793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17794{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17796if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798else
17799 cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
17805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17807#define $ac_func innocuous_$ac_func
17808
17809/* System header to define __stub macros and hopefully few prototypes,
17810 which can conflict with char $ac_func (); below.
17811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17812 <limits.h> exists even on freestanding compilers. */
17813
17814#ifdef __STDC__
17815# include <limits.h>
17816#else
17817# include <assert.h>
17818#endif
17819
17820#undef $ac_func
17821
17822/* Override any GCC internal prototype to avoid an error.
17823 Use char because int might match the return type of a GCC
17824 builtin and then its argument prototype would still apply. */
17825#ifdef __cplusplus
17826extern "C"
17827#endif
17828char $ac_func ();
17829/* The GNU C library defines this for functions which it implements
17830 to always fail with ENOSYS. Some functions are actually named
17831 something starting with __ and the normal name is an alias. */
17832#if defined __stub_$ac_func || defined __stub___$ac_func
17833choke me
17834#endif
17835
17836int
17837main ()
17838{
17839return $ac_func ();
17840 ;
17841 return 0;
17842}
17843_ACEOF
17844rm -f conftest.$ac_objext conftest$ac_exeext
17845if { (ac_try="$ac_link"
17846case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_link") 2>conftest.er1
17852 ac_status=$?
17853 grep -v '^ *+' conftest.er1 >conftest.err
17854 rm -f conftest.er1
17855 cat conftest.err >&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
17858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862esac
17863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest$ac_exeext'
17869 { (case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17872esac
17873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_try") 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 eval "$as_ac_var=yes"
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 eval "$as_ac_var=no"
17884fi
17885
17886rm -f core conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17888fi
17889ac_res=`eval echo '${'$as_ac_var'}'`
17890 { echo "$as_me:$LINENO: result: $ac_res" >&5
17891echo "${ECHO_T}$ac_res" >&6; }
17892if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017893 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017895_ACEOF
17896
17897fi
17898done
17899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017900{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17901echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17902if test "${llvm_cv_c_printf_a+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017904else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017905 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017906ac_cpp='$CPP $CPPFLAGS'
17907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909ac_compiler_gnu=$ac_cv_c_compiler_gnu
17910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017911 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017912 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017914 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017916 /* confdefs.h. */
17917_ACEOF
17918cat confdefs.h >>conftest.$ac_ext
17919cat >>conftest.$ac_ext <<_ACEOF
17920/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017921
John Criswella0137d32003-10-13 16:22:01 +000017922#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017923#include <stdlib.h>
17924
John Criswella0137d32003-10-13 16:22:01 +000017925int
17926main ()
17927{
17928
Reid Spencer2706f8c2004-09-19 23:53:36 +000017929volatile double A, B;
17930char Buffer[100];
17931A = 1;
17932A /= 10.0;
17933sprintf(Buffer, "%a", A);
17934B = atof(Buffer);
17935if (A != B)
17936 return (1);
17937if (A != 0x1.999999999999ap-4)
17938 return (1);
17939return (0);
John Criswella0137d32003-10-13 16:22:01 +000017940 ;
17941 return 0;
17942}
17943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017944rm -f conftest$ac_exeext
17945if { (ac_try="$ac_link"
17946case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949esac
17950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_link") 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17955 { (case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958esac
17959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_try") 2>&5
17961 ac_status=$?
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017964 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017966 echo "$as_me: program exited with status $ac_status" >&5
17967echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970( exit $ac_status )
17971llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017973rm -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 +000017974fi
Reid Spencera773bd52006-08-04 18:18:08 +000017975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017976
Reid Spencer2706f8c2004-09-19 23:53:36 +000017977 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017978ac_cpp='$CPP $CPPFLAGS'
17979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981ac_compiler_gnu=$ac_cv_c_compiler_gnu
17982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017984{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17985echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017986 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017988cat >>confdefs.h <<\_ACEOF
17989#define HAVE_PRINTF_A 1
17990_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017991
Reid Spencer2706f8c2004-09-19 23:53:36 +000017992 fi
John Criswella0137d32003-10-13 16:22:01 +000017993
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017995{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17996echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17997if test "${ac_cv_func_rand48+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017999else
Reid Spencera773bd52006-08-04 18:18:08 +000018000 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018001ac_cpp='$CXXCPP $CPPFLAGS'
18002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018011/* end confdefs.h. */
18012#include <stdlib.h>
18013int
18014main ()
18015{
18016srand48(0);lrand48();drand48();
18017 ;
18018 return 0;
18019}
18020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018021rm -f conftest.$ac_objext
18022if { (ac_try="$ac_compile"
18023case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026esac
18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039esac
18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest.$ac_objext'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049esac
18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018055 ac_cv_func_rand48=yes
18056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018057 echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018062
Reid Spencera773bd52006-08-04 18:18:08 +000018063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018064 ac_ext=c
18065ac_cpp='$CPP $CPPFLAGS'
18066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068ac_compiler_gnu=$ac_cv_c_compiler_gnu
18069
18070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018071{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18072echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018073
18074if test "$ac_cv_func_rand48" = "yes" ; then
18075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018076cat >>confdefs.h <<\_ACEOF
18077#define HAVE_RAND48 1
18078_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018079
18080fi
John Criswell0021c312004-02-13 21:57:29 +000018081
18082
Torok Edwin871384f2010-01-26 08:50:50 +000018083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018084{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18085echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18086if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018088else
Reid Spencera773bd52006-08-04 18:18:08 +000018089 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018090ac_cpp='$CXXCPP $CPPFLAGS'
18091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018095 cat >conftest.$ac_ext <<_ACEOF
18096/* confdefs.h. */
18097_ACEOF
18098cat confdefs.h >>conftest.$ac_ext
18099cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018100/* end confdefs.h. */
18101#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018102int
18103main ()
18104{
18105float f; isnan(f);
18106 ;
18107 return 0;
18108}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018110rm -f conftest.$ac_objext
18111if { (ac_try="$ac_compile"
18112case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_compile") 2>conftest.er1
18118 ac_status=$?
18119 grep -v '^ *+' conftest.er1 >conftest.err
18120 rm -f conftest.er1
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18125 { (case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18128esac
18129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_try") 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18138esac
18139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_try") 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018144 ac_cv_func_isnan_in_math_h=yes
18145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018146 echo "$as_me: failed program was:" >&5
18147sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018151
Reid Spencera773bd52006-08-04 18:18:08 +000018152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018153 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018154ac_cpp='$CPP $CPPFLAGS'
18155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018160{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18161echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018162
18163
18164if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018166cat >>confdefs.h <<\_ACEOF
18167#define HAVE_ISNAN_IN_MATH_H 1
18168_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018169
Reid Spencerabec8f92004-10-27 23:03:44 +000018170fi
18171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018172{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18173echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18174if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018176else
Reid Spencera773bd52006-08-04 18:18:08 +000018177 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018178ac_cpp='$CXXCPP $CPPFLAGS'
18179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018183 cat >conftest.$ac_ext <<_ACEOF
18184/* confdefs.h. */
18185_ACEOF
18186cat confdefs.h >>conftest.$ac_ext
18187cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018188/* end confdefs.h. */
18189#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018190int
18191main ()
18192{
18193float f; isnan(f);
18194 ;
18195 return 0;
18196}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018197_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018198rm -f conftest.$ac_objext
18199if { (ac_try="$ac_compile"
18200case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203esac
18204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_compile") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216esac
18217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018232 ac_cv_func_isnan_in_cmath=yes
18233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018239
Reid Spencera773bd52006-08-04 18:18:08 +000018240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018241 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018242ac_cpp='$CPP $CPPFLAGS'
18243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245ac_compiler_gnu=$ac_cv_c_compiler_gnu
18246
18247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018248{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18249echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018250
18251if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018253cat >>confdefs.h <<\_ACEOF
18254#define HAVE_ISNAN_IN_CMATH 1
18255_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018256
Reid Spencerabec8f92004-10-27 23:03:44 +000018257fi
18258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018259{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18260echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18261if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018263else
Reid Spencera773bd52006-08-04 18:18:08 +000018264 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018265ac_cpp='$CXXCPP $CPPFLAGS'
18266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018270 cat >conftest.$ac_ext <<_ACEOF
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018275/* end confdefs.h. */
18276#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018277int
18278main ()
18279{
18280float f; std::isnan(f);
18281 ;
18282 return 0;
18283}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018285rm -f conftest.$ac_objext
18286if { (ac_try="$ac_compile"
18287case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest.$ac_objext'
18310 { (case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18313esac
18314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_try") 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018319 ac_cv_func_std_isnan_in_cmath=yes
18320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018321 echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
18324 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018326
Reid Spencera773bd52006-08-04 18:18:08 +000018327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018328 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018329ac_cpp='$CPP $CPPFLAGS'
18330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333
18334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018335{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18336echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018337
18338if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018340cat >>confdefs.h <<\_ACEOF
18341#define HAVE_STD_ISNAN_IN_CMATH 1
18342_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018343
Reid Spencerabec8f92004-10-27 23:03:44 +000018344fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018345
18346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018347{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18348echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18349if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018351else
Reid Spencera773bd52006-08-04 18:18:08 +000018352 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018353ac_cpp='$CXXCPP $CPPFLAGS'
18354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018358 cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018363/* end confdefs.h. */
18364#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018365int
18366main ()
18367{
18368float f; isinf(f);
18369 ;
18370 return 0;
18371}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018373rm -f conftest.$ac_objext
18374if { (ac_try="$ac_compile"
18375case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_compile") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391esac
18392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
18398 { (case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401esac
18402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_try") 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018407 ac_cv_func_isinf_in_math_h=yes
18408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018409 echo "$as_me: failed program was:" >&5
18410sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018414
Reid Spencera773bd52006-08-04 18:18:08 +000018415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018416 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018417ac_cpp='$CPP $CPPFLAGS'
18418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420ac_compiler_gnu=$ac_cv_c_compiler_gnu
18421
18422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018423{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18424echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018425
18426if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018428cat >>confdefs.h <<\_ACEOF
18429#define HAVE_ISINF_IN_MATH_H 1
18430_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018431
Reid Spencerabec8f92004-10-27 23:03:44 +000018432fi
18433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018434{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18435echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18436if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018438else
Reid Spencera773bd52006-08-04 18:18:08 +000018439 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018440ac_cpp='$CXXCPP $CPPFLAGS'
18441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018445 cat >conftest.$ac_ext <<_ACEOF
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018450/* end confdefs.h. */
18451#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018452int
18453main ()
18454{
18455float f; isinf(f);
18456 ;
18457 return 0;
18458}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018460rm -f conftest.$ac_objext
18461if { (ac_try="$ac_compile"
18462case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_compile") 2>conftest.er1
18468 ac_status=$?
18469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18475 { (case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18478esac
18479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_try") 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest.$ac_objext'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018494 ac_cv_func_isinf_in_cmath=yes
18495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018496 echo "$as_me: failed program was:" >&5
18497sed 's/^/| /' conftest.$ac_ext >&5
18498
18499 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018501
Reid Spencera773bd52006-08-04 18:18:08 +000018502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018503 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018504ac_cpp='$CPP $CPPFLAGS'
18505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507ac_compiler_gnu=$ac_cv_c_compiler_gnu
18508
18509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018510{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18511echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018512
18513if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018515cat >>confdefs.h <<\_ACEOF
18516#define HAVE_ISINF_IN_CMATH 1
18517_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018518
Reid Spencerabec8f92004-10-27 23:03:44 +000018519fi
18520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018521{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18522echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18523if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018525else
Reid Spencera773bd52006-08-04 18:18:08 +000018526 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018527ac_cpp='$CXXCPP $CPPFLAGS'
18528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018532 cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018537/* end confdefs.h. */
18538#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018539int
18540main ()
18541{
18542float f; std::isinf(f)}
18543 ;
18544 return 0;
18545}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018547rm -f conftest.$ac_objext
18548if { (ac_try="$ac_compile"
18549case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552esac
18553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565esac
18566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018581 ac_cv_func_std_isinf_in_cmath=yes
18582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018583 echo "$as_me: failed program was:" >&5
18584sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018588
Reid Spencera773bd52006-08-04 18:18:08 +000018589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018590 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018591ac_cpp='$CPP $CPPFLAGS'
18592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594ac_compiler_gnu=$ac_cv_c_compiler_gnu
18595
18596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018597{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18598echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018599
18600if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018602cat >>confdefs.h <<\_ACEOF
18603#define HAVE_STD_ISINF_IN_CMATH 1
18604_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018605
Reid Spencerabec8f92004-10-27 23:03:44 +000018606fi
18607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018608{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18609echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18610if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018612else
Reid Spencera773bd52006-08-04 18:18:08 +000018613 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018614ac_cpp='$CXXCPP $CPPFLAGS'
18615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018619 cat >conftest.$ac_ext <<_ACEOF
18620/* confdefs.h. */
18621_ACEOF
18622cat confdefs.h >>conftest.$ac_ext
18623cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018624/* end confdefs.h. */
18625#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018626int
18627main ()
18628{
18629float f; finite(f);
18630 ;
18631 return 0;
18632}
Brian Gaeked59a6472004-07-21 03:33:58 +000018633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018634rm -f conftest.$ac_objext
18635if { (ac_try="$ac_compile"
18636case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18639esac
18640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_compile") 2>conftest.er1
18642 ac_status=$?
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652esac
18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; } &&
18658 { ac_try='test -s conftest.$ac_objext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662esac
18663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018668 ac_cv_func_finite_in_ieeefp_h=yes
18669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018670 echo "$as_me: failed program was:" >&5
18671sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018675
Reid Spencera773bd52006-08-04 18:18:08 +000018676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018677 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018678ac_cpp='$CPP $CPPFLAGS'
18679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18681ac_compiler_gnu=$ac_cv_c_compiler_gnu
18682
18683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018684{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18685echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018686
Brian Gaeke6802b552004-10-28 05:06:45 +000018687if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018689cat >>confdefs.h <<\_ACEOF
18690#define HAVE_FINITE_IN_IEEEFP_H 1
18691_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018692
Reid Spencerabec8f92004-10-27 23:03:44 +000018693fi
18694
18695
18696
Reid Spencer30fe5262007-01-20 07:48:49 +000018697if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018698
18699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018700for ac_header in stdlib.h unistd.h
18701do
18702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708fi
18709ac_res=`eval echo '${'$as_ac_Header'}'`
18710 { echo "$as_me:$LINENO: result: $ac_res" >&5
18711echo "${ECHO_T}$ac_res" >&6; }
18712else
18713 # Is the header compilable?
18714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18716cat >conftest.$ac_ext <<_ACEOF
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722$ac_includes_default
18723#include <$ac_header>
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (ac_try="$ac_compile"
18727case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest.$ac_objext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_header_compiler=yes
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018764 ac_header_compiler=no
18765fi
18766
18767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18769echo "${ECHO_T}$ac_header_compiler" >&6; }
18770
18771# Is the header present?
18772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18774cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
18780#include <$ac_header>
18781_ACEOF
18782if { (ac_try="$ac_cpp conftest.$ac_ext"
18783case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786esac
18787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } >/dev/null; then
18795 if test -s conftest.err; then
18796 ac_cpp_err=$ac_c_preproc_warn_flag
18797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18798 else
18799 ac_cpp_err=
18800 fi
18801else
18802 ac_cpp_err=yes
18803fi
18804if test -z "$ac_cpp_err"; then
18805 ac_header_preproc=yes
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 ac_header_preproc=no
18811fi
18812
18813rm -f conftest.err conftest.$ac_ext
18814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18815echo "${ECHO_T}$ac_header_preproc" >&6; }
18816
18817# So? What about this header?
18818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18819 yes:no: )
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18824 ac_header_preproc=yes
18825 ;;
18826 no:yes:* )
18827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18839 ( cat <<\_ASBOX
18840## ----------------------------------- ##
18841## Report this to llvmbugs@cs.uiuc.edu ##
18842## ----------------------------------- ##
18843_ASBOX
18844 ) | sed "s/^/$as_me: WARNING: /" >&2
18845 ;;
18846esac
18847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18851else
18852 eval "$as_ac_Header=\$ac_header_preproc"
18853fi
18854ac_res=`eval echo '${'$as_ac_Header'}'`
18855 { echo "$as_me:$LINENO: result: $ac_res" >&5
18856echo "${ECHO_T}$ac_res" >&6; }
18857
18858fi
18859if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018860 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018862_ACEOF
18863
18864fi
18865
18866done
18867
18868
18869for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018870do
18871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18872{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876else
18877 cat >conftest.$ac_ext <<_ACEOF
18878/* confdefs.h. */
18879_ACEOF
18880cat confdefs.h >>conftest.$ac_ext
18881cat >>conftest.$ac_ext <<_ACEOF
18882/* end confdefs.h. */
18883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885#define $ac_func innocuous_$ac_func
18886
18887/* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18891
18892#ifdef __STDC__
18893# include <limits.h>
18894#else
18895# include <assert.h>
18896#endif
18897
18898#undef $ac_func
18899
18900/* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18903#ifdef __cplusplus
18904extern "C"
18905#endif
18906char $ac_func ();
18907/* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910#if defined __stub_$ac_func || defined __stub___$ac_func
18911choke me
18912#endif
18913
18914int
18915main ()
18916{
18917return $ac_func ();
18918 ;
18919 return 0;
18920}
18921_ACEOF
18922rm -f conftest.$ac_objext conftest$ac_exeext
18923if { (ac_try="$ac_link"
18924case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927esac
18928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18930 ac_status=$?
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18937 { (case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940esac
18941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_try") 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest$ac_exeext'
18947 { (case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950esac
18951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_try") 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; }; then
18956 eval "$as_ac_var=yes"
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961 eval "$as_ac_var=no"
18962fi
18963
18964rm -f core conftest.err conftest.$ac_objext \
18965 conftest$ac_exeext conftest.$ac_ext
18966fi
18967ac_res=`eval echo '${'$as_ac_var'}'`
18968 { echo "$as_me:$LINENO: result: $ac_res" >&5
18969echo "${ECHO_T}$ac_res" >&6; }
18970if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018971 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018973_ACEOF
18974
18975fi
18976done
18977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018978{ echo "$as_me:$LINENO: checking for working mmap" >&5
18979echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18980if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018983 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018984 ac_cv_func_mmap_fixed_mapped=no
18985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018986 cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018992$ac_includes_default
18993/* malloc might have been renamed as rpl_malloc. */
18994#undef malloc
18995
18996/* Thanks to Mike Haertel and Jim Avera for this test.
18997 Here is a matrix of mmap possibilities:
18998 mmap private not fixed
18999 mmap private fixed at somewhere currently unmapped
19000 mmap private fixed at somewhere already mapped
19001 mmap shared not fixed
19002 mmap shared fixed at somewhere currently unmapped
19003 mmap shared fixed at somewhere already mapped
19004 For private mappings, we should verify that changes cannot be read()
19005 back from the file, nor mmap's back from the file at a different
19006 address. (There have been systems where private was not correctly
19007 implemented like the infamous i386 svr4.0, and systems where the
19008 VM page cache was not coherent with the file system buffer cache
19009 like early versions of FreeBSD and possibly contemporary NetBSD.)
19010 For shared mappings, we should conversely verify that changes get
19011 propagated back to all the places they're supposed to be.
19012
19013 Grep wants private fixed already mapped.
19014 The main things grep needs to know about mmap are:
19015 * does it exist and is it safe to write into the mmap'd area
19016 * how to use it (BSD variants) */
19017
19018#include <fcntl.h>
19019#include <sys/mman.h>
19020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019021#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019022char *malloc ();
19023#endif
19024
19025/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019026#if !HAVE_GETPAGESIZE
19027/* Assume that all systems that can run configure have sys/param.h. */
19028# if !HAVE_SYS_PARAM_H
19029# define HAVE_SYS_PARAM_H 1
19030# endif
19031
John Criswell7a73b802003-06-30 21:59:07 +000019032# ifdef _SC_PAGESIZE
19033# define getpagesize() sysconf(_SC_PAGESIZE)
19034# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019036# include <sys/param.h>
19037# ifdef EXEC_PAGESIZE
19038# define getpagesize() EXEC_PAGESIZE
19039# else /* no EXEC_PAGESIZE */
19040# ifdef NBPG
19041# define getpagesize() NBPG * CLSIZE
19042# ifndef CLSIZE
19043# define CLSIZE 1
19044# endif /* no CLSIZE */
19045# else /* no NBPG */
19046# ifdef NBPC
19047# define getpagesize() NBPC
19048# else /* no NBPC */
19049# ifdef PAGESIZE
19050# define getpagesize() PAGESIZE
19051# endif /* PAGESIZE */
19052# endif /* no NBPC */
19053# endif /* no NBPG */
19054# endif /* no EXEC_PAGESIZE */
19055# else /* no HAVE_SYS_PARAM_H */
19056# define getpagesize() 8192 /* punt totally */
19057# endif /* no HAVE_SYS_PARAM_H */
19058# endif /* no _SC_PAGESIZE */
19059
19060#endif /* no HAVE_GETPAGESIZE */
19061
19062int
19063main ()
19064{
19065 char *data, *data2, *data3;
19066 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019067 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019068
19069 pagesize = getpagesize ();
19070
19071 /* First, make a file with some known garbage in it. */
19072 data = (char *) malloc (pagesize);
19073 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019074 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019075 for (i = 0; i < pagesize; ++i)
19076 *(data + i) = rand ();
19077 umask (0);
19078 fd = creat ("conftest.mmap", 0600);
19079 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019080 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019081 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019082 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019083 close (fd);
19084
19085 /* Next, try to mmap the file at a fixed address which already has
19086 something else allocated at it. If we can, also make sure that
19087 we see the same garbage. */
19088 fd = open ("conftest.mmap", O_RDWR);
19089 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090 return 1;
19091 data2 = (char *) malloc (2 * pagesize);
19092 if (!data2)
19093 return 1;
19094 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019097 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019098 for (i = 0; i < pagesize; ++i)
19099 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019100 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019101
19102 /* Finally, make sure that changes to the mapped area do not
19103 percolate back to the file as seen by read(). (This is a bug on
19104 some variants of i386 svr4.0.) */
19105 for (i = 0; i < pagesize; ++i)
19106 *(data2 + i) = *(data2 + i) + 1;
19107 data3 = (char *) malloc (pagesize);
19108 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019109 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019110 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019111 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019112 for (i = 0; i < pagesize; ++i)
19113 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019114 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019115 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019116 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019117}
19118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019119rm -f conftest$ac_exeext
19120if { (ac_try="$ac_link"
19121case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124esac
19125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133esac
19134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019139 ac_cv_func_mmap_fixed_mapped=yes
19140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019141 echo "$as_me: program exited with status $ac_status" >&5
19142echo "$as_me: failed program was:" >&5
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
19145( exit $ac_status )
19146ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019148rm -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 +000019149fi
Reid Spencera773bd52006-08-04 18:18:08 +000019150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019151
John Criswell7a73b802003-06-30 21:59:07 +000019152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19154echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019155if test $ac_cv_func_mmap_fixed_mapped = yes; then
19156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019157cat >>confdefs.h <<\_ACEOF
19158#define HAVE_MMAP 1
19159_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019160
19161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019162rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019164 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19165echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19166if test "${ac_cv_func_mmap_file+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019168else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019169 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019170ac_cpp='$CPP $CPPFLAGS'
19171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173ac_compiler_gnu=$ac_cv_c_compiler_gnu
19174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019175 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019176 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019177else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019178 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019180 /* confdefs.h. */
19181_ACEOF
19182cat confdefs.h >>conftest.$ac_ext
19183cat >>conftest.$ac_ext <<_ACEOF
19184/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019185
John Criswell7a73b802003-06-30 21:59:07 +000019186#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019187#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019188#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019189
19190int
19191main ()
19192{
John Criswell7a73b802003-06-30 21:59:07 +000019193
19194 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019195 fd = creat ("foo",0777);
19196 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19197 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019198 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019199 ;
19200 return 0;
19201}
John Criswell7a73b802003-06-30 21:59:07 +000019202_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019203rm -f conftest$ac_exeext
19204if { (ac_try="$ac_link"
19205case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19217esac
19218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019223 ac_cv_func_mmap_file=yes
19224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019225 echo "$as_me: program exited with status $ac_status" >&5
19226echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229( exit $ac_status )
19230ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019232rm -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 +000019233fi
Reid Spencera773bd52006-08-04 18:18:08 +000019234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019235
John Criswell7a73b802003-06-30 21:59:07 +000019236 ac_ext=c
19237ac_cpp='$CPP $CPPFLAGS'
19238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19240ac_compiler_gnu=$ac_cv_c_compiler_gnu
19241
19242
19243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019244{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19245echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019246if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019248cat >>confdefs.h <<\_ACEOF
19249#define HAVE_MMAP_FILE
19250_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019251
19252 MMAP_FILE=yes
19253
19254fi
19255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019256 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19257echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19258if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019260else
Reid Spencer582a23c2004-12-29 07:07:57 +000019261 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019262 ac_cv_need_dev_zero_for_mmap=yes
19263 else
19264 ac_cv_need_dev_zero_for_mmap=no
19265 fi
19266
19267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019268{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19269echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019270if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019272cat >>confdefs.h <<\_ACEOF
19273#define NEED_DEV_ZERO_FOR_MMAP 1
19274_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019275
19276fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019277
Reid Spencer30fe5262007-01-20 07:48:49 +000019278 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19279 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019280 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19281echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019282 fi
19283 if test "$ac_cv_func_mmap_file" = "no"
19284 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019285 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19286echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019287 fi
John Criswellb13092b2003-07-22 21:00:24 +000019288fi
John Criswell7a73b802003-06-30 21:59:07 +000019289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019290{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19291echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19292cat >conftest.$ac_ext <<_ACEOF
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019297/* end confdefs.h. */
19298int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019299 volatile unsigned long val = 1;
19300 __sync_synchronize();
19301 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019302 __sync_add_and_fetch(&val, 1);
19303 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019304 return 0;
19305 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019306
19307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308rm -f conftest.$ac_objext 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>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336esac
19337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 { echo "$as_me:$LINENO: result: yes" >&5
19343echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019345cat >>confdefs.h <<\_ACEOF
19346#define LLVM_MULTITHREADED 1
19347_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019348
Owen Andersond4b272b2009-05-18 23:58:51 +000019349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019350 echo "$as_me: failed program was:" >&5
19351sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019353 { echo "$as_me:$LINENO: result: no" >&5
19354echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019356cat >>confdefs.h <<\_ACEOF
19357#define LLVM_MULTITHREADED 0
19358_ACEOF
19359
19360 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19361echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363
Owen Andersond4b272b2009-05-18 23:58:51 +000019364rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019365 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019366
19367
John Criswell7a73b802003-06-30 21:59:07 +000019368
Nick Lewycky4372e692009-09-29 06:18:23 +000019369if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019370 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19371echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19372if test "${llvm_cv_linux_mixed+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019374else
19375 ac_ext=c
19376ac_cpp='$CPP $CPPFLAGS'
19377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019381 cat >conftest.$ac_ext <<_ACEOF
19382/* confdefs.h. */
19383_ACEOF
19384cat confdefs.h >>conftest.$ac_ext
19385cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019386/* end confdefs.h. */
19387#ifndef __x86_64__
19388 error: Not x86-64 even if uname says so!
19389 #endif
19390
19391int
19392main ()
19393{
19394
19395 ;
19396 return 0;
19397}
19398_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019399rm -f conftest.$ac_objext
19400if { (ac_try="$ac_compile"
19401case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404esac
19405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_compile") 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19414 { (case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19417esac
19418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_try") 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try='test -s conftest.$ac_objext'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019433 llvm_cv_linux_mixed=no
19434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019435 echo "$as_me: failed program was:" >&5
19436sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019440
Nick Lewycky4372e692009-09-29 06:18:23 +000019441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 ac_ext=c
19443ac_cpp='$CPP $CPPFLAGS'
19444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446ac_compiler_gnu=$ac_cv_c_compiler_gnu
19447
19448
19449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019450{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19451echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019452
19453 if test "$llvm_cv_linux_mixed" = "yes"; then
19454 llvm_cv_target_arch="x86"
19455 ARCH="x86"
19456 fi
19457fi
19458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459
Reid Spencer9372f152007-07-30 20:13:24 +000019460for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019461do
19462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19476#define $ac_func innocuous_$ac_func
19477
19478/* System header to define __stub macros and hopefully few prototypes,
19479 which can conflict with char $ac_func (); below.
19480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19481 <limits.h> exists even on freestanding compilers. */
19482
19483#ifdef __STDC__
19484# include <limits.h>
19485#else
19486# include <assert.h>
19487#endif
19488
19489#undef $ac_func
19490
19491/* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19494#ifdef __cplusplus
19495extern "C"
19496#endif
19497char $ac_func ();
19498/* The GNU C library defines this for functions which it implements
19499 to always fail with ENOSYS. Some functions are actually named
19500 something starting with __ and the normal name is an alias. */
19501#if defined __stub_$ac_func || defined __stub___$ac_func
19502choke me
19503#endif
19504
19505int
19506main ()
19507{
19508return $ac_func ();
19509 ;
19510 return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext conftest$ac_exeext
19514if { (ac_try="$ac_link"
19515case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_link") 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19528 { (case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531esac
19532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_try") 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest$ac_exeext'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541esac
19542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 eval "$as_ac_var=yes"
19548else
19549 echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 eval "$as_ac_var=no"
19553fi
19554
19555rm -f core conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557fi
19558ac_res=`eval echo '${'$as_ac_var'}'`
19559 { echo "$as_me:$LINENO: result: $ac_res" >&5
19560echo "${ECHO_T}$ac_res" >&6; }
19561if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019562 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019564_ACEOF
19565
19566fi
19567done
19568
19569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19571echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19572if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019574else
19575 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019576if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019577 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019578 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19579 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019580 if test $? -eq 0 ; then
19581 llvm_cv_llvmgcc_sanity="yes"
19582 fi
19583 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019584fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019586{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19587echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019588
19589if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19591echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019592 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019593 LLVMCC1=$llvmcc1path
19594
Reid Spencer502935f2004-12-22 05:56:56 +000019595 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019596 LLVMCC1PLUS=$llvmcc1pluspath
19597
Reid Spencer502935f2004-12-22 05:56:56 +000019598 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19599 LLVMGCCDIR=$llvmgccdir
19600
Reid Spencer282d8c12006-12-21 22:55:41 +000019601 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19602 LLVMGCCLIBEXEC=$llvmgcclibexec
19603
Reid Spencerb5d75b82006-05-09 00:31:01 +000019604 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000019605 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19606 LLVMGCC_VERSION=$llvmgccversion
19607
19608 LLVMGCC_MAJVERS=$llvmgccmajvers
19609
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019610 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019611 LLVMGCC_LANGS=$llvmgcclangs
19612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019613 { echo "$as_me:$LINENO: result: ok" >&5
19614echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019615fi
19616
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019617SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019618
19619
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +000019620SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19621
19622
Reid Spencere9de0912004-08-20 09:03:57 +000019623# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019624# information into substitutions that will end up in Makefile.config.in
19625# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019626if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019627 prefix="/usr/local"
19628fi
Reid Spencere9de0912004-08-20 09:03:57 +000019629eval LLVM_PREFIX="${prefix}";
19630eval LLVM_BINDIR="${prefix}/bin";
19631eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019632eval LLVM_DATADIR="${prefix}/share/llvm";
19633eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19634eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019635eval LLVM_INCLUDEDIR="${prefix}/include";
19636eval LLVM_INFODIR="${prefix}/info";
19637eval LLVM_MANDIR="${prefix}/man";
19638LLVM_CONFIGTIME=`date`
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019650# Place the various directores into the config.h file as #defines so that we
19651# can know about the installation paths within LLVM.
19652
Reid Spencere9de0912004-08-20 09:03:57 +000019653cat >>confdefs.h <<_ACEOF
19654#define LLVM_PREFIX "$LLVM_PREFIX"
19655_ACEOF
19656
19657
19658cat >>confdefs.h <<_ACEOF
19659#define LLVM_BINDIR "$LLVM_BINDIR"
19660_ACEOF
19661
19662
19663cat >>confdefs.h <<_ACEOF
19664#define LLVM_LIBDIR "$LLVM_LIBDIR"
19665_ACEOF
19666
19667
19668cat >>confdefs.h <<_ACEOF
19669#define LLVM_DATADIR "$LLVM_DATADIR"
19670_ACEOF
19671
19672
19673cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019674#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019675_ACEOF
19676
19677
19678cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019679#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019680_ACEOF
19681
19682
19683cat >>confdefs.h <<_ACEOF
19684#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19685_ACEOF
19686
19687
19688cat >>confdefs.h <<_ACEOF
19689#define LLVM_INFODIR "$LLVM_INFODIR"
19690_ACEOF
19691
19692
19693cat >>confdefs.h <<_ACEOF
19694#define LLVM_MANDIR "$LLVM_MANDIR"
19695_ACEOF
19696
19697
19698cat >>confdefs.h <<_ACEOF
19699#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19700_ACEOF
19701
19702
Eric Christopher790e11c2007-12-01 00:34:39 +000019703cat >>confdefs.h <<_ACEOF
19704#define LLVM_HOSTTRIPLE "$host"
19705_ACEOF
19706
19707
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019708# Determine which bindings to build.
19709if test "$BINDINGS_TO_BUILD" = auto ; then
19710 BINDINGS_TO_BUILD=""
19711 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19712 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19713 fi
19714fi
19715BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19716
19717
19718# This isn't really configurey, but it avoids having to repeat the list in
19719# other files.
19720ALL_BINDINGS=ocaml
19721
19722
Gordon Henriksenf0915682007-10-02 16:42:22 +000019723# Do any work necessary to ensure that bindings have what they need.
19724binding_prereqs_failed=0
19725for a_binding in $BINDINGS_TO_BUILD ; do
19726 case "$a_binding" in
19727 ocaml)
19728 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019729 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19730echo "$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 +000019731 binding_prereqs_failed=1
19732 fi
19733 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019734 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19735echo "$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 +000019736 binding_prereqs_failed=1
19737 fi
19738 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19740echo "$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 +000019741 fi
19742 if test "x$with_ocaml_libdir" != xauto ; then
19743 OCAML_LIBDIR=$with_ocaml_libdir
19744
19745 else
19746 ocaml_stdlib="`"$OCAMLC" -where`"
19747 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19748 then
19749 # ocaml stdlib is beneath our prefix; use stdlib
19750 OCAML_LIBDIR=$ocaml_stdlib
19751
19752 else
19753 # ocaml stdlib is outside our prefix; use libdir/ocaml
19754 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19755
19756 fi
19757 fi
19758 ;;
19759 esac
19760done
19761if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19763echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19764 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000019765fi
19766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019767{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19768echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19769if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019771else
19772 ac_ext=cpp
19773ac_cpp='$CXXCPP $CPPFLAGS'
19774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
19778 oldcxxflags="$CXXFLAGS"
19779 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019780 cat >conftest.$ac_ext <<_ACEOF
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019785/* end confdefs.h. */
19786
19787int
19788main ()
19789{
19790
19791 ;
19792 return 0;
19793}
19794_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795rm -f conftest.$ac_objext
19796if { (ac_try="$ac_compile"
19797case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019829 llvm_cv_cxx_visibility_inlines_hidden=yes
19830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019836
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838 CXXFLAGS="$oldcxxflags"
19839 ac_ext=c
19840ac_cpp='$CPP $CPPFLAGS'
19841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844
19845
19846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019847{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19848echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019849if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19850 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19851
19852else
19853 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19854
19855fi
19856
Gordon Henriksenf0915682007-10-02 16:42:22 +000019857
Nick Lewycky731c6ab2009-03-05 08:20:44 +000019858if test "$llvm_cv_link_use_r" = "yes" ; then
19859 RPATH="-Wl,-R"
19860else
19861 RPATH="-Wl,-rpath"
19862fi
19863
19864
19865if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19866 RDYNAMIC="-Wl,-export-dynamic"
19867else
19868 RDYNAMIC=""
19869fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019870
19871
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019872
Reid Spencera773bd52006-08-04 18:18:08 +000019873ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019874
Douglas Gregor1555a232009-06-16 20:12:29 +000019875ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19876
19877ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19878
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000019879ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19880
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000019881ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19882
Chandler Carruth8b67f772009-10-26 01:35:46 +000019883ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019884
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019885
Reid Spencera773bd52006-08-04 18:18:08 +000019886ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019887
19888
Reid Spencerea949cf2006-08-16 00:45:38 +000019889ac_config_files="$ac_config_files llvm.spec"
19890
19891
Reid Spencera773bd52006-08-04 18:18:08 +000019892ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000019893
19894
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000019895ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19896
19897
Reid Spencera773bd52006-08-04 18:18:08 +000019898ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000019899
19900
Reid Spencera773bd52006-08-04 18:18:08 +000019901ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000019902
Reid Spencera773bd52006-08-04 18:18:08 +000019903ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019904
19905
Reid Spencera773bd52006-08-04 18:18:08 +000019906ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019907
19908
Reid Spencera773bd52006-08-04 18:18:08 +000019909ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019910
19911
Reid Spencera773bd52006-08-04 18:18:08 +000019912ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019913
19914
Reid Spencer8b2e1412006-11-17 03:32:33 +000019915ac_config_commands="$ac_config_commands runtime/Makefile"
19916
19917
Reid Spencera773bd52006-08-04 18:18:08 +000019918ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019919
19920
Reid Spencera773bd52006-08-04 18:18:08 +000019921ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019922
19923
Bill Wendlingf24eb392009-01-04 23:12:30 +000019924ac_config_commands="$ac_config_commands unittests/Makefile"
19925
19926
Reid Spencera773bd52006-08-04 18:18:08 +000019927ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019928
19929
Reid Spencera773bd52006-08-04 18:18:08 +000019930ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019931
19932
Reid Spencera773bd52006-08-04 18:18:08 +000019933ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019934
19935
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000019936ac_config_commands="$ac_config_commands bindings/Makefile"
19937
19938
19939ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19940
19941
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019942
John Criswell7a73b802003-06-30 21:59:07 +000019943cat >confcache <<\_ACEOF
19944# This file is a shell script that caches the results of configure
19945# tests run on this system so they can be shared between configure
19946# scripts and configure runs, see configure's option --config-cache.
19947# It is not useful on other systems. If it contains results you don't
19948# want to keep, you may remove or edit it.
19949#
19950# config.status only pays attention to the cache file if you give it
19951# the --recheck option to rerun configure.
19952#
John Criswell0c38eaf2003-09-10 15:17:25 +000019953# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000019954# loading this file, other *unset* `ac_cv_foo' will be assigned the
19955# following values.
19956
19957_ACEOF
19958
19959# The following way of writing the cache mishandles newlines in values,
19960# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000019961# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000019962# Ultrix sh set writes to stderr and can't be redirected directly,
19963# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000019964(
19965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19966 eval ac_val=\$$ac_var
19967 case $ac_val in #(
19968 *${as_nl}*)
19969 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019970 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19971echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019972 esac
19973 case $ac_var in #(
19974 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019975 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019976 esac ;;
19977 esac
19978 done
19979
John Criswell7a73b802003-06-30 21:59:07 +000019980 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000019981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19982 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019983 # `set' does not quote correctly, so add quotes (double-quote
19984 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000019985 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019986 "s/'/'\\\\''/g;
19987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000019988 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000019989 *)
19990 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000019991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000019992 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019993 esac |
19994 sort
19995) |
John Criswell7a73b802003-06-30 21:59:07 +000019996 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000019997 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000019998 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000019999 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20001 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20003 :end' >>confcache
20004if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20005 if test -w "$cache_file"; then
20006 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20008echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020009 cat confcache >$cache_file
20010 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020011 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20012echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020013 fi
20014fi
20015rm -f confcache
20016
20017test "x$prefix" = xNONE && prefix=$ac_default_prefix
20018# Let make expand exec_prefix.
20019test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20020
John Criswell7a73b802003-06-30 21:59:07 +000020021DEFS=-DHAVE_CONFIG_H
20022
John Criswell0c38eaf2003-09-10 15:17:25 +000020023ac_libobjs=
20024ac_ltlibobjs=
20025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20026 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020028 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20030 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020031 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20032 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020033done
20034LIBOBJS=$ac_libobjs
20035
20036LTLIBOBJS=$ac_ltlibobjs
20037
20038
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020039if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020040 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20041Usually this means the macro was only invoked conditionally." >&5
20042echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20043Usually this means the macro was only invoked conditionally." >&2;}
20044 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020045fi
20046if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020047 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20048Usually this means the macro was only invoked conditionally." >&5
20049echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20050Usually this means the macro was only invoked conditionally." >&2;}
20051 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020052fi
John Criswell7a73b802003-06-30 21:59:07 +000020053
20054: ${CONFIG_STATUS=./config.status}
20055ac_clean_files_save=$ac_clean_files
20056ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020057{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20058echo "$as_me: creating $CONFIG_STATUS" >&6;}
20059cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020060#! $SHELL
20061# Generated by $as_me.
20062# Run this file to recreate the current configuration.
20063# Compiler output produced by configure, useful for debugging
20064# configure, is in config.log if it exists.
20065
20066debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020067ac_cs_recheck=false
20068ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020069SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072cat >>$CONFIG_STATUS <<\_ACEOF
20073## --------------------- ##
20074## M4sh Initialization. ##
20075## --------------------- ##
20076
20077# Be Bourne compatible
20078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020079 emulate sh
20080 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020082 # is contrary to our usage. Disable this feature.
20083 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020084 setopt NO_GLOB_SUBST
20085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088BIN_SH=xpg4; export BIN_SH # for Tru64
20089DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020090
John Criswell7a73b802003-06-30 21:59:07 +000020091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020092# PATH needs CR
20093# Avoid depending upon Character Ranges.
20094as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20095as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20096as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20097as_cr_digits='0123456789'
20098as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020099
20100# The user is always right.
20101if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102 echo "#! /bin/sh" >conf$$.sh
20103 echo "exit 0" >>conf$$.sh
20104 chmod +x conf$$.sh
20105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20106 PATH_SEPARATOR=';'
20107 else
20108 PATH_SEPARATOR=:
20109 fi
20110 rm -f conf$$.sh
20111fi
20112
20113# Support unset when possible.
20114if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20115 as_unset=unset
20116else
20117 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020118fi
John Criswell7a73b802003-06-30 21:59:07 +000020119
Reid Spencera773bd52006-08-04 18:18:08 +000020120
20121# IFS
20122# We need space, tab and new line, in precisely that order. Quoting is
20123# there to prevent editors from complaining about space-tab.
20124# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20125# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020126as_nl='
20127'
Reid Spencera773bd52006-08-04 18:18:08 +000020128IFS=" "" $as_nl"
20129
20130# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020132 *[\\/]* ) as_myself=$0 ;;
20133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020134for as_dir in $PATH
20135do
20136 IFS=$as_save_IFS
20137 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20139done
Reid Spencera773bd52006-08-04 18:18:08 +000020140IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020141
Reid Spencera773bd52006-08-04 18:18:08 +000020142 ;;
20143esac
20144# We did not find ourselves, most probably we were run as `sh COMMAND'
20145# in which case we are not to be found in the path.
20146if test "x$as_myself" = x; then
20147 as_myself=$0
20148fi
20149if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020150 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20151 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020152fi
20153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020154# Work around bugs in pre-3.0 UWIN ksh.
20155for as_var in ENV MAIL MAILPATH
20156do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020157done
20158PS1='$ '
20159PS2='> '
20160PS4='+ '
20161
20162# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163for as_var in \
20164 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20165 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20166 LC_TELEPHONE LC_TIME
20167do
20168 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20169 eval $as_var=C; export $as_var
20170 else
20171 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020172 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173done
Torok Edwin871384f2010-01-26 08:50:50 +000020174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020175# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020176if expr a : '\(a\)' >/dev/null 2>&1 &&
20177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20178 as_expr=expr
20179else
20180 as_expr=false
20181fi
20182
20183if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20184 as_basename=basename
20185else
20186 as_basename=false
20187fi
20188
20189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020190# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020191as_me=`$as_basename -- "$0" ||
20192$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20193 X"$0" : 'X\(//\)$' \| \
20194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020196 sed '/^.*\/\([^/][^/]*\)\/*$/{
20197 s//\1/
20198 q
20199 }
20200 /^X\/\(\/\/\)$/{
20201 s//\1/
20202 q
20203 }
20204 /^X\/\(\/\).*/{
20205 s//\1/
20206 q
20207 }
20208 s/.*/./; q'`
20209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020210# CDPATH.
20211$as_unset CDPATH
20212
20213
20214
20215 as_lineno_1=$LINENO
20216 as_lineno_2=$LINENO
20217 test "x$as_lineno_1" != "x$as_lineno_2" &&
20218 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20219
20220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20221 # uniformly replaced by the line number. The first 'sed' inserts a
20222 # line-number line after each line using $LINENO; the second 'sed'
20223 # does the real work. The second script uses 'N' to pair each
20224 # line-number line with the line containing $LINENO, and appends
20225 # trailing '-' during substitution so that $LINENO is not a special
20226 # case at line end.
20227 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20228 # scripts with optimization help from Paolo Bonzini. Blame Lee
20229 # E. McMahon (1931-1989) for sed's syntax. :-)
20230 sed -n '
20231 p
20232 /[$]LINENO/=
20233 ' <$as_myself |
20234 sed '
20235 s/[$]LINENO.*/&-/
20236 t lineno
20237 b
20238 :lineno
20239 N
20240 :loop
20241 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20242 t loop
20243 s/-\n.*//
20244 ' >$as_me.lineno &&
20245 chmod +x "$as_me.lineno" ||
20246 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20247 { (exit 1); exit 1; }; }
20248
20249 # Don't try to exec as it changes $[0], causing all sort of problems
20250 # (the dirname of $[0] is not the place where we might find the
20251 # original and so on. Autoconf is especially sensitive to this).
20252 . "./$as_me.lineno"
20253 # Exit status is that of the last command.
20254 exit
20255}
20256
20257
20258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20259 as_dirname=dirname
20260else
20261 as_dirname=false
20262fi
Reid Spencera773bd52006-08-04 18:18:08 +000020263
20264ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020265case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020266-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020270 esac;;
20271*)
20272 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020273esac
20274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020275if expr a : '\(a\)' >/dev/null 2>&1 &&
20276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20277 as_expr=expr
20278else
20279 as_expr=false
20280fi
20281
John Criswell7a73b802003-06-30 21:59:07 +000020282rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020283if test -d conf$$.dir; then
20284 rm -f conf$$.dir/conf$$.file
20285else
20286 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020287 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289echo >conf$$.file
20290if ln -s conf$$.file conf$$ 2>/dev/null; then
20291 as_ln_s='ln -s'
20292 # ... but there are two gotchas:
20293 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20294 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20295 # In both cases, we have to default to `cp -p'.
20296 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020297 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298elif ln conf$$.file conf$$ 2>/dev/null; then
20299 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020300else
20301 as_ln_s='cp -p'
20302fi
Reid Spencera773bd52006-08-04 18:18:08 +000020303rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20304rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020305
John Criswell0c38eaf2003-09-10 15:17:25 +000020306if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020307 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020308else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020309 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020310 as_mkdir_p=false
20311fi
20312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020313# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20314# systems may use methods other than mode bits to determine executability.
20315cat >conf$$.file <<_ASEOF
20316#! /bin/sh
20317exit 0
20318_ASEOF
20319chmod +x conf$$.file
20320if test -x conf$$.file >/dev/null 2>&1; then
20321 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020326
20327# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020329
20330# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020332
20333
John Criswell7a73b802003-06-30 21:59:07 +000020334exec 6>&1
20335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020337# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020338# values after options handling.
20339ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000020340This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020342
20343 CONFIG_FILES = $CONFIG_FILES
20344 CONFIG_HEADERS = $CONFIG_HEADERS
20345 CONFIG_LINKS = $CONFIG_LINKS
20346 CONFIG_COMMANDS = $CONFIG_COMMANDS
20347 $ $0 $@
20348
Reid Spencera773bd52006-08-04 18:18:08 +000020349on `(hostname || uname -n) 2>/dev/null | sed 1q`
20350"
20351
John Criswell7a73b802003-06-30 21:59:07 +000020352_ACEOF
20353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020355# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020356config_files="$ac_config_files"
20357config_headers="$ac_config_headers"
20358config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020359
Reid Spencera773bd52006-08-04 18:18:08 +000020360_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020363ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364\`$as_me' instantiates files from templates according to the
20365current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020368
20369 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370 -V, --version print version number, then exit
20371 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020372 -d, --debug don't remove temporary files
20373 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020374 --file=FILE[:TEMPLATE]
20375 instantiate the configuration file FILE
20376 --header=FILE[:TEMPLATE]
20377 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020378
20379Configuration files:
20380$config_files
20381
20382Configuration headers:
20383$config_headers
20384
John Criswellc764fbc2003-09-06 15:17:13 +000020385Configuration commands:
20386$config_commands
20387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020389
Reid Spencera773bd52006-08-04 18:18:08 +000020390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020392ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000020393llvm config.status 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394configured by $0, generated by GNU Autoconf 2.60,
20395 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020398This config.status script is free software; the Free Software Foundation
20399gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020400
20401ac_pwd='$ac_pwd'
20402srcdir='$srcdir'
20403INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020404_ACEOF
20405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020406cat >>$CONFIG_STATUS <<\_ACEOF
20407# If no file are specified by the user, then we need to provide default
20408# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020409ac_need_defaults=:
20410while test $# != 0
20411do
20412 case $1 in
20413 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020416 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020417 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020418 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020419 ac_option=$1
20420 ac_optarg=$2
20421 ac_shift=shift
20422 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020423 esac
20424
John Criswell0c38eaf2003-09-10 15:17:25 +000020425 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020426 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20428 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020430 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020431 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020432 debug=: ;;
20433 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020434 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020435 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020436 ac_need_defaults=false;;
20437 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020438 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020440 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020441 --he | --h)
20442 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020443 { echo "$as_me: error: ambiguous option: $1
20444Try \`$0 --help' for more information." >&2
20445 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020446 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020447 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20450 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020451
20452 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453 -*) { echo "$as_me: error: unrecognized option: $1
20454Try \`$0 --help' for more information." >&2
20455 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020458 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020459
20460 esac
20461 shift
20462done
20463
John Criswell0c38eaf2003-09-10 15:17:25 +000020464ac_configure_extra_args=
20465
20466if $ac_cs_silent; then
20467 exec 6>/dev/null
20468 ac_configure_extra_args="$ac_configure_extra_args --silent"
20469fi
20470
20471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020473if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20475 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020476 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020478fi
20479
John Criswell7a73b802003-06-30 21:59:07 +000020480_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020482exec 5>>config.log
20483{
20484 echo
20485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20486## Running $as_me. ##
20487_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020488 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020489} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020490
Reid Spencera773bd52006-08-04 18:18:08 +000020491_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020493#
Reid Spencera773bd52006-08-04 18:18:08 +000020494# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020495#
Reid Spencerc0682832005-02-24 19:05:19 +000020496llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020497
20498_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020500cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020501
20502# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020503for ac_config_target in $ac_config_targets
20504do
Reid Spencera773bd52006-08-04 18:18:08 +000020505 case $ac_config_target in
20506 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020507 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20508 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020509 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020510 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020511 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020512 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020513 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020514 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020515 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020516 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20517 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20518 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20519 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20520 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20521 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020522 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020523 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20524 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020525 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020526 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20527 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20528 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020529 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20530 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20533echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20534 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020535 esac
20536done
20537
Reid Spencera773bd52006-08-04 18:18:08 +000020538
John Criswell7a73b802003-06-30 21:59:07 +000020539# If the user did not use the arguments to specify the items to instantiate,
20540# then the envvar interface is used. Set only those that are not.
20541# We use the long form for the default assignment because of an extremely
20542# bizarre bug on SunOS 4.1.3.
20543if $ac_need_defaults; then
20544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020547fi
20548
John Criswell0c38eaf2003-09-10 15:17:25 +000020549# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020550# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020551# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020552# Hook for its removal unless debugging.
20553# Note that there is a small window in which the directory will not be cleaned:
20554# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020555$debug ||
20556{
Reid Spencera773bd52006-08-04 18:18:08 +000020557 tmp=
20558 trap 'exit_status=$?
20559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20560' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020561 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020562}
John Criswell7a73b802003-06-30 21:59:07 +000020563# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020564
John Criswell7a73b802003-06-30 21:59:07 +000020565{
Reid Spencera773bd52006-08-04 18:18:08 +000020566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020567 test -n "$tmp" && test -d "$tmp"
20568} ||
20569{
Reid Spencera773bd52006-08-04 18:18:08 +000020570 tmp=./conf$$-$RANDOM
20571 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020572} ||
20573{
20574 echo "$me: cannot create a temporary directory in ." >&2
20575 { (exit 1); exit 1; }
20576}
John Criswell7a73b802003-06-30 21:59:07 +000020577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578#
20579# Set up the sed scripts for CONFIG_FILES section.
20580#
20581
20582# No need to generate the scripts if there are no CONFIG_FILES.
20583# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020584if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020585
20586_ACEOF
20587
Reid Spencera773bd52006-08-04 18:18:08 +000020588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589
Reid Spencera773bd52006-08-04 18:18:08 +000020590ac_delim='%!_!# '
20591for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592 cat >conf$$subs.sed <<_ACEOF
20593SHELL!$SHELL$ac_delim
20594PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20595PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20596PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20597PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20598PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20599PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20600exec_prefix!$exec_prefix$ac_delim
20601prefix!$prefix$ac_delim
20602program_transform_name!$program_transform_name$ac_delim
20603bindir!$bindir$ac_delim
20604sbindir!$sbindir$ac_delim
20605libexecdir!$libexecdir$ac_delim
20606datarootdir!$datarootdir$ac_delim
20607datadir!$datadir$ac_delim
20608sysconfdir!$sysconfdir$ac_delim
20609sharedstatedir!$sharedstatedir$ac_delim
20610localstatedir!$localstatedir$ac_delim
20611includedir!$includedir$ac_delim
20612oldincludedir!$oldincludedir$ac_delim
20613docdir!$docdir$ac_delim
20614infodir!$infodir$ac_delim
20615htmldir!$htmldir$ac_delim
20616dvidir!$dvidir$ac_delim
20617pdfdir!$pdfdir$ac_delim
20618psdir!$psdir$ac_delim
20619libdir!$libdir$ac_delim
20620localedir!$localedir$ac_delim
20621mandir!$mandir$ac_delim
20622DEFS!$DEFS$ac_delim
20623ECHO_C!$ECHO_C$ac_delim
20624ECHO_N!$ECHO_N$ac_delim
20625ECHO_T!$ECHO_T$ac_delim
20626LIBS!$LIBS$ac_delim
20627build_alias!$build_alias$ac_delim
20628host_alias!$host_alias$ac_delim
20629target_alias!$target_alias$ac_delim
20630LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20631subdirs!$subdirs$ac_delim
20632build!$build$ac_delim
20633build_cpu!$build_cpu$ac_delim
20634build_vendor!$build_vendor$ac_delim
20635build_os!$build_os$ac_delim
20636host!$host$ac_delim
20637host_cpu!$host_cpu$ac_delim
20638host_vendor!$host_vendor$ac_delim
20639host_os!$host_os$ac_delim
20640target!$target$ac_delim
20641target_cpu!$target_cpu$ac_delim
20642target_vendor!$target_vendor$ac_delim
20643target_os!$target_os$ac_delim
20644OS!$OS$ac_delim
20645HOST_OS!$HOST_OS$ac_delim
20646TARGET_OS!$TARGET_OS$ac_delim
20647LINKALL!$LINKALL$ac_delim
20648NOLINKALL!$NOLINKALL$ac_delim
20649LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20650LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20651ARCH!$ARCH$ac_delim
20652ENDIAN!$ENDIAN$ac_delim
20653CC!$CC$ac_delim
20654CFLAGS!$CFLAGS$ac_delim
20655LDFLAGS!$LDFLAGS$ac_delim
20656CPPFLAGS!$CPPFLAGS$ac_delim
20657ac_ct_CC!$ac_ct_CC$ac_delim
20658EXEEXT!$EXEEXT$ac_delim
20659OBJEXT!$OBJEXT$ac_delim
20660CPP!$CPP$ac_delim
20661GREP!$GREP$ac_delim
20662EGREP!$EGREP$ac_delim
20663LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20664BUILD_CC!$BUILD_CC$ac_delim
20665BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20666BUILD_CXX!$BUILD_CXX$ac_delim
20667CVSBUILD!$CVSBUILD$ac_delim
20668ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20669ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20670DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20671ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20672EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20673DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20674DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20675JIT!$JIT$ac_delim
20676TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20677ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20678ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20679ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +000020680ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20682LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20683LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20684LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20685LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20686ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20687OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20688EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20689BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020693 break
20694 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20696echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20697 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020698 else
20699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020700 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020701done
20702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20704if test -n "$ac_eof"; then
20705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20706 ac_eof=`expr $ac_eof + 1`
20707fi
20708
20709cat >>$CONFIG_STATUS <<_ACEOF
20710cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20711/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713sed '
20714s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20715s/^/s,@/; s/!/@,|#_!!_#|/
20716:n
20717t n
20718s/'"$ac_delim"'$/,g/; t
20719s/$/\\/; p
20720N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20721' >>$CONFIG_STATUS <conf$$subs.sed
20722rm -f conf$$subs.sed
20723cat >>$CONFIG_STATUS <<_ACEOF
20724CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020725_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726
20727
20728ac_delim='%!_!# '
20729for ac_last_try in false false false false false :; do
20730 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +000020731ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020732ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20733CXX!$CXX$ac_delim
20734CXXFLAGS!$CXXFLAGS$ac_delim
20735ac_ct_CXX!$ac_ct_CXX$ac_delim
20736NM!$NM$ac_delim
20737ifGNUmake!$ifGNUmake$ac_delim
20738LN_S!$LN_S$ac_delim
20739CMP!$CMP$ac_delim
20740CP!$CP$ac_delim
20741DATE!$DATE$ac_delim
20742FIND!$FIND$ac_delim
20743MKDIR!$MKDIR$ac_delim
20744MV!$MV$ac_delim
20745RANLIB!$RANLIB$ac_delim
20746AR!$AR$ac_delim
20747RM!$RM$ac_delim
20748SED!$SED$ac_delim
20749TAR!$TAR$ac_delim
20750BINPWD!$BINPWD$ac_delim
20751GRAPHVIZ!$GRAPHVIZ$ac_delim
20752DOT!$DOT$ac_delim
20753FDP!$FDP$ac_delim
20754NEATO!$NEATO$ac_delim
20755TWOPI!$TWOPI$ac_delim
20756CIRCO!$CIRCO$ac_delim
20757GV!$GV$ac_delim
20758DOTTY!$DOTTY$ac_delim
20759PERL!$PERL$ac_delim
20760HAVE_PERL!$HAVE_PERL$ac_delim
20761INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20762INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20763INSTALL_DATA!$INSTALL_DATA$ac_delim
20764BZIP2!$BZIP2$ac_delim
20765DOXYGEN!$DOXYGEN$ac_delim
20766GROFF!$GROFF$ac_delim
20767GZIP!$GZIP$ac_delim
20768POD2HTML!$POD2HTML$ac_delim
20769POD2MAN!$POD2MAN$ac_delim
20770RUNTEST!$RUNTEST$ac_delim
20771TCLSH!$TCLSH$ac_delim
20772ZIP!$ZIP$ac_delim
20773OCAMLC!$OCAMLC$ac_delim
20774OCAMLOPT!$OCAMLOPT$ac_delim
20775OCAMLDEP!$OCAMLDEP$ac_delim
20776OCAMLDOC!$OCAMLDOC$ac_delim
20777GAS!$GAS$ac_delim
20778INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20779INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20780CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20781CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20782LIBADD_DL!$LIBADD_DL$ac_delim
20783LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20784LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20785LLVMGCC!$LLVMGCC$ac_delim
20786LLVMGXX!$LLVMGXX$ac_delim
20787NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20788NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20789USE_UDIS86!$USE_UDIS86$ac_delim
20790USE_OPROFILE!$USE_OPROFILE$ac_delim
20791HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20792HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20793MMAP_FILE!$MMAP_FILE$ac_delim
20794LLVMCC1!$LLVMCC1$ac_delim
20795LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20796LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20797LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20798LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
20799LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
20800LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20801SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +000020802SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020803LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20804LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20805LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20806LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20807LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20808LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20809LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20810LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20811LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20812LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20813BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20814ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20815OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20816ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20817RPATH!$RPATH$ac_delim
20818RDYNAMIC!$RDYNAMIC$ac_delim
20819LIBOBJS!$LIBOBJS$ac_delim
20820LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000020821_ACEOF
20822
Jeffrey Yasskinf6afae22010-02-18 02:36:02 +000020823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824 break
20825 elif $ac_last_try; then
20826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20827echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20828 { (exit 1); exit 1; }; }
20829 else
20830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20831 fi
20832done
20833
20834ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20835if test -n "$ac_eof"; then
20836 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20837 ac_eof=`expr $ac_eof + 1`
20838fi
20839
20840cat >>$CONFIG_STATUS <<_ACEOF
20841cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20843_ACEOF
20844sed '
20845s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20846s/^/s,@/; s/!/@,|#_!!_#|/
20847:n
20848t n
20849s/'"$ac_delim"'$/,g/; t
20850s/$/\\/; p
20851N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20852' >>$CONFIG_STATUS <conf$$subs.sed
20853rm -f conf$$subs.sed
20854cat >>$CONFIG_STATUS <<_ACEOF
20855:end
20856s/|#_!!_#|//g
20857CEOF$ac_eof
20858_ACEOF
20859
20860
Reid Spencera773bd52006-08-04 18:18:08 +000020861# VPATH may cause trouble with some makes, so we remove $(srcdir),
20862# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20863# trailing colons and then remove the whole line if VPATH becomes empty
20864# (actually we leave an empty line to preserve line numbers).
20865if test "x$srcdir" = x.; then
20866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20867s/:*\$(srcdir):*/:/
20868s/:*\${srcdir}:*/:/
20869s/:*@srcdir@:*/:/
20870s/^\([^=]*=[ ]*\):*/\1/
20871s/:*$//
20872s/^[^=]*=[ ]*$//
20873}'
20874fi
20875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020877fi # test -n "$CONFIG_FILES"
20878
Reid Spencera773bd52006-08-04 18:18:08 +000020879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020880for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000020881do
20882 case $ac_tag in
20883 :[FHLC]) ac_mode=$ac_tag; continue;;
20884 esac
20885 case $ac_mode$ac_tag in
20886 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20888echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20889 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020890 :[FH]-) ac_tag=-:-;;
20891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20892 esac
20893 ac_save_IFS=$IFS
20894 IFS=:
20895 set x $ac_tag
20896 IFS=$ac_save_IFS
20897 shift
20898 ac_file=$1
20899 shift
20900
20901 case $ac_mode in
20902 :L) ac_source=$1;;
20903 :[FH])
20904 ac_file_inputs=
20905 for ac_f
20906 do
20907 case $ac_f in
20908 -) ac_f="$tmp/stdin";;
20909 *) # Look for the file first in the build tree, then in the source tree
20910 # (if the path is not absolute). The absolute path cannot be DOS-style,
20911 # because $ac_f cannot contain `:'.
20912 test -f "$ac_f" ||
20913 case $ac_f in
20914 [\\/$]*) false;;
20915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20916 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020917 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20918echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20919 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020920 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020921 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000020922 done
20923
20924 # Let's still pretend it is `configure' which instantiates (i.e., don't
20925 # use $as_me), people would be surprised to read:
20926 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020927 configure_input="Generated from "`IFS=:
20928 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000020929 if test x"$ac_file" != x-; then
20930 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020931 { echo "$as_me:$LINENO: creating $ac_file" >&5
20932echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000020933 fi
20934
20935 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020936 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000020937 esac
20938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020939 esac
20940
Reid Spencera773bd52006-08-04 18:18:08 +000020941 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000020942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020943 X"$ac_file" : 'X\(//\)[^/]' \| \
20944 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000020945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020946echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000020947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20948 s//\1/
20949 q
20950 }
20951 /^X\(\/\/\)[^/].*/{
20952 s//\1/
20953 q
20954 }
20955 /^X\(\/\/\)$/{
20956 s//\1/
20957 q
20958 }
20959 /^X\(\/\).*/{
20960 s//\1/
20961 q
20962 }
20963 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964 { as_dir="$ac_dir"
20965 case $as_dir in #(
20966 -*) as_dir=./$as_dir;;
20967 esac
20968 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20969 as_dirs=
20970 while :; do
20971 case $as_dir in #(
20972 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20973 *) as_qdir=$as_dir;;
20974 esac
20975 as_dirs="'$as_qdir' $as_dirs"
20976 as_dir=`$as_dirname -- "$as_dir" ||
20977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20978 X"$as_dir" : 'X\(//\)[^/]' \| \
20979 X"$as_dir" : 'X\(//\)$' \| \
20980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20981echo X"$as_dir" |
20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20983 s//\1/
20984 q
20985 }
20986 /^X\(\/\/\)[^/].*/{
20987 s//\1/
20988 q
20989 }
20990 /^X\(\/\/\)$/{
20991 s//\1/
20992 q
20993 }
20994 /^X\(\/\).*/{
20995 s//\1/
20996 q
20997 }
20998 s/.*/./; q'`
20999 test -d "$as_dir" && break
21000 done
21001 test -z "$as_dirs" || eval "mkdir $as_dirs"
21002 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21003echo "$as_me: error: cannot create directory $as_dir" >&2;}
21004 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021005 ac_builddir=.
21006
Reid Spencera773bd52006-08-04 18:18:08 +000021007case "$ac_dir" in
21008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21009*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021011 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021013 case $ac_top_builddir_sub in
21014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21016 esac ;;
21017esac
21018ac_abs_top_builddir=$ac_pwd
21019ac_abs_builddir=$ac_pwd$ac_dir_suffix
21020# for backward compatibility:
21021ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021022
21023case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021024 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021025 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021026 ac_top_srcdir=$ac_top_builddir_sub
21027 ac_abs_top_srcdir=$ac_pwd ;;
21028 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021029 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021030 ac_top_srcdir=$srcdir
21031 ac_abs_top_srcdir=$srcdir ;;
21032 *) # Relative name.
21033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21034 ac_top_srcdir=$ac_top_build_prefix$srcdir
21035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021036esac
Reid Spencera773bd52006-08-04 18:18:08 +000021037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021038
John Criswell7a73b802003-06-30 21:59:07 +000021039
Reid Spencera773bd52006-08-04 18:18:08 +000021040 case $ac_mode in
21041 :F)
21042 #
21043 # CONFIG_FILE
21044 #
John Criswell7a73b802003-06-30 21:59:07 +000021045
21046 case $INSTALL in
21047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021049 esac
John Criswell7a73b802003-06-30 21:59:07 +000021050_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021053# If the template does not know about datarootdir, expand it.
21054# FIXME: This hack should be removed a few years after 2.60.
21055ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021056
21057case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021058 p
21059 q
21060}
21061/@datadir@/p
21062/@docdir@/p
21063/@infodir@/p
21064/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065/@mandir@/p
21066' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021067*datarootdir*) ac_datarootdir_seen=yes;;
21068*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021069 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21070echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021072cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021073 ac_datarootdir_hack='
21074 s&@datadir@&$datadir&g
21075 s&@docdir@&$docdir&g
21076 s&@infodir@&$infodir&g
21077 s&@localedir@&$localedir&g
21078 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021079 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021080esac
21081_ACEOF
21082
21083# Neutralize VPATH when `$srcdir' = `.'.
21084# Shell code in configure.ac might set extrasub.
21085# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086cat >>$CONFIG_STATUS <<_ACEOF
21087 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021088$extrasub
21089_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021090cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021091:t
21092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021093s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021094s&@top_builddir@&$ac_top_builddir_sub&;t t
21095s&@srcdir@&$ac_srcdir&;t t
21096s&@abs_srcdir@&$ac_abs_srcdir&;t t
21097s&@top_srcdir@&$ac_top_srcdir&;t t
21098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21099s&@builddir@&$ac_builddir&;t t
21100s&@abs_builddir@&$ac_abs_builddir&;t t
21101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21102s&@INSTALL@&$ac_INSTALL&;t t
21103$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021104" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021105
Reid Spencera773bd52006-08-04 18:18:08 +000021106test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21107 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021109 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021110which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021112which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021113
Reid Spencera773bd52006-08-04 18:18:08 +000021114 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021115 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021116 -) cat "$tmp/out"; rm -f "$tmp/out";;
21117 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21118 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021119 ;;
21120 :H)
21121 #
21122 # CONFIG_HEADER
21123 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021124_ACEOF
21125
21126# Transform confdefs.h into a sed script `conftest.defines', that
21127# substitutes the proper values into config.h.in to produce config.h.
21128rm -f conftest.defines conftest.tail
21129# First, append a space to every undef/define line, to ease matching.
21130echo 's/$/ /' >conftest.defines
21131# Then, protect against being on the right side of a sed subst, or in
21132# an unquoted here document, in config.status. If some macros were
21133# called several times there might be several #defines for the same
21134# symbol, which is useless. But do not sort them, since the last
21135# AC_DEFINE must be honored.
21136ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21137# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21138# NAME is the cpp macro being defined, VALUE is the value it is being given.
21139# PARAMS is the parameter list in the macro definition--in most cases, it's
21140# just an empty string.
21141ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21142ac_dB='\\)[ (].*,\\1define\\2'
21143ac_dC=' '
21144ac_dD=' ,'
21145
21146uniq confdefs.h |
21147 sed -n '
21148 t rset
21149 :rset
21150 s/^[ ]*#[ ]*define[ ][ ]*//
21151 t ok
21152 d
21153 :ok
21154 s/[\\&,]/\\&/g
21155 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21156 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21157 ' >>conftest.defines
21158
21159# Remove the space that was appended to ease matching.
21160# Then replace #undef with comments. This is necessary, for
21161# example, in the case of _POSIX_SOURCE, which is predefined and required
21162# on some systems where configure will not decide to define it.
21163# (The regexp can be short, since the line contains either #define or #undef.)
21164echo 's/ $//
21165s,^[ #]*u.*,/* & */,' >>conftest.defines
21166
21167# Break up conftest.defines:
21168ac_max_sed_lines=50
21169
21170# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21171# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21172# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21173# et cetera.
21174ac_in='$ac_file_inputs'
21175ac_out='"$tmp/out1"'
21176ac_nxt='"$tmp/out2"'
21177
21178while :
21179do
21180 # Write a here document:
21181 cat >>$CONFIG_STATUS <<_ACEOF
21182 # First, check the format of the line:
21183 cat >"\$tmp/defines.sed" <<\\CEOF
21184/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21185/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21186b
21187:def
21188_ACEOF
21189 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21190 echo 'CEOF
21191 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21192 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21193 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21194 grep . conftest.tail >/dev/null || break
21195 rm -f conftest.defines
21196 mv conftest.tail conftest.defines
21197done
21198rm -f conftest.defines conftest.tail
21199
21200echo "ac_result=$ac_in" >>$CONFIG_STATUS
21201cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021202 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203 echo "/* $configure_input */" >"$tmp/config.h"
21204 cat "$ac_result" >>"$tmp/config.h"
21205 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21206 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21207echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021208 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 rm -f $ac_file
21210 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021211 fi
21212 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 echo "/* $configure_input */"
21214 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021215 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021217 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21220echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021221 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021222 esac
John Criswell7a73b802003-06-30 21:59:07 +000021223
Reid Spencera773bd52006-08-04 18:18:08 +000021224
21225 case $ac_file$ac_mode in
21226 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021227 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021228 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021229 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021230 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021231 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021232 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021233 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021234 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021235 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021236 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021237 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021238 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021239 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021240 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021241 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021242 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021243 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021244 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021245 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021246 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021247 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021248 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021249 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021250 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021251 ${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 +000021252
21253 esac
21254done # for ac_tag
21255
John Criswell7a73b802003-06-30 21:59:07 +000021256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021260ac_clean_files=$ac_clean_files_save
21261
21262
21263# configure is writing to config.log, and then calls config.status.
21264# config.status does its own redirection, appending to config.log.
21265# Unfortunately, on DOS this fails, as config.log is still kept open
21266# by configure, so config.status won't be able to write to it; its
21267# output is simply discarded. So we exec the FD to /dev/null,
21268# effectively closing config.log, so it can be properly (re)opened and
21269# appended to by config.status. When coming back to configure, we
21270# need to make the FD available again.
21271if test "$no_create" != yes; then
21272 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021273 ac_config_status_args=
21274 test "$silent" = yes &&
21275 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021276 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021278 exec 5>>config.log
21279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21280 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021282fi
21283
John Criswell12399a12003-09-30 15:55:44 +000021284#
21285# CONFIG_SUBDIRS section.
21286#
21287if test "$no_recursion" != yes; then
21288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021290 ac_sub_configure_args=
21291 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021292 eval "set x $ac_configure_args"
21293 shift
21294 for ac_arg
21295 do
John Criswell12399a12003-09-30 15:55:44 +000021296 if test -n "$ac_prev"; then
21297 ac_prev=
21298 continue
21299 fi
21300 case $ac_arg in
21301 -cache-file | --cache-file | --cache-fil | --cache-fi \
21302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21303 ac_prev=cache_file ;;
21304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21306 | --c=*)
21307 ;;
21308 --config-cache | -C)
21309 ;;
21310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21311 ac_prev=srcdir ;;
21312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21313 ;;
21314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21315 ac_prev=prefix ;;
21316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21317 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021318 *)
21319 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021320 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021321 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021323 esac
21324 done
21325
21326 # Always prepend --prefix to ensure using the same prefix
21327 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021328 ac_arg="--prefix=$prefix"
21329 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021330 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021331 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021333
21334 ac_popdir=`pwd`
21335 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21336
21337 # Do not complain, so a configure script can configure whichever
21338 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021339 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021340
Reid Spencera773bd52006-08-04 18:18:08 +000021341 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342 echo "$as_me:$LINENO: $ac_msg" >&5
21343 echo "$ac_msg" >&6
21344 { as_dir="$ac_dir"
21345 case $as_dir in #(
21346 -*) as_dir=./$as_dir;;
21347 esac
21348 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21349 as_dirs=
21350 while :; do
21351 case $as_dir in #(
21352 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21353 *) as_qdir=$as_dir;;
21354 esac
21355 as_dirs="'$as_qdir' $as_dirs"
21356 as_dir=`$as_dirname -- "$as_dir" ||
21357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21358 X"$as_dir" : 'X\(//\)[^/]' \| \
21359 X"$as_dir" : 'X\(//\)$' \| \
21360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21361echo X"$as_dir" |
21362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21363 s//\1/
21364 q
21365 }
21366 /^X\(\/\/\)[^/].*/{
21367 s//\1/
21368 q
21369 }
21370 /^X\(\/\/\)$/{
21371 s//\1/
21372 q
21373 }
21374 /^X\(\/\).*/{
21375 s//\1/
21376 q
21377 }
21378 s/.*/./; q'`
21379 test -d "$as_dir" && break
21380 done
21381 test -z "$as_dirs" || eval "mkdir $as_dirs"
21382 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21383echo "$as_me: error: cannot create directory $as_dir" >&2;}
21384 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021385 ac_builddir=.
21386
Reid Spencera773bd52006-08-04 18:18:08 +000021387case "$ac_dir" in
21388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21389*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021391 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021393 case $ac_top_builddir_sub in
21394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21396 esac ;;
21397esac
21398ac_abs_top_builddir=$ac_pwd
21399ac_abs_builddir=$ac_pwd$ac_dir_suffix
21400# for backward compatibility:
21401ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021402
21403case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021404 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021405 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021406 ac_top_srcdir=$ac_top_builddir_sub
21407 ac_abs_top_srcdir=$ac_pwd ;;
21408 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021409 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021410 ac_top_srcdir=$srcdir
21411 ac_abs_top_srcdir=$srcdir ;;
21412 *) # Relative name.
21413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21414 ac_top_srcdir=$ac_top_build_prefix$srcdir
21415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021416esac
Reid Spencera773bd52006-08-04 18:18:08 +000021417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021418
21419
Reid Spencera773bd52006-08-04 18:18:08 +000021420 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021421
21422 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021423 if test -f "$ac_srcdir/configure.gnu"; then
21424 ac_sub_configure=$ac_srcdir/configure.gnu
21425 elif test -f "$ac_srcdir/configure"; then
21426 ac_sub_configure=$ac_srcdir/configure
21427 elif test -f "$ac_srcdir/configure.in"; then
21428 # This should be Cygnus configure.
21429 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021430 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21432echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021433 ac_sub_configure=
21434 fi
21435
21436 # The recursion is here.
21437 if test -n "$ac_sub_configure"; then
21438 # Make the cache file name correct relative to the subdirectory.
21439 case $cache_file in
21440 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021441 *) # Relative name.
21442 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021443 esac
21444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21446echo "$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 +000021447 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021448 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21449 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021450 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21451echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21452 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021453 fi
21454
Reid Spencera773bd52006-08-04 18:18:08 +000021455 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021456 done
21457fi
21458