blob: ba31b9650cca53f4e5340ae10e1cc01ea77ae854 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherb26697c2010-09-06 18:47:10 +00003# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Eric Christopherb26697c2010-09-06 18:47:10 +0000564PACKAGE_VERSION='2.9svn'
565PACKAGE_STRING='llvm 2.9svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000732XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000739CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740DOXYGEN
741GROFF
742GZIP
743POD2HTML
744POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000745PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746RUNTEST
747TCLSH
748ZIP
749OCAMLC
750OCAMLOPT
751OCAMLDEP
752OCAMLDOC
753GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000754HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755INSTALL_LTDL_TRUE
756INSTALL_LTDL_FALSE
757CONVENIENCE_LTDL_TRUE
758CONVENIENCE_LTDL_FALSE
759LIBADD_DL
760LLVMGCCCOMMAND
761LLVMGXXCOMMAND
762LLVMGCC
763LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000764LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765NO_VARIADIC_MACROS
766NO_MISSING_FIELD_INITIALIZERS
767USE_UDIS86
768USE_OPROFILE
769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
772LLVMCC1
773LLVMCC1PLUS
774LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVMGCC_LANGS
776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
804CPP
805CXX
806CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000807CCC'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001322\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001388 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001409 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001410 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001413 --enable-timestamps Enable embedding timestamp information in build
1414 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00001418 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001432 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 searches PATH)
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001436 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang)
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001440 --with-optimize-option Select the compiler options to use for optimized
1441 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001442 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001455 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001458 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CC C compiler command
1464 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001468 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001469 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
1476Report bugs to <llvmbugs@cs.uiuc.edu>.
1477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001478ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001485 ac_builddir=.
1486
Reid Spencera773bd52006-08-04 18:18:08 +00001487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001504 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001516esac
Reid Spencera773bd52006-08-04 18:18:08 +00001517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001518
Reid Spencera773bd52006-08-04 18:18:08 +00001519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001531 done
1532fi
1533
Reid Spencera773bd52006-08-04 18:18:08 +00001534test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001535if $ac_init_version; then
1536 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001537llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544
John Criswell5a129712010-03-19 21:04:16 +00001545Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001547 exit
John Criswell7a73b802003-06-30 21:59:07 +00001548fi
Reid Spencera773bd52006-08-04 18:18:08 +00001549cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001550This file contains any messages produced by compilers while
1551running configure, to aid debugging if configure makes a mistake.
1552
Eric Christopherb26697c2010-09-06 18:47:10 +00001553It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001555
1556 $ $0 $@
1557
1558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001560{
1561cat <<_ASUNAME
1562## --------- ##
1563## Platform. ##
1564## --------- ##
1565
1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574
1575/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001578/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001579/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582
1583_ASUNAME
1584
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001590 echo "PATH: $as_dir"
1591done
Reid Spencera773bd52006-08-04 18:18:08 +00001592IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594} >&5
1595
1596cat >&5 <<_ACEOF
1597
1598
1599## ----------- ##
1600## Core tests. ##
1601## ----------- ##
1602
1603_ACEOF
1604
1605
1606# Keep a trace of the command line.
1607# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001609# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001610# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001611ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_configure_args0=
1613ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001614ac_must_keep_next=false
1615for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001616do
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 for ac_arg
1618 do
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001624 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 esac
1627 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1642 ;;
1643 -* ) ac_must_keep_next=true ;;
1644 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ;;
1648 esac
1649 done
John Criswell7a73b802003-06-30 21:59:07 +00001650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652$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 +00001653
1654# When interrupted or exit'd, cleanup temporary files, and complete
1655# config.log. We remove comments because anyway the quotes in there
1656# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001657# WARNING: Use '\'' to represent an apostrophe within the trap.
1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001659trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1661 {
1662 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001663
John Criswell7a73b802003-06-30 21:59:07 +00001664 cat <<\_ASBOX
1665## ---------------- ##
1666## Cache variables. ##
1667## ---------------- ##
1668_ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001671(
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac ;;
1684 esac
1685 done
John Criswell7a73b802003-06-30 21:59:07 +00001686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001689 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001693 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac |
1697 sort
1698)
John Criswell7a73b802003-06-30 21:59:07 +00001699 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001700
1701 cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
Reid Spencera773bd52006-08-04 18:18:08 +00001709 eval ac_val=\$$ac_var
1710 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001712 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001713 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733 fi
1734
John Criswell7a73b802003-06-30 21:59:07 +00001735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001742 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001748 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001751 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001752' 0
John Criswell7a73b802003-06-30 21:59:07 +00001753for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001759rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760
1761# Predefined preprocessor variables.
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_NAME "$PACKAGE_NAME"
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_TARNAME "$PACKAGE_TARNAME"
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_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_STRING "$PACKAGE_STRING"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785_ACEOF
1786
1787
1788# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001790if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001792elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798shift
1799for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001800do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1806 fi
1807done
1808
1809if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001815 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001818 esac
1819 fi
1820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001829for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $ac_old_set,$ac_new_set in
1835 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,);;
1844 *)
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 esac
1865 fi
1866done
1867if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
Reid Spencera773bd52006-08-04 18:18:08 +00001898
John Criswell7a73b802003-06-30 21:59:07 +00001899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
John Criswell5a129712010-03-19 21:04:16 +00001907LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001908
1909
1910
1911
1912
1913
1914
John Criswell7a73b802003-06-30 21:59:07 +00001915ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001916for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1929 fi
John Criswell7a73b802003-06-30 21:59:07 +00001930done
1931if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001935fi
Reid Spencera773bd52006-08-04 18:18:08 +00001936
1937# These three variables are undocumented and unsupported,
1938# and are intended to be withdrawn in a future Autoconf release.
1939# They can cause serious problems if a builder's source tree is in a directory
1940# whose full name contains unusual characters.
1941ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944
John Criswell7a73b802003-06-30 21:59:07 +00001945
John Criswell392aaa32003-07-22 19:18:09 +00001946
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 fi
John Criswell93e1c722003-09-15 17:04:06 +00001953fi
1954
John Criswell0157f502010-03-19 21:31:39 +00001955
1956
1957if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1959
1960fi
1961
1962if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1979
1980fi
1981
John Criswell33a911a2003-11-25 20:36:46 +00001982for i in `ls ${srcdir}/projects`
1983do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001984 if test -d ${srcdir}/projects/${i} ; then
1985 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001988 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001989 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001993;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001994 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001995 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
John Criswell7def2932010-02-25 22:57:19 +00001998 safecode) subdirs="$subdirs projects/safecode"
1999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002001 ;;
John Criswell52c02862010-03-25 13:59:09 +00002002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002010 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002011 esac
John Criswell33a911a2003-11-25 20:36:46 +00002012 fi
2013done
John Criswell559a6c12003-09-30 16:31:48 +00002014
John Criswell7a73b802003-06-30 21:59:07 +00002015
2016# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022{ echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002026else
Reid Spencera773bd52006-08-04 18:18:08 +00002027 ac_build_alias=$build_alias
2028test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002042case $ac_cv_build in
2043*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002047esac
John Criswell7a73b802003-06-30 21:59:07 +00002048build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_build
2051shift
2052build_cpu=$1
2053build_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057build_os=$*
2058IFS=$ac_save_IFS
2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002060
2061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking host system type" >&5
2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002066else
Reid Spencera773bd52006-08-04 18:18:08 +00002067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074fi
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_host in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_host
2088shift
2089host_cpu=$1
2090host_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094host_os=$*
2095IFS=$ac_save_IFS
2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking target system type" >&5
2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111fi
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116case $ac_cv_target in
2117*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002121esac
John Criswell7a73b802003-06-30 21:59:07 +00002122target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_target
2125shift
2126target_cpu=$1
2127target_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131target_os=$*
2132IFS=$ac_save_IFS
2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002134
2135
2136# The aliases save the names the user supplied, while $host etc.
2137# will get canonicalized.
2138test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002147else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002148 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002149 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002154 *-*-irix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002159 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002166 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002174 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002179 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002184 *-*-netbsd*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002189 *-*-dragonfly*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002194 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002199 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002229 *-*-haiku*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002249esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002258else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2296 *)
2297 llvm_cv_target_os_type="Unknown" ;;
2298esac
2299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002307fi
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002311HOST_OS=$llvm_cv_os_type
2312
2313TARGET_OS=$llvm_cv_target_os_type
2314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002315
Reid Spencera773bd52006-08-04 18:18:08 +00002316LINKALL=$llvm_cv_link_all_option
2317
2318NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321case $llvm_cv_platform_type in
2322 Unix)
2323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324cat >>confdefs.h <<\_ACEOF
2325#define LLVM_ON_UNIX 1
2326_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002328 LLVM_ON_UNIX=1
2329
2330 LLVM_ON_WIN32=0
2331
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 ;;
2333 Win32)
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335cat >>confdefs.h <<\_ACEOF
2336#define LLVM_ON_WIN32 1
2337_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002339 LLVM_ON_UNIX=0
2340
2341 LLVM_ON_WIN32=1
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 ;;
2344esac
2345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: checking target architecture" >&5
2347echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350else
2351 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002352 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002357 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002358 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002359 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002360 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002361 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002365 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002366 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002367esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002371
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375fi
John Criswell76595452003-07-01 22:07:39 +00002376
Nick Lewycky83fc4472009-09-29 05:48:51 +00002377# Determine the LLVM native architecture for the target
2378case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382esac
2383
2384ARCH=$llvm_cv_target_arch
2385
2386
2387ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002392if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$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
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430fi
2431if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 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 +00002450 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452 break 2
2453 fi
2454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455done
Reid Spencera773bd52006-08-04 18:18:08 +00002456IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467fi
2468
Reid Spencera773bd52006-08-04 18:18:08 +00002469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002480ac_tool_warned=yes ;;
2481esac
2482 CC=$ac_ct_CC
2483 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
2485 CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002489 if test -n "$ac_tool_prefix"; then
2490 # 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 +00002491set dummy ${ac_tool_prefix}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
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 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 +00002507 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509 break 2
2510 fi
2511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512done
Reid Spencera773bd52006-08-04 18:18:08 +00002513IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002519 { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524fi
2525
Reid Spencera773bd52006-08-04 18:18:08 +00002526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540 ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 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 +00002548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2551 fi
2552 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554 break 2
2555 fi
2556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557done
Reid Spencera773bd52006-08-04 18:18:08 +00002558IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559
2560if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581fi
2582
Reid Spencera773bd52006-08-04 18:18:08 +00002583
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584fi
2585if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002588 do
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002595else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 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 +00002606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002608 break 2
2609 fi
2610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611done
Reid Spencera773bd52006-08-04 18:18:08 +00002612IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002613
2614fi
2615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002623fi
2624
Reid Spencera773bd52006-08-04 18:18:08 +00002625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002627 done
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629if test -z "$CC"; then
2630 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002631 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002632do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002639else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 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 +00002650 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002652 break 2
2653 fi
2654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002655done
Reid Spencera773bd52006-08-04 18:18:08 +00002656IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002657
2658fi
2659fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667fi
2668
Reid Spencera773bd52006-08-04 18:18:08 +00002669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002671done
John Criswell7a73b802003-06-30 21:59:07 +00002672
Reid Spencera773bd52006-08-04 18:18:08 +00002673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688fi
2689
John Criswell7a73b802003-06-30 21:59:07 +00002690fi
2691
2692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698
John Criswell7a73b802003-06-30 21:59:07 +00002699# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700echo "$as_me:$LINENO: checking for C compiler version" >&5
2701ac_compiler=`set X $ac_compile; echo $2`
2702{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002709 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712{ (ac_try="$ac_compiler -v >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002739
John Criswell7a73b802003-06-30 21:59:07 +00002740int
2741main ()
2742{
2743
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort. b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions. Remove them first so a
2764# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002775if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002781 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002782 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile. We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002790for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002791do
2792 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002793 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002796 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 fi
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002811 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002813 esac
2814done
Reid Spencera773bd52006-08-04 18:18:08 +00002815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
John Criswell7a73b802003-06-30 21:59:07 +00002817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002819sed 's/^/| /' conftest.$ac_ext >&5
2820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: C compiler cannot create executables
2824See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002826fi
John Criswell7a73b802003-06-30 21:59:07 +00002827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002828ac_exeext=$ac_cv_exeext
2829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
2831
2832# Check that the compiler produces executables we can run. If not, either
2833# the compiler is broken, or we cross compile.
2834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862 fi
2863fi
2864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
2866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002868ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002869# Check that the compiler produces executables we can run. If not, either
2870# the compiler is broken, or we cross compile.
2871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002884 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002885 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002892for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002894 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002897 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002898 * ) break;;
2899 esac
2900done
2901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002908
2909rm -f conftest$ac_cv_exeext
2910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002927
John Criswell7a73b802003-06-30 21:59:07 +00002928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002943 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002944 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002949 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954done
2955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002965
John Criswell7a73b802003-06-30 21:59:07 +00002966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002977 cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002983
John Criswell7a73b802003-06-30 21:59:07 +00002984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002995rm -f conftest.$ac_objext
2996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003029 ac_compiler_gnu=yes
3030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003031 echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003036
Reid Spencera773bd52006-08-04 18:18:08 +00003037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003038ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003039
3040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003050else
Reid Spencera773bd52006-08-04 18:18:08 +00003051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003061
John Criswell7a73b802003-06-30 21:59:07 +00003062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003104 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
Torok Edwin871384f2010-01-26 08:50:50 +00003160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003165 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003215 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
John Criswell7a73b802003-06-30 21:59:07 +00003221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222
Reid Spencera773bd52006-08-04 18:18:08 +00003223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225
Reid Spencera773bd52006-08-04 18:18:08 +00003226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228
Reid Spencera773bd52006-08-04 18:18:08 +00003229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003239 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003241 fi
3242else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003245 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003247 fi
3248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253else
Reid Spencera773bd52006-08-04 18:18:08 +00003254 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261/* end confdefs.h. */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003288 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003291 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
Reid Spencera773bd52006-08-04 18:18:08 +00003294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315do
3316 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317 rm -f conftest.$ac_objext
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003351 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358
Reid Spencera773bd52006-08-04 18:18:08 +00003359rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361done
Reid Spencera773bd52006-08-04 18:18:08 +00003362rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363CC=$ac_save_CC
3364
3365fi
Reid Spencera773bd52006-08-04 18:18:08 +00003366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003371 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003375 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378esac
3379
John Criswell0c38eaf2003-09-10 15:17:25 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395# On Suns, sometimes $CPP names a directory.
3396if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3398fi
3399if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 do
3406 ac_preproc_ok=false
3407for ac_c_preproc_warn_flag in '' yes
3408do
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420/* end confdefs.h. */
3421#ifdef __STDC__
3422# include <limits.h>
3423#else
3424# include <assert.h>
3425#endif
3426 Syntax error
3427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3446 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448 ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451 :
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456 # Broken: fails on valid input.
3457continue
3458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
Reid Spencera773bd52006-08-04 18:18:08 +00003462 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469/* end confdefs.h. */
3470#include <ac_nonexistent.h>
3471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 # Broken: success on invalid input.
3496continue
3497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003505
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003511if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512 break
3513fi
3514
3515 done
3516 ac_cv_prog_CPP=$CPP
3517
3518fi
3519 CPP=$ac_cv_prog_CPP
3520else
3521 ac_cv_prog_CPP=$CPP
3522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003523{ echo "$as_me:$LINENO: result: $CPP" >&5
3524echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3565 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003567 ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570 :
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003575 # Broken: fails on valid input.
3576continue
3577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003578
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579rm -f conftest.err conftest.$ac_ext
3580
Reid Spencera773bd52006-08-04 18:18:08 +00003581 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588/* end confdefs.h. */
3589#include <ac_nonexistent.h>
3590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3609 fi
3610else
3611 ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 # Broken: success on invalid input.
3615continue
3616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630if $ac_preproc_ok; then
3631 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003638fi
3639
John Criswell7a73b802003-06-30 21:59:07 +00003640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
John Criswell7a73b802003-06-30 21:59:07 +00003646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003647{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003652 # Extract the first word of "grep ggrep" to use in msg output
3653if test -z "$GREP"; then
3654set dummy grep ggrep; ac_prog_name=$2
3655if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
Reid Spencera773bd52006-08-04 18:18:08 +00003658 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003659# Loop through the user's path and test for each of PROGNAME-LIST
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003670 # Check for GNU $ac_path_GREP
3671case `"$ac_path_GREP" --version 2>&1` in
3672*GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674*)
3675 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003682 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003685 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003690 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695esac
3696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003697
3698 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003699 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003700done
3701
3702done
Reid Spencera773bd52006-08-04 18:18:08 +00003703IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003704
3705
3706fi
3707
3708GREP="$ac_cv_path_GREP"
3709if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3713fi
3714
Reid Spencera773bd52006-08-04 18:18:08 +00003715else
3716 ac_cv_path_GREP=$GREP
3717fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719
Reid Spencera773bd52006-08-04 18:18:08 +00003720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003723 GREP="$ac_cv_path_GREP"
3724
3725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003726{ echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003730else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003734 # Extract the first word of "egrep" to use in msg output
3735if test -z "$EGREP"; then
3736set dummy egrep; ac_prog_name=$2
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
Reid Spencera773bd52006-08-04 18:18:08 +00003740 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003741# Loop through the user's path and test for each of PROGNAME-LIST
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003752 # Check for GNU $ac_path_EGREP
3753case `"$ac_path_EGREP" --version 2>&1` in
3754*GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756*)
3757 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003759 while :
3760 do
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003767 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3772 fi
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777esac
3778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779
3780 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003781 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003782done
3783
3784done
Reid Spencera773bd52006-08-04 18:18:08 +00003785IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003786
3787
3788fi
3789
3790EGREP="$ac_cv_path_EGREP"
3791if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3795fi
3796
Reid Spencera773bd52006-08-04 18:18:08 +00003797else
3798 ac_cv_path_EGREP=$EGREP
3799fi
3800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801
Reid Spencera773bd52006-08-04 18:18:08 +00003802 fi
3803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003804{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003806 EGREP="$ac_cv_path_EGREP"
3807
3808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003809{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003820#include <stdlib.h>
3821#include <stdarg.h>
3822#include <string.h>
3823#include <float.h>
3824
John Criswell0c38eaf2003-09-10 15:17:25 +00003825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
John Criswell7a73b802003-06-30 21:59:07 +00003832_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833rm -f conftest.$ac_objext
3834if { (ac_try="$ac_compile"
3835case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_cv_header_stdc=yes
3868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003874
Reid Spencera773bd52006-08-04 18:18:08 +00003875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003876
3877if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003889 $EGREP "memchr" >/dev/null 2>&1; then
3890 :
John Criswell7a73b802003-06-30 21:59:07 +00003891else
3892 ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003910 $EGREP "free" >/dev/null 2>&1; then
3911 :
John Criswell7a73b802003-06-30 21:59:07 +00003912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003922 :
3923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003931#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003932#if ((' ' & 0x0FF) == 0x020)
3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003936# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941#endif
3942
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int
3945main ()
3946{
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003950 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003951 return 2;
3952 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003953}
3954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955rm -f conftest$ac_exeext
3956if { (ac_try="$ac_link"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 :
John Criswell7a73b802003-06-30 21:59:07 +00003976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977 echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981( exit $ac_status )
3982ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984rm -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 +00003985fi
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987
John Criswell7a73b802003-06-30 21:59:07 +00003988fi
3989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003992if test $ac_cv_header_stdc = yes; then
3993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994cat >>confdefs.h <<\_ACEOF
3995#define STDC_HEADERS 1
3996_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003997
3998fi
3999
Reid Spencera773bd52006-08-04 18:18:08 +00004000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001
4002
4003
4004
4005
4006
4007
4008
4009
Reid Spencera773bd52006-08-04 18:18:08 +00004010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025$ac_includes_default
4026
4027#include <$ac_header>
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 eval "$as_ac_Header=no"
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075echo "${ECHO_T}$ac_res" >&6; }
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004079_ACEOF
4080
4081fi
4082
4083done
4084
4085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091 # See if sys/param.h defines the BYTE_ORDER macro.
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004097/* end confdefs.h. */
4098#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004100
4101int
4102main ()
4103{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004107
4108 ;
4109 return 0;
4110}
4111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004146 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004152/* end confdefs.h. */
4153#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004155
4156int
4157main ()
4158{
4159#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 not big endian
4161#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004162
4163 ;
4164 return 0;
4165}
4166_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004167rm -f conftest.$ac_objext
4168if { (ac_try="$ac_compile"
4169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004201 ac_cv_c_bigendian=yes
4202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004206 ac_cv_c_bigendian=no
4207fi
4208
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210else
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # It does not; compile a test program.
4215if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004230int
4231main ()
4232{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004233 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004234 ;
4235 return 0;
4236}
4237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004273 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274fi
4275if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4281 fi
4282fi
Reid Spencera773bd52006-08-04 18:18:08 +00004283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Torok Edwin871384f2010-01-26 08:50:50 +00004288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
Reid Spencera773bd52006-08-04 18:18:08 +00004290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292 cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004297/* end confdefs.h. */
4298$ac_includes_default
4299int
4300main ()
4301{
4302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4305 {
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004311
4312 ;
4313 return 0;
4314}
4315_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316rm -f conftest$ac_exeext
4317if { (ac_try="$ac_link"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004336 ac_cv_c_bigendian=no
4337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338 echo "$as_me: program exited with status $ac_status" >&5
4339echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342( exit $ac_status )
4343ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004345rm -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 +00004346fi
4347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348
Reid Spencera773bd52006-08-04 18:18:08 +00004349fi
4350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4358 ;;
4359 no)
4360 ENDIAN=little
4361 ;;
4362 *)
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365echo "$as_me: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368esac
Reid Spencera773bd52006-08-04 18:18:08 +00004369
4370
4371if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4373
4374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004379else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382else
4383 ac_build_prefix=${build_alias}-
4384
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004391else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 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 +00004402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004404 break 2
4405 fi
4406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407done
Reid Spencera773bd52006-08-04 18:18:08 +00004408IFS=$as_save_IFS
4409
4410fi
4411fi
4412BUILD_CC=$ac_cv_prog_BUILD_CC
4413if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417 { echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004419fi
4420
4421
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 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 +00004440 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 break 2
4443 fi
4444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445done
Reid Spencera773bd52006-08-04 18:18:08 +00004446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471 ac_prog_rejected=no
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 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 +00004479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4482 fi
4483 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004485 break 2
4486 fi
4487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488done
Reid Spencera773bd52006-08-04 18:18:08 +00004489IFS=$as_save_IFS
4490
4491if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501 fi
4502fi
4503fi
4504fi
4505BUILD_CC=$ac_cv_prog_BUILD_CC
4506if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510 { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004512fi
4513
4514
4515 fi
4516 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004529 for file in conftest.*; do
4530 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004531 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004539 fi
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542fi
4543fi
4544
4545BUILD_EXEEXT=""
4546test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004549ac_build_exeext=$BUILD_EXEEXT
4550
Jim Grosbach673612e2008-10-02 22:56:44 +00004551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004558else
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 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 +00004569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004571 break 2
4572 fi
4573done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574done
Jim Grosbach673612e2008-10-02 22:56:44 +00004575IFS=$as_save_IFS
4576
4577fi
4578fi
4579BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584 { echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004586fi
4587
4588
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004596else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 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 +00004607 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 break 2
4610 fi
4611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612done
Jim Grosbach673612e2008-10-02 22:56:44 +00004613IFS=$as_save_IFS
4614
4615fi
4616fi
4617BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622 { echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004624fi
4625
4626
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004634else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637else
4638 ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 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 +00004646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004652 break 2
4653 fi
4654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655done
Jim Grosbach673612e2008-10-02 22:56:44 +00004656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669fi
4670fi
4671fi
4672BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 { echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004679fi
4680
4681
4682 fi
4683 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004684else
4685 LLVM_CROSS_COMPILING=0
4686
4687fi
4688
Dan Gohman56fb5f92010-08-04 16:25:01 +00004689if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004690 cvsbuild="yes"
4691 optimize="no"
4692 CVSBUILD=CVSBUILD=1
4693
4694else
4695 cvsbuild="no"
4696 optimize="yes"
4697fi
4698
4699
4700# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004702 enableval=$enable_optimized;
4703else
4704 enableval=$optimize
4705fi
4706
4707if test ${enableval} = "no" ; then
4708 ENABLE_OPTIMIZED=
4709
4710else
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4712
4713fi
4714
David Greene2a5a12c2009-04-17 14:50:39 +00004715# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004717 enableval=$enable_profiling;
4718else
4719 enableval="no"
4720fi
4721
4722if test ${enableval} = "no" ; then
4723 ENABLE_PROFILING=
4724
4725else
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4727
4728fi
4729
Reid Spencera773bd52006-08-04 18:18:08 +00004730# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004731if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004732 enableval=$enable_assertions;
4733else
4734 enableval="yes"
4735fi
4736
4737if test ${enableval} = "yes" ; then
4738 DISABLE_ASSERTIONS=
4739
4740else
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742
4743fi
4744
David Greenea696d242007-06-28 19:36:08 +00004745# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004747 enableval=$enable_expensive_checks;
4748else
4749 enableval="no"
4750fi
4751
4752if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754
4755 EXPENSIVE_CHECKS=yes
4756
4757else
4758 ENABLE_EXPENSIVE_CHECKS=
4759
4760 EXPENSIVE_CHECKS=no
4761
4762fi
4763
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004766 enableval=$enable_debug_runtime;
4767else
4768 enableval=no
4769fi
4770
4771if test ${enableval} = "no" ; then
4772 DEBUG_RUNTIME=
4773
4774else
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776
4777fi
4778
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004781 enableval=$enable_debug_symbols;
4782else
4783 enableval=no
4784fi
4785
4786if test ${enableval} = "no" ; then
4787 DEBUG_SYMBOLS=
4788
4789else
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4791
4792fi
4793
Reid Spencera773bd52006-08-04 18:18:08 +00004794# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004796 enableval=$enable_jit;
4797else
4798 enableval=default
4799fi
4800
4801if test ${enableval} = "no"
4802then
4803 JIT=
4804
4805else
4806 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004816 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004817 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004828 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004829 Blackfin) TARGET_HAS_JIT=0
4830 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004831 MBlaze) TARGET_HAS_JIT=0
4832 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004833 PTX) TARGET_HAS_JIT=0
4834 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004835 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004836 ;;
4837 esac
4838fi
4839
4840# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004842 enableval=$enable_doxygen;
4843else
4844 enableval=default
4845fi
4846
4847case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4849 ;;
4850 no) ENABLE_DOXYGEN=0
4851 ;;
4852 default) ENABLE_DOXYGEN=0
4853 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004857esac
4858
4859# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004861 enableval=$enable_threads;
4862else
Reid Spencer65c5d752006-11-05 17:08:18 +00004863 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004864fi
4865
4866case "$enableval" in
4867 yes) ENABLE_THREADS=1
4868 ;;
4869 no) ENABLE_THREADS=0
4870 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004871 default) ENABLE_THREADS=1
4872 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004876esac
4877
Owen Andersona8603702009-05-19 22:18:56 +00004878cat >>confdefs.h <<_ACEOF
4879#define ENABLE_THREADS $ENABLE_THREADS
4880_ACEOF
4881
4882
Reid Spencer89b0d992006-12-16 22:07:52 +00004883# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004885 enableval=$enable_pic;
4886else
4887 enableval=default
4888fi
4889
4890case "$enableval" in
4891 yes) ENABLE_PIC=1
4892 ;;
4893 no) ENABLE_PIC=0
4894 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004895 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004896 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004900esac
4901
4902cat >>confdefs.h <<_ACEOF
4903#define ENABLE_PIC $ENABLE_PIC
4904_ACEOF
4905
4906
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004907# Check whether --enable-shared was given.
4908if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4910else
4911 enableval=default
4912fi
4913
4914case "$enableval" in
4915 yes) ENABLE_SHARED=1
4916 ;;
4917 no) ENABLE_SHARED=0
4918 ;;
4919 default) ENABLE_SHARED=0
4920 ;;
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924esac
4925
Daniel Dunbardd464df2010-05-10 20:11:56 +00004926# Check whether --enable-timestamps was given.
4927if test "${enable_timestamps+set}" = set; then
4928 enableval=$enable_timestamps;
4929else
4930 enableval=default
4931fi
4932
4933case "$enableval" in
4934 yes) ENABLE_TIMESTAMPS=1
4935 ;;
4936 no) ENABLE_TIMESTAMPS=0
4937 ;;
4938 default) ENABLE_TIMESTAMPS=1
4939 ;;
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4943esac
4944
4945cat >>confdefs.h <<_ACEOF
4946#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947_ACEOF
4948
4949
Reid Spencera773bd52006-08-04 18:18:08 +00004950TARGETS_TO_BUILD=""
4951# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004953 enableval=$enable_targets;
4954else
4955 enableval=all
4956fi
4957
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004958if test "$enableval" = host-only ; then
4959 enableval=host
4960fi
Reid Spencera773bd52006-08-04 18:18:08 +00004961case "$enableval" in
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004962 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004963 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004965 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4978 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004980 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004981 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004982 host) case "$llvm_cv_target_arch" in
4983 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4986 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4987 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4988 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4989 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004990 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004991 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4992 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4993 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4994 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004995 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004996 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004997 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004998 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4999echo "$as_me: error: Can not set target to build" >&2;}
5000 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005001 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005002 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5003echo "$as_me: error: Unrecognized target $a_target" >&2;}
5004 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005005 esac
5006 done
5007 ;;
5008esac
Reid Spencera773bd52006-08-04 18:18:08 +00005009TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5010
5011
Douglas Gregor0711c302009-06-17 00:43:20 +00005012# Determine whether we are building LLVM support for the native architecture.
5013# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5014for a_target in $TARGETS_TO_BUILD; do
5015 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5016
5017cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005018#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5019_ACEOF
5020
5021 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5022 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5023 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5024
5025cat >>confdefs.h <<_ACEOF
5026#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005027_ACEOF
5028
5029
5030cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005031#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5032_ACEOF
5033
5034
5035cat >>confdefs.h <<_ACEOF
5036#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005037_ACEOF
5038
5039 fi
5040done
5041
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005042# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5043# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005044LLVM_ENUM_TARGETS=""
5045LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005046LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005047LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005048for target_to_build in $TARGETS_TO_BUILD; do
5049 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5051 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052 fi
Jim Grosbach7ac16092010-10-01 22:39:28 +00005053 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5054 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5055 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5056 fi
5057
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005058 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5059 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5060 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005061 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5062 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5063 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005064done
5065
5066
5067
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005068
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005069
Reid Spencer65c5d752006-11-05 17:08:18 +00005070# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005071if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005072 enableval=$enable_cbe_printf_a;
5073else
5074 enableval=default
5075fi
5076
5077case "$enableval" in
5078 yes) ENABLE_CBE_PRINTF_A=1
5079 ;;
5080 no) ENABLE_CBE_PRINTF_A=0
5081 ;;
5082 default) ENABLE_CBE_PRINTF_A=1
5083 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5085echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5086 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005087esac
5088
5089cat >>confdefs.h <<_ACEOF
5090#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5091_ACEOF
5092
5093
Reid Spencera773bd52006-08-04 18:18:08 +00005094
5095# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005096if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005097 withval=$with_llvmgccdir;
5098else
5099 withval=default
5100fi
5101
5102case "$withval" in
5103 default) WITH_LLVMGCCDIR=default ;;
5104 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005105 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5106echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5107 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005108esac
5109
5110
Devang Patel5d28b882007-12-04 22:54:47 +00005111# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005112if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005113 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5114 WITH_LLVMGCCDIR=""
5115fi
5116
5117
5118
5119# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005120if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005121 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5122 WITH_LLVMGCCDIR=""
5123fi
5124
Douglas Gregor01746742009-05-11 18:05:52 +00005125
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005126if test -n "$LLVMGCC"; then
5127 LLVMGCCCOMMAND="$LLVMGCC"
5128fi
5129
5130if test -n "$LLVMGXX"; then
5131 LLVMGXXCOMMAND="$LLVMGXX"
5132fi
Devang Patel5d28b882007-12-04 22:54:47 +00005133
5134if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005135 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5136echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5137 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005138fi
5139
5140if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005141 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5142echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5143 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005144fi
5145
5146
Daniel Dunbar98515672010-02-23 10:00:49 +00005147# Check whether --with-clang was given.
5148if test "${with_clang+set}" = set; then
5149 withval=$with_clang;
5150else
5151 with_clang=default
5152fi
5153
5154
5155
5156# Check whether --with-built-clang was given.
5157if test "${with_built_clang+set}" = set; then
5158 withval=$with_built_clang;
5159else
5160 with_built_clang=check
5161fi
5162
5163
5164{ echo "$as_me:$LINENO: checking clang compiler" >&5
5165echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5166WITH_CLANGPATH=""
5167WITH_BUILT_CLANG=0
5168if test "$with_clang" != "default"; then
5169 WITH_CLANGPATH="$with_clang"
5170 if ! test -x "$WITH_CLANGPATH"; then
5171 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5172echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5173 { (exit 1); exit 1; }; }
5174 fi
5175elif test "$with_built_clang" = "yes"; then
5176 WITH_BUILT_CLANG=1
5177elif test "$with_built_clang" = "no"; then
5178 WITH_BUILT_CLANG=0
5179else
5180 if test "$with_built_clang" != "check"; then
5181 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5182echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5183 { (exit 1); exit 1; }; }
5184 fi
5185
5186 if test -f ${srcdir}/tools/clang/README.txt; then
5187 WITH_BUILT_CLANG=1
5188 fi
5189fi
5190
5191if ! test -z "$WITH_CLANGPATH"; then
5192 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5193echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5194 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5195elif test "$WITH_BUILT_CLANG" = "1"; then
5196 { echo "$as_me:$LINENO: result: built" >&5
5197echo "${ECHO_T}built" >&6; }
5198else
5199 { echo "$as_me:$LINENO: result: none" >&5
5200echo "${ECHO_T}none" >&6; }
5201fi
5202CLANGPATH=$WITH_CLANGPATH
5203
5204CLANGXXPATH=$WITH_CLANGXXPATH
5205
5206ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5207
5208
5209
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005210# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005212 withval=$with_optimize_option;
5213else
5214 withval=default
5215fi
5216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005217{ echo "$as_me:$LINENO: checking optimization flags" >&5
5218echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005219case "$withval" in
5220 default)
5221 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005222 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005223 MingW) optimize_option=-O2 ;;
5224 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005225 esac ;;
5226 *) optimize_option="$withval" ;;
5227esac
5228OPTIMIZE_OPTION=$optimize_option
5229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005230{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5231echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005232
5233
Reid Spencera773bd52006-08-04 18:18:08 +00005234# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005235if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005236 withval=$with_extra_options;
5237else
5238 withval=default
5239fi
5240
5241case "$withval" in
5242 default) EXTRA_OPTIONS= ;;
5243 *) EXTRA_OPTIONS=$withval ;;
5244esac
5245EXTRA_OPTIONS=$EXTRA_OPTIONS
5246
5247
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005248# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005249if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005250 enableval=$enable_bindings;
5251else
5252 enableval=default
5253fi
5254
5255BINDINGS_TO_BUILD=""
5256case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005257 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005258 all ) BINDINGS_TO_BUILD="ocaml" ;;
5259 none | no) BINDINGS_TO_BUILD="" ;;
5260 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5261 case "$a_binding" in
5262 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005263 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5264echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5265 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005266 esac
5267 done
5268 ;;
5269esac
5270
Reid Spencera773bd52006-08-04 18:18:08 +00005271
Gordon Henriksenf0915682007-10-02 16:42:22 +00005272# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005273if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005274 withval=$with_ocaml_libdir;
5275else
5276 withval=auto
5277fi
5278
5279case "$withval" in
5280 auto) with_ocaml_libdir="$withval" ;;
5281 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005282 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5283echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5284 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005285esac
5286
5287
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005288# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005289if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005290 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005291else
5292 withval=""
5293fi
5294
5295
5296cat >>confdefs.h <<_ACEOF
5297#define C_INCLUDE_DIRS "$withval"
5298_ACEOF
5299
5300
5301
Rafael Espindola420d23c2009-11-16 19:46:55 +00005302# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005303if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005304 withval=$with_cxx_include_root;
5305else
5306 withval=""
5307fi
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define CXX_INCLUDE_ROOT "$withval"
5312_ACEOF
5313
5314
5315
5316# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005317if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005318 withval=$with_cxx_include_arch;
5319else
5320 withval=""
5321fi
5322
5323
5324cat >>confdefs.h <<_ACEOF
5325#define CXX_INCLUDE_ARCH "$withval"
5326_ACEOF
5327
5328
5329
5330# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005331if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005332 withval=$with_cxx_include_32bit_dir;
5333else
5334 withval=""
5335fi
5336
5337
5338cat >>confdefs.h <<_ACEOF
5339#define CXX_INCLUDE_32BIT_DIR "$withval"
5340_ACEOF
5341
5342
5343
5344# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005345if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005346 withval=$with_cxx_include_64bit_dir;
5347else
5348 withval=""
5349fi
5350
5351
5352cat >>confdefs.h <<_ACEOF
5353#define CXX_INCLUDE_64BIT_DIR "$withval"
5354_ACEOF
5355
5356
5357
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005358# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005359if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005360 withval=$with_binutils_include;
5361else
5362 withval=default
5363fi
5364
5365case "$withval" in
5366 default) WITH_BINUTILS_INCDIR=default ;;
5367 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005368 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5369echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5370 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005371esac
5372if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5373 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5374
5375 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5376 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005377 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5378echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5379 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005380 fi
5381fi
5382
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005383# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005384if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005385 enableval=$enable_libffi; case "$enableval" in
5386 yes) llvm_cv_enable_libffi="yes" ;;
5387 no) llvm_cv_enable_libffi="no" ;;
5388 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005389echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5390 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005391 esac
5392else
5393 llvm_cv_enable_libffi=no
5394fi
5395
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005396
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005397
Reid Spencera773bd52006-08-04 18:18:08 +00005398ac_ext=c
5399ac_cpp='$CPP $CPPFLAGS'
5400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5404echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005405# On Suns, sometimes $CPP names a directory.
5406if test -n "$CPP" && test -d "$CPP"; then
5407 CPP=
5408fi
5409if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005410 if test "${ac_cv_prog_CPP+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005412else
5413 # Double quotes because CPP needs to be expanded
5414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5415 do
5416 ac_preproc_ok=false
5417for ac_c_preproc_warn_flag in '' yes
5418do
5419 # Use a header file that comes with gcc, so configuring glibc
5420 # with a fresh cross-compiler works.
5421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422 # <limits.h> exists even on freestanding compilers.
5423 # On the NeXT, cc -E runs the code through the compiler's parser,
5424 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005425 cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005430/* end confdefs.h. */
5431#ifdef __STDC__
5432# include <limits.h>
5433#else
5434# include <assert.h>
5435#endif
5436 Syntax error
5437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005438if { (ac_try="$ac_cpp conftest.$ac_ext"
5439case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } >/dev/null; then
5451 if test -s conftest.err; then
5452 ac_cpp_err=$ac_c_preproc_warn_flag
5453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5454 else
5455 ac_cpp_err=
5456 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005458 ac_cpp_err=yes
5459fi
5460if test -z "$ac_cpp_err"; then
5461 :
5462else
5463 echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
Reid Spencera773bd52006-08-04 18:18:08 +00005466 # Broken: fails on valid input.
5467continue
5468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469
Reid Spencera773bd52006-08-04 18:18:08 +00005470rm -f conftest.err conftest.$ac_ext
5471
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474 cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h. */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005479/* end confdefs.h. */
5480#include <ac_nonexistent.h>
5481_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005482if { (ac_try="$ac_cpp conftest.$ac_ext"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev/null; then
5495 if test -s conftest.err; then
5496 ac_cpp_err=$ac_c_preproc_warn_flag
5497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 else
5499 ac_cpp_err=
5500 fi
5501else
5502 ac_cpp_err=yes
5503fi
5504if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005505 # Broken: success on invalid input.
5506continue
5507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
Reid Spencera773bd52006-08-04 18:18:08 +00005511 # Passes both tests.
5512ac_preproc_ok=:
5513break
5514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515
Reid Spencera773bd52006-08-04 18:18:08 +00005516rm -f conftest.err conftest.$ac_ext
5517
5518done
5519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005522 break
5523fi
5524
5525 done
5526 ac_cv_prog_CPP=$CPP
5527
5528fi
5529 CPP=$ac_cv_prog_CPP
5530else
5531 ac_cv_prog_CPP=$CPP
5532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005533{ echo "$as_me:$LINENO: result: $CPP" >&5
5534echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005535ac_preproc_ok=false
5536for ac_c_preproc_warn_flag in '' yes
5537do
5538 # Use a header file that comes with gcc, so configuring glibc
5539 # with a fresh cross-compiler works.
5540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541 # <limits.h> exists even on freestanding compilers.
5542 # On the NeXT, cc -E runs the code through the compiler's parser,
5543 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544 cat >conftest.$ac_ext <<_ACEOF
5545/* confdefs.h. */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005549/* end confdefs.h. */
5550#ifdef __STDC__
5551# include <limits.h>
5552#else
5553# include <assert.h>
5554#endif
5555 Syntax error
5556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005557if { (ac_try="$ac_cpp conftest.$ac_ext"
5558case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } >/dev/null; then
5570 if test -s conftest.err; then
5571 ac_cpp_err=$ac_c_preproc_warn_flag
5572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573 else
5574 ac_cpp_err=
5575 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577 ac_cpp_err=yes
5578fi
5579if test -z "$ac_cpp_err"; then
5580 :
5581else
5582 echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
Reid Spencera773bd52006-08-04 18:18:08 +00005585 # Broken: fails on valid input.
5586continue
5587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588
Reid Spencera773bd52006-08-04 18:18:08 +00005589rm -f conftest.err conftest.$ac_ext
5590
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005593 cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h. */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005598/* end confdefs.h. */
5599#include <ac_nonexistent.h>
5600_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005601if { (ac_try="$ac_cpp conftest.$ac_ext"
5602case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } >/dev/null; then
5614 if test -s conftest.err; then
5615 ac_cpp_err=$ac_c_preproc_warn_flag
5616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617 else
5618 ac_cpp_err=
5619 fi
5620else
5621 ac_cpp_err=yes
5622fi
5623if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005624 # Broken: success on invalid input.
5625continue
5626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
Reid Spencera773bd52006-08-04 18:18:08 +00005630 # Passes both tests.
5631ac_preproc_ok=:
5632break
5633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634
Reid Spencera773bd52006-08-04 18:18:08 +00005635rm -f conftest.err conftest.$ac_ext
5636
5637done
5638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5639rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640if $ac_preproc_ok; then
5641 :
Reid Spencera773bd52006-08-04 18:18:08 +00005642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5644See \`config.log' for more details." >&5
5645echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5646See \`config.log' for more details." >&2;}
5647 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005648fi
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656ac_ext=c
5657ac_cpp='$CPP $CPPFLAGS'
5658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661if test -n "$ac_tool_prefix"; then
5662 for ac_prog in gcc
5663 do
5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5668if test "${ac_cv_prog_CC+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005670else
5671 if test -n "$CC"; then
5672 ac_cv_prog_CC="$CC" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 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 +00005681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005683 break 2
5684 fi
5685done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005686done
Reid Spencera773bd52006-08-04 18:18:08 +00005687IFS=$as_save_IFS
5688
5689fi
5690fi
5691CC=$ac_cv_prog_CC
5692if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005693 { echo "$as_me:$LINENO: result: $CC" >&5
5694echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005696 { echo "$as_me:$LINENO: result: no" >&5
5697echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005698fi
5699
5700
5701 test -n "$CC" && break
5702 done
5703fi
5704if test -z "$CC"; then
5705 ac_ct_CC=$CC
5706 for ac_prog in gcc
5707do
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005714else
5715 if test -n "$ac_ct_CC"; then
5716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 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 +00005725 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005727 break 2
5728 fi
5729done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005730done
Reid Spencera773bd52006-08-04 18:18:08 +00005731IFS=$as_save_IFS
5732
5733fi
5734fi
5735ac_ct_CC=$ac_cv_prog_ac_ct_CC
5736if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5738echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740 { echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005742fi
5743
5744
5745 test -n "$ac_ct_CC" && break
5746done
5747
5748 if test "x$ac_ct_CC" = x; then
5749 CC=""
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5754whose name does not start with the host triplet. If you think this
5755configuration is useful to you, please write to autoconf@gnu.org." >&5
5756echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5757whose name does not start with the host triplet. If you think this
5758configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005759ac_tool_warned=yes ;;
5760esac
5761 CC=$ac_ct_CC
5762 fi
5763fi
5764
5765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005766test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5767See \`config.log' for more details." >&5
5768echo "$as_me: error: no acceptable C compiler found in \$PATH
5769See \`config.log' for more details." >&2;}
5770 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005771
5772# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773echo "$as_me:$LINENO: checking for C compiler version" >&5
5774ac_compiler=`set X $ac_compile; echo $2`
5775{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005776case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005782 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }
5785{ (ac_try="$ac_compiler -v >&5"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compiler -v >&5") 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }
5795{ (ac_try="$ac_compiler -V >&5"
5796case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799esac
5800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler -V >&5") 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5807echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5808if test "${ac_cv_c_compiler_gnu+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811 cat >conftest.$ac_ext <<_ACEOF
5812/* confdefs.h. */
5813_ACEOF
5814cat confdefs.h >>conftest.$ac_ext
5815cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005816/* end confdefs.h. */
5817
5818int
5819main ()
5820{
5821#ifndef __GNUC__
5822 choke me
5823#endif
5824
5825 ;
5826 return 0;
5827}
5828_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005829rm -f conftest.$ac_objext
5830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5844 { (case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_try") 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857esac
5858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_try") 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005863 ac_compiler_gnu=yes
5864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865 echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870
Reid Spencera773bd52006-08-04 18:18:08 +00005871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872ac_cv_c_compiler_gnu=$ac_compiler_gnu
5873
5874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5876echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5877GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005878ac_test_CFLAGS=${CFLAGS+set}
5879ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005880{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5881echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5882if test "${ac_cv_prog_cc_g+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005884else
5885 ac_save_c_werror_flag=$ac_c_werror_flag
5886 ac_c_werror_flag=yes
5887 ac_cv_prog_cc_g=no
5888 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005889 cat >conftest.$ac_ext <<_ACEOF
5890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005894/* end confdefs.h. */
5895
5896int
5897main ()
5898{
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904rm -f conftest.$ac_objext
5905if { (ac_try="$ac_compile"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005938 ac_cv_prog_cc_g=yes
5939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 CFLAGS=""
5944 cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h. */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005949/* end confdefs.h. */
5950
5951int
5952main ()
5953{
5954
5955 ;
5956 return 0;
5957}
5958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959rm -f conftest.$ac_objext
5960if { (ac_try="$ac_compile"
5961case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964esac
5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_compile") 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5974 { (case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_try") 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 :
Torok Edwin871384f2010-01-26 08:50:50 +00005994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995 echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005999 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006005/* end confdefs.h. */
6006
6007int
6008main ()
6009{
6010
6011 ;
6012 return 0;
6013}
6014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015rm -f conftest.$ac_objext
6016if { (ac_try="$ac_compile"
6017case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_try") 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006049 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050else
6051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054
Reid Spencera773bd52006-08-04 18:18:08 +00006055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056
Reid Spencera773bd52006-08-04 18:18:08 +00006057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059
Reid Spencera773bd52006-08-04 18:18:08 +00006060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062
Reid Spencera773bd52006-08-04 18:18:08 +00006063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 ac_c_werror_flag=$ac_save_c_werror_flag
6065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6067echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006068if test "$ac_test_CFLAGS" = set; then
6069 CFLAGS=$ac_save_CFLAGS
6070elif test $ac_cv_prog_cc_g = yes; then
6071 if test "$GCC" = yes; then
6072 CFLAGS="-g -O2"
6073 else
6074 CFLAGS="-g"
6075 fi
6076else
6077 if test "$GCC" = yes; then
6078 CFLAGS="-O2"
6079 else
6080 CFLAGS=
6081 fi
6082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6084echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6085if test "${ac_cv_prog_cc_c89+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006087else
6088 ac_cv_prog_cc_c89=no
6089ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006090cat >conftest.$ac_ext <<_ACEOF
6091/* confdefs.h. */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006095/* end confdefs.h. */
6096#include <stdarg.h>
6097#include <stdio.h>
6098#include <sys/types.h>
6099#include <sys/stat.h>
6100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6101struct buf { int x; };
6102FILE * (*rcsopen) (struct buf *, struct stat *, int);
6103static char *e (p, i)
6104 char **p;
6105 int i;
6106{
6107 return p[i];
6108}
6109static char *f (char * (*g) (char **, int), char **p, ...)
6110{
6111 char *s;
6112 va_list v;
6113 va_start (v,p);
6114 s = g (p, va_arg (v,int));
6115 va_end (v);
6116 return s;
6117}
6118
6119/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6120 function prototypes and stuff, but not '\xHH' hex character constants.
6121 These don't provoke an error unfortunately, instead are silently treated
6122 as 'x'. The following induces an error, until -std is added to get
6123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6124 array size at least. It's necessary to write '\x00'==0 to get something
6125 that's true only with -std. */
6126int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6127
6128/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6129 inside strings and character constants. */
6130#define FOO(x) 'x'
6131int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6132
6133int test (int i, double x);
6134struct s1 {int (*f) (int a);};
6135struct s2 {int (*f) (double a);};
6136int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6137int argc;
6138char **argv;
6139int
6140main ()
6141{
6142return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6143 ;
6144 return 0;
6145}
6146_ACEOF
6147for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6149do
6150 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151 rm -f conftest.$ac_objext
6152if { (ac_try="$ac_compile"
6153case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6166 { (case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_try") 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest.$ac_objext'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006185 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186else
6187 echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190
Reid Spencera773bd52006-08-04 18:18:08 +00006191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192
Reid Spencera773bd52006-08-04 18:18:08 +00006193rm -f core conftest.err conftest.$ac_objext
6194 test "x$ac_cv_prog_cc_c89" != "xno" && break
6195done
6196rm -f conftest.$ac_ext
6197CC=$ac_save_CC
6198
6199fi
6200# AC_CACHE_VAL
6201case "x$ac_cv_prog_cc_c89" in
6202 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 { echo "$as_me:$LINENO: result: none needed" >&5
6204echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006205 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 { echo "$as_me:$LINENO: result: unsupported" >&5
6207echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006208 *)
6209 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6211echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006212esac
6213
6214
6215ac_ext=c
6216ac_cpp='$CPP $CPPFLAGS'
6217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221ac_ext=cpp
6222ac_cpp='$CXXCPP $CPPFLAGS'
6223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6226if test -z "$CXX"; then
6227 if test -n "$CCC"; then
6228 CXX=$CCC
6229 else
6230 if test -n "$ac_tool_prefix"; then
6231 for ac_prog in g++
6232 do
6233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237if test "${ac_cv_prog_CXX+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006239else
6240 if test -n "$CXX"; then
6241 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6242else
6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006250 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006252 break 2
6253 fi
6254done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255done
Reid Spencera773bd52006-08-04 18:18:08 +00006256IFS=$as_save_IFS
6257
6258fi
6259fi
6260CXX=$ac_cv_prog_CXX
6261if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 { echo "$as_me:$LINENO: result: $CXX" >&5
6263echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 { echo "$as_me:$LINENO: result: no" >&5
6266echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006267fi
6268
6269
6270 test -n "$CXX" && break
6271 done
6272fi
6273if test -z "$CXX"; then
6274 ac_ct_CXX=$CXX
6275 for ac_prog in g++
6276do
6277 # Extract the first word of "$ac_prog", so it can be a program name with args.
6278set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006283else
6284 if test -n "$ac_ct_CXX"; then
6285 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 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 +00006294 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006296 break 2
6297 fi
6298done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299done
Reid Spencera773bd52006-08-04 18:18:08 +00006300IFS=$as_save_IFS
6301
6302fi
6303fi
6304ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6305if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6307echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309 { echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006311fi
6312
6313
6314 test -n "$ac_ct_CXX" && break
6315done
6316
6317 if test "x$ac_ct_CXX" = x; then
6318 CXX="g++"
6319 else
6320 case $cross_compiling:$ac_tool_warned in
6321yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6323whose name does not start with the host triplet. If you think this
6324configuration is useful to you, please write to autoconf@gnu.org." >&5
6325echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6326whose name does not start with the host triplet. If you think this
6327configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006328ac_tool_warned=yes ;;
6329esac
6330 CXX=$ac_ct_CXX
6331 fi
6332fi
6333
6334 fi
6335fi
6336# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6338ac_compiler=`set X $ac_compile; echo $2`
6339{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006340case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006346 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }
6349{ (ac_try="$ac_compiler -v >&5"
6350case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compiler -v >&5") 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }
6359{ (ac_try="$ac_compiler -V >&5"
6360case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363esac
6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compiler -V >&5") 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6371echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6372if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h. */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006380/* end confdefs.h. */
6381
6382int
6383main ()
6384{
6385#ifndef __GNUC__
6386 choke me
6387#endif
6388
6389 ;
6390 return 0;
6391}
6392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006393rm -f conftest.$ac_objext
6394if { (ac_try="$ac_compile"
6395case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6408 { (case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411esac
6412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_try") 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (case "(($ac_try" in
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6421esac
6422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_try") 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006427 ac_compiler_gnu=yes
6428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429 echo "$as_me: failed program was:" >&5
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434
Reid Spencera773bd52006-08-04 18:18:08 +00006435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6437
6438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6440echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6441GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006442ac_test_CXXFLAGS=${CXXFLAGS+set}
6443ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6445echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6446if test "${ac_cv_prog_cxx_g+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006448else
6449 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6450 ac_cxx_werror_flag=yes
6451 ac_cv_prog_cxx_g=no
6452 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006458/* end confdefs.h. */
6459
6460int
6461main ()
6462{
6463
6464 ;
6465 return 0;
6466}
6467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468rm -f conftest.$ac_objext
6469if { (ac_try="$ac_compile"
6470case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_compile") 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6492 { ac_try='test -s conftest.$ac_objext'
6493 { (case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_try") 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006502 ac_cv_prog_cxx_g=yes
6503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504 echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 CXXFLAGS=""
6508 cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006513/* end confdefs.h. */
6514
6515int
6516main ()
6517{
6518
6519 ;
6520 return 0;
6521}
6522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523rm -f conftest.$ac_objext
6524if { (ac_try="$ac_compile"
6525case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6538 { (case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541esac
6542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_try") 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; } &&
6547 { ac_try='test -s conftest.$ac_objext'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551esac
6552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 :
Torok Edwin871384f2010-01-26 08:50:50 +00006558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559 echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006563 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564 cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006569/* end confdefs.h. */
6570
6571int
6572main ()
6573{
6574
6575 ;
6576 return 0;
6577}
6578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579rm -f conftest.$ac_objext
6580if { (ac_try="$ac_compile"
6581case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584esac
6585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6594 { (case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597esac
6598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_try") 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_try") 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006613 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618
Reid Spencera773bd52006-08-04 18:18:08 +00006619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620
Reid Spencera773bd52006-08-04 18:18:08 +00006621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623
Reid Spencera773bd52006-08-04 18:18:08 +00006624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626
Reid Spencera773bd52006-08-04 18:18:08 +00006627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6631echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006632if test "$ac_test_CXXFLAGS" = set; then
6633 CXXFLAGS=$ac_save_CXXFLAGS
6634elif test $ac_cv_prog_cxx_g = yes; then
6635 if test "$GXX" = yes; then
6636 CXXFLAGS="-g -O2"
6637 else
6638 CXXFLAGS="-g"
6639 fi
6640else
6641 if test "$GXX" = yes; then
6642 CXXFLAGS="-O2"
6643 else
6644 CXXFLAGS=
6645 fi
6646fi
6647ac_ext=c
6648ac_cpp='$CPP $CPPFLAGS'
6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652
Reid Spencera773bd52006-08-04 18:18:08 +00006653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6655echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6656if test "${lt_cv_path_NM+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006658else
6659 if test -n "$NM"; then
6660 # Let the user override the test.
6661 lt_cv_path_NM="$NM"
6662else
6663 lt_nm_to_check="${ac_tool_prefix}nm"
6664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6665 lt_nm_to_check="$lt_nm_to_check nm"
6666 fi
6667 for lt_tmp_nm in $lt_nm_to_check; do
6668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6670 IFS="$lt_save_ifs"
6671 test -z "$ac_dir" && ac_dir=.
6672 tmp_nm="$ac_dir/$lt_tmp_nm"
6673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6674 # Check to see if the nm accepts a BSD-compat flag.
6675 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6676 # nm: unknown option "B" ignored
6677 # Tru64's nm complains that /dev/null is an invalid object file
6678 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6679 */dev/null* | *'Invalid file or object type'*)
6680 lt_cv_path_NM="$tmp_nm -B"
6681 break
6682 ;;
6683 *)
6684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6685 */dev/null*)
6686 lt_cv_path_NM="$tmp_nm -p"
6687 break
6688 ;;
6689 *)
6690 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6691 continue # so that we can try to find one that supports BSD flags
6692 ;;
6693 esac
6694 ;;
6695 esac
6696 fi
6697 done
6698 IFS="$lt_save_ifs"
6699 done
6700 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6701fi
6702fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6704echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006705NM="$lt_cv_path_NM"
6706
6707
6708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709{ echo "$as_me:$LINENO: checking for GNU make" >&5
6710echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6711if test "${llvm_cv_gnu_make_command+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006713else
6714 llvm_cv_gnu_make_command=''
6715 for a in "$MAKE" make gmake gnumake ; do
6716 if test -z "$a" ; then continue ; fi ;
6717 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6718 then
6719 llvm_cv_gnu_make_command=$a ;
6720 break;
6721 fi
6722 done
6723fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6725echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006726 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6727 ifGNUmake='' ;
6728 else
6729 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6731echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006732 fi
6733
6734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6736echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006737LN_S=$as_ln_s
6738if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739 { echo "$as_me:$LINENO: result: yes" >&5
6740echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006741else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6743echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006744fi
6745
6746# Extract the first word of "cmp", so it can be a program name with args.
6747set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_path_CMP+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006752else
6753 case $CMP in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6756 ;;
6757 *)
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 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 +00006765 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006767 break 2
6768 fi
6769done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770done
Reid Spencera773bd52006-08-04 18:18:08 +00006771IFS=$as_save_IFS
6772
6773 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6774 ;;
6775esac
6776fi
6777CMP=$ac_cv_path_CMP
6778if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779 { echo "$as_me:$LINENO: result: $CMP" >&5
6780echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006784fi
6785
6786
6787# Extract the first word of "cp", so it can be a program name with args.
6788set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791if test "${ac_cv_path_CP+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006793else
6794 case $CP in
6795 [\\/]* | ?:[\\/]*)
6796 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6797 ;;
6798 *)
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 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 +00006806 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006808 break 2
6809 fi
6810done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006811done
Reid Spencera773bd52006-08-04 18:18:08 +00006812IFS=$as_save_IFS
6813
6814 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6815 ;;
6816esac
6817fi
6818CP=$ac_cv_path_CP
6819if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820 { echo "$as_me:$LINENO: result: $CP" >&5
6821echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 { echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006825fi
6826
6827
6828# Extract the first word of "date", so it can be a program name with args.
6829set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_path_DATE+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006834else
6835 case $DATE in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 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 +00006847 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006849 break 2
6850 fi
6851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006852done
Reid Spencera773bd52006-08-04 18:18:08 +00006853IFS=$as_save_IFS
6854
6855 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6856 ;;
6857esac
6858fi
6859DATE=$ac_cv_path_DATE
6860if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861 { echo "$as_me:$LINENO: result: $DATE" >&5
6862echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006866fi
6867
6868
6869# Extract the first word of "find", so it can be a program name with args.
6870set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873if test "${ac_cv_path_FIND+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006875else
6876 case $FIND in
6877 [\\/]* | ?:[\\/]*)
6878 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6879 ;;
6880 *)
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 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 +00006888 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006890 break 2
6891 fi
6892done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893done
Reid Spencera773bd52006-08-04 18:18:08 +00006894IFS=$as_save_IFS
6895
6896 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6897 ;;
6898esac
6899fi
6900FIND=$ac_cv_path_FIND
6901if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902 { echo "$as_me:$LINENO: result: $FIND" >&5
6903echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006905 { echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006907fi
6908
6909
6910# Extract the first word of "grep", so it can be a program name with args.
6911set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914if test "${ac_cv_path_GREP+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006916else
6917 case $GREP in
6918 [\\/]* | ?:[\\/]*)
6919 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6920 ;;
6921 *)
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 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 +00006929 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006931 break 2
6932 fi
6933done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006934done
Reid Spencera773bd52006-08-04 18:18:08 +00006935IFS=$as_save_IFS
6936
6937 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6938 ;;
6939esac
6940fi
6941GREP=$ac_cv_path_GREP
6942if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 { echo "$as_me:$LINENO: result: $GREP" >&5
6944echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 { echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006948fi
6949
6950
6951# Extract the first word of "mkdir", so it can be a program name with args.
6952set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955if test "${ac_cv_path_MKDIR+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006957else
6958 case $MKDIR in
6959 [\\/]* | ?:[\\/]*)
6960 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6961 ;;
6962 *)
6963 as_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_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
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
6978 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6979 ;;
6980esac
6981fi
6982MKDIR=$ac_cv_path_MKDIR
6983if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6985echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 { echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006989fi
6990
6991
6992# Extract the first word of "mv", so it can be a program name with args.
6993set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996if test "${ac_cv_path_MV+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006998else
6999 case $MV in
7000 [\\/]* | ?:[\\/]*)
7001 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7002 ;;
7003 *)
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 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 +00007011 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007013 break 2
7014 fi
7015done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016done
Reid Spencera773bd52006-08-04 18:18:08 +00007017IFS=$as_save_IFS
7018
7019 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7020 ;;
7021esac
7022fi
7023MV=$ac_cv_path_MV
7024if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025 { echo "$as_me:$LINENO: result: $MV" >&5
7026echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007028 { echo "$as_me:$LINENO: result: no" >&5
7029echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007030fi
7031
7032
7033if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7035set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_prog_RANLIB+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007040else
7041 if test -n "$RANLIB"; then
7042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 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 +00007051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007053 break 2
7054 fi
7055done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056done
Reid Spencera773bd52006-08-04 18:18:08 +00007057IFS=$as_save_IFS
7058
7059fi
7060fi
7061RANLIB=$ac_cv_prog_RANLIB
7062if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007063 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7064echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007066 { echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007068fi
7069
7070
7071fi
7072if test -z "$ac_cv_prog_RANLIB"; then
7073 ac_ct_RANLIB=$RANLIB
7074 # Extract the first word of "ranlib", so it can be a program name with args.
7075set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007080else
7081 if test -n "$ac_ct_RANLIB"; then
7082 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 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 +00007091 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007093 break 2
7094 fi
7095done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096done
Reid Spencera773bd52006-08-04 18:18:08 +00007097IFS=$as_save_IFS
7098
7099fi
7100fi
7101ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7102if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7104echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106 { echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007108fi
7109
7110 if test "x$ac_ct_RANLIB" = x; then
7111 RANLIB=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7116whose name does not start with the host triplet. If you think this
7117configuration is useful to you, please write to autoconf@gnu.org." >&5
7118echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7119whose name does not start with the host triplet. If you think this
7120configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007121ac_tool_warned=yes ;;
7122esac
7123 RANLIB=$ac_ct_RANLIB
7124 fi
7125else
7126 RANLIB="$ac_cv_prog_RANLIB"
7127fi
7128
Torok Edwin871384f2010-01-26 08:50:50 +00007129if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7131set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_prog_AR+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007136else
7137 if test -n "$AR"; then
7138 ac_cv_prog_AR="$AR" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 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 +00007147 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007149 break 2
7150 fi
7151done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152done
Torok Edwin871384f2010-01-26 08:50:50 +00007153IFS=$as_save_IFS
7154
7155fi
7156fi
7157AR=$ac_cv_prog_AR
7158if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 { echo "$as_me:$LINENO: result: $AR" >&5
7160echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162 { echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007164fi
7165
7166
7167fi
7168if test -z "$ac_cv_prog_AR"; then
7169 ac_ct_AR=$AR
7170 # Extract the first word of "ar", so it can be a program name with args.
7171set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007176else
7177 if test -n "$ac_ct_AR"; then
7178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 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 +00007187 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007189 break 2
7190 fi
7191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007192done
Torok Edwin871384f2010-01-26 08:50:50 +00007193IFS=$as_save_IFS
7194
7195fi
7196fi
7197ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7200echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202 { echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007204fi
7205
7206 if test "x$ac_ct_AR" = x; then
7207 AR="false"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212whose name does not start with the host triplet. If you think this
7213configuration is useful to you, please write to autoconf@gnu.org." >&5
7214echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215whose name does not start with the host triplet. If you think this
7216configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007217ac_tool_warned=yes ;;
7218esac
7219 AR=$ac_ct_AR
7220 fi
7221else
7222 AR="$ac_cv_prog_AR"
7223fi
7224
Reid Spencera773bd52006-08-04 18:18:08 +00007225# Extract the first word of "rm", so it can be a program name with args.
7226set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_RM+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007231else
7232 case $RM in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7235 ;;
7236 *)
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 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 +00007244 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007246 break 2
7247 fi
7248done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007249done
Reid Spencera773bd52006-08-04 18:18:08 +00007250IFS=$as_save_IFS
7251
7252 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7253 ;;
7254esac
7255fi
7256RM=$ac_cv_path_RM
7257if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258 { echo "$as_me:$LINENO: result: $RM" >&5
7259echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007263fi
7264
7265
7266# Extract the first word of "sed", so it can be a program name with args.
7267set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270if test "${ac_cv_path_SED+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007272else
7273 case $SED in
7274 [\\/]* | ?:[\\/]*)
7275 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7276 ;;
7277 *)
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 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 +00007285 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007287 break 2
7288 fi
7289done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290done
Reid Spencera773bd52006-08-04 18:18:08 +00007291IFS=$as_save_IFS
7292
7293 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7294 ;;
7295esac
7296fi
7297SED=$ac_cv_path_SED
7298if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 { echo "$as_me:$LINENO: result: $SED" >&5
7300echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 { echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007304fi
7305
7306
7307# Extract the first word of "tar", so it can be a program name with args.
7308set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311if test "${ac_cv_path_TAR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007313else
7314 case $TAR in
7315 [\\/]* | ?:[\\/]*)
7316 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7317 ;;
7318 *)
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 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 +00007326 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007328 break 2
7329 fi
7330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331done
Reid Spencera773bd52006-08-04 18:18:08 +00007332IFS=$as_save_IFS
7333
7334 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7335 ;;
7336esac
7337fi
7338TAR=$ac_cv_path_TAR
7339if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007340 { echo "$as_me:$LINENO: result: $TAR" >&5
7341echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 { echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007345fi
7346
7347
7348# Extract the first word of "pwd", so it can be a program name with args.
7349set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352if test "${ac_cv_path_BINPWD+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007354else
7355 case $BINPWD in
7356 [\\/]* | ?:[\\/]*)
7357 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7358 ;;
7359 *)
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 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 +00007367 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007369 break 2
7370 fi
7371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372done
Reid Spencera773bd52006-08-04 18:18:08 +00007373IFS=$as_save_IFS
7374
7375 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7376 ;;
7377esac
7378fi
7379BINPWD=$ac_cv_path_BINPWD
7380if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 { echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007386fi
7387
7388
7389
7390# Extract the first word of "Graphviz", so it can be a program name with args.
7391set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007396else
7397 case $GRAPHVIZ in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7400 ;;
7401 *)
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 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 +00007409 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007411 break 2
7412 fi
7413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414done
Reid Spencera773bd52006-08-04 18:18:08 +00007415IFS=$as_save_IFS
7416
7417 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7418 ;;
7419esac
7420fi
7421GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7422if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007428fi
7429
7430
7431if test "$GRAPHVIZ" != "echo Graphviz" ; then
7432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433cat >>confdefs.h <<\_ACEOF
7434#define HAVE_GRAPHVIZ 1
7435_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007436
Jeff Cohen28783c32007-01-12 18:22:38 +00007437 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007438 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439 fi
7440
7441cat >>confdefs.h <<_ACEOF
7442#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7443_ACEOF
7444
7445fi
7446# Extract the first word of "dot", so it can be a program name with args.
7447set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_DOT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007452else
7453 case $DOT in
7454 [\\/]* | ?:[\\/]*)
7455 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7456 ;;
7457 *)
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 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 +00007465 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007467 break 2
7468 fi
7469done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470done
Reid Spencera773bd52006-08-04 18:18:08 +00007471IFS=$as_save_IFS
7472
7473 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7474 ;;
7475esac
7476fi
7477DOT=$ac_cv_path_DOT
7478if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 { echo "$as_me:$LINENO: result: $DOT" >&5
7480echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007484fi
7485
7486
7487if test "$DOT" != "echo dot" ; then
7488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489cat >>confdefs.h <<\_ACEOF
7490#define HAVE_DOT 1
7491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007492
Jeff Cohen28783c32007-01-12 18:22:38 +00007493 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007494 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495 fi
7496
7497cat >>confdefs.h <<_ACEOF
7498#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7499_ACEOF
7500
7501fi
David Greenef0b9eff2009-07-09 17:16:26 +00007502# Extract the first word of "fdp", so it can be a program name with args.
7503set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506if test "${ac_cv_path_FDP+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007508else
7509 case $FDP in
7510 [\\/]* | ?:[\\/]*)
7511 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7512 ;;
7513 *)
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 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 +00007521 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007523 break 2
7524 fi
7525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526done
David Greenef0b9eff2009-07-09 17:16:26 +00007527IFS=$as_save_IFS
7528
7529 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7530 ;;
7531esac
7532fi
7533FDP=$ac_cv_path_FDP
7534if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535 { echo "$as_me:$LINENO: result: $FDP" >&5
7536echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538 { echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007540fi
7541
7542
7543if test "$FDP" != "echo fdp" ; then
7544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545cat >>confdefs.h <<\_ACEOF
7546#define HAVE_FDP 1
7547_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007548
7549 if test "$llvm_cv_os_type" = "MingW" ; then
7550 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7551 fi
7552
7553cat >>confdefs.h <<_ACEOF
7554#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7555_ACEOF
7556
7557fi
7558# Extract the first word of "neato", so it can be a program name with args.
7559set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562if test "${ac_cv_path_NEATO+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007564else
7565 case $NEATO in
7566 [\\/]* | ?:[\\/]*)
7567 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7568 ;;
7569 *)
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 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 +00007577 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007579 break 2
7580 fi
7581done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582done
David Greenef0b9eff2009-07-09 17:16:26 +00007583IFS=$as_save_IFS
7584
7585 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7586 ;;
7587esac
7588fi
7589NEATO=$ac_cv_path_NEATO
7590if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007591 { echo "$as_me:$LINENO: result: $NEATO" >&5
7592echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594 { echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007596fi
7597
7598
7599if test "$NEATO" != "echo neato" ; then
7600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601cat >>confdefs.h <<\_ACEOF
7602#define HAVE_NEATO 1
7603_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007604
7605 if test "$llvm_cv_os_type" = "MingW" ; then
7606 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7607 fi
7608
7609cat >>confdefs.h <<_ACEOF
7610#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7611_ACEOF
7612
7613fi
7614# Extract the first word of "twopi", so it can be a program name with args.
7615set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618if test "${ac_cv_path_TWOPI+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007620else
7621 case $TWOPI in
7622 [\\/]* | ?:[\\/]*)
7623 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7624 ;;
7625 *)
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 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 +00007633 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007635 break 2
7636 fi
7637done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638done
David Greenef0b9eff2009-07-09 17:16:26 +00007639IFS=$as_save_IFS
7640
7641 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7642 ;;
7643esac
7644fi
7645TWOPI=$ac_cv_path_TWOPI
7646if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007647 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7648echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 { echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007652fi
7653
7654
7655if test "$TWOPI" != "echo twopi" ; then
7656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657cat >>confdefs.h <<\_ACEOF
7658#define HAVE_TWOPI 1
7659_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007660
7661 if test "$llvm_cv_os_type" = "MingW" ; then
7662 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7663 fi
7664
7665cat >>confdefs.h <<_ACEOF
7666#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7667_ACEOF
7668
7669fi
7670# Extract the first word of "circo", so it can be a program name with args.
7671set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_CIRCO+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007676else
7677 case $CIRCO in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 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 +00007689 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007691 break 2
7692 fi
7693done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694done
David Greenef0b9eff2009-07-09 17:16:26 +00007695IFS=$as_save_IFS
7696
7697 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7698 ;;
7699esac
7700fi
7701CIRCO=$ac_cv_path_CIRCO
7702if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7704echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 { echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007708fi
7709
7710
7711if test "$CIRCO" != "echo circo" ; then
7712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007713cat >>confdefs.h <<\_ACEOF
7714#define HAVE_CIRCO 1
7715_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007716
7717 if test "$llvm_cv_os_type" = "MingW" ; then
7718 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7719 fi
7720
7721cat >>confdefs.h <<_ACEOF
7722#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7723_ACEOF
7724
7725fi
Reid Spencera773bd52006-08-04 18:18:08 +00007726for ac_prog in gv gsview32
7727do
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732if test "${ac_cv_path_GV+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007734else
7735 case $GV in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7738 ;;
7739 *)
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007747 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007749 break 2
7750 fi
7751done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752done
Reid Spencera773bd52006-08-04 18:18:08 +00007753IFS=$as_save_IFS
7754
7755 ;;
7756esac
7757fi
7758GV=$ac_cv_path_GV
7759if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760 { echo "$as_me:$LINENO: result: $GV" >&5
7761echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763 { echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007765fi
7766
7767
7768 test -n "$GV" && break
7769done
7770test -n "$GV" || GV="echo gv"
7771
7772if test "$GV" != "echo gv" ; then
7773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774cat >>confdefs.h <<\_ACEOF
7775#define HAVE_GV 1
7776_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007777
Jeff Cohen28783c32007-01-12 18:22:38 +00007778 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007779 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7780 fi
7781
7782cat >>confdefs.h <<_ACEOF
7783#define LLVM_PATH_GV "$GV${EXEEXT}"
7784_ACEOF
7785
7786fi
7787# Extract the first word of "dotty", so it can be a program name with args.
7788set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791if test "${ac_cv_path_DOTTY+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007793else
7794 case $DOTTY in
7795 [\\/]* | ?:[\\/]*)
7796 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7797 ;;
7798 *)
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 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 +00007806 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007808 break 2
7809 fi
7810done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811done
Reid Spencera773bd52006-08-04 18:18:08 +00007812IFS=$as_save_IFS
7813
7814 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7815 ;;
7816esac
7817fi
7818DOTTY=$ac_cv_path_DOTTY
7819if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7821echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007823 { echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007825fi
7826
7827
7828if test "$DOTTY" != "echo dotty" ; then
7829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007830cat >>confdefs.h <<\_ACEOF
7831#define HAVE_DOTTY 1
7832_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007833
Jeff Cohen28783c32007-01-12 18:22:38 +00007834 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007835 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7836 fi
7837
7838cat >>confdefs.h <<_ACEOF
7839#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7840_ACEOF
7841
7842fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007843# Extract the first word of "xdot.py", so it can be a program name with args.
7844set dummy xdot.py; ac_word=$2
7845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847if test "${ac_cv_path_XDOT_PY+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850 case $XDOT_PY in
7851 [\\/]* | ?:[\\/]*)
7852 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7853 ;;
7854 *)
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866done
7867done
7868IFS=$as_save_IFS
7869
7870 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7871 ;;
7872esac
7873fi
7874XDOT_PY=$ac_cv_path_XDOT_PY
7875if test -n "$XDOT_PY"; then
7876 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7877echo "${ECHO_T}$XDOT_PY" >&6; }
7878else
7879 { echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6; }
7881fi
7882
7883
7884if test "$XDOT_PY" != "echo xdot.py" ; then
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define HAVE_XDOT_PY 1
7888_ACEOF
7889
7890 if test "$llvm_cv_os_type" = "MingW" ; then
7891 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7892 fi
7893
7894cat >>confdefs.h <<_ACEOF
7895#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7896_ACEOF
7897
7898fi
Reid Spencera773bd52006-08-04 18:18:08 +00007899
7900
7901# Extract the first word of "perl", so it can be a program name with args.
7902set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905if test "${ac_cv_path_PERL+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007907else
7908 case $PERL in
7909 [\\/]* | ?:[\\/]*)
7910 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7911 ;;
7912 *)
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 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 +00007920 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007922 break 2
7923 fi
7924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925done
Reid Spencera773bd52006-08-04 18:18:08 +00007926IFS=$as_save_IFS
7927
7928 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7929 ;;
7930esac
7931fi
7932PERL=$ac_cv_path_PERL
7933if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007934 { echo "$as_me:$LINENO: result: $PERL" >&5
7935echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007937 { echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007939fi
7940
7941
7942if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7944echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007945 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 { echo "$as_me:$LINENO: result: yes" >&5
7947echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007948 else
7949 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007950 { echo "$as_me:$LINENO: result: not found" >&5
7951echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007952 fi
7953fi
7954
7955
7956if test x"$PERL" = xnone; then
7957 HAVE_PERL=0
7958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7960echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7961 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007962else
7963 HAVE_PERL=1
7964
7965fi
7966
7967# Find a good install program. We prefer a C program (faster),
7968# so one script is as good as another. But avoid the broken or
7969# incompatible versions:
7970# SysV /etc/install, /usr/sbin/install
7971# SunOS /usr/etc/install
7972# IRIX /sbin/install
7973# AIX /bin/install
7974# AmigaOS /C/install, which installs bootblocks on floppy discs
7975# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7976# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7977# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7978# OS/2's system install, which has a completely different semantic
7979# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7981echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007982if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983if test "${ac_cv_path_install+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007985else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991 # Account for people who put trailing slashes in PATH elements.
7992case $as_dir/ in
7993 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007996 /usr/ucb/* ) ;;
7997 *)
7998 # OSF1 and SCO ODT 3.0 have their own names for install.
7999 # Don't use installbsd from OSF since it installs stuff as root
8000 # by default.
8001 for ac_prog in ginstall scoinst install; do
8002 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003 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 +00008004 if test $ac_prog = install &&
8005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8006 # AIX install. It has an incompatible calling convention.
8007 :
8008 elif test $ac_prog = install &&
8009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8010 # program-specific install script used by HP pwplus--don't use.
8011 :
8012 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8014 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008015 fi
8016 fi
8017 done
8018 done
8019 ;;
8020esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021done
Reid Spencera773bd52006-08-04 18:18:08 +00008022IFS=$as_save_IFS
8023
8024
8025fi
8026 if test "${ac_cv_path_install+set}" = set; then
8027 INSTALL=$ac_cv_path_install
8028 else
8029 # As a last resort, use the slow shell script. Don't cache a
8030 # value for INSTALL within a source directory, because that will
8031 # break other packages using the cache if that directory is
8032 # removed, or if the value is a relative name.
8033 INSTALL=$ac_install_sh
8034 fi
8035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8037echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008038
8039# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8040# It thinks the first close brace ends the variable substitution.
8041test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8042
8043test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8044
8045test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8046
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008047case "$INSTALL" in
8048 [\\/$]* | ?:[\\/]* ) ;;
8049 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8050esac
Reid Spencera773bd52006-08-04 18:18:08 +00008051
8052# Extract the first word of "bzip2", so it can be a program name with args.
8053set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8056if test "${ac_cv_path_BZIP2+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008058else
8059 case $BZIP2 in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8062 ;;
8063 *)
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 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 +00008071 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008073 break 2
8074 fi
8075done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008076done
Reid Spencera773bd52006-08-04 18:18:08 +00008077IFS=$as_save_IFS
8078
Reid Spencera773bd52006-08-04 18:18:08 +00008079 ;;
8080esac
8081fi
8082BZIP2=$ac_cv_path_BZIP2
8083if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8085echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008086else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087 { echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008089fi
8090
8091
mike-m68cb3192010-05-06 23:45:43 +00008092# Extract the first word of "cat", so it can be a program name with args.
8093set dummy cat; ac_word=$2
8094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096if test "${ac_cv_path_CAT+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 case $CAT in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8102 ;;
8103 *)
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115done
8116done
8117IFS=$as_save_IFS
8118
8119 ;;
8120esac
8121fi
8122CAT=$ac_cv_path_CAT
8123if test -n "$CAT"; then
8124 { echo "$as_me:$LINENO: result: $CAT" >&5
8125echo "${ECHO_T}$CAT" >&6; }
8126else
8127 { echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6; }
8129fi
8130
8131
Reid Spencera773bd52006-08-04 18:18:08 +00008132# Extract the first word of "doxygen", so it can be a program name with args.
8133set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136if test "${ac_cv_path_DOXYGEN+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008138else
8139 case $DOXYGEN in
8140 [\\/]* | ?:[\\/]*)
8141 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8142 ;;
8143 *)
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 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 +00008151 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008153 break 2
8154 fi
8155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156done
Reid Spencera773bd52006-08-04 18:18:08 +00008157IFS=$as_save_IFS
8158
Reid Spencera773bd52006-08-04 18:18:08 +00008159 ;;
8160esac
8161fi
8162DOXYGEN=$ac_cv_path_DOXYGEN
8163if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8165echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 { echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008169fi
8170
8171
Reid Spencera773bd52006-08-04 18:18:08 +00008172# Extract the first word of "groff", so it can be a program name with args.
8173set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176if test "${ac_cv_path_GROFF+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008178else
8179 case $GROFF in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8182 ;;
8183 *)
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 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 +00008191 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008193 break 2
8194 fi
8195done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196done
Reid Spencera773bd52006-08-04 18:18:08 +00008197IFS=$as_save_IFS
8198
Reid Spencera773bd52006-08-04 18:18:08 +00008199 ;;
8200esac
8201fi
8202GROFF=$ac_cv_path_GROFF
8203if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008204 { echo "$as_me:$LINENO: result: $GROFF" >&5
8205echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 { echo "$as_me:$LINENO: result: no" >&5
8208echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008209fi
8210
8211
8212# Extract the first word of "gzip", so it can be a program name with args.
8213set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8216if test "${ac_cv_path_GZIP+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008218else
8219 case $GZIP in
8220 [\\/]* | ?:[\\/]*)
8221 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8222 ;;
8223 *)
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 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 +00008231 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008233 break 2
8234 fi
8235done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236done
Reid Spencera773bd52006-08-04 18:18:08 +00008237IFS=$as_save_IFS
8238
Reid Spencera773bd52006-08-04 18:18:08 +00008239 ;;
8240esac
8241fi
8242GZIP=$ac_cv_path_GZIP
8243if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008244 { echo "$as_me:$LINENO: result: $GZIP" >&5
8245echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247 { echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008249fi
8250
8251
8252# Extract the first word of "pod2html", so it can be a program name with args.
8253set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8256if test "${ac_cv_path_POD2HTML+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008258else
8259 case $POD2HTML in
8260 [\\/]* | ?:[\\/]*)
8261 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8262 ;;
8263 *)
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 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 +00008271 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008273 break 2
8274 fi
8275done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276done
Reid Spencera773bd52006-08-04 18:18:08 +00008277IFS=$as_save_IFS
8278
Reid Spencera773bd52006-08-04 18:18:08 +00008279 ;;
8280esac
8281fi
8282POD2HTML=$ac_cv_path_POD2HTML
8283if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008284 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8285echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287 { echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008289fi
8290
8291
8292# Extract the first word of "pod2man", so it can be a program name with args.
8293set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296if test "${ac_cv_path_POD2MAN+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008298else
8299 case $POD2MAN in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8302 ;;
8303 *)
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 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 +00008311 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008313 break 2
8314 fi
8315done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316done
Reid Spencera773bd52006-08-04 18:18:08 +00008317IFS=$as_save_IFS
8318
Reid Spencera773bd52006-08-04 18:18:08 +00008319 ;;
8320esac
8321fi
8322POD2MAN=$ac_cv_path_POD2MAN
8323if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8325echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008327 { echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008329fi
8330
8331
mike-m68cb3192010-05-06 23:45:43 +00008332# Extract the first word of "pdfroff", so it can be a program name with args.
8333set dummy pdfroff; ac_word=$2
8334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8336if test "${ac_cv_path_PDFROFF+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338else
8339 case $PDFROFF in
8340 [\\/]* | ?:[\\/]*)
8341 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8342 ;;
8343 *)
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345for as_dir in $PATH
8346do
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8354 fi
8355done
8356done
8357IFS=$as_save_IFS
8358
8359 ;;
8360esac
8361fi
8362PDFROFF=$ac_cv_path_PDFROFF
8363if test -n "$PDFROFF"; then
8364 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8365echo "${ECHO_T}$PDFROFF" >&6; }
8366else
8367 { echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6; }
8369fi
8370
8371
Reid Spencera773bd52006-08-04 18:18:08 +00008372# Extract the first word of "runtest", so it can be a program name with args.
8373set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8376if test "${ac_cv_path_RUNTEST+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008378else
8379 case $RUNTEST in
8380 [\\/]* | ?:[\\/]*)
8381 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8382 ;;
8383 *)
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385for as_dir in $PATH
8386do
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 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 +00008391 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008393 break 2
8394 fi
8395done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008396done
Reid Spencera773bd52006-08-04 18:18:08 +00008397IFS=$as_save_IFS
8398
Reid Spencera773bd52006-08-04 18:18:08 +00008399 ;;
8400esac
8401fi
8402RUNTEST=$ac_cv_path_RUNTEST
8403if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8405echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407 { echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008409fi
8410
8411
8412
8413no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8415echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008416
8417# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008419 withval=$with_tclinclude; with_tclinclude=${withval}
8420else
8421 with_tclinclude=''
8422fi
8423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424if test "${ac_cv_path_tclsh+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008426else
8427
8428if test x"${with_tclinclude}" != x ; then
8429 if test -f ${with_tclinclude}/tclsh ; then
8430 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8431 elif test -f ${with_tclinclude}/src/tclsh ; then
8432 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8433 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8435echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8436 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008437 fi
8438fi
Torok Edwin871384f2010-01-26 08:50:50 +00008439fi
8440
Reid Spencera773bd52006-08-04 18:18:08 +00008441
8442if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 { echo "$as_me:$LINENO: result: none" >&5
8444echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008445 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
8446do
8447 # Extract the first word of "$ac_prog", so it can be a program name with args.
8448set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451if test "${ac_cv_path_TCLSH+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008453else
8454 case $TCLSH in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8457 ;;
8458 *)
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 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 +00008466 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008468 break 2
8469 fi
8470done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008471done
Reid Spencera773bd52006-08-04 18:18:08 +00008472IFS=$as_save_IFS
8473
8474 ;;
8475esac
8476fi
8477TCLSH=$ac_cv_path_TCLSH
8478if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8480echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482 { echo "$as_me:$LINENO: result: no" >&5
8483echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008484fi
8485
8486
8487 test -n "$TCLSH" && break
8488done
8489
8490 if test x"${TCLSH}" = x ; then
8491 ac_cv_path_tclsh='';
8492 else
8493 ac_cv_path_tclsh="${TCLSH}";
8494 fi
8495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8497echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008498 TCLSH="${ac_cv_path_tclsh}"
8499
8500fi
8501
Reid Spencera773bd52006-08-04 18:18:08 +00008502# Extract the first word of "zip", so it can be a program name with args.
8503set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8506if test "${ac_cv_path_ZIP+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008508else
8509 case $ZIP in
8510 [\\/]* | ?:[\\/]*)
8511 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8512 ;;
8513 *)
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 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 +00008521 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008523 break 2
8524 fi
8525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526done
Reid Spencera773bd52006-08-04 18:18:08 +00008527IFS=$as_save_IFS
8528
Reid Spencera773bd52006-08-04 18:18:08 +00008529 ;;
8530esac
8531fi
8532ZIP=$ac_cv_path_ZIP
8533if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534 { echo "$as_me:$LINENO: result: $ZIP" >&5
8535echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537 { echo "$as_me:$LINENO: result: no" >&5
8538echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008539fi
8540
8541
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008542for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008543do
8544 # Extract the first word of "$ac_prog", so it can be a program name with args.
8545set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8548if test "${ac_cv_path_OCAMLC+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008550else
8551 case $OCAMLC in
8552 [\\/]* | ?:[\\/]*)
8553 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8554 ;;
8555 *)
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 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 +00008563 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008565 break 2
8566 fi
8567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008568done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008569IFS=$as_save_IFS
8570
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008571 ;;
8572esac
8573fi
8574OCAMLC=$ac_cv_path_OCAMLC
8575if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8577echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 { echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008581fi
8582
8583
Gordon Henriksene7072162008-03-07 18:20:01 +00008584 test -n "$OCAMLC" && break
8585done
8586
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008587for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008588do
8589 # Extract the first word of "$ac_prog", so it can be a program name with args.
8590set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8593if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008595else
8596 case $OCAMLOPT in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8599 ;;
8600 *)
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 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 +00008608 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008610 break 2
8611 fi
8612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008614IFS=$as_save_IFS
8615
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008616 ;;
8617esac
8618fi
8619OCAMLOPT=$ac_cv_path_OCAMLOPT
8620if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8622echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624 { echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008626fi
8627
8628
Gordon Henriksene7072162008-03-07 18:20:01 +00008629 test -n "$OCAMLOPT" && break
8630done
8631
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008632for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008633do
8634 # Extract the first word of "$ac_prog", so it can be a program name with args.
8635set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008640else
8641 case $OCAMLDEP in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8644 ;;
8645 *)
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 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 +00008653 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008655 break 2
8656 fi
8657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008658done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008659IFS=$as_save_IFS
8660
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008661 ;;
8662esac
8663fi
8664OCAMLDEP=$ac_cv_path_OCAMLDEP
8665if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8667echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669 { echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008671fi
8672
8673
Gordon Henriksene7072162008-03-07 18:20:01 +00008674 test -n "$OCAMLDEP" && break
8675done
8676
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008677for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008678do
8679 # Extract the first word of "$ac_prog", so it can be a program name with args.
8680set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008685else
8686 case $OCAMLDOC in
8687 [\\/]* | ?:[\\/]*)
8688 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8689 ;;
8690 *)
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 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 +00008698 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008700 break 2
8701 fi
8702done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008703done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008704IFS=$as_save_IFS
8705
8706 ;;
8707esac
8708fi
8709OCAMLDOC=$ac_cv_path_OCAMLDOC
8710if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8712echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714 { echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008716fi
8717
8718
8719 test -n "$OCAMLDOC" && break
8720done
8721
Torok Edwincc499a42008-10-22 09:56:27 +00008722for ac_prog in gas as
8723do
8724 # Extract the first word of "$ac_prog", so it can be a program name with args.
8725set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8728if test "${ac_cv_path_GAS+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008730else
8731 case $GAS in
8732 [\\/]* | ?:[\\/]*)
8733 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8734 ;;
8735 *)
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 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 +00008743 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008745 break 2
8746 fi
8747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008748done
Torok Edwincc499a42008-10-22 09:56:27 +00008749IFS=$as_save_IFS
8750
8751 ;;
8752esac
8753fi
8754GAS=$ac_cv_path_GAS
8755if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 { echo "$as_me:$LINENO: result: $GAS" >&5
8757echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759 { echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008761fi
8762
8763
8764 test -n "$GAS" && break
8765done
8766
Reid Spencera773bd52006-08-04 18:18:08 +00008767
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008768{ echo "$as_me:$LINENO: checking for linker version" >&5
8769echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8770if test "${llvm_cv_link_version+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772else
8773
8774 version_string="$(ld -v 2>&1 | head -1)"
8775
8776 # Check for ld64.
8777 if (echo "$version_string" | grep -q "ld64"); then
8778 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8779 else
8780 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8781 fi
8782
8783fi
8784{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8785echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8786
8787cat >>confdefs.h <<_ACEOF
8788#define HOST_LINK_VERSION "$llvm_cv_link_version"
8789_ACEOF
8790
8791
8792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008793{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8794echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8795if test "${llvm_cv_link_use_r+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008797else
8798 ac_ext=c
8799ac_cpp='$CPP $CPPFLAGS'
8800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802ac_compiler_gnu=$ac_cv_c_compiler_gnu
8803
8804 oldcflags="$CFLAGS"
8805 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806 cat >conftest.$ac_ext <<_ACEOF
8807/* confdefs.h. */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008811/* end confdefs.h. */
8812
8813int
8814main ()
8815{
Dan Gohman39ed6782010-04-25 00:12:20 +00008816
Reid Spencera773bd52006-08-04 18:18:08 +00008817 ;
8818 return 0;
8819}
8820_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008821rm -f conftest.$ac_objext conftest$ac_exeext
8822if { (ac_try="$ac_link"
8823case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826esac
8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8836 { (case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839esac
8840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_try") 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest$ac_exeext'
8846 { (case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_try") 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008855 llvm_cv_link_use_r=yes
8856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008857 echo "$as_me: failed program was:" >&5
8858sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008862
Bill Wendlingebcceee2009-04-18 11:20:33 +00008863rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008864 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008865 CFLAGS="$oldcflags"
8866 ac_ext=c
8867ac_cpp='$CPP $CPPFLAGS'
8868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872
8873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008874{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8875echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008876if test "$llvm_cv_link_use_r" = yes ; then
8877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008878cat >>confdefs.h <<\_ACEOF
8879#define HAVE_LINK_R 1
8880_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008881
8882 fi
8883
8884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008885{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8886echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8887if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008889else
8890 ac_ext=c
8891ac_cpp='$CPP $CPPFLAGS'
8892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894ac_compiler_gnu=$ac_cv_c_compiler_gnu
8895
8896 oldcflags="$CFLAGS"
8897 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008898 cat >conftest.$ac_ext <<_ACEOF
8899/* confdefs.h. */
8900_ACEOF
8901cat confdefs.h >>conftest.$ac_ext
8902cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008903/* end confdefs.h. */
8904
8905int
8906main ()
8907{
Dan Gohman39ed6782010-04-25 00:12:20 +00008908
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008909 ;
8910 return 0;
8911}
8912_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008913rm -f conftest.$ac_objext conftest$ac_exeext
8914if { (ac_try="$ac_link"
8915case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918esac
8919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_link") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8928 { (case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_try") 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_try") 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008947 llvm_cv_link_use_export_dynamic=yes
8948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008949 echo "$as_me: failed program was:" >&5
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008954
Bill Wendlingebcceee2009-04-18 11:20:33 +00008955rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008956 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008957 CFLAGS="$oldcflags"
8958 ac_ext=c
8959ac_cpp='$CPP $CPPFLAGS'
8960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8962ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963
8964
8965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008966{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8967echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008968if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008970cat >>confdefs.h <<\_ACEOF
8971#define HAVE_LINK_EXPORT_DYNAMIC 1
8972_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008973
8974 fi
8975
8976
Dan Gohmanda612d62010-06-01 14:56:56 +00008977{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8978echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8979if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982 ac_ext=c
8983ac_cpp='$CPP $CPPFLAGS'
8984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986ac_compiler_gnu=$ac_cv_c_compiler_gnu
8987
8988 oldcflags="$CFLAGS"
8989
8990 # The following code is from the autoconf manual,
8991 # "11.13: Limitations of Usual Tools".
8992 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8993 # Use mktemp if possible; otherwise fall back on mkdir,
8994 # with $RANDOM to make collisions less likely.
8995 : ${TMPDIR=/tmp}
8996 {
8997 tmp=`
8998 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8999 ` &&
9000 test -n "$tmp" && test -d "$tmp"
9001 } || {
9002 tmp=$TMPDIR/foo$$-$RANDOM
9003 (umask 077 && mkdir "$tmp")
9004 } || exit $?
9005
Dan Gohmanda612d62010-06-01 14:56:56 +00009006 echo "{" > "$tmp/export.map"
9007 echo " global: main;" >> "$tmp/export.map"
9008 echo " local: *;" >> "$tmp/export.map"
9009 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009010
Dan Gohmanda612d62010-06-01 14:56:56 +00009011 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009012 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */
9014_ACEOF
9015cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */
9018
9019int
9020main ()
9021{
Dan Gohman39ed6782010-04-25 00:12:20 +00009022
Dan Gohman391569c2010-04-16 22:59:06 +00009023 ;
9024 return 0;
9025}
9026_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext
9028if { (ac_try="$ac_link"
9029case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9032esac
9033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_link") 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (case "(($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_try") 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055esac
9056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009061 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009062else
9063 echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
Dan Gohman943005e2010-06-01 16:22:27 +00009066 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009067fi
9068
9069rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009071 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009072 rmdir "$tmp"
9073 CFLAGS="$oldcflags"
9074 ac_ext=c
9075ac_cpp='$CPP $CPPFLAGS'
9076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9078ac_compiler_gnu=$ac_cv_c_compiler_gnu
9079
9080
9081fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009082{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9083echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9084if test "$llvm_cv_link_use_version_script" = yes ; then
9085 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009086
9087 fi
9088
9089
Reid Spencera773bd52006-08-04 18:18:08 +00009090
9091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009092{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9093echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9094if test "${ac_cv_c_const+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009097 cat >conftest.$ac_ext <<_ACEOF
9098/* confdefs.h. */
9099_ACEOF
9100cat confdefs.h >>conftest.$ac_ext
9101cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009102/* end confdefs.h. */
9103
9104int
9105main ()
9106{
9107/* FIXME: Include the comments suggested by Paul. */
9108#ifndef __cplusplus
9109 /* Ultrix mips cc rejects this. */
9110 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009111 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009112 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009113 char const *const *ccp;
9114 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009115 /* NEC SVR4.0.2 mips cc rejects this. */
9116 struct point {int x, y;};
9117 static struct point const zero = {0,0};
9118 /* AIX XL C 1.02.0.0 rejects this.
9119 It does not let you subtract one const X* pointer from another in
9120 an arm of an if-expression whose if-part is not a constant
9121 expression */
9122 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009123 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009124 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009125 ++ccp;
9126 p = (char**) ccp;
9127 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009128 { /* SCO 3.2v4 cc rejects this. */
9129 char *t;
9130 char const *s = 0 ? (char *) 0 : (char const *) 0;
9131
9132 *t++ = 0;
9133 if (s) return 0;
9134 }
9135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9136 int x[] = {25, 17};
9137 const int *foo = &x[0];
9138 ++foo;
9139 }
9140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9141 typedef const int *iptr;
9142 iptr p = 0;
9143 ++p;
9144 }
9145 { /* AIX XL C 1.02.0.0 rejects this saying
9146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9147 struct s { int j; const int *ap[3]; };
9148 struct s *b; b->j = 5;
9149 }
9150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9151 const int foo = 10;
9152 if (!foo) return 0;
9153 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009154 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009155#endif
9156
9157 ;
9158 return 0;
9159}
9160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009161rm -f conftest.$ac_objext
9162if { (ac_try="$ac_compile"
9163case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166esac
9167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9176 { (case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_try") 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189esac
9190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_try") 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009195 ac_cv_c_const=yes
9196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009197 echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009202
Reid Spencera773bd52006-08-04 18:18:08 +00009203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009205{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9206echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009207if test $ac_cv_c_const = no; then
9208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009209cat >>confdefs.h <<\_ACEOF
9210#define const
9211_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009212
9213fi
9214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009215
9216
9217
9218
9219
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009220ac_header_dirent=no
9221for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009222 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9223{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9224echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228 cat >conftest.$ac_ext <<_ACEOF
9229/* confdefs.h. */
9230_ACEOF
9231cat confdefs.h >>conftest.$ac_ext
9232cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009233/* end confdefs.h. */
9234#include <sys/types.h>
9235#include <$ac_hdr>
9236
9237int
9238main ()
9239{
9240if ((DIR *) 0)
9241return 0;
9242 ;
9243 return 0;
9244}
9245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009246rm -f conftest.$ac_objext
9247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264esac
9265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try='test -s conftest.$ac_objext'
9271 { (case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274esac
9275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_try") 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009280 eval "$as_ac_Header=yes"
9281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009282 echo "$as_me: failed program was:" >&5
9283sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009287
Reid Spencera773bd52006-08-04 18:18:08 +00009288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009290ac_res=`eval echo '${'$as_ac_Header'}'`
9291 { echo "$as_me:$LINENO: result: $ac_res" >&5
9292echo "${ECHO_T}$ac_res" >&6; }
9293if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009294 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009295#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296_ACEOF
9297
9298ac_header_dirent=$ac_hdr; break
9299fi
9300
9301done
9302# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9303if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9305echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9306if test "${ac_cv_search_opendir+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009308else
9309 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009310cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009315/* end confdefs.h. */
9316
Reid Spencera773bd52006-08-04 18:18:08 +00009317/* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320#ifdef __cplusplus
9321extern "C"
9322#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323char opendir ();
9324int
9325main ()
9326{
Reid Spencera773bd52006-08-04 18:18:08 +00009327return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328 ;
9329 return 0;
9330}
9331_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009332for ac_lib in '' dir; do
9333 if test -z "$ac_lib"; then
9334 ac_res="none required"
9335 else
9336 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009338 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009339 rm -f conftest.$ac_objext conftest$ac_exeext
9340if { (ac_try="$ac_link"
9341case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344esac
9345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_link") 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9354 { (case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357esac
9358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_try") 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9367esac
9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_try") 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009373 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374else
9375 echo "$as_me: failed program was:" >&5
9376sed 's/^/| /' conftest.$ac_ext >&5
9377
9378
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380
Bill Wendlingebcceee2009-04-18 11:20:33 +00009381rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009382 conftest$ac_exeext
9383 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009384 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385fi
John Criswell7a73b802003-06-30 21:59:07 +00009386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009387if test "${ac_cv_search_opendir+set}" = set; then
9388 :
Reid Spencera773bd52006-08-04 18:18:08 +00009389else
9390 ac_cv_search_opendir=no
9391fi
9392rm conftest.$ac_ext
9393LIBS=$ac_func_search_save_LIBS
9394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009395{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9396echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009397ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009398if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009400
Reid Spencera773bd52006-08-04 18:18:08 +00009401fi
9402
9403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9405echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9406if test "${ac_cv_search_opendir+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009408else
9409 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009410cat >conftest.$ac_ext <<_ACEOF
9411/* confdefs.h. */
9412_ACEOF
9413cat confdefs.h >>conftest.$ac_ext
9414cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009415/* end confdefs.h. */
9416
9417/* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9420#ifdef __cplusplus
9421extern "C"
9422#endif
9423char opendir ();
9424int
9425main ()
9426{
9427return opendir ();
9428 ;
9429 return 0;
9430}
9431_ACEOF
9432for ac_lib in '' x; do
9433 if test -z "$ac_lib"; then
9434 ac_res="none required"
9435 else
9436 ac_res=-l$ac_lib
9437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9438 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009439 rm -f conftest.$ac_objext conftest$ac_exeext
9440if { (ac_try="$ac_link"
9441case "(($ac_try" in
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9444esac
9445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_link") 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9454 { (case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9457esac
9458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467esac
9468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_try") 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009473 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009474else
9475 echo "$as_me: failed program was:" >&5
9476sed 's/^/| /' conftest.$ac_ext >&5
9477
9478
Reid Spencera773bd52006-08-04 18:18:08 +00009479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009480
Bill Wendlingebcceee2009-04-18 11:20:33 +00009481rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009482 conftest$ac_exeext
9483 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009484 break
9485fi
9486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009487if test "${ac_cv_search_opendir+set}" = set; then
9488 :
Reid Spencera773bd52006-08-04 18:18:08 +00009489else
9490 ac_cv_search_opendir=no
9491fi
9492rm conftest.$ac_ext
9493LIBS=$ac_func_search_save_LIBS
9494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009495{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9496echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009497ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009498if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9500
9501fi
9502
9503fi
John Criswell7a73b802003-06-30 21:59:07 +00009504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009505
John Criswell7a73b802003-06-30 21:59:07 +00009506for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009507do
9508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514fi
9515ac_res=`eval echo '${'$as_ac_Header'}'`
9516 { echo "$as_me:$LINENO: result: $ac_res" >&5
9517echo "${ECHO_T}$ac_res" >&6; }
9518else
9519 # Is the header compilable?
9520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528$ac_includes_default
9529#include <$ac_header>
9530_ACEOF
9531rm -f conftest.$ac_objext
9532if { (ac_try="$ac_compile"
9533case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_compile") 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9546 { (case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_try") 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest.$ac_objext'
9556 { (case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
9560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_try") 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_header_compiler=yes
9566else
9567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ac_header_compiler=no
9571fi
9572
9573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575echo "${ECHO_T}$ac_header_compiler" >&6; }
9576
9577# Is the header present?
9578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586#include <$ac_header>
9587_ACEOF
9588if { (ac_try="$ac_cpp conftest.$ac_ext"
9589case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null; then
9601 if test -s conftest.err; then
9602 ac_cpp_err=$ac_c_preproc_warn_flag
9603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9604 else
9605 ac_cpp_err=
9606 fi
9607else
9608 ac_cpp_err=yes
9609fi
9610if test -z "$ac_cpp_err"; then
9611 ac_header_preproc=yes
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 ac_header_preproc=no
9617fi
9618
9619rm -f conftest.err conftest.$ac_ext
9620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9621echo "${ECHO_T}$ac_header_preproc" >&6; }
9622
9623# So? What about this header?
9624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9625 yes:no: )
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9630 ac_header_preproc=yes
9631 ;;
9632 no:yes:* )
9633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9645 ( cat <<\_ASBOX
9646## ----------------------------------- ##
9647## Report this to llvmbugs@cs.uiuc.edu ##
9648## ----------------------------------- ##
9649_ASBOX
9650 ) | sed "s/^/$as_me: WARNING: /" >&2
9651 ;;
9652esac
9653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657else
9658 eval "$as_ac_Header=\$ac_header_preproc"
9659fi
9660ac_res=`eval echo '${'$as_ac_Header'}'`
9661 { echo "$as_me:$LINENO: result: $ac_res" >&5
9662echo "${ECHO_T}$ac_res" >&6; }
9663
9664fi
9665if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009666 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009668_ACEOF
9669
9670fi
9671
9672done
9673
Reid Spencera773bd52006-08-04 18:18:08 +00009674# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009676 enableval=$enable_ltdl_install;
9677fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680
9681
9682if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683 INSTALL_LTDL_TRUE=
9684 INSTALL_LTDL_FALSE='#'
9685else
9686 INSTALL_LTDL_TRUE='#'
9687 INSTALL_LTDL_FALSE=
9688fi
9689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009690
9691
9692if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693 CONVENIENCE_LTDL_TRUE=
9694 CONVENIENCE_LTDL_FALSE='#'
9695else
9696 CONVENIENCE_LTDL_TRUE='#'
9697 CONVENIENCE_LTDL_FALSE=
9698fi
9699
9700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009701{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9702echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703library_names_spec=
9704libname_spec='lib$name'
9705soname_spec=
9706shrext_cmds=".so"
9707postinstall_cmds=
9708postuninstall_cmds=
9709finish_cmds=
9710finish_eval=
9711shlibpath_var=
9712shlibpath_overrides_runpath=unknown
9713version_type=none
9714dynamic_linker="$host_os ld.so"
9715sys_lib_dlsearch_path_spec="/lib /usr/lib"
9716if test "$GCC" = yes; then
9717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9718 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9719 # if the path contains ";" then we assume it to be the separator
9720 # otherwise default to the standard path separator (i.e. ":") - it is
9721 # assumed that no part of a normal pathname contains ";" but that should
9722 # okay in the real world where ";" in dirpaths is itself problematic.
9723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9724 else
9725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9726 fi
9727else
9728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9729fi
9730need_lib_prefix=unknown
9731hardcode_into_libs=no
9732
9733# when you set need_version to no, make sure it does not cause -set_version
9734# flags to be left without arguments
9735need_version=unknown
9736
9737case $host_os in
9738aix3*)
9739 version_type=linux
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9741 shlibpath_var=LIBPATH
9742
9743 # AIX 3 has no versioning support, so we append a major version to the name.
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 ;;
9746
9747aix4* | aix5*)
9748 version_type=linux
9749 need_lib_prefix=no
9750 need_version=no
9751 hardcode_into_libs=yes
9752 if test "$host_cpu" = ia64; then
9753 # AIX 5 supports IA64
9754 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 else
9757 # With GCC up to 2.95.x, collect2 would create an import file
9758 # for dependence libraries. The import file would start with
9759 # the line `#! .'. This would cause the generated library to
9760 # depend on `.', always an invalid library. This was fixed in
9761 # development snapshots of GCC prior to 3.0.
9762 case $host_os in
9763 aix4 | aix4.[01] | aix4.[01].*)
9764 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9765 echo ' yes '
9766 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9767 :
9768 else
9769 can_build_shared=no
9770 fi
9771 ;;
9772 esac
9773 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9774 # soname into executable. Probably we can add versioning support to
9775 # collect2, so additional links can be useful in future.
9776 if test "$aix_use_runtimelinking" = yes; then
9777 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9778 # instead of lib<name>.a to let people know that these are not
9779 # typical AIX shared libraries.
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781 else
9782 # We preserve .a as extension for shared libraries through AIX4.2
9783 # and later when we are not doing run time linking.
9784 library_names_spec='${libname}${release}.a $libname.a'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 fi
9787 shlibpath_var=LIBPATH
9788 fi
9789 ;;
9790
9791amigaos*)
9792 library_names_spec='$libname.ixlibrary $libname.a'
9793 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9794 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'
9795 ;;
9796
9797beos*)
9798 library_names_spec='${libname}${shared_ext}'
9799 dynamic_linker="$host_os ld.so"
9800 shlibpath_var=LIBRARY_PATH
9801 ;;
9802
9803bsdi[45]*)
9804 version_type=linux
9805 need_version=no
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9812 # the default ld.so.conf also contains /usr/contrib/lib and
9813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9814 # libtool to hard-code these into programs
9815 ;;
9816
9817cygwin* | mingw* | pw32*)
9818 version_type=windows
9819 shrext_cmds=".dll"
9820 need_version=no
9821 need_lib_prefix=no
9822
9823 case $GCC,$host_os in
9824 yes,cygwin* | yes,mingw* | yes,pw32*)
9825 library_names_spec='$libname.dll.a'
9826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9827 postinstall_cmds='base_file=`basename \${file}`~
9828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9829 dldir=$destdir/`dirname \$dlpath`~
9830 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009831 $install_prog $dir/$dlname \$dldir/$dlname~
9832 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9834 dlpath=$dir/\$dldll~
9835 $rm \$dlpath'
9836 shlibpath_overrides_runpath=yes
9837
9838 case $host_os in
9839 cygwin*)
9840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9843 ;;
9844 mingw*)
9845 # MinGW DLLs use traditional 'lib' prefix
9846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9848 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9849 # It is most probably a Windows format PATH printed by
9850 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9851 # path with ; separators, and with drive letters. We can handle the
9852 # drive letters (cygwin fileutils understands them), so leave them,
9853 # especially as we might pass files found there to a mingw objdump,
9854 # which wouldn't understand a cygwinified path. Ahh.
9855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9856 else
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9858 fi
9859 ;;
9860 pw32*)
9861 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009862 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 +00009863 ;;
9864 esac
9865 ;;
9866
9867 *)
9868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9869 ;;
9870 esac
9871 dynamic_linker='Win32 ld.exe'
9872 # FIXME: first we should search . and the directory the executable is in
9873 shlibpath_var=PATH
9874 ;;
9875
9876darwin* | rhapsody*)
9877 dynamic_linker="$host_os dyld"
9878 version_type=darwin
9879 need_lib_prefix=no
9880 need_version=no
9881 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9882 soname_spec='${libname}${release}${major}$shared_ext'
9883 shlibpath_overrides_runpath=yes
9884 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009885 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9887 if test "$GCC" = yes; then
9888 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"`
9889 else
9890 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9891 fi
9892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9893 ;;
9894
9895dgux*)
9896 version_type=linux
9897 need_lib_prefix=no
9898 need_version=no
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 ;;
9903
9904freebsd1*)
9905 dynamic_linker=no
9906 ;;
9907
9908kfreebsd*-gnu)
9909 version_type=linux
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=no
9916 hardcode_into_libs=yes
9917 dynamic_linker='GNU ld.so'
9918 ;;
9919
Reid Spencera773bd52006-08-04 18:18:08 +00009920freebsd* | dragonfly*)
9921 # DragonFly does not have aout. When/if they implement a new
9922 # versioning mechanism, adjust this.
9923 if test -x /usr/bin/objformat; then
9924 objformat=`/usr/bin/objformat`
9925 else
9926 case $host_os in
9927 freebsd[123]*) objformat=aout ;;
9928 *) objformat=elf ;;
9929 esac
9930 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 version_type=freebsd-$objformat
9932 case $version_type in
9933 freebsd-elf*)
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9935 need_version=no
9936 need_lib_prefix=no
9937 ;;
9938 freebsd-*)
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9940 need_version=yes
9941 ;;
9942 esac
9943 shlibpath_var=LD_LIBRARY_PATH
9944 case $host_os in
9945 freebsd2*)
9946 shlibpath_overrides_runpath=yes
9947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009948 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949 shlibpath_overrides_runpath=yes
9950 hardcode_into_libs=yes
9951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009952 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9953 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954 shlibpath_overrides_runpath=no
9955 hardcode_into_libs=yes
9956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009957 freebsd*) # from 4.6 on
9958 shlibpath_overrides_runpath=yes
9959 hardcode_into_libs=yes
9960 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961 esac
9962 ;;
9963
9964gnu*)
9965 version_type=linux
9966 need_lib_prefix=no
9967 need_version=no
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 hardcode_into_libs=yes
9972 ;;
9973
9974hpux9* | hpux10* | hpux11*)
9975 # Give a soname corresponding to the major version so that dld.sl refuses to
9976 # link against other versions.
9977 version_type=sunos
9978 need_lib_prefix=no
9979 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009980 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 ia64*)
9982 shrext_cmds='.so'
9983 hardcode_into_libs=yes
9984 dynamic_linker="$host_os dld.so"
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 if test "X$HPUX_IA64_MODE" = X32; then
9990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9991 else
9992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9993 fi
9994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9995 ;;
9996 hppa*64*)
9997 shrext_cmds='.sl'
9998 hardcode_into_libs=yes
9999 dynamic_linker="$host_os dld.sl"
10000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006 ;;
10007 *)
10008 shrext_cmds='.sl'
10009 dynamic_linker="$host_os dld.sl"
10010 shlibpath_var=SHLIB_PATH
10011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 ;;
10015 esac
10016 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10017 postinstall_cmds='chmod 555 $lib'
10018 ;;
10019
Reid Spencera773bd52006-08-04 18:18:08 +000010020interix3*)
10021 version_type=linux
10022 need_lib_prefix=no
10023 need_version=no
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 shlibpath_overrides_runpath=no
10029 hardcode_into_libs=yes
10030 ;;
10031
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032irix5* | irix6* | nonstopux*)
10033 case $host_os in
10034 nonstopux*) version_type=nonstopux ;;
10035 *)
10036 if test "$lt_cv_prog_gnu_ld" = yes; then
10037 version_type=linux
10038 else
10039 version_type=irix
10040 fi ;;
10041 esac
10042 need_lib_prefix=no
10043 need_version=no
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10046 case $host_os in
10047 irix5* | nonstopux*)
10048 libsuff= shlibsuff=
10049 ;;
10050 *)
10051 case $LD in # libtool.m4 will add one of these switches to LD
10052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10053 libsuff= shlibsuff= libmagic=32-bit;;
10054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10055 libsuff=32 shlibsuff=N32 libmagic=N32;;
10056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10057 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10058 *) libsuff= shlibsuff= libmagic=never-match;;
10059 esac
10060 ;;
10061 esac
10062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10063 shlibpath_overrides_runpath=no
10064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10066 hardcode_into_libs=yes
10067 ;;
10068
10069# No shared lib support for Linux oldld, aout, or coff.
10070linux*oldld* | linux*aout* | linux*coff*)
10071 dynamic_linker=no
10072 ;;
10073
10074# This must be Linux ELF.
10075linux*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=no
10084 # This implies no fast_install, which is unacceptable.
10085 # Some rework will be needed to allow for fast_install
10086 # before this can be enabled.
10087 hardcode_into_libs=yes
10088
10089 # Append ld.so.conf contents to the search path
10090 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010091 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 +000010092 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10093 fi
10094
10095 # We used to test for /lib/ld.so.1 and disable shared libraries on
10096 # powerpc, because MkLinux only supported shared libraries with the
10097 # GNU dynamic linker. Since this was broken with cross compilers,
10098 # most powerpc-linux boxes support dynamic linking these days and
10099 # people can always --disable-shared, the test was removed, and we
10100 # assume the GNU/Linux dynamic linker is in use.
10101 dynamic_linker='GNU/Linux ld.so'
10102 ;;
10103
10104knetbsd*-gnu)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=no
10112 hardcode_into_libs=yes
10113 dynamic_linker='GNU ld.so'
10114 ;;
10115
10116netbsd*)
10117 version_type=sunos
10118 need_lib_prefix=no
10119 need_version=no
10120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10123 dynamic_linker='NetBSD (a.out) ld.so'
10124 else
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 dynamic_linker='NetBSD ld.elf_so'
10128 fi
10129 shlibpath_var=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath=yes
10131 hardcode_into_libs=yes
10132 ;;
10133
10134newsos6)
10135 version_type=linux
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10139 ;;
10140
10141nto-qnx*)
10142 version_type=linux
10143 need_lib_prefix=no
10144 need_version=no
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10149 ;;
10150
10151openbsd*)
10152 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010153 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010155 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10156 case $host_os in
10157 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10158 *) need_version=no ;;
10159 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10164 case $host_os in
10165 openbsd2.[89] | openbsd2.[89].*)
10166 shlibpath_overrides_runpath=no
10167 ;;
10168 *)
10169 shlibpath_overrides_runpath=yes
10170 ;;
10171 esac
10172 else
10173 shlibpath_overrides_runpath=yes
10174 fi
10175 ;;
10176
10177os2*)
10178 libname_spec='$name'
10179 shrext_cmds=".dll"
10180 need_lib_prefix=no
10181 library_names_spec='$libname${shared_ext} $libname.a'
10182 dynamic_linker='OS/2 ld.exe'
10183 shlibpath_var=LIBPATH
10184 ;;
10185
10186osf3* | osf4* | osf5*)
10187 version_type=osf
10188 need_lib_prefix=no
10189 need_version=no
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10194 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10195 ;;
10196
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197solaris*)
10198 version_type=linux
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=yes
10205 hardcode_into_libs=yes
10206 # ldd complains unless libraries are executable
10207 postinstall_cmds='chmod +x $lib'
10208 ;;
10209
10210sunos4*)
10211 version_type=sunos
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=yes
10216 if test "$with_gnu_ld" = yes; then
10217 need_lib_prefix=no
10218 fi
10219 need_version=yes
10220 ;;
10221
Reid Spencera773bd52006-08-04 18:18:08 +000010222sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223 version_type=linux
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 case $host_vendor in
10228 sni)
10229 shlibpath_overrides_runpath=no
10230 need_lib_prefix=no
10231 export_dynamic_flag_spec='${wl}-Blargedynsym'
10232 runpath_var=LD_RUN_PATH
10233 ;;
10234 siemens)
10235 need_lib_prefix=no
10236 ;;
10237 motorola)
10238 need_lib_prefix=no
10239 need_version=no
10240 shlibpath_overrides_runpath=no
10241 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10242 ;;
10243 esac
10244 ;;
10245
10246sysv4*MP*)
10247 if test -d /usr/nec ;then
10248 version_type=linux
10249 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10250 soname_spec='$libname${shared_ext}.$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 fi
10253 ;;
10254
Reid Spencera773bd52006-08-04 18:18:08 +000010255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10256 version_type=freebsd-elf
10257 need_lib_prefix=no
10258 need_version=no
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 hardcode_into_libs=yes
10263 if test "$with_gnu_ld" = yes; then
10264 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10265 shlibpath_overrides_runpath=no
10266 else
10267 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10268 shlibpath_overrides_runpath=yes
10269 case $host_os in
10270 sco3.2v5*)
10271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10272 ;;
10273 esac
10274 fi
10275 sys_lib_dlsearch_path_spec='/usr/lib'
10276 ;;
10277
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278uts4*)
10279 version_type=linux
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 ;;
10284
10285*)
10286 dynamic_linker=no
10287 ;;
10288esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010289{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10290echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291test "$dynamic_linker" = no && can_build_shared=no
10292
Reid Spencera773bd52006-08-04 18:18:08 +000010293variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10294if test "$GCC" = yes; then
10295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10296fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010297
Reid Spencera773bd52006-08-04 18:18:08 +000010298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010299{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10300echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10301if test "${libltdl_cv_shlibext+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303else
10304
10305module=yes
10306eval libltdl_cv_shlibext=$shrext_cmds
10307
10308fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010309{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10310echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311if test -n "$libltdl_cv_shlibext"; then
10312
10313cat >>confdefs.h <<_ACEOF
10314#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10315_ACEOF
10316
10317fi
10318
10319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010320{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10321echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10322if test "${libltdl_cv_shlibpath_var+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324else
10325 libltdl_cv_shlibpath_var="$shlibpath_var"
10326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010327{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10328echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329if test -n "$libltdl_cv_shlibpath_var"; then
10330
10331cat >>confdefs.h <<_ACEOF
10332#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10333_ACEOF
10334
10335fi
10336
10337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010338{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10339echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10340if test "${libltdl_cv_sys_search_path+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342else
10343 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010345{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10346echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347if test -n "$libltdl_cv_sys_search_path"; then
10348 sys_search_path=
10349 for dir in $libltdl_cv_sys_search_path; do
10350 if test -z "$sys_search_path"; then
10351 sys_search_path="$dir"
10352 else
10353 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10354 fi
10355 done
10356
10357cat >>confdefs.h <<_ACEOF
10358#define LTDL_SYSSEARCHPATH "$sys_search_path"
10359_ACEOF
10360
10361fi
10362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010363{ echo "$as_me:$LINENO: checking for objdir" >&5
10364echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10365if test "${libltdl_cv_objdir+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367else
10368 libltdl_cv_objdir="$objdir"
10369 if test -n "$objdir"; then
10370 :
10371 else
10372 rm -f .libs 2>/dev/null
10373 mkdir .libs 2>/dev/null
10374 if test -d .libs; then
10375 libltdl_cv_objdir=.libs
10376 else
10377 # MS-DOS does not allow filenames that begin with a dot.
10378 libltdl_cv_objdir=_libs
10379 fi
10380 rmdir .libs 2>/dev/null
10381 fi
10382
10383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010384{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10385echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386
10387cat >>confdefs.h <<_ACEOF
10388#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10389_ACEOF
10390
10391
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392
10393
10394
10395
10396# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010397{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10398echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10399if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401else
10402
10403# These are sane defaults that work on at least a few old systems.
10404# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10405
10406# Character class describing NM global symbol codes.
10407symcode='[BCDEGRST]'
10408
10409# Regexp to match symbols that can be accessed directly from C.
10410sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10411
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412# Transform an extracted symbol line into a proper C declaration
10413lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10414
10415# Transform an extracted symbol line into symbol name and symbol address
10416lt_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'"
10417
10418# Define system-specific variables.
10419case $host_os in
10420aix*)
10421 symcode='[BCDT]'
10422 ;;
10423cygwin* | mingw* | pw32*)
10424 symcode='[ABCDGISTW]'
10425 ;;
10426hpux*) # Its linker distinguishes data from code symbols
10427 if test "$host_cpu" = ia64; then
10428 symcode='[ABCDEGRST]'
10429 fi
10430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10431 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'"
10432 ;;
10433linux*)
10434 if test "$host_cpu" = ia64; then
10435 symcode='[ABCDGIRSTW]'
10436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10437 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'"
10438 fi
10439 ;;
10440irix* | nonstopux*)
10441 symcode='[BCDEGRST]'
10442 ;;
10443osf*)
10444 symcode='[BCDEGQRST]'
10445 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010446solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 symcode='[BDRT]'
10448 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010449sco3.2v5*)
10450 symcode='[DT]'
10451 ;;
10452sysv4.2uw2*)
10453 symcode='[DT]'
10454 ;;
10455sysv5* | sco5v6* | unixware* | OpenUNIX*)
10456 symcode='[ABDT]'
10457 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458sysv4)
10459 symcode='[DFNSTU]'
10460 ;;
10461esac
10462
10463# Handle CRLF in mingw tool chain
10464opt_cr=
10465case $build_os in
10466mingw*)
10467 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10468 ;;
10469esac
10470
10471# If we're using GNU nm, then use its standard symbol codes.
10472case `$NM -V 2>&1` in
10473*GNU* | *'with BFD'*)
10474 symcode='[ABCDGIRSTW]' ;;
10475esac
10476
10477# Try without a prefix undercore, then with it.
10478for ac_symprfx in "" "_"; do
10479
Reid Spencera773bd52006-08-04 18:18:08 +000010480 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10481 symxfrm="\\1 $ac_symprfx\\2 \\2"
10482
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010484 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 +000010485
10486 # Check to see that the pipe works correctly.
10487 pipe_works=no
10488
10489 rm -f conftest*
10490 cat > conftest.$ac_ext <<EOF
10491#ifdef __cplusplus
10492extern "C" {
10493#endif
10494char nm_test_var;
10495void nm_test_func(){}
10496#ifdef __cplusplus
10497}
10498#endif
10499int main(){nm_test_var='a';nm_test_func();return(0);}
10500EOF
10501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503 (eval $ac_compile) 2>&5
10504 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507 # Now try to grab the symbols.
10508 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010509 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 +000010510 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10511 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514 # Try sorting and uniquifying the output.
10515 if sort "$nlist" | uniq > "$nlist"T; then
10516 mv -f "$nlist"T "$nlist"
10517 else
10518 rm -f "$nlist"T
10519 fi
10520
10521 # Make sure that we snagged all the symbols we need.
10522 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10523 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10524 cat <<EOF > conftest.$ac_ext
10525#ifdef __cplusplus
10526extern "C" {
10527#endif
10528
10529EOF
10530 # Now generate the symbol file.
10531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10532
10533 cat <<EOF >> conftest.$ac_ext
10534#if defined (__STDC__) && __STDC__
10535# define lt_ptr_t void *
10536#else
10537# define lt_ptr_t char *
10538# define const
10539#endif
10540
10541/* The mapping between symbol names and symbols. */
10542const struct {
10543 const char *name;
10544 lt_ptr_t address;
10545}
10546lt_preloaded_symbols[] =
10547{
10548EOF
10549 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10550 cat <<\EOF >> conftest.$ac_ext
10551 {0, (lt_ptr_t) 0}
10552};
10553
10554#ifdef __cplusplus
10555}
10556#endif
10557EOF
10558 # Now try linking the two files.
10559 mv conftest.$ac_objext conftstm.$ac_objext
10560 lt_save_LIBS="$LIBS"
10561 lt_save_CFLAGS="$CFLAGS"
10562 LIBS="conftstm.$ac_objext"
10563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565 (eval $ac_link) 2>&5
10566 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 pipe_works=yes
10570 fi
10571 LIBS="$lt_save_LIBS"
10572 CFLAGS="$lt_save_CFLAGS"
10573 else
10574 echo "cannot find nm_test_func in $nlist" >&5
10575 fi
10576 else
10577 echo "cannot find nm_test_var in $nlist" >&5
10578 fi
10579 else
10580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10581 fi
10582 else
10583 echo "$progname: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 fi
10586 rm -f conftest* conftst*
10587
10588 # Do not use the global_symbol_pipe unless it works.
10589 if test "$pipe_works" = yes; then
10590 break
10591 else
10592 lt_cv_sys_global_symbol_pipe=
10593 fi
10594done
10595
10596fi
10597
10598if test -z "$lt_cv_sys_global_symbol_pipe"; then
10599 lt_cv_sys_global_symbol_to_cdecl=
10600fi
10601if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010602 { echo "$as_me:$LINENO: result: failed" >&5
10603echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010605 { echo "$as_me:$LINENO: result: ok" >&5
10606echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607fi
10608
10609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10611echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10612if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614else
10615 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10616 libltdl_cv_preloaded_symbols=yes
10617 else
10618 libltdl_cv_preloaded_symbols=no
10619 fi
10620
10621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010622{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10623echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010626cat >>confdefs.h <<\_ACEOF
10627#define HAVE_PRELOADED_SYMBOLS 1
10628_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629
10630fi
10631
10632LIBADD_DL=
10633
10634ac_ext=c
10635ac_cpp='$CPP $CPPFLAGS'
10636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010641{ echo "$as_me:$LINENO: checking for shl_load" >&5
10642echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10643if test "${ac_cv_func_shl_load+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645else
10646 cat >conftest.$ac_ext <<_ACEOF
10647/* confdefs.h. */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
10651/* end confdefs.h. */
10652/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10654#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010656/* System header to define __stub macros and hopefully few prototypes,
10657 which can conflict with char shl_load (); below.
10658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659 <limits.h> exists even on freestanding compilers. */
10660
10661#ifdef __STDC__
10662# include <limits.h>
10663#else
10664# include <assert.h>
10665#endif
10666
10667#undef shl_load
10668
10669/* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10672#ifdef __cplusplus
10673extern "C"
10674#endif
10675char shl_load ();
10676/* The GNU C library defines this for functions which it implements
10677 to always fail with ENOSYS. Some functions are actually named
10678 something starting with __ and the normal name is an alias. */
10679#if defined __stub_shl_load || defined __stub___shl_load
10680choke me
10681#endif
10682
10683int
10684main ()
10685{
10686return shl_load ();
10687 ;
10688 return 0;
10689}
10690_ACEOF
10691rm -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
10725 ac_cv_func_shl_load=yes
10726else
10727 echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ac_cv_func_shl_load=no
10731fi
10732
10733rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735fi
10736{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10737echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10738if test $ac_cv_func_shl_load = yes; then
10739
10740cat >>confdefs.h <<\_ACEOF
10741#define HAVE_SHL_LOAD 1
10742_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743
10744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010745 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10746echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10747if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749else
10750 ac_check_lib_save_LIBS=$LIBS
10751LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757/* end confdefs.h. */
10758
Reid Spencera773bd52006-08-04 18:18:08 +000010759/* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762#ifdef __cplusplus
10763extern "C"
10764#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765char shl_load ();
10766int
10767main ()
10768{
Reid Spencera773bd52006-08-04 18:18:08 +000010769return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770 ;
10771 return 0;
10772}
10773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010774rm -f conftest.$ac_objext conftest$ac_exeext
10775if { (ac_try="$ac_link"
10776case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (case "(($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_try") 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010808 ac_cv_lib_dld_shl_load=yes
10809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010810 echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010815
Bill Wendlingebcceee2009-04-18 11:20:33 +000010816rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010817 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818LIBS=$ac_check_lib_save_LIBS
10819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010820{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10821echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10822if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824cat >>confdefs.h <<\_ACEOF
10825#define HAVE_SHL_LOAD 1
10826_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827
10828 LIBADD_DL="$LIBADD_DL -ldld"
10829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010830 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834else
10835 ac_check_lib_save_LIBS=$LIBS
10836LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837cat >conftest.$ac_ext <<_ACEOF
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842/* end confdefs.h. */
10843
Reid Spencera773bd52006-08-04 18:18:08 +000010844/* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010847#ifdef __cplusplus
10848extern "C"
10849#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850char dlopen ();
10851int
10852main ()
10853{
Reid Spencera773bd52006-08-04 18:18:08 +000010854return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855 ;
10856 return 0;
10857}
10858_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010859rm -f conftest.$ac_objext conftest$ac_exeext
10860if { (ac_try="$ac_link"
10861case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest$ac_exeext'
10884 { (case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887esac
10888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893 ac_cv_lib_dl_dlopen=yes
10894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010900
Bill Wendlingebcceee2009-04-18 11:20:33 +000010901rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010902 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903LIBS=$ac_check_lib_save_LIBS
10904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010905{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10906echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10907if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909cat >>confdefs.h <<\_ACEOF
10910#define HAVE_LIBDL 1
10911_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912
10913 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010915 cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920/* end confdefs.h. */
10921#if HAVE_DLFCN_H
10922# include <dlfcn.h>
10923#endif
10924
10925int
10926main ()
10927{
10928dlopen(0, 0);
10929 ;
10930 return 0;
10931}
10932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010933rm -f conftest.$ac_objext conftest$ac_exeext
10934if { (ac_try="$ac_link"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_link") 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968cat >>confdefs.h <<\_ACEOF
10969#define HAVE_LIBDL 1
10970_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971 libltdl_cv_func_dlopen="yes"
10972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973 echo "$as_me: failed program was:" >&5
10974sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10977echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10978if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980else
10981 ac_check_lib_save_LIBS=$LIBS
10982LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010983cat >conftest.$ac_ext <<_ACEOF
10984/* confdefs.h. */
10985_ACEOF
10986cat confdefs.h >>conftest.$ac_ext
10987cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988/* end confdefs.h. */
10989
Reid Spencera773bd52006-08-04 18:18:08 +000010990/* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993#ifdef __cplusplus
10994extern "C"
10995#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996char dlopen ();
10997int
10998main ()
10999{
Reid Spencera773bd52006-08-04 18:18:08 +000011000return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001 ;
11002 return 0;
11003}
11004_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039 ac_cv_lib_svld_dlopen=yes
11040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011046
Bill Wendlingebcceee2009-04-18 11:20:33 +000011047rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049LIBS=$ac_check_lib_save_LIBS
11050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011051{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11052echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11053if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055cat >>confdefs.h <<\_ACEOF
11056#define HAVE_LIBDL 1
11057_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058
11059 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065else
11066 ac_check_lib_save_LIBS=$LIBS
11067LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011068cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073/* end confdefs.h. */
11074
Reid Spencera773bd52006-08-04 18:18:08 +000011075/* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078#ifdef __cplusplus
11079extern "C"
11080#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081char dld_link ();
11082int
11083main ()
11084{
Reid Spencera773bd52006-08-04 18:18:08 +000011085return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086 ;
11087 return 0;
11088}
11089_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011090rm -f conftest.$ac_objext conftest$ac_exeext
11091if { (ac_try="$ac_link"
11092case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest$ac_exeext'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118esac
11119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124 ac_cv_lib_dld_dld_link=yes
11125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011126 echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011131
Bill Wendlingebcceee2009-04-18 11:20:33 +000011132rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011133 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134LIBS=$ac_check_lib_save_LIBS
11135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011136{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11137echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11138if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011140cat >>confdefs.h <<\_ACEOF
11141#define HAVE_DLD 1
11142_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011143
11144 LIBADD_DL="$LIBADD_DL -ldld"
11145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011146 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11147echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11148if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151 cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h. */
11157/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11159#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161/* System header to define __stub macros and hopefully few prototypes,
11162 which can conflict with char _dyld_func_lookup (); below.
11163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11164 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011166#ifdef __STDC__
11167# include <limits.h>
11168#else
11169# include <assert.h>
11170#endif
11171
11172#undef _dyld_func_lookup
11173
11174/* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11177#ifdef __cplusplus
11178extern "C"
11179#endif
11180char _dyld_func_lookup ();
11181/* The GNU C library defines this for functions which it implements
11182 to always fail with ENOSYS. Some functions are actually named
11183 something starting with __ and the normal name is an alias. */
11184#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11185choke me
11186#endif
11187
11188int
11189main ()
11190{
11191return _dyld_func_lookup ();
11192 ;
11193 return 0;
11194}
11195_ACEOF
11196rm -f conftest.$ac_objext conftest$ac_exeext
11197if { (ac_try="$ac_link"
11198case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201esac
11202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_link") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214esac
11215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_cv_func__dyld_func_lookup=yes
11231else
11232 echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236fi
Reid Spencera773bd52006-08-04 18:18:08 +000011237
Bill Wendlingebcceee2009-04-18 11:20:33 +000011238rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011239 conftest$ac_exeext conftest.$ac_ext
11240fi
11241{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11242echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11243if test $ac_cv_func__dyld_func_lookup = yes; then
11244
11245cat >>confdefs.h <<\_ACEOF
11246#define HAVE_DYLD 1
11247_ACEOF
11248
11249fi
11250
11251
11252fi
11253
11254
11255fi
11256
11257
11258fi
11259
11260rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262
11263fi
11264
11265
11266fi
11267
11268
11269fi
11270
11271
11272if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11273then
11274 lt_save_LIBS="$LIBS"
11275 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011276
11277for ac_func in dlerror
11278do
11279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284else
11285 cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293#define $ac_func innocuous_$ac_func
11294
11295/* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11299
11300#ifdef __STDC__
11301# include <limits.h>
11302#else
11303# include <assert.h>
11304#endif
11305
11306#undef $ac_func
11307
11308/* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311#ifdef __cplusplus
11312extern "C"
11313#endif
11314char $ac_func ();
11315/* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318#if defined __stub_$ac_func || defined __stub___$ac_func
11319choke me
11320#endif
11321
11322int
11323main ()
11324{
11325return $ac_func ();
11326 ;
11327 return 0;
11328}
11329_ACEOF
11330rm -f conftest.$ac_objext conftest$ac_exeext
11331if { (ac_try="$ac_link"
11332case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 eval "$as_ac_var=yes"
11365else
11366 echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 eval "$as_ac_var=no"
11370fi
11371
11372rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374fi
11375ac_res=`eval echo '${'$as_ac_var'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377echo "${ECHO_T}$ac_res" >&6; }
11378if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381_ACEOF
11382
11383fi
11384done
11385
11386 LIBS="$lt_save_LIBS"
11387fi
11388ac_ext=c
11389ac_cpp='$CPP $CPPFLAGS'
11390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393
11394
11395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011396{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11397echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11398if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400else
11401 ac_cv_sys_symbol_underscore=no
11402 cat > conftest.$ac_ext <<EOF
11403void nm_test_func(){}
11404int main(){nm_test_func;return 0;}
11405EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407 (eval $ac_compile) 2>&5
11408 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 # Now try to grab the symbols.
11412 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011413 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 +000011414 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11415 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418 # See whether the symbols have a leading underscore.
11419 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11420 ac_cv_sys_symbol_underscore=yes
11421 else
11422 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11423 :
11424 else
11425 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11426 fi
11427 fi
11428 else
11429 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11430 fi
11431 else
11432 echo "configure: failed program was:" >&5
11433 cat conftest.c >&5
11434 fi
11435 rm -rf conftest*
11436
11437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011438{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11439echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440
11441
11442if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11443 if test x"$libltdl_cv_func_dlopen" = xyes ||
11444 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011445 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11446echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11447if test "${libltdl_cv_need_uscore+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449else
11450 libltdl_cv_need_uscore=unknown
11451 save_LIBS="$LIBS"
11452 LIBS="$LIBS $LIBADD_DL"
11453 if test "$cross_compiling" = yes; then :
11454 libltdl_cv_need_uscore=cross
11455else
11456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457 lt_status=$lt_dlunknown
11458 cat > conftest.$ac_ext <<EOF
Dan Gohman48fd5a72010-09-27 16:28:34 +000011459#line 11454 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460#include "confdefs.h"
11461
11462#if HAVE_DLFCN_H
11463#include <dlfcn.h>
11464#endif
11465
11466#include <stdio.h>
11467
11468#ifdef RTLD_GLOBAL
11469# define LT_DLGLOBAL RTLD_GLOBAL
11470#else
11471# ifdef DL_GLOBAL
11472# define LT_DLGLOBAL DL_GLOBAL
11473# else
11474# define LT_DLGLOBAL 0
11475# endif
11476#endif
11477
11478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479 find out it does not work in some platform. */
11480#ifndef LT_DLLAZY_OR_NOW
11481# ifdef RTLD_LAZY
11482# define LT_DLLAZY_OR_NOW RTLD_LAZY
11483# else
11484# ifdef DL_LAZY
11485# define LT_DLLAZY_OR_NOW DL_LAZY
11486# else
11487# ifdef RTLD_NOW
11488# define LT_DLLAZY_OR_NOW RTLD_NOW
11489# else
11490# ifdef DL_NOW
11491# define LT_DLLAZY_OR_NOW DL_NOW
11492# else
11493# define LT_DLLAZY_OR_NOW 0
11494# endif
11495# endif
11496# endif
11497# endif
11498#endif
11499
11500#ifdef __cplusplus
11501extern "C" void exit (int);
11502#endif
11503
11504void fnord() { int i=42;}
11505int main ()
11506{
11507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11508 int status = $lt_dlunknown;
11509
11510 if (self)
11511 {
11512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11514 /* dlclose (self); */
11515 }
Reid Spencera773bd52006-08-04 18:18:08 +000011516 else
11517 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518
11519 exit (status);
11520}
11521EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 (eval $ac_link) 2>&5
11524 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011527 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528 lt_status=$?
11529 case x$lt_status in
11530 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11531 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011532 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533 esac
11534 else :
11535 # compilation failed
11536
11537 fi
11538fi
11539rm -fr conftest*
11540
11541 LIBS="$save_LIBS"
11542
11543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011544{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11545echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546 fi
11547fi
11548
11549if test x"$libltdl_cv_need_uscore" = xyes; then
11550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011551cat >>confdefs.h <<\_ACEOF
11552#define NEED_USCORE 1
11553_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554
11555fi
11556
11557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011558{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11559echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11560if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562else
11563 # PORTME does your system automatically load deplibs for dlopen?
11564 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11565 # For now, we just catch OSes we know something about -- in the
11566 # future, we'll try test this programmatically.
11567 libltdl_cv_sys_dlopen_deplibs=unknown
11568 case "$host_os" in
11569 aix3*|aix4.1.*|aix4.2.*)
11570 # Unknown whether this is true for these versions of AIX, but
11571 # we want this `case' here to explicitly catch those versions.
11572 libltdl_cv_sys_dlopen_deplibs=unknown
11573 ;;
11574 aix[45]*)
11575 libltdl_cv_sys_dlopen_deplibs=yes
11576 ;;
11577 darwin*)
11578 # Assuming the user has installed a libdl from somewhere, this is true
11579 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11580 libltdl_cv_sys_dlopen_deplibs=yes
11581 ;;
11582 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11583 # GNU and its variants, using gnu ld.so (Glibc)
11584 libltdl_cv_sys_dlopen_deplibs=yes
11585 ;;
11586 hpux10*|hpux11*)
11587 libltdl_cv_sys_dlopen_deplibs=yes
11588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011589 interix*)
11590 libltdl_cv_sys_dlopen_deplibs=yes
11591 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592 irix[12345]*|irix6.[01]*)
11593 # Catch all versions of IRIX before 6.2, and indicate that we don't
11594 # know how it worked for any of those versions.
11595 libltdl_cv_sys_dlopen_deplibs=unknown
11596 ;;
11597 irix*)
11598 # The case above catches anything before 6.2, and it's known that
11599 # at 6.2 and later dlopen does load deplibs.
11600 libltdl_cv_sys_dlopen_deplibs=yes
11601 ;;
11602 netbsd*)
11603 libltdl_cv_sys_dlopen_deplibs=yes
11604 ;;
11605 openbsd*)
11606 libltdl_cv_sys_dlopen_deplibs=yes
11607 ;;
11608 osf[1234]*)
11609 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11610 # it did *not* use an RPATH in a shared library to find objects the
11611 # library depends on, so we explictly say `no'.
11612 libltdl_cv_sys_dlopen_deplibs=no
11613 ;;
11614 osf5.0|osf5.0a|osf5.1)
11615 # dlopen *does* load deplibs and with the right loader patch applied
11616 # it even uses RPATH in a shared library to search for shared objects
11617 # that the library depends on, but there's no easy way to know if that
11618 # patch is installed. Since this is the case, all we can really
11619 # say is unknown -- it depends on the patch being installed. If
11620 # it is, this changes to `yes'. Without it, it would be `no'.
11621 libltdl_cv_sys_dlopen_deplibs=unknown
11622 ;;
11623 osf*)
11624 # the two cases above should catch all versions of osf <= 5.1. Read
11625 # the comments above for what we know about them.
11626 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11627 # is used to find them so we can finally say `yes'.
11628 libltdl_cv_sys_dlopen_deplibs=yes
11629 ;;
11630 solaris*)
11631 libltdl_cv_sys_dlopen_deplibs=yes
11632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11634 libltdl_cv_sys_dlopen_deplibs=yes
11635 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636 esac
11637
11638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011639{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11640echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011643cat >>confdefs.h <<\_ACEOF
11644#define LTDL_DLOPEN_DEPLIBS 1
11645_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646
11647fi
11648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011649
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011651do
11652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658fi
11659ac_res=`eval echo '${'$as_ac_Header'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661echo "${ECHO_T}$ac_res" >&6; }
11662else
11663 # Is the header compilable?
11664{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672$ac_includes_default
11673#include <$ac_header>
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (ac_try="$ac_compile"
11677case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680esac
11681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_compile") 2>conftest.er1
11683 ac_status=$?
11684 grep -v '^ *+' conftest.er1 >conftest.err
11685 rm -f conftest.er1
11686 cat conftest.err >&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
11689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11690 { (case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693esac
11694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_try") 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest.$ac_objext'
11700 { (case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703esac
11704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_try") 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_header_compiler=yes
11710else
11711 echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 ac_header_compiler=no
11715fi
11716
11717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11719echo "${ECHO_T}$ac_header_compiler" >&6; }
11720
11721# Is the header present?
11722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11724cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730#include <$ac_header>
11731_ACEOF
11732if { (ac_try="$ac_cpp conftest.$ac_ext"
11733case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } >/dev/null; then
11745 if test -s conftest.err; then
11746 ac_cpp_err=$ac_c_preproc_warn_flag
11747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11748 else
11749 ac_cpp_err=
11750 fi
11751else
11752 ac_cpp_err=yes
11753fi
11754if test -z "$ac_cpp_err"; then
11755 ac_header_preproc=yes
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760 ac_header_preproc=no
11761fi
11762
11763rm -f conftest.err conftest.$ac_ext
11764{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11765echo "${ECHO_T}$ac_header_preproc" >&6; }
11766
11767# So? What about this header?
11768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11769 yes:no: )
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11771echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11773echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11774 ac_header_preproc=yes
11775 ;;
11776 no:yes:* )
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11782echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11784echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11788echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11789 ( cat <<\_ASBOX
11790## ----------------------------------- ##
11791## Report this to llvmbugs@cs.uiuc.edu ##
11792## ----------------------------------- ##
11793_ASBOX
11794 ) | sed "s/^/$as_me: WARNING: /" >&2
11795 ;;
11796esac
11797{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801else
11802 eval "$as_ac_Header=\$ac_header_preproc"
11803fi
11804ac_res=`eval echo '${'$as_ac_Header'}'`
11805 { echo "$as_me:$LINENO: result: $ac_res" >&5
11806echo "${ECHO_T}$ac_res" >&6; }
11807
11808fi
11809if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812_ACEOF
11813
11814fi
11815
11816done
11817
11818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011819{ echo "$as_me:$LINENO: checking for error_t" >&5
11820echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11821if test "${ac_cv_type_error_t+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831# include <argz.h>
11832#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011833
11834typedef error_t ac__type_new_;
11835int
11836main ()
11837{
11838if ((ac__type_new_ *) 0)
11839 return 0;
11840if (sizeof (ac__type_new_))
11841 return 0;
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext
11847if { (ac_try="$ac_compile"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_type_error_t=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_cv_type_error_t=no
11886fi
11887
11888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889fi
11890{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11891echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11892if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893
11894cat >>confdefs.h <<_ACEOF
11895#define HAVE_ERROR_T 1
11896_ACEOF
11897
11898
11899else
11900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011901cat >>confdefs.h <<\_ACEOF
11902#define error_t int
11903_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904
11905fi
11906
11907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011908
11909
11910
11911
11912
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011914do
11915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929#define $ac_func innocuous_$ac_func
11930
11931/* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char $ac_func (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11935
11936#ifdef __STDC__
11937# include <limits.h>
11938#else
11939# include <assert.h>
11940#endif
11941
11942#undef $ac_func
11943
11944/* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947#ifdef __cplusplus
11948extern "C"
11949#endif
11950char $ac_func ();
11951/* The GNU C library defines this for functions which it implements
11952 to always fail with ENOSYS. Some functions are actually named
11953 something starting with __ and the normal name is an alias. */
11954#if defined __stub_$ac_func || defined __stub___$ac_func
11955choke me
11956#endif
11957
11958int
11959main ()
11960{
11961return $ac_func ();
11962 ;
11963 return 0;
11964}
11965_ACEOF
11966rm -f conftest.$ac_objext conftest$ac_exeext
11967if { (ac_try="$ac_link"
11968case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971esac
11972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 eval "$as_ac_var=yes"
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 eval "$as_ac_var=no"
12006fi
12007
12008rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010fi
12011ac_res=`eval echo '${'$as_ac_var'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013echo "${ECHO_T}$ac_res" >&6; }
12014if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017_ACEOF
12018
12019fi
12020done
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012041
12042
12043
12044
12045
12046
12047
12048
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12050 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012051do
12052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058fi
12059ac_res=`eval echo '${'$as_ac_Header'}'`
12060 { echo "$as_me:$LINENO: result: $ac_res" >&5
12061echo "${ECHO_T}$ac_res" >&6; }
12062else
12063 # Is the header compilable?
12064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12066cat >conftest.$ac_ext <<_ACEOF
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072$ac_includes_default
12073#include <$ac_header>
12074_ACEOF
12075rm -f conftest.$ac_objext
12076if { (ac_try="$ac_compile"
12077case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_compile") 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest.$ac_objext'
12100 { (case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_try") 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_header_compiler=yes
12110else
12111 echo "$as_me: failed program was:" >&5
12112sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_header_compiler=no
12115fi
12116
12117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119echo "${ECHO_T}$ac_header_compiler" >&6; }
12120
12121# Is the header present?
12122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12124cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
12130#include <$ac_header>
12131_ACEOF
12132if { (ac_try="$ac_cpp conftest.$ac_ext"
12133case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } >/dev/null; then
12145 if test -s conftest.err; then
12146 ac_cpp_err=$ac_c_preproc_warn_flag
12147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12148 else
12149 ac_cpp_err=
12150 fi
12151else
12152 ac_cpp_err=yes
12153fi
12154if test -z "$ac_cpp_err"; then
12155 ac_header_preproc=yes
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_header_preproc=no
12161fi
12162
12163rm -f conftest.err conftest.$ac_ext
12164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12165echo "${ECHO_T}$ac_header_preproc" >&6; }
12166
12167# So? What about this header?
12168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12169 yes:no: )
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12174 ac_header_preproc=yes
12175 ;;
12176 no:yes:* )
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12189 ( cat <<\_ASBOX
12190## ----------------------------------- ##
12191## Report this to llvmbugs@cs.uiuc.edu ##
12192## ----------------------------------- ##
12193_ASBOX
12194 ) | sed "s/^/$as_me: WARNING: /" >&2
12195 ;;
12196esac
12197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201else
12202 eval "$as_ac_Header=\$ac_header_preproc"
12203fi
12204ac_res=`eval echo '${'$as_ac_Header'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206echo "${ECHO_T}$ac_res" >&6; }
12207
12208fi
12209if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012212_ACEOF
12213
12214fi
12215
12216done
12217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218
12219
12220
12221
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012223do
12224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230fi
12231ac_res=`eval echo '${'$as_ac_Header'}'`
12232 { echo "$as_me:$LINENO: result: $ac_res" >&5
12233echo "${ECHO_T}$ac_res" >&6; }
12234else
12235 # Is the header compilable?
12236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244$ac_includes_default
12245#include <$ac_header>
12246_ACEOF
12247rm -f conftest.$ac_objext
12248if { (ac_try="$ac_compile"
12249case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252esac
12253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_compile") 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265esac
12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest.$ac_objext'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275esac
12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_header_compiler=yes
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 ac_header_compiler=no
12287fi
12288
12289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12291echo "${ECHO_T}$ac_header_compiler" >&6; }
12292
12293# Is the header present?
12294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12296cat >conftest.$ac_ext <<_ACEOF
12297/* confdefs.h. */
12298_ACEOF
12299cat confdefs.h >>conftest.$ac_ext
12300cat >>conftest.$ac_ext <<_ACEOF
12301/* end confdefs.h. */
12302#include <$ac_header>
12303_ACEOF
12304if { (ac_try="$ac_cpp conftest.$ac_ext"
12305case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } >/dev/null; then
12317 if test -s conftest.err; then
12318 ac_cpp_err=$ac_c_preproc_warn_flag
12319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12320 else
12321 ac_cpp_err=
12322 fi
12323else
12324 ac_cpp_err=yes
12325fi
12326if test -z "$ac_cpp_err"; then
12327 ac_header_preproc=yes
12328else
12329 echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_header_preproc=no
12333fi
12334
12335rm -f conftest.err conftest.$ac_ext
12336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12337echo "${ECHO_T}$ac_header_preproc" >&6; }
12338
12339# So? What about this header?
12340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12341 yes:no: )
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12346 ac_header_preproc=yes
12347 ;;
12348 no:yes:* )
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12361 ( cat <<\_ASBOX
12362## ----------------------------------- ##
12363## Report this to llvmbugs@cs.uiuc.edu ##
12364## ----------------------------------- ##
12365_ASBOX
12366 ) | sed "s/^/$as_me: WARNING: /" >&2
12367 ;;
12368esac
12369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374 eval "$as_ac_Header=\$ac_header_preproc"
12375fi
12376ac_res=`eval echo '${'$as_ac_Header'}'`
12377 { echo "$as_me:$LINENO: result: $ac_res" >&5
12378echo "${ECHO_T}$ac_res" >&6; }
12379
12380fi
12381if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012384_ACEOF
12385
12386fi
12387
12388done
12389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390
12391
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012392for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012393do
12394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400fi
12401ac_res=`eval echo '${'$as_ac_Header'}'`
12402 { echo "$as_me:$LINENO: result: $ac_res" >&5
12403echo "${ECHO_T}$ac_res" >&6; }
12404else
12405 # Is the header compilable?
12406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12408cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414$ac_includes_default
12415#include <$ac_header>
12416_ACEOF
12417rm -f conftest.$ac_objext
12418if { (ac_try="$ac_compile"
12419case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_compile") 2>conftest.er1
12425 ac_status=$?
12426 grep -v '^ *+' conftest.er1 >conftest.err
12427 rm -f conftest.er1
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest.$ac_objext'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_header_compiler=yes
12452else
12453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_header_compiler=no
12457fi
12458
12459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12461echo "${ECHO_T}$ac_header_compiler" >&6; }
12462
12463# Is the header present?
12464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12466cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472#include <$ac_header>
12473_ACEOF
12474if { (ac_try="$ac_cpp conftest.$ac_ext"
12475case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478esac
12479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } >/dev/null; then
12487 if test -s conftest.err; then
12488 ac_cpp_err=$ac_c_preproc_warn_flag
12489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12490 else
12491 ac_cpp_err=
12492 fi
12493else
12494 ac_cpp_err=yes
12495fi
12496if test -z "$ac_cpp_err"; then
12497 ac_header_preproc=yes
12498else
12499 echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
12501
12502 ac_header_preproc=no
12503fi
12504
12505rm -f conftest.err conftest.$ac_ext
12506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12507echo "${ECHO_T}$ac_header_preproc" >&6; }
12508
12509# So? What about this header?
12510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12511 yes:no: )
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12516 ac_header_preproc=yes
12517 ;;
12518 no:yes:* )
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12531 ( cat <<\_ASBOX
12532## ----------------------------------- ##
12533## Report this to llvmbugs@cs.uiuc.edu ##
12534## ----------------------------------- ##
12535_ASBOX
12536 ) | sed "s/^/$as_me: WARNING: /" >&2
12537 ;;
12538esac
12539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544 eval "$as_ac_Header=\$ac_header_preproc"
12545fi
12546ac_res=`eval echo '${'$as_ac_Header'}'`
12547 { echo "$as_me:$LINENO: result: $ac_res" >&5
12548echo "${ECHO_T}$ac_res" >&6; }
12549
12550fi
12551if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012554_ACEOF
12555 break
12556fi
12557
12558done
12559
12560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012561
12562
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564do
12565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570else
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12579#define $ac_func innocuous_$ac_func
12580
12581/* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char $ac_func (); below.
12583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 <limits.h> exists even on freestanding compilers. */
12585
12586#ifdef __STDC__
12587# include <limits.h>
12588#else
12589# include <assert.h>
12590#endif
12591
12592#undef $ac_func
12593
12594/* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600char $ac_func ();
12601/* The GNU C library defines this for functions which it implements
12602 to always fail with ENOSYS. Some functions are actually named
12603 something starting with __ and the normal name is an alias. */
12604#if defined __stub_$ac_func || defined __stub___$ac_func
12605choke me
12606#endif
12607
12608int
12609main ()
12610{
12611return $ac_func ();
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext conftest$ac_exeext
12617if { (ac_try="$ac_link"
12618case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644esac
12645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 eval "$as_ac_var=yes"
12651else
12652 echo "$as_me: failed program was:" >&5
12653sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 eval "$as_ac_var=no"
12656fi
12657
12658rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660fi
12661ac_res=`eval echo '${'$as_ac_var'}'`
12662 { echo "$as_me:$LINENO: result: $ac_res" >&5
12663echo "${ECHO_T}$ac_res" >&6; }
12664if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012667_ACEOF
12668 break
12669fi
12670done
12671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012672
12673
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012674for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675do
12676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 cat >conftest.$ac_ext <<_ACEOF
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
12688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12690#define $ac_func innocuous_$ac_func
12691
12692/* System header to define __stub macros and hopefully few prototypes,
12693 which can conflict with char $ac_func (); below.
12694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695 <limits.h> exists even on freestanding compilers. */
12696
12697#ifdef __STDC__
12698# include <limits.h>
12699#else
12700# include <assert.h>
12701#endif
12702
12703#undef $ac_func
12704
12705/* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12708#ifdef __cplusplus
12709extern "C"
12710#endif
12711char $ac_func ();
12712/* The GNU C library defines this for functions which it implements
12713 to always fail with ENOSYS. Some functions are actually named
12714 something starting with __ and the normal name is an alias. */
12715#if defined __stub_$ac_func || defined __stub___$ac_func
12716choke me
12717#endif
12718
12719int
12720main ()
12721{
12722return $ac_func ();
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext conftest$ac_exeext
12728if { (ac_try="$ac_link"
12729case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732esac
12733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745esac
12746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_var=yes"
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766 eval "$as_ac_var=no"
12767fi
12768
12769rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12771fi
12772ac_res=`eval echo '${'$as_ac_var'}'`
12773 { echo "$as_me:$LINENO: result: $ac_res" >&5
12774echo "${ECHO_T}$ac_res" >&6; }
12775if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012776 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778_ACEOF
12779 break
12780fi
12781done
12782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012783
12784
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012785for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012786do
12787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12792else
12793 cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12801#define $ac_func innocuous_$ac_func
12802
12803/* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12807
12808#ifdef __STDC__
12809# include <limits.h>
12810#else
12811# include <assert.h>
12812#endif
12813
12814#undef $ac_func
12815
12816/* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819#ifdef __cplusplus
12820extern "C"
12821#endif
12822char $ac_func ();
12823/* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826#if defined __stub_$ac_func || defined __stub___$ac_func
12827choke me
12828#endif
12829
12830int
12831main ()
12832{
12833return $ac_func ();
12834 ;
12835 return 0;
12836}
12837_ACEOF
12838rm -f conftest.$ac_objext conftest$ac_exeext
12839if { (ac_try="$ac_link"
12840case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843esac
12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 eval "$as_ac_var=yes"
12873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 eval "$as_ac_var=no"
12878fi
12879
12880rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882fi
12883ac_res=`eval echo '${'$as_ac_var'}'`
12884 { echo "$as_me:$LINENO: result: $ac_res" >&5
12885echo "${ECHO_T}$ac_res" >&6; }
12886if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012887 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889_ACEOF
12890 break
12891fi
12892done
12893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012894
12895
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897do
12898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12912#define $ac_func innocuous_$ac_func
12913
12914/* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char $ac_func (); below.
12916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917 <limits.h> exists even on freestanding compilers. */
12918
12919#ifdef __STDC__
12920# include <limits.h>
12921#else
12922# include <assert.h>
12923#endif
12924
12925#undef $ac_func
12926
12927/* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12930#ifdef __cplusplus
12931extern "C"
12932#endif
12933char $ac_func ();
12934/* The GNU C library defines this for functions which it implements
12935 to always fail with ENOSYS. Some functions are actually named
12936 something starting with __ and the normal name is an alias. */
12937#if defined __stub_$ac_func || defined __stub___$ac_func
12938choke me
12939#endif
12940
12941int
12942main ()
12943{
12944return $ac_func ();
12945 ;
12946 return 0;
12947}
12948_ACEOF
12949rm -f conftest.$ac_objext conftest$ac_exeext
12950if { (ac_try="$ac_link"
12951case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954esac
12955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 eval "$as_ac_var=yes"
12984else
12985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 eval "$as_ac_var=no"
12989fi
12990
12991rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12993fi
12994ac_res=`eval echo '${'$as_ac_var'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996echo "${ECHO_T}$ac_res" >&6; }
12997if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012998 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013000_ACEOF
13001
13002fi
13003done
13004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005
13006
13007
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013008for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013009do
13010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015else
13016 cat >conftest.$ac_ext <<_ACEOF
13017/* confdefs.h. */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h. */
13022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13024#define $ac_func innocuous_$ac_func
13025
13026/* System header to define __stub macros and hopefully few prototypes,
13027 which can conflict with char $ac_func (); below.
13028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029 <limits.h> exists even on freestanding compilers. */
13030
13031#ifdef __STDC__
13032# include <limits.h>
13033#else
13034# include <assert.h>
13035#endif
13036
13037#undef $ac_func
13038
13039/* Override any GCC internal prototype to avoid an error.
13040 Use char because int might match the return type of a GCC
13041 builtin and then its argument prototype would still apply. */
13042#ifdef __cplusplus
13043extern "C"
13044#endif
13045char $ac_func ();
13046/* The GNU C library defines this for functions which it implements
13047 to always fail with ENOSYS. Some functions are actually named
13048 something starting with __ and the normal name is an alias. */
13049#if defined __stub_$ac_func || defined __stub___$ac_func
13050choke me
13051#endif
13052
13053int
13054main ()
13055{
13056return $ac_func ();
13057 ;
13058 return 0;
13059}
13060_ACEOF
13061rm -f conftest.$ac_objext conftest$ac_exeext
13062if { (ac_try="$ac_link"
13063case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066esac
13067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_link") 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13076 { (case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079esac
13080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_try") 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089esac
13090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 eval "$as_ac_var=yes"
13096else
13097 echo "$as_me: failed program was:" >&5
13098sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 eval "$as_ac_var=no"
13101fi
13102
13103rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105fi
13106ac_res=`eval echo '${'$as_ac_var'}'`
13107 { echo "$as_me:$LINENO: result: $ac_res" >&5
13108echo "${ECHO_T}$ac_res" >&6; }
13109if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013110 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013112_ACEOF
13113
13114fi
13115done
13116
13117
Douglas Gregor01746742009-05-11 18:05:52 +000013118
Reid Spencer7931a782004-12-27 06:15:02 +000013119if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013120 LLVMGCC="llvm-gcc${EXEEXT}"
13121 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013122 LLVMGCCCOMMAND="$LLVMGCC"
13123 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013124 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13125
13126 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13127
Reid Spencerc84492c2005-06-02 22:34:49 +000013128 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13129set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132if test "${ac_cv_path_LLVMGCC+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013134else
13135 case $LLVMGCC in
13136 [\\/]* | ?:[\\/]*)
13137 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13138 ;;
13139 *)
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141for as_dir in $PATH
13142do
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 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 +000013147 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013149 break 2
13150 fi
13151done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013152done
Reid Spencera773bd52006-08-04 18:18:08 +000013153IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013154
Reid Spencer59473af2004-12-25 07:31:29 +000013155 ;;
13156esac
13157fi
13158LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013159if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013160 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13161echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163 { echo "$as_me:$LINENO: result: no" >&5
13164echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013165fi
13166
Reid Spencera773bd52006-08-04 18:18:08 +000013167
Reid Spencerc84492c2005-06-02 22:34:49 +000013168 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13169set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172if test "${ac_cv_path_LLVMGXX+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013174else
13175 case $LLVMGXX in
13176 [\\/]* | ?:[\\/]*)
13177 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13178 ;;
13179 *)
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $PATH
13182do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 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 +000013187 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013189 break 2
13190 fi
13191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192done
Reid Spencera773bd52006-08-04 18:18:08 +000013193IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013194
Reid Spencer59473af2004-12-25 07:31:29 +000013195 ;;
13196esac
13197fi
13198LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013199if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13201echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203 { echo "$as_me:$LINENO: result: no" >&5
13204echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013205fi
13206
Reid Spencera773bd52006-08-04 18:18:08 +000013207
Reid Spencer59473af2004-12-25 07:31:29 +000013208else
Devang Patel5d28b882007-12-04 22:54:47 +000013209 if test -z "$LLVMGCC"; then
13210 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013211 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013212 fi
13213 if test -z "$LLVMGXX"; then
13214 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013215 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013216 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013217
Reid Spencer59473af2004-12-25 07:31:29 +000013218 LLVMGCC=$LLVMGCC
13219
13220 LLVMGXX=$LLVMGXX
13221
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013222 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13223
13224 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13225
Reid Spencer59473af2004-12-25 07:31:29 +000013226fi
13227
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013228
Daniel Dunbar98515672010-02-23 10:00:49 +000013229# Check whether --with-llvmcc was given.
13230if test "${with_llvmcc+set}" = set; then
13231 withval=$with_llvmcc;
13232else
13233 with_llvmcc=check
13234fi
13235
13236{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13237echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13238if test "$with_llvmcc" != "check"; then
13239 if (test "$with_llvmcc" != "llvm-gcc" &&
13240 test "$with_llvmcc" != "clang" &&
13241 test "$with_llvmcc" != "none"); then
13242 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13243echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13244 { (exit 1); exit 1; }; }
13245 fi
13246 WITH_LLVMCC="$with_llvmcc"
13247elif test -n "$LLVMGCC"; then
13248 WITH_LLVMCC=llvm-gcc
13249elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13250 WITH_LLVMCC=clang
13251else
13252 WITH_LLVMCC=none
13253fi
13254{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13255echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13256LLVMCC_OPTION=$WITH_LLVMCC
13257
13258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13260echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013261
Reid Spencer86901802004-12-08 23:07:27 +000013262ICC=no
13263IXX=no
13264case $CC in
13265 icc*|icpc*)
13266 ICC=yes
13267 IXX=yes
13268 ;;
13269 *)
13270 ;;
13271esac
13272
Duraid Madina937c60a2006-02-15 07:57:42 +000013273if test "$GCC" != "yes" && test "$ICC" != "yes"
13274then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13276echo "$as_me: error: gcc|icc required but not found" >&2;}
13277 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013278fi
13279
13280if test "$GXX" != "yes" && test "$IXX" != "yes"
13281then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13283echo "$as_me: error: g++|icc required but not found" >&2;}
13284 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013285fi
13286
Reid Spencer86901802004-12-08 23:07:27 +000013287if test "$GCC" = "yes"
13288then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013289 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013290#if !defined(__GNUC__) || __GNUC__ < 3
13291#error Unsupported GCC version
13292#endif
13293
13294_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295rm -f conftest.$ac_objext
13296if { (ac_try="$ac_compile"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compile") 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13310 { (case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313esac
13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_try") 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323esac
13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13335echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13336 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338
Chris Lattner399c7c72008-02-05 19:43:53 +000013339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013340fi
13341
13342if test -z "$llvm_cv_gnu_make_command"
13343then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13345echo "$as_me: error: GNU Make required but not found" >&2;}
13346 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013347fi
13348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349{ echo "$as_me:$LINENO: result: ok" >&5
13350echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013352{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13353echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013354NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13355
13356NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13359echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013360
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362
13363{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13364echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13365if test "${ac_cv_lib_m_sin+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013367else
13368 ac_check_lib_save_LIBS=$LIBS
13369LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370cat >conftest.$ac_ext <<_ACEOF
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013375/* end confdefs.h. */
13376
Reid Spencera773bd52006-08-04 18:18:08 +000013377/* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013380#ifdef __cplusplus
13381extern "C"
13382#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013383char sin ();
13384int
13385main ()
13386{
Reid Spencera773bd52006-08-04 18:18:08 +000013387return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013388 ;
13389 return 0;
13390}
13391_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392rm -f conftest.$ac_objext conftest$ac_exeext
13393if { (ac_try="$ac_link"
13394case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407 { (case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013426 ac_cv_lib_m_sin=yes
13427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428 echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433
Bill Wendlingebcceee2009-04-18 11:20:33 +000013434rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013436LIBS=$ac_check_lib_save_LIBS
13437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13439echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13440if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013441 cat >>confdefs.h <<_ACEOF
13442#define HAVE_LIBM 1
13443_ACEOF
13444
13445 LIBS="-lm $LIBS"
13446
13447fi
13448
Jeff Cohen28783c32007-01-12 18:22:38 +000013449if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013450
13451{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13452echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13453if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013455else
13456 ac_check_lib_save_LIBS=$LIBS
13457LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013463/* end confdefs.h. */
13464
Reid Spencer48fdf912006-06-01 19:03:21 +000013465
Reid Spencer484fc8e2006-06-01 16:55:59 +000013466int
13467main ()
13468{
Reid Spencera773bd52006-08-04 18:18:08 +000013469return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013470 ;
13471 return 0;
13472}
13473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474rm -f conftest.$ac_objext conftest$ac_exeext
13475if { (ac_try="$ac_link"
13476case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492esac
13493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013508 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013510 echo "$as_me: failed program was:" >&5
13511sed 's/^/| /' conftest.$ac_ext >&5
13512
13513 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013515
Bill Wendlingebcceee2009-04-18 11:20:33 +000013516rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013517 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013518LIBS=$ac_check_lib_save_LIBS
13519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13521echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13522if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013523 cat >>confdefs.h <<_ACEOF
13524#define HAVE_LIBIMAGEHLP 1
13525_ACEOF
13526
13527 LIBS="-limagehlp $LIBS"
13528
13529fi
13530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531
13532{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13533echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13534if test "${ac_cv_lib_psapi_main+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013536else
13537 ac_check_lib_save_LIBS=$LIBS
13538LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013539cat >conftest.$ac_ext <<_ACEOF
13540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013544/* end confdefs.h. */
13545
Reid Spencer48fdf912006-06-01 19:03:21 +000013546
Reid Spencer484fc8e2006-06-01 16:55:59 +000013547int
13548main ()
13549{
Reid Spencera773bd52006-08-04 18:18:08 +000013550return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013551 ;
13552 return 0;
13553}
13554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555rm -f conftest.$ac_objext conftest$ac_exeext
13556if { (ac_try="$ac_link"
13557case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_link") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest$ac_exeext'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583esac
13584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013589 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
13594 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013596
Bill Wendlingebcceee2009-04-18 11:20:33 +000013597rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013599LIBS=$ac_check_lib_save_LIBS
13600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013601{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13602echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13603if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013604 cat >>confdefs.h <<_ACEOF
13605#define HAVE_LIBPSAPI 1
13606_ACEOF
13607
13608 LIBS="-lpsapi $LIBS"
13609
13610fi
13611
13612fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13615echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13616if test "${ac_cv_search_dlopen+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013618else
13619 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013626
Reid Spencera773bd52006-08-04 18:18:08 +000013627/* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013630#ifdef __cplusplus
13631extern "C"
13632#endif
John Criswell7a73b802003-06-30 21:59:07 +000013633char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013634int
13635main ()
13636{
Reid Spencera773bd52006-08-04 18:18:08 +000013637return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013638 ;
13639 return 0;
13640}
13641_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013642for ac_lib in '' dl; do
13643 if test -z "$ac_lib"; then
13644 ac_res="none required"
13645 else
13646 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013648 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649 rm -f conftest.$ac_objext conftest$ac_exeext
13650if { (ac_try="$ac_link"
13651case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654esac
13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_link") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664 { (case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest$ac_exeext'
13674 { (case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13677esac
13678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_try") 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013683 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013684else
13685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
13688
John Criswell7a73b802003-06-30 21:59:07 +000013689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013690
Bill Wendlingebcceee2009-04-18 11:20:33 +000013691rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013692 conftest$ac_exeext
13693 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013694 break
John Criswell7a73b802003-06-30 21:59:07 +000013695fi
Reid Spencera773bd52006-08-04 18:18:08 +000013696done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013697if test "${ac_cv_search_dlopen+set}" = set; then
13698 :
Reid Spencera773bd52006-08-04 18:18:08 +000013699else
13700 ac_cv_search_dlopen=no
13701fi
13702rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013703LIBS=$ac_func_search_save_LIBS
13704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013705{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13706echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013707ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013708if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711cat >>confdefs.h <<\_ACEOF
13712#define HAVE_DLOPEN 1
13713_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013714
13715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013716 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13717echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013718fi
13719
13720
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013721if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13723echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13724if test "${ac_cv_search_ffi_call+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013726else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013727 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013728cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013733/* end confdefs.h. */
13734
13735/* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13738#ifdef __cplusplus
13739extern "C"
13740#endif
13741char ffi_call ();
13742int
13743main ()
13744{
13745return ffi_call ();
13746 ;
13747 return 0;
13748}
13749_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013750for ac_lib in '' ffi; do
13751 if test -z "$ac_lib"; then
13752 ac_res="none required"
13753 else
13754 ac_res=-l$ac_lib
13755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13756 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013757 rm -f conftest.$ac_objext conftest$ac_exeext
13758if { (ac_try="$ac_link"
13759case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762esac
13763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_link") 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13772 { (case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13775esac
13776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_try") 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest$ac_exeext'
13782 { (case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013791 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013792else
13793 echo "$as_me: failed program was:" >&5
13794sed 's/^/| /' conftest.$ac_ext >&5
13795
13796
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013798
Bill Wendlingebcceee2009-04-18 11:20:33 +000013799rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013800 conftest$ac_exeext
13801 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013802 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013803fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013804done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013805if test "${ac_cv_search_ffi_call+set}" = set; then
13806 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013807else
13808 ac_cv_search_ffi_call=no
13809fi
13810rm conftest.$ac_ext
13811LIBS=$ac_func_search_save_LIBS
13812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13814echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013815ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013819cat >>confdefs.h <<\_ACEOF
13820#define HAVE_FFI_CALL 1
13821_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013822
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013823else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013824 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13825echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13826 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013827fi
13828
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013829fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13832echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13833if test "${ac_cv_search_mallinfo+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013835else
13836 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837cat >conftest.$ac_ext <<_ACEOF
13838/* confdefs.h. */
13839_ACEOF
13840cat confdefs.h >>conftest.$ac_ext
13841cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013843
Reid Spencera773bd52006-08-04 18:18:08 +000013844/* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013847#ifdef __cplusplus
13848extern "C"
13849#endif
John Criswell7a73b802003-06-30 21:59:07 +000013850char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013851int
13852main ()
13853{
Reid Spencera773bd52006-08-04 18:18:08 +000013854return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013855 ;
13856 return 0;
13857}
13858_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013859for ac_lib in '' malloc; do
13860 if test -z "$ac_lib"; then
13861 ac_res="none required"
13862 else
13863 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013865 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866 rm -f conftest.$ac_objext conftest$ac_exeext
13867if { (ac_try="$ac_link"
13868case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13871esac
13872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_link") 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894esac
13895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013900 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901else
13902 echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
13905
John Criswell7a73b802003-06-30 21:59:07 +000013906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907
Bill Wendlingebcceee2009-04-18 11:20:33 +000013908rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909 conftest$ac_exeext
13910 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013911 break
John Criswell7a73b802003-06-30 21:59:07 +000013912fi
Reid Spencera773bd52006-08-04 18:18:08 +000013913done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013914if test "${ac_cv_search_mallinfo+set}" = set; then
13915 :
Reid Spencera773bd52006-08-04 18:18:08 +000013916else
13917 ac_cv_search_mallinfo=no
13918fi
13919rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013920LIBS=$ac_func_search_save_LIBS
13921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013922{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13923echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013924ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013925if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928cat >>confdefs.h <<\_ACEOF
13929#define HAVE_MALLINFO 1
13930_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013931
13932fi
13933
13934
Reid Spencer0a262ba2005-08-24 10:07:20 +000013935if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936
13937{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13938echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13939if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013941else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013942 ac_check_lib_save_LIBS=$LIBS
13943LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013949/* end confdefs.h. */
13950
Reid Spencera773bd52006-08-04 18:18:08 +000013951/* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013954#ifdef __cplusplus
13955extern "C"
13956#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013957char pthread_mutex_init ();
13958int
13959main ()
13960{
Reid Spencera773bd52006-08-04 18:18:08 +000013961return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013962 ;
13963 return 0;
13964}
13965_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966rm -f conftest.$ac_objext conftest$ac_exeext
13967if { (ac_try="$ac_link"
13968case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971esac
13972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_link") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994esac
13995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014000 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002 echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007
Bill Wendlingebcceee2009-04-18 11:20:33 +000014008rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014009 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014010LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14013echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14014if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014015 cat >>confdefs.h <<_ACEOF
14016#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014017_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014018
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014019 LIBS="-lpthread $LIBS"
14020
Reid Spencer22177fe2005-07-12 15:24:20 +000014021fi
14022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14024echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14025if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014027else
14028 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029cat >conftest.$ac_ext <<_ACEOF
14030/* confdefs.h. */
14031_ACEOF
14032cat confdefs.h >>conftest.$ac_ext
14033cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014034/* end confdefs.h. */
14035
Reid Spencera773bd52006-08-04 18:18:08 +000014036/* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014039#ifdef __cplusplus
14040extern "C"
14041#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014042char pthread_mutex_lock ();
14043int
14044main ()
14045{
Reid Spencera773bd52006-08-04 18:18:08 +000014046return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014047 ;
14048 return 0;
14049}
14050_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014051for ac_lib in '' pthread; do
14052 if test -z "$ac_lib"; then
14053 ac_res="none required"
14054 else
14055 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014057 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058 rm -f conftest.$ac_objext conftest$ac_exeext
14059if { (ac_try="$ac_link"
14060case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14066 ac_status=$?
14067 grep -v '^ *+' conftest.er1 >conftest.err
14068 rm -f conftest.er1
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest$ac_exeext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014092 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093else
14094 echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097
Brian Gaeke5f268f72003-12-05 19:29:01 +000014098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014099
Bill Wendlingebcceee2009-04-18 11:20:33 +000014100rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014101 conftest$ac_exeext
14102 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014103 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014104fi
Reid Spencera773bd52006-08-04 18:18:08 +000014105done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14107 :
Reid Spencera773bd52006-08-04 18:18:08 +000014108else
14109 ac_cv_search_pthread_mutex_lock=no
14110fi
14111rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014112LIBS=$ac_func_search_save_LIBS
14113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14115echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014116ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120cat >>confdefs.h <<\_ACEOF
14121#define HAVE_PTHREAD_MUTEX_LOCK 1
14122_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014123
14124fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14127echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14128if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014130else
14131 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014137/* end confdefs.h. */
14138
14139/* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142#ifdef __cplusplus
14143extern "C"
14144#endif
14145char pthread_rwlock_init ();
14146int
14147main ()
14148{
14149return pthread_rwlock_init ();
14150 ;
14151 return 0;
14152}
14153_ACEOF
14154for ac_lib in '' pthread; do
14155 if test -z "$ac_lib"; then
14156 ac_res="none required"
14157 else
14158 ac_res=-l$ac_lib
14159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14160 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161 rm -f conftest.$ac_objext conftest$ac_exeext
14162if { (ac_try="$ac_link"
14163case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_link") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179esac
14180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014195 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014196else
14197 echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200
Owen Andersonde8aed22009-06-16 18:20:20 +000014201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014202
Owen Andersonde8aed22009-06-16 18:20:20 +000014203rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204 conftest$ac_exeext
14205 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014206 break
14207fi
14208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014209if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14210 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014211else
14212 ac_cv_search_pthread_rwlock_init=no
14213fi
14214rm conftest.$ac_ext
14215LIBS=$ac_func_search_save_LIBS
14216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14218echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014219ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223cat >>confdefs.h <<\_ACEOF
14224#define HAVE_PTHREAD_RWLOCK_INIT 1
14225_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014226
14227fi
14228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14230echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14231if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014233else
14234 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235cat >conftest.$ac_ext <<_ACEOF
14236/* confdefs.h. */
14237_ACEOF
14238cat confdefs.h >>conftest.$ac_ext
14239cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014240/* end confdefs.h. */
14241
14242/* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14245#ifdef __cplusplus
14246extern "C"
14247#endif
14248char pthread_getspecific ();
14249int
14250main ()
14251{
14252return pthread_getspecific ();
14253 ;
14254 return 0;
14255}
14256_ACEOF
14257for ac_lib in '' pthread; do
14258 if test -z "$ac_lib"; then
14259 ac_res="none required"
14260 else
14261 ac_res=-l$ac_lib
14262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14263 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264 rm -f conftest.$ac_objext conftest$ac_exeext
14265if { (ac_try="$ac_link"
14266case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14269esac
14270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_link") 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14279 { (case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282esac
14283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_try") 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_try") 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014298 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014299else
14300 echo "$as_me: failed program was:" >&5
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
14303
Owen Anderson27fcfe12009-06-25 23:10:26 +000014304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014305
Owen Anderson27fcfe12009-06-25 23:10:26 +000014306rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307 conftest$ac_exeext
14308 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014309 break
14310fi
14311done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014312if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14313 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014314else
14315 ac_cv_search_pthread_getspecific=no
14316fi
14317rm conftest.$ac_ext
14318LIBS=$ac_func_search_save_LIBS
14319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014320{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14321echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014322ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326cat >>confdefs.h <<\_ACEOF
14327#define HAVE_PTHREAD_GETSPECIFIC 1
14328_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014329
14330fi
14331
Reid Spencer0a262ba2005-08-24 10:07:20 +000014332fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014333
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014334
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014335# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014337 withval=$with_udis86;
14338 USE_UDIS86=1
14339
14340 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014341 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014342 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14343 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344
14345{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14346echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14347if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014349else
14350 ac_check_lib_save_LIBS=$LIBS
14351LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352cat >conftest.$ac_ext <<_ACEOF
14353/* confdefs.h. */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014357/* end confdefs.h. */
14358
14359/* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362#ifdef __cplusplus
14363extern "C"
14364#endif
14365char ud_init ();
14366int
14367main ()
14368{
14369return ud_init ();
14370 ;
14371 return 0;
14372}
14373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014374rm -f conftest.$ac_objext conftest$ac_exeext
14375if { (ac_try="$ac_link"
14376case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379esac
14380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_link") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
14393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_try") 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest$ac_exeext'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402esac
14403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014408 ac_cv_lib_udis86_ud_init=yes
14409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410 echo "$as_me: failed program was:" >&5
14411sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014415
Bill Wendlingebcceee2009-04-18 11:20:33 +000014416rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014418LIBS=$ac_check_lib_save_LIBS
14419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014420{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14421echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14422if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014423 cat >>confdefs.h <<_ACEOF
14424#define HAVE_LIBUDIS86 1
14425_ACEOF
14426
14427 LIBS="-ludis86 $LIBS"
14428
14429else
14430
14431 echo "Error! You need to have libudis86 around."
14432 exit -1
14433
14434fi
14435
14436
14437else
14438 USE_UDIS86=0
14439
14440fi
14441
14442
14443cat >>confdefs.h <<_ACEOF
14444#define USE_UDIS86 $USE_UDIS86
14445_ACEOF
14446
14447
14448
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014449# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014450if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014451 withval=$with_oprofile;
14452 USE_OPROFILE=1
14453
14454 case "$withval" in
14455 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014456 no) llvm_cv_oppath=
14457 USE_OPROFILE=0
14458 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014459 *) llvm_cv_oppath="${withval}/lib/oprofile"
14460 CPPFLAGS="-I${withval}/include";;
14461 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014462 if test -n "$llvm_cv_oppath" ; then
14463 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14465echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14466if test "${ac_cv_search_bfd_init+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014468else
14469 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014475/* end confdefs.h. */
14476
14477/* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14480#ifdef __cplusplus
14481extern "C"
14482#endif
14483char bfd_init ();
14484int
14485main ()
14486{
14487return bfd_init ();
14488 ;
14489 return 0;
14490}
14491_ACEOF
14492for ac_lib in '' bfd; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14495 else
14496 ac_res=-l$ac_lib
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14498 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014499 rm -f conftest.$ac_objext conftest$ac_exeext
14500if { (ac_try="$ac_link"
14501case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14504esac
14505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517esac
14518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014533 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534else
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014540
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014541rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542 conftest$ac_exeext
14543 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014544 break
14545fi
14546done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014547if test "${ac_cv_search_bfd_init+set}" = set; then
14548 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014549else
14550 ac_cv_search_bfd_init=no
14551fi
14552rm conftest.$ac_ext
14553LIBS=$ac_func_search_save_LIBS
14554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14556echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014557ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14560
14561fi
14562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14564echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14565if test "${ac_cv_search_op_open_agent+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014567else
14568 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014574/* end confdefs.h. */
14575
14576/* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14579#ifdef __cplusplus
14580extern "C"
14581#endif
14582char op_open_agent ();
14583int
14584main ()
14585{
14586return op_open_agent ();
14587 ;
14588 return 0;
14589}
14590_ACEOF
14591for ac_lib in '' opagent; do
14592 if test -z "$ac_lib"; then
14593 ac_res="none required"
14594 else
14595 ac_res=-l$ac_lib
14596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14597 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014598 rm -f conftest.$ac_objext conftest$ac_exeext
14599if { (ac_try="$ac_link"
14600case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603esac
14604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_link") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14613 { (case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616esac
14617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_try") 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try='test -s conftest$ac_exeext'
14623 { (case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014632 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014633else
14634 echo "$as_me: failed program was:" >&5
14635sed 's/^/| /' conftest.$ac_ext >&5
14636
14637
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014639
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014640rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014641 conftest$ac_exeext
14642 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014643 break
14644fi
14645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014646if test "${ac_cv_search_op_open_agent+set}" = set; then
14647 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014648else
14649 ac_cv_search_op_open_agent=no
14650fi
14651rm conftest.$ac_ext
14652LIBS=$ac_func_search_save_LIBS
14653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014654{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14655echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014656ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014657if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14659
14660else
14661
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014662 echo "Error! You need to have libopagent around."
14663 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014664
14665fi
14666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014667 if test "${ac_cv_header_opagent_h+set}" = set; then
14668 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14669echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14670if test "${ac_cv_header_opagent_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672fi
14673{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14674echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14675else
14676 # Is the header compilable?
14677{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14678echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14679cat >conftest.$ac_ext <<_ACEOF
14680/* confdefs.h. */
14681_ACEOF
14682cat confdefs.h >>conftest.$ac_ext
14683cat >>conftest.$ac_ext <<_ACEOF
14684/* end confdefs.h. */
14685$ac_includes_default
14686#include <opagent.h>
14687_ACEOF
14688rm -f conftest.$ac_objext
14689if { (ac_try="$ac_compile"
14690case "(($ac_try" in
14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692 *) ac_try_echo=$ac_try;;
14693esac
14694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695 (eval "$ac_compile") 2>conftest.er1
14696 ac_status=$?
14697 grep -v '^ *+' conftest.er1 >conftest.err
14698 rm -f conftest.er1
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
14707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest.$ac_objext'
14713 { (case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716esac
14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_try") 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_header_compiler=yes
14723else
14724 echo "$as_me: failed program was:" >&5
14725sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014727 ac_header_compiler=no
14728fi
14729
14730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732echo "${ECHO_T}$ac_header_compiler" >&6; }
14733
14734# Is the header present?
14735{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14736echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14737cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
14742/* end confdefs.h. */
14743#include <opagent.h>
14744_ACEOF
14745if { (ac_try="$ac_cpp conftest.$ac_ext"
14746case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14749esac
14750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14752 ac_status=$?
14753 grep -v '^ *+' conftest.er1 >conftest.err
14754 rm -f conftest.er1
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } >/dev/null; then
14758 if test -s conftest.err; then
14759 ac_cpp_err=$ac_c_preproc_warn_flag
14760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14761 else
14762 ac_cpp_err=
14763 fi
14764else
14765 ac_cpp_err=yes
14766fi
14767if test -z "$ac_cpp_err"; then
14768 ac_header_preproc=yes
14769else
14770 echo "$as_me: failed program was:" >&5
14771sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_header_preproc=no
14774fi
14775
14776rm -f conftest.err conftest.$ac_ext
14777{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14778echo "${ECHO_T}$ac_header_preproc" >&6; }
14779
14780# So? What about this header?
14781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14782 yes:no: )
14783 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14784echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14786echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14787 ac_header_preproc=yes
14788 ;;
14789 no:yes:* )
14790 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14791echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14793echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14795echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14797echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14799echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14801echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14802 ( cat <<\_ASBOX
14803## ----------------------------------- ##
14804## Report this to llvmbugs@cs.uiuc.edu ##
14805## ----------------------------------- ##
14806_ASBOX
14807 ) | sed "s/^/$as_me: WARNING: /" >&2
14808 ;;
14809esac
14810{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14811echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14812if test "${ac_cv_header_opagent_h+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
14815 ac_cv_header_opagent_h=$ac_header_preproc
14816fi
14817{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14818echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14819
14820fi
14821if test $ac_cv_header_opagent_h = yes; then
14822 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014823else
14824
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014825 echo "Error! You need to have opagent.h around."
14826 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014827
14828fi
14829
14830
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014831 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014832
14833else
14834
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014835 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014836
14837
14838fi
14839
14840
14841cat >>confdefs.h <<_ACEOF
14842#define USE_OPROFILE $USE_OPROFILE
14843_ACEOF
14844
14845
14846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014847
14848
14849
14850
14851
Reid Spencer59473af2004-12-25 07:31:29 +000014852ac_header_dirent=no
14853for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014854 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14855{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14856echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +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
Reid Spencer59473af2004-12-25 07:31:29 +000014865/* end confdefs.h. */
14866#include <sys/types.h>
14867#include <$ac_hdr>
14868
14869int
14870main ()
14871{
14872if ((DIR *) 0)
14873return 0;
14874 ;
14875 return 0;
14876}
14877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014878rm -f conftest.$ac_objext
14879if { (ac_try="$ac_compile"
14880case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893 { (case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14896esac
14897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_try") 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906esac
14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014912 eval "$as_ac_Header=yes"
14913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014919
Reid Spencera773bd52006-08-04 18:18:08 +000014920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014922ac_res=`eval echo '${'$as_ac_Header'}'`
14923 { echo "$as_me:$LINENO: result: $ac_res" >&5
14924echo "${ECHO_T}$ac_res" >&6; }
14925if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014926 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014927#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014928_ACEOF
14929
14930ac_header_dirent=$ac_hdr; break
14931fi
14932
14933done
14934# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14935if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14937echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14938if test "${ac_cv_search_opendir+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014940else
14941 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014942cat >conftest.$ac_ext <<_ACEOF
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014947/* end confdefs.h. */
14948
Reid Spencera773bd52006-08-04 18:18:08 +000014949/* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014952#ifdef __cplusplus
14953extern "C"
14954#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014955char opendir ();
14956int
14957main ()
14958{
Reid Spencera773bd52006-08-04 18:18:08 +000014959return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014960 ;
14961 return 0;
14962}
14963_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014964for ac_lib in '' dir; do
14965 if test -z "$ac_lib"; then
14966 ac_res="none required"
14967 else
14968 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014970 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014971 rm -f conftest.$ac_objext conftest$ac_exeext
14972if { (ac_try="$ac_link"
14973case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976esac
14977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989esac
14990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest$ac_exeext'
14996 { (case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
14999esac
15000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015005 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006else
15007 echo "$as_me: failed program was:" >&5
15008sed 's/^/| /' conftest.$ac_ext >&5
15009
15010
Reid Spencer59473af2004-12-25 07:31:29 +000015011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015012
Bill Wendlingebcceee2009-04-18 11:20:33 +000015013rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015014 conftest$ac_exeext
15015 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015016 break
Reid Spencer59473af2004-12-25 07:31:29 +000015017fi
Reid Spencera773bd52006-08-04 18:18:08 +000015018done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015019if test "${ac_cv_search_opendir+set}" = set; then
15020 :
Reid Spencera773bd52006-08-04 18:18:08 +000015021else
15022 ac_cv_search_opendir=no
15023fi
15024rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015025LIBS=$ac_func_search_save_LIBS
15026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015027{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15028echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015029ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015032
15033fi
15034
15035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15037echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15038if test "${ac_cv_search_opendir+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015040else
15041 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015042cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015047/* end confdefs.h. */
15048
Reid Spencera773bd52006-08-04 18:18:08 +000015049/* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015052#ifdef __cplusplus
15053extern "C"
15054#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015055char opendir ();
15056int
15057main ()
15058{
Reid Spencera773bd52006-08-04 18:18:08 +000015059return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015060 ;
15061 return 0;
15062}
15063_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015064for ac_lib in '' x; do
15065 if test -z "$ac_lib"; then
15066 ac_res="none required"
15067 else
15068 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015070 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015071 rm -f conftest.$ac_objext conftest$ac_exeext
15072if { (ac_try="$ac_link"
15073case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15076esac
15077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_link") 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089esac
15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099esac
15100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015105 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110
Reid Spencer59473af2004-12-25 07:31:29 +000015111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015112
Bill Wendlingebcceee2009-04-18 11:20:33 +000015113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015114 conftest$ac_exeext
15115 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015116 break
Reid Spencer59473af2004-12-25 07:31:29 +000015117fi
Reid Spencera773bd52006-08-04 18:18:08 +000015118done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015119if test "${ac_cv_search_opendir+set}" = set; then
15120 :
Reid Spencera773bd52006-08-04 18:18:08 +000015121else
15122 ac_cv_search_opendir=no
15123fi
15124rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015125LIBS=$ac_func_search_save_LIBS
15126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015127{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15128echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015129ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015130if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015132
15133fi
15134
15135fi
15136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015137{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15138echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15139if test "${ac_cv_header_mmap_anon+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015141else
15142 ac_ext=c
15143ac_cpp='$CPP $CPPFLAGS'
15144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148 cat >conftest.$ac_ext <<_ACEOF
15149/* confdefs.h. */
15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015153/* end confdefs.h. */
15154#include <sys/mman.h>
15155#include <unistd.h>
15156#include <fcntl.h>
15157int
15158main ()
15159{
15160mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15161 ;
15162 return 0;
15163}
15164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015165rm -f conftest.$ac_objext
15166if { (ac_try="$ac_compile"
15167case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15170esac
15171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_compile") 2>conftest.er1
15173 ac_status=$?
15174 grep -v '^ *+' conftest.er1 >conftest.err
15175 rm -f conftest.er1
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15183esac
15184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest.$ac_objext'
15190 { (case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15193esac
15194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_try") 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015199 ac_cv_header_mmap_anon=yes
15200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015201 echo "$as_me: failed program was:" >&5
15202sed 's/^/| /' conftest.$ac_ext >&5
15203
15204 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206
Reid Spencera773bd52006-08-04 18:18:08 +000015207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015208 ac_ext=c
15209ac_cpp='$CPP $CPPFLAGS'
15210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
15214
15215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015216{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15217echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015218if test "$ac_cv_header_mmap_anon" = yes; then
15219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015220cat >>confdefs.h <<\_ACEOF
15221#define HAVE_MMAP_ANONYMOUS 1
15222_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015223
15224fi
15225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015226{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15227echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15228if test "${ac_cv_header_stat_broken+set}" = set; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015231 cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h. */
15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015236/* end confdefs.h. */
15237#include <sys/types.h>
15238#include <sys/stat.h>
15239
Reid Spencera773bd52006-08-04 18:18:08 +000015240#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241# if S_ISBLK (S_IFDIR)
15242You lose.
15243# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015244#endif
15245
Reid Spencera773bd52006-08-04 18:18:08 +000015246#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015247# if S_ISBLK (S_IFCHR)
15248You lose.
15249# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015250#endif
15251
Reid Spencera773bd52006-08-04 18:18:08 +000015252#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253# if S_ISLNK (S_IFREG)
15254You lose.
15255# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015256#endif
15257
Reid Spencera773bd52006-08-04 18:18:08 +000015258#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259# if S_ISSOCK (S_IFREG)
15260You lose.
15261# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015262#endif
15263
15264_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015267 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015268else
15269 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271rm -f conftest*
15272
Reid Spencer59473af2004-12-25 07:31:29 +000015273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015274{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15275echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015276if test $ac_cv_header_stat_broken = yes; then
15277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278cat >>confdefs.h <<\_ACEOF
15279#define STAT_MACROS_BROKEN 1
15280_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015281
15282fi
15283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15285echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15286if test "${ac_cv_header_stdc+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289 cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015295#include <stdlib.h>
15296#include <stdarg.h>
15297#include <string.h>
15298#include <float.h>
15299
John Criswell0c38eaf2003-09-10 15:17:25 +000015300int
15301main ()
15302{
15303
15304 ;
15305 return 0;
15306}
John Criswell7a73b802003-06-30 21:59:07 +000015307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015308rm -f conftest.$ac_objext
15309if { (ac_try="$ac_compile"
15310case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313esac
15314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_compile") 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
15327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015342 ac_cv_header_stdc=yes
15343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015344 echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015349
Reid Spencera773bd52006-08-04 18:18:08 +000015350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015351
15352if test $ac_cv_header_stdc = yes; then
15353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015360#include <string.h>
15361
15362_ACEOF
15363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015364 $EGREP "memchr" >/dev/null 2>&1; then
15365 :
John Criswell7a73b802003-06-30 21:59:07 +000015366else
15367 ac_cv_header_stdc=no
15368fi
15369rm -f conftest*
15370
15371fi
15372
15373if test $ac_cv_header_stdc = yes; then
15374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015375 cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015381#include <stdlib.h>
15382
15383_ACEOF
15384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015385 $EGREP "free" >/dev/null 2>&1; then
15386 :
John Criswell7a73b802003-06-30 21:59:07 +000015387else
15388 ac_cv_header_stdc=no
15389fi
15390rm -f conftest*
15391
15392fi
15393
15394if test $ac_cv_header_stdc = yes; then
15395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015396 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015397 :
15398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399 cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015405#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015406#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015407#if ((' ' & 0x0FF) == 0x020)
15408# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15409# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15410#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015411# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015412 (('a' <= (c) && (c) <= 'i') \
15413 || ('j' <= (c) && (c) <= 'r') \
15414 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015415# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15416#endif
15417
15418#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15419int
15420main ()
15421{
15422 int i;
15423 for (i = 0; i < 256; i++)
15424 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015425 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015426 return 2;
15427 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015428}
15429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015430rm -f conftest$ac_exeext
15431if { (ac_try="$ac_link"
15432case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435esac
15436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_link") 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 :
John Criswell7a73b802003-06-30 21:59:07 +000015451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015452 echo "$as_me: program exited with status $ac_status" >&5
15453echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456( exit $ac_status )
15457ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015459rm -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 +000015460fi
15461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015462
John Criswell7a73b802003-06-30 21:59:07 +000015463fi
15464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015465{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15466echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015467if test $ac_cv_header_stdc = yes; then
15468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469cat >>confdefs.h <<\_ACEOF
15470#define STDC_HEADERS 1
15471_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015472
15473fi
15474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15476echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15477if test "${ac_cv_header_sys_wait_h+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015486#include <sys/types.h>
15487#include <sys/wait.h>
15488#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015489# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015490#endif
15491#ifndef WIFEXITED
15492# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15493#endif
15494
John Criswell7a73b802003-06-30 21:59:07 +000015495int
15496main ()
15497{
15498 int s;
15499 wait (&s);
15500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15501 ;
15502 return 0;
15503}
15504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015505rm -f conftest.$ac_objext
15506if { (ac_try="$ac_compile"
15507case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_compile") 2>conftest.er1
15513 ac_status=$?
15514 grep -v '^ *+' conftest.er1 >conftest.err
15515 rm -f conftest.er1
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523esac
15524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15533esac
15534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_try") 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015539 ac_cv_header_sys_wait_h=yes
15540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541 echo "$as_me: failed program was:" >&5
15542sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015546
Reid Spencera773bd52006-08-04 18:18:08 +000015547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015549{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15550echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015551if test $ac_cv_header_sys_wait_h = yes; then
15552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015553cat >>confdefs.h <<\_ACEOF
15554#define HAVE_SYS_WAIT_H 1
15555_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015556
15557fi
15558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015559{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15560echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15561if test "${ac_cv_header_time+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015564 cat >conftest.$ac_ext <<_ACEOF
15565/* confdefs.h. */
15566_ACEOF
15567cat confdefs.h >>conftest.$ac_ext
15568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015569/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015570#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015571#include <sys/time.h>
15572#include <time.h>
15573
15574int
15575main ()
15576{
15577if ((struct tm *) 0)
15578return 0;
15579 ;
15580 return 0;
15581}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015583rm -f conftest.$ac_objext
15584if { (ac_try="$ac_compile"
15585case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588esac
15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_compile") 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598 { (case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601esac
15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015617 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015624
Reid Spencera773bd52006-08-04 18:18:08 +000015625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015627{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15628echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015629if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015631cat >>confdefs.h <<\_ACEOF
15632#define TIME_WITH_SYS_TIME 1
15633_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015634
15635fi
15636
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015638
15639
15640
15641
15642
15643
Reid Spencer59473af2004-12-25 07:31:29 +000015644for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015645do
15646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15652fi
15653ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655echo "${ECHO_T}$ac_res" >&6; }
15656else
15657 # Is the header compilable?
15658{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660cat >conftest.$ac_ext <<_ACEOF
15661/* confdefs.h. */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h. */
15666$ac_includes_default
15667#include <$ac_header>
15668_ACEOF
15669rm -f conftest.$ac_objext
15670if { (ac_try="$ac_compile"
15671case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674esac
15675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_compile") 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684 { (case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687esac
15688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_try") 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest.$ac_objext'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_header_compiler=yes
15704else
15705 echo "$as_me: failed program was:" >&5
15706sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 ac_header_compiler=no
15709fi
15710
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713echo "${ECHO_T}$ac_header_compiler" >&6; }
15714
15715# Is the header present?
15716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718cat >conftest.$ac_ext <<_ACEOF
15719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
15724#include <$ac_header>
15725_ACEOF
15726if { (ac_try="$ac_cpp conftest.$ac_ext"
15727case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730esac
15731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } >/dev/null; then
15739 if test -s conftest.err; then
15740 ac_cpp_err=$ac_c_preproc_warn_flag
15741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742 else
15743 ac_cpp_err=
15744 fi
15745else
15746 ac_cpp_err=yes
15747fi
15748if test -z "$ac_cpp_err"; then
15749 ac_header_preproc=yes
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_header_preproc=no
15755fi
15756
15757rm -f conftest.err conftest.$ac_ext
15758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759echo "${ECHO_T}$ac_header_preproc" >&6; }
15760
15761# So? What about this header?
15762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763 yes:no: )
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768 ac_header_preproc=yes
15769 ;;
15770 no:yes:* )
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783 ( cat <<\_ASBOX
15784## ----------------------------------- ##
15785## Report this to llvmbugs@cs.uiuc.edu ##
15786## ----------------------------------- ##
15787_ASBOX
15788 ) | sed "s/^/$as_me: WARNING: /" >&2
15789 ;;
15790esac
15791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795else
15796 eval "$as_ac_Header=\$ac_header_preproc"
15797fi
15798ac_res=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800echo "${ECHO_T}$ac_res" >&6; }
15801
15802fi
15803if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015804 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015806_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015807
15808fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015809
Reid Spencer59473af2004-12-25 07:31:29 +000015810done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015812
15813
15814
15815
15816
15817
Douglas Gregor071d73d2009-05-18 17:21:34 +000015818for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015819do
15820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826fi
15827ac_res=`eval echo '${'$as_ac_Header'}'`
15828 { echo "$as_me:$LINENO: result: $ac_res" >&5
15829echo "${ECHO_T}$ac_res" >&6; }
15830else
15831 # Is the header compilable?
15832{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15834cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h. */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h. */
15840$ac_includes_default
15841#include <$ac_header>
15842_ACEOF
15843rm -f conftest.$ac_objext
15844if { (ac_try="$ac_compile"
15845case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848esac
15849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858 { (case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_try") 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest.$ac_objext'
15868 { (case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_try") 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_header_compiler=yes
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 ac_header_compiler=no
15883fi
15884
15885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15887echo "${ECHO_T}$ac_header_compiler" >&6; }
15888
15889# Is the header present?
15890{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15892cat >conftest.$ac_ext <<_ACEOF
15893/* confdefs.h. */
15894_ACEOF
15895cat confdefs.h >>conftest.$ac_ext
15896cat >>conftest.$ac_ext <<_ACEOF
15897/* end confdefs.h. */
15898#include <$ac_header>
15899_ACEOF
15900if { (ac_try="$ac_cpp conftest.$ac_ext"
15901case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904esac
15905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } >/dev/null; then
15913 if test -s conftest.err; then
15914 ac_cpp_err=$ac_c_preproc_warn_flag
15915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15916 else
15917 ac_cpp_err=
15918 fi
15919else
15920 ac_cpp_err=yes
15921fi
15922if test -z "$ac_cpp_err"; then
15923 ac_header_preproc=yes
15924else
15925 echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 ac_header_preproc=no
15929fi
15930
15931rm -f conftest.err conftest.$ac_ext
15932{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15933echo "${ECHO_T}$ac_header_preproc" >&6; }
15934
15935# So? What about this header?
15936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15937 yes:no: )
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15942 ac_header_preproc=yes
15943 ;;
15944 no:yes:* )
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15957 ( cat <<\_ASBOX
15958## ----------------------------------- ##
15959## Report this to llvmbugs@cs.uiuc.edu ##
15960## ----------------------------------- ##
15961_ASBOX
15962 ) | sed "s/^/$as_me: WARNING: /" >&2
15963 ;;
15964esac
15965{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15969else
15970 eval "$as_ac_Header=\$ac_header_preproc"
15971fi
15972ac_res=`eval echo '${'$as_ac_Header'}'`
15973 { echo "$as_me:$LINENO: result: $ac_res" >&5
15974echo "${ECHO_T}$ac_res" >&6; }
15975
15976fi
15977if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015978 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015980_ACEOF
15981
15982fi
15983
15984done
15985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015986
15987
Douglas Gregor071d73d2009-05-18 17:21:34 +000015988for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015989do
15990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996fi
15997ac_res=`eval echo '${'$as_ac_Header'}'`
15998 { echo "$as_me:$LINENO: result: $ac_res" >&5
15999echo "${ECHO_T}$ac_res" >&6; }
16000else
16001 # Is the header compilable?
16002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16004cat >conftest.$ac_ext <<_ACEOF
16005/* confdefs.h. */
16006_ACEOF
16007cat confdefs.h >>conftest.$ac_ext
16008cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */
16010$ac_includes_default
16011#include <$ac_header>
16012_ACEOF
16013rm -f conftest.$ac_objext
16014if { (ac_try="$ac_compile"
16015case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16018esac
16019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_compile") 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16031esac
16032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest.$ac_objext'
16038 { (case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041esac
16042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_try") 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_header_compiler=yes
16048else
16049 echo "$as_me: failed program was:" >&5
16050sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_header_compiler=no
16053fi
16054
16055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16057echo "${ECHO_T}$ac_header_compiler" >&6; }
16058
16059# Is the header present?
16060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16062cat >conftest.$ac_ext <<_ACEOF
16063/* confdefs.h. */
16064_ACEOF
16065cat confdefs.h >>conftest.$ac_ext
16066cat >>conftest.$ac_ext <<_ACEOF
16067/* end confdefs.h. */
16068#include <$ac_header>
16069_ACEOF
16070if { (ac_try="$ac_cpp conftest.$ac_ext"
16071case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074esac
16075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev/null; then
16083 if test -s conftest.err; then
16084 ac_cpp_err=$ac_c_preproc_warn_flag
16085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16086 else
16087 ac_cpp_err=
16088 fi
16089else
16090 ac_cpp_err=yes
16091fi
16092if test -z "$ac_cpp_err"; then
16093 ac_header_preproc=yes
16094else
16095 echo "$as_me: failed program was:" >&5
16096sed 's/^/| /' conftest.$ac_ext >&5
16097
16098 ac_header_preproc=no
16099fi
16100
16101rm -f conftest.err conftest.$ac_ext
16102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16103echo "${ECHO_T}$ac_header_preproc" >&6; }
16104
16105# So? What about this header?
16106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16107 yes:no: )
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16112 ac_header_preproc=yes
16113 ;;
16114 no:yes:* )
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16127 ( cat <<\_ASBOX
16128## ----------------------------------- ##
16129## Report this to llvmbugs@cs.uiuc.edu ##
16130## ----------------------------------- ##
16131_ASBOX
16132 ) | sed "s/^/$as_me: WARNING: /" >&2
16133 ;;
16134esac
16135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16139else
16140 eval "$as_ac_Header=\$ac_header_preproc"
16141fi
16142ac_res=`eval echo '${'$as_ac_Header'}'`
16143 { echo "$as_me:$LINENO: result: $ac_res" >&5
16144echo "${ECHO_T}$ac_res" >&6; }
16145
16146fi
16147if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016150_ACEOF
16151
16152fi
16153
16154done
Reid Spencer59473af2004-12-25 07:31:29 +000016155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016156
16157
16158
16159
Reid Spencerbe3e4192007-08-17 05:45:26 +000016160for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016161do
16162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168fi
16169ac_res=`eval echo '${'$as_ac_Header'}'`
16170 { echo "$as_me:$LINENO: result: $ac_res" >&5
16171echo "${ECHO_T}$ac_res" >&6; }
16172else
16173 # Is the header compilable?
16174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16176cat >conftest.$ac_ext <<_ACEOF
16177/* confdefs.h. */
16178_ACEOF
16179cat confdefs.h >>conftest.$ac_ext
16180cat >>conftest.$ac_ext <<_ACEOF
16181/* end confdefs.h. */
16182$ac_includes_default
16183#include <$ac_header>
16184_ACEOF
16185rm -f conftest.$ac_objext
16186if { (ac_try="$ac_compile"
16187case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_compile") 2>conftest.er1
16193 ac_status=$?
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203esac
16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213esac
16214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_header_compiler=yes
16220else
16221 echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224 ac_header_compiler=no
16225fi
16226
16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16229echo "${ECHO_T}$ac_header_compiler" >&6; }
16230
16231# Is the header present?
16232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16234cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240#include <$ac_header>
16241_ACEOF
16242if { (ac_try="$ac_cpp conftest.$ac_ext"
16243case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } >/dev/null; then
16255 if test -s conftest.err; then
16256 ac_cpp_err=$ac_c_preproc_warn_flag
16257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16258 else
16259 ac_cpp_err=
16260 fi
16261else
16262 ac_cpp_err=yes
16263fi
16264if test -z "$ac_cpp_err"; then
16265 ac_header_preproc=yes
16266else
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 ac_header_preproc=no
16271fi
16272
16273rm -f conftest.err conftest.$ac_ext
16274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275echo "${ECHO_T}$ac_header_preproc" >&6; }
16276
16277# So? What about this header?
16278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16279 yes:no: )
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16284 ac_header_preproc=yes
16285 ;;
16286 no:yes:* )
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16299 ( cat <<\_ASBOX
16300## ----------------------------------- ##
16301## Report this to llvmbugs@cs.uiuc.edu ##
16302## ----------------------------------- ##
16303_ASBOX
16304 ) | sed "s/^/$as_me: WARNING: /" >&2
16305 ;;
16306esac
16307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311else
16312 eval "$as_ac_Header=\$ac_header_preproc"
16313fi
16314ac_res=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316echo "${ECHO_T}$ac_res" >&6; }
16317
16318fi
16319if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016322_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016323
16324fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016326done
16327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016328
16329
16330
16331
Douglas Gregor01746742009-05-11 18:05:52 +000016332for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016333do
16334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340fi
16341ac_res=`eval echo '${'$as_ac_Header'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343echo "${ECHO_T}$ac_res" >&6; }
16344else
16345 # Is the header compilable?
16346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16348cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354$ac_includes_default
16355#include <$ac_header>
16356_ACEOF
16357rm -f conftest.$ac_objext
16358if { (ac_try="$ac_compile"
16359case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_compile") 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16385esac
16386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_try") 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_header_compiler=yes
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 ac_header_compiler=no
16397fi
16398
16399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16401echo "${ECHO_T}$ac_header_compiler" >&6; }
16402
16403# Is the header present?
16404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16406cat >conftest.$ac_ext <<_ACEOF
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412#include <$ac_header>
16413_ACEOF
16414if { (ac_try="$ac_cpp conftest.$ac_ext"
16415case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
16419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } >/dev/null; then
16427 if test -s conftest.err; then
16428 ac_cpp_err=$ac_c_preproc_warn_flag
16429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16430 else
16431 ac_cpp_err=
16432 fi
16433else
16434 ac_cpp_err=yes
16435fi
16436if test -z "$ac_cpp_err"; then
16437 ac_header_preproc=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_header_preproc=no
16443fi
16444
16445rm -f conftest.err conftest.$ac_ext
16446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447echo "${ECHO_T}$ac_header_preproc" >&6; }
16448
16449# So? What about this header?
16450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 yes:no: )
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc=yes
16457 ;;
16458 no:yes:* )
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ( cat <<\_ASBOX
16472## ----------------------------------- ##
16473## Report this to llvmbugs@cs.uiuc.edu ##
16474## ----------------------------------- ##
16475_ASBOX
16476 ) | sed "s/^/$as_me: WARNING: /" >&2
16477 ;;
16478esac
16479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
16484 eval "$as_ac_Header=\$ac_header_preproc"
16485fi
16486ac_res=`eval echo '${'$as_ac_Header'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488echo "${ECHO_T}$ac_res" >&6; }
16489
16490fi
16491if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016492 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016494_ACEOF
16495
16496fi
16497
16498done
16499
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016500
16501for ac_header in valgrind/valgrind.h
16502do
16503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509fi
16510ac_res=`eval echo '${'$as_ac_Header'}'`
16511 { echo "$as_me:$LINENO: result: $ac_res" >&5
16512echo "${ECHO_T}$ac_res" >&6; }
16513else
16514 # Is the header compilable?
16515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16517cat >conftest.$ac_ext <<_ACEOF
16518/* confdefs.h. */
16519_ACEOF
16520cat confdefs.h >>conftest.$ac_ext
16521cat >>conftest.$ac_ext <<_ACEOF
16522/* end confdefs.h. */
16523$ac_includes_default
16524#include <$ac_header>
16525_ACEOF
16526rm -f conftest.$ac_objext
16527if { (ac_try="$ac_compile"
16528case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16531esac
16532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_compile") 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
16540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544esac
16545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest.$ac_objext'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554esac
16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_header_compiler=yes
16561else
16562 echo "$as_me: failed program was:" >&5
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
16565 ac_header_compiler=no
16566fi
16567
16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16570echo "${ECHO_T}$ac_header_compiler" >&6; }
16571
16572# Is the header present?
16573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16575cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581#include <$ac_header>
16582_ACEOF
16583if { (ac_try="$ac_cpp conftest.$ac_ext"
16584case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_c_preproc_warn_flag
16598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599 else
16600 ac_cpp_err=
16601 fi
16602else
16603 ac_cpp_err=yes
16604fi
16605if test -z "$ac_cpp_err"; then
16606 ac_header_preproc=yes
16607else
16608 echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_header_preproc=no
16612fi
16613
16614rm -f conftest.err conftest.$ac_ext
16615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16616echo "${ECHO_T}$ac_header_preproc" >&6; }
16617
16618# So? What about this header?
16619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16620 yes:no: )
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16625 ac_header_preproc=yes
16626 ;;
16627 no:yes:* )
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16640 ( cat <<\_ASBOX
16641## ----------------------------------- ##
16642## Report this to llvmbugs@cs.uiuc.edu ##
16643## ----------------------------------- ##
16644_ASBOX
16645 ) | sed "s/^/$as_me: WARNING: /" >&2
16646 ;;
16647esac
16648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652else
16653 eval "$as_ac_Header=\$ac_header_preproc"
16654fi
16655ac_res=`eval echo '${'$as_ac_Header'}'`
16656 { echo "$as_me:$LINENO: result: $ac_res" >&5
16657echo "${ECHO_T}$ac_res" >&6; }
16658
16659fi
16660if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h <<_ACEOF
16662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16663_ACEOF
16664
16665fi
16666
16667done
16668
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016669
16670for ac_header in fenv.h
16671do
16672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678fi
16679ac_res=`eval echo '${'$as_ac_Header'}'`
16680 { echo "$as_me:$LINENO: result: $ac_res" >&5
16681echo "${ECHO_T}$ac_res" >&6; }
16682else
16683 # Is the header compilable?
16684{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16686cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692$ac_includes_default
16693#include <$ac_header>
16694_ACEOF
16695rm -f conftest.$ac_objext
16696if { (ac_try="$ac_compile"
16697case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_header_compiler=yes
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ac_header_compiler=no
16735fi
16736
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739echo "${ECHO_T}$ac_header_compiler" >&6; }
16740
16741# Is the header present?
16742{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16744cat >conftest.$ac_ext <<_ACEOF
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750#include <$ac_header>
16751_ACEOF
16752if { (ac_try="$ac_cpp conftest.$ac_ext"
16753case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } >/dev/null; then
16765 if test -s conftest.err; then
16766 ac_cpp_err=$ac_c_preproc_warn_flag
16767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768 else
16769 ac_cpp_err=
16770 fi
16771else
16772 ac_cpp_err=yes
16773fi
16774if test -z "$ac_cpp_err"; then
16775 ac_header_preproc=yes
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ac_header_preproc=no
16781fi
16782
16783rm -f conftest.err conftest.$ac_ext
16784{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785echo "${ECHO_T}$ac_header_preproc" >&6; }
16786
16787# So? What about this header?
16788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16789 yes:no: )
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16794 ac_header_preproc=yes
16795 ;;
16796 no:yes:* )
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16800echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16804echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16809 ( cat <<\_ASBOX
16810## ----------------------------------- ##
16811## Report this to llvmbugs@cs.uiuc.edu ##
16812## ----------------------------------- ##
16813_ASBOX
16814 ) | sed "s/^/$as_me: WARNING: /" >&2
16815 ;;
16816esac
16817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821else
16822 eval "$as_ac_Header=\$ac_header_preproc"
16823fi
16824ac_res=`eval echo '${'$as_ac_Header'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826echo "${ECHO_T}$ac_res" >&6; }
16827
16828fi
16829if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832_ACEOF
16833
16834fi
16835
16836done
16837
Reid Spencer0a262ba2005-08-24 10:07:20 +000016838if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016839
16840for ac_header in pthread.h
16841do
16842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848fi
16849ac_res=`eval echo '${'$as_ac_Header'}'`
16850 { echo "$as_me:$LINENO: result: $ac_res" >&5
16851echo "${ECHO_T}$ac_res" >&6; }
16852else
16853 # Is the header compilable?
16854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16856cat >conftest.$ac_ext <<_ACEOF
16857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
16862$ac_includes_default
16863#include <$ac_header>
16864_ACEOF
16865rm -f conftest.$ac_objext
16866if { (ac_try="$ac_compile"
16867case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_compile") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16880 { (case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883esac
16884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_try") 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893esac
16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_header_compiler=yes
16900else
16901 echo "$as_me: failed program was:" >&5
16902sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 ac_header_compiler=no
16905fi
16906
16907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16909echo "${ECHO_T}$ac_header_compiler" >&6; }
16910
16911# Is the header present?
16912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16914cat >conftest.$ac_ext <<_ACEOF
16915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
16920#include <$ac_header>
16921_ACEOF
16922if { (ac_try="$ac_cpp conftest.$ac_ext"
16923case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926esac
16927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } >/dev/null; then
16935 if test -s conftest.err; then
16936 ac_cpp_err=$ac_c_preproc_warn_flag
16937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16938 else
16939 ac_cpp_err=
16940 fi
16941else
16942 ac_cpp_err=yes
16943fi
16944if test -z "$ac_cpp_err"; then
16945 ac_header_preproc=yes
16946else
16947 echo "$as_me: failed program was:" >&5
16948sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 ac_header_preproc=no
16951fi
16952
16953rm -f conftest.err conftest.$ac_ext
16954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16955echo "${ECHO_T}$ac_header_preproc" >&6; }
16956
16957# So? What about this header?
16958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16959 yes:no: )
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16964 ac_header_preproc=yes
16965 ;;
16966 no:yes:* )
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16979 ( cat <<\_ASBOX
16980## ----------------------------------- ##
16981## Report this to llvmbugs@cs.uiuc.edu ##
16982## ----------------------------------- ##
16983_ASBOX
16984 ) | sed "s/^/$as_me: WARNING: /" >&2
16985 ;;
16986esac
16987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991else
16992 eval "$as_ac_Header=\$ac_header_preproc"
16993fi
16994ac_res=`eval echo '${'$as_ac_Header'}'`
16995 { echo "$as_me:$LINENO: result: $ac_res" >&5
16996echo "${ECHO_T}$ac_res" >&6; }
16997
16998fi
16999if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017000 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017002_ACEOF
17003 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017004
17005else
17006 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017007
17008fi
17009
Reid Spencerbe3e4192007-08-17 05:45:26 +000017010done
Reid Spencer1000b732006-12-01 00:37:14 +000017011
17012else
17013 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017014
17015fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017016
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017017if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017018
17019
17020for ac_header in ffi.h ffi/ffi.h
17021do
17022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028fi
17029ac_res=`eval echo '${'$as_ac_Header'}'`
17030 { echo "$as_me:$LINENO: result: $ac_res" >&5
17031echo "${ECHO_T}$ac_res" >&6; }
17032else
17033 # Is the header compilable?
17034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17036cat >conftest.$ac_ext <<_ACEOF
17037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
17042$ac_includes_default
17043#include <$ac_header>
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (ac_try="$ac_compile"
17047case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050esac
17051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_compile") 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063esac
17064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest.$ac_objext'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_header_compiler=yes
17080else
17081 echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084 ac_header_compiler=no
17085fi
17086
17087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17088{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17089echo "${ECHO_T}$ac_header_compiler" >&6; }
17090
17091# Is the header present?
17092{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17094cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100#include <$ac_header>
17101_ACEOF
17102if { (ac_try="$ac_cpp conftest.$ac_ext"
17103case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17106esac
17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } >/dev/null; then
17115 if test -s conftest.err; then
17116 ac_cpp_err=$ac_c_preproc_warn_flag
17117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17118 else
17119 ac_cpp_err=
17120 fi
17121else
17122 ac_cpp_err=yes
17123fi
17124if test -z "$ac_cpp_err"; then
17125 ac_header_preproc=yes
17126else
17127 echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_header_preproc=no
17131fi
17132
17133rm -f conftest.err conftest.$ac_ext
17134{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17135echo "${ECHO_T}$ac_header_preproc" >&6; }
17136
17137# So? What about this header?
17138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17139 yes:no: )
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17144 ac_header_preproc=yes
17145 ;;
17146 no:yes:* )
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17159 ( cat <<\_ASBOX
17160## ----------------------------------- ##
17161## Report this to llvmbugs@cs.uiuc.edu ##
17162## ----------------------------------- ##
17163_ASBOX
17164 ) | sed "s/^/$as_me: WARNING: /" >&2
17165 ;;
17166esac
17167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171else
17172 eval "$as_ac_Header=\$ac_header_preproc"
17173fi
17174ac_res=`eval echo '${'$as_ac_Header'}'`
17175 { echo "$as_me:$LINENO: result: $ac_res" >&5
17176echo "${ECHO_T}$ac_res" >&6; }
17177
17178fi
17179if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017180 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017182_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017183
17184fi
17185
17186done
17187
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017188fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017189
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017190
Eric Christopher654dee42010-06-22 21:01:04 +000017191for ac_header in CrashReporterClient.h
17192do
17193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199fi
17200ac_res=`eval echo '${'$as_ac_Header'}'`
17201 { echo "$as_me:$LINENO: result: $ac_res" >&5
17202echo "${ECHO_T}$ac_res" >&6; }
17203else
17204 # Is the header compilable?
17205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17207cat >conftest.$ac_ext <<_ACEOF
17208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
17213$ac_includes_default
17214#include <$ac_header>
17215_ACEOF
17216rm -f conftest.$ac_objext
17217if { (ac_try="$ac_compile"
17218case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_compile") 2>conftest.er1
17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231 { (case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_try") 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; } &&
17240 { ac_try='test -s conftest.$ac_objext'
17241 { (case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244esac
17245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_try") 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 ac_header_compiler=yes
17251else
17252 echo "$as_me: failed program was:" >&5
17253sed 's/^/| /' conftest.$ac_ext >&5
17254
17255 ac_header_compiler=no
17256fi
17257
17258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17260echo "${ECHO_T}$ac_header_compiler" >&6; }
17261
17262# Is the header present?
17263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17265cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
17271#include <$ac_header>
17272_ACEOF
17273if { (ac_try="$ac_cpp conftest.$ac_ext"
17274case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17277esac
17278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } >/dev/null; then
17286 if test -s conftest.err; then
17287 ac_cpp_err=$ac_c_preproc_warn_flag
17288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17289 else
17290 ac_cpp_err=
17291 fi
17292else
17293 ac_cpp_err=yes
17294fi
17295if test -z "$ac_cpp_err"; then
17296 ac_header_preproc=yes
17297else
17298 echo "$as_me: failed program was:" >&5
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 ac_header_preproc=no
17302fi
17303
17304rm -f conftest.err conftest.$ac_ext
17305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306echo "${ECHO_T}$ac_header_preproc" >&6; }
17307
17308# So? What about this header?
17309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17310 yes:no: )
17311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17315 ac_header_preproc=yes
17316 ;;
17317 no:yes:* )
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17330 ( cat <<\_ASBOX
17331## ----------------------------------- ##
17332## Report this to llvmbugs@cs.uiuc.edu ##
17333## ----------------------------------- ##
17334_ASBOX
17335 ) | sed "s/^/$as_me: WARNING: /" >&2
17336 ;;
17337esac
17338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342else
17343 eval "$as_ac_Header=\$ac_header_preproc"
17344fi
17345ac_res=`eval echo '${'$as_ac_Header'}'`
17346 { echo "$as_me:$LINENO: result: $ac_res" >&5
17347echo "${ECHO_T}$ac_res" >&6; }
17348
17349fi
17350if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17353_ACEOF
17354
17355fi
17356
17357done
17358
17359
17360
Reid Spencer8085cff2005-01-16 02:58:39 +000017361
Torok Edwin871384f2010-01-26 08:50:50 +000017362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017363 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17364echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17365if test "${ac_cv_huge_val_sanity+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017367else
17368
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017369 ac_ext=cpp
17370ac_cpp='$CXXCPP $CPPFLAGS'
17371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017374
Eric Christopherc7718502010-03-02 05:06:54 +000017375 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017376 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017377 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017378 ac_cv_huge_val_sanity=yes
17379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017380 cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017385/* end confdefs.h. */
17386#include <math.h>
17387int
17388main ()
17389{
17390double x = HUGE_VAL; return x != x;
17391 ;
17392 return 0;
17393}
17394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017395rm -f conftest$ac_exeext
17396if { (ac_try="$ac_link"
17397case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_link") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017415 ac_cv_huge_val_sanity=yes
17416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017417 echo "$as_me: program exited with status $ac_status" >&5
17418echo "$as_me: failed program was:" >&5
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
17421( exit $ac_status )
17422ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017424rm -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 +000017425fi
17426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017427
Eric Christopherc7718502010-03-02 05:06:54 +000017428 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017429 ac_ext=c
17430ac_cpp='$CPP $CPPFLAGS'
17431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17433ac_compiler_gnu=$ac_cv_c_compiler_gnu
17434
17435
17436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017437{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17438echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017439 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17440
17441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017442{ echo "$as_me:$LINENO: checking for pid_t" >&5
17443echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17444if test "${ac_cv_type_pid_t+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446else
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453$ac_includes_default
17454typedef pid_t ac__type_new_;
17455int
17456main ()
17457{
17458if ((ac__type_new_ *) 0)
17459 return 0;
17460if (sizeof (ac__type_new_))
17461 return 0;
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext
17467if { (ac_try="$ac_compile"
17468case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_compile") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_try") 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest.$ac_objext'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17494esac
17495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_type_pid_t=yes
17501else
17502 echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017505 ac_cv_type_pid_t=no
17506fi
17507
17508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509fi
17510{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17511echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17512if test $ac_cv_type_pid_t = yes; then
17513 :
John Criswell7a73b802003-06-30 21:59:07 +000017514else
17515
17516cat >>confdefs.h <<_ACEOF
17517#define pid_t int
17518_ACEOF
17519
17520fi
17521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017522{ echo "$as_me:$LINENO: checking for size_t" >&5
17523echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17524if test "${ac_cv_type_size_t+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17526else
17527 cat >conftest.$ac_ext <<_ACEOF
17528/* confdefs.h. */
17529_ACEOF
17530cat confdefs.h >>conftest.$ac_ext
17531cat >>conftest.$ac_ext <<_ACEOF
17532/* end confdefs.h. */
17533$ac_includes_default
17534typedef size_t ac__type_new_;
17535int
17536main ()
17537{
17538if ((ac__type_new_ *) 0)
17539 return 0;
17540if (sizeof (ac__type_new_))
17541 return 0;
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext
17547if { (ac_try="$ac_compile"
17548case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17551esac
17552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574esac
17575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_type_size_t=yes
17581else
17582 echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017585 ac_cv_type_size_t=no
17586fi
17587
17588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589fi
17590{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17591echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17592if test $ac_cv_type_size_t = yes; then
17593 :
John Criswell7a73b802003-06-30 21:59:07 +000017594else
17595
17596cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017597#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017598_ACEOF
17599
17600fi
17601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017602
17603cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017604#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017605_ACEOF
17606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017607{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17608echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17609if test "${ac_cv_struct_tm+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017612 cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017617/* end confdefs.h. */
17618#include <sys/types.h>
17619#include <time.h>
17620
17621int
17622main ()
17623{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017624struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017625 ;
17626 return 0;
17627}
17628_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017629rm -f conftest.$ac_objext
17630if { (ac_try="$ac_compile"
17631case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17634esac
17635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_compile") 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647esac
17648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
17654 { (case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17657esac
17658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_try") 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017663 ac_cv_struct_tm=time.h
17664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017670
Reid Spencera773bd52006-08-04 18:18:08 +000017671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017673{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17674echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017675if test $ac_cv_struct_tm = sys/time.h; then
17676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677cat >>confdefs.h <<\_ACEOF
17678#define TM_IN_SYS_TIME 1
17679_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017680
17681fi
17682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017683{ echo "$as_me:$LINENO: checking for int64_t" >&5
17684echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17685if test "${ac_cv_type_int64_t+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17687else
17688 cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694$ac_includes_default
17695typedef int64_t ac__type_new_;
17696int
17697main ()
17698{
17699if ((ac__type_new_ *) 0)
17700 return 0;
17701if (sizeof (ac__type_new_))
17702 return 0;
17703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext
17708if { (ac_try="$ac_compile"
17709case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712esac
17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_compile") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest.$ac_objext'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_type_int64_t=yes
17742else
17743 echo "$as_me: failed program was:" >&5
17744sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_cv_type_int64_t=no
17747fi
17748
17749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750fi
17751{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17752echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17753if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017754
17755cat >>confdefs.h <<_ACEOF
17756#define HAVE_INT64_T 1
17757_ACEOF
17758
17759
17760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017761 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17762echo "$as_me: error: Type int64_t required but not found" >&2;}
17763 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017764fi
17765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017766{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17767echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17768if test "${ac_cv_type_uint64_t+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770else
17771 cat >conftest.$ac_ext <<_ACEOF
17772/* confdefs.h. */
17773_ACEOF
17774cat confdefs.h >>conftest.$ac_ext
17775cat >>conftest.$ac_ext <<_ACEOF
17776/* end confdefs.h. */
17777$ac_includes_default
17778typedef uint64_t ac__type_new_;
17779int
17780main ()
17781{
17782if ((ac__type_new_ *) 0)
17783 return 0;
17784if (sizeof (ac__type_new_))
17785 return 0;
17786 ;
17787 return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext
17791if { (ac_try="$ac_compile"
17792case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795esac
17796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808esac
17809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_type_uint64_t=yes
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 ac_cv_type_uint64_t=no
17830fi
17831
17832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833fi
17834{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17835echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17836if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017837
17838cat >>confdefs.h <<_ACEOF
17839#define HAVE_UINT64_T 1
17840_ACEOF
17841
17842
17843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017844 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17845echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17846if test "${ac_cv_type_u_int64_t+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848else
17849 cat >conftest.$ac_ext <<_ACEOF
17850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
17855$ac_includes_default
17856typedef u_int64_t ac__type_new_;
17857int
17858main ()
17859{
17860if ((ac__type_new_ *) 0)
17861 return 0;
17862if (sizeof (ac__type_new_))
17863 return 0;
17864 ;
17865 return 0;
17866}
17867_ACEOF
17868rm -f conftest.$ac_objext
17869if { (ac_try="$ac_compile"
17870case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873esac
17874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886esac
17887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896esac
17897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_type_u_int64_t=yes
17903else
17904 echo "$as_me: failed program was:" >&5
17905sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 ac_cv_type_u_int64_t=no
17908fi
17909
17910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911fi
17912{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17913echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17914if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017915
17916cat >>confdefs.h <<_ACEOF
17917#define HAVE_U_INT64_T 1
17918_ACEOF
17919
17920
Misha Brukmanceca9042004-09-02 23:02:30 +000017921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017922 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17923echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17924 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017925fi
17926
John Criswell679ff312004-09-02 18:44:44 +000017927fi
17928
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017929
17930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017931
17932
17933
17934
17935
17936
17937
Reid Spencerdf3be822006-01-23 08:15:53 +000017938for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017939do
17940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17945else
17946 cat >conftest.$ac_ext <<_ACEOF
17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954#define $ac_func innocuous_$ac_func
17955
17956/* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char $ac_func (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17960
17961#ifdef __STDC__
17962# include <limits.h>
17963#else
17964# include <assert.h>
17965#endif
17966
17967#undef $ac_func
17968
17969/* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17972#ifdef __cplusplus
17973extern "C"
17974#endif
17975char $ac_func ();
17976/* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979#if defined __stub_$ac_func || defined __stub___$ac_func
17980choke me
17981#endif
17982
17983int
17984main ()
17985{
17986return $ac_func ();
17987 ;
17988 return 0;
17989}
17990_ACEOF
17991rm -f conftest.$ac_objext conftest$ac_exeext
17992if { (ac_try="$ac_link"
17993case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_link") 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009esac
18010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 eval "$as_ac_var=yes"
18026else
18027 echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 eval "$as_ac_var=no"
18031fi
18032
18033rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035fi
18036ac_res=`eval echo '${'$as_ac_var'}'`
18037 { echo "$as_me:$LINENO: result: $ac_res" >&5
18038echo "${ECHO_T}$ac_res" >&6; }
18039if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018042_ACEOF
18043
18044fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018045done
John Criswell7a73b802003-06-30 21:59:07 +000018046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018047
18048
18049
18050
Reid Spencer96cf5872007-07-13 10:05:30 +000018051for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018052do
18053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18054{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18056if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18058else
18059 cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
18065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18067#define $ac_func innocuous_$ac_func
18068
18069/* System header to define __stub macros and hopefully few prototypes,
18070 which can conflict with char $ac_func (); below.
18071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072 <limits.h> exists even on freestanding compilers. */
18073
18074#ifdef __STDC__
18075# include <limits.h>
18076#else
18077# include <assert.h>
18078#endif
18079
18080#undef $ac_func
18081
18082/* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18085#ifdef __cplusplus
18086extern "C"
18087#endif
18088char $ac_func ();
18089/* The GNU C library defines this for functions which it implements
18090 to always fail with ENOSYS. Some functions are actually named
18091 something starting with __ and the normal name is an alias. */
18092#if defined __stub_$ac_func || defined __stub___$ac_func
18093choke me
18094#endif
18095
18096int
18097main ()
18098{
18099return $ac_func ();
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext conftest$ac_exeext
18105if { (ac_try="$ac_link"
18106case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest$ac_exeext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132esac
18133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 eval "$as_ac_var=yes"
18139else
18140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 eval "$as_ac_var=no"
18144fi
18145
18146rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext conftest.$ac_ext
18148fi
18149ac_res=`eval echo '${'$as_ac_var'}'`
18150 { echo "$as_me:$LINENO: result: $ac_res" >&5
18151echo "${ECHO_T}$ac_res" >&6; }
18152if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018153 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018155_ACEOF
18156
18157fi
18158done
18159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018160
18161
18162
18163
18164
Reid Spencerb90645c2007-02-16 19:17:20 +000018165for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018166do
18167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18168{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18172else
18173 cat >conftest.$ac_ext <<_ACEOF
18174/* confdefs.h. */
18175_ACEOF
18176cat confdefs.h >>conftest.$ac_ext
18177cat >>conftest.$ac_ext <<_ACEOF
18178/* end confdefs.h. */
18179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18181#define $ac_func innocuous_$ac_func
18182
18183/* System header to define __stub macros and hopefully few prototypes,
18184 which can conflict with char $ac_func (); below.
18185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18186 <limits.h> exists even on freestanding compilers. */
18187
18188#ifdef __STDC__
18189# include <limits.h>
18190#else
18191# include <assert.h>
18192#endif
18193
18194#undef $ac_func
18195
18196/* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18199#ifdef __cplusplus
18200extern "C"
18201#endif
18202char $ac_func ();
18203/* The GNU C library defines this for functions which it implements
18204 to always fail with ENOSYS. Some functions are actually named
18205 something starting with __ and the normal name is an alias. */
18206#if defined __stub_$ac_func || defined __stub___$ac_func
18207choke me
18208#endif
18209
18210int
18211main ()
18212{
18213return $ac_func ();
18214 ;
18215 return 0;
18216}
18217_ACEOF
18218rm -f conftest.$ac_objext conftest$ac_exeext
18219if { (ac_try="$ac_link"
18220case "(($ac_try" in
18221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222 *) ac_try_echo=$ac_try;;
18223esac
18224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18225 (eval "$ac_link") 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18233 { (case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236esac
18237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest$ac_exeext'
18243 { (case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18246esac
18247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_try") 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 eval "$as_ac_var=yes"
18253else
18254 echo "$as_me: failed program was:" >&5
18255sed 's/^/| /' conftest.$ac_ext >&5
18256
18257 eval "$as_ac_var=no"
18258fi
18259
18260rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18262fi
18263ac_res=`eval echo '${'$as_ac_var'}'`
18264 { echo "$as_me:$LINENO: result: $ac_res" >&5
18265echo "${ECHO_T}$ac_res" >&6; }
18266if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018267 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018269_ACEOF
18270
18271fi
18272done
18273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018274
18275
18276
Reid Spencerb90645c2007-02-16 19:17:20 +000018277for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018278do
18279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18284else
18285 cat >conftest.$ac_ext <<_ACEOF
18286/* confdefs.h. */
18287_ACEOF
18288cat confdefs.h >>conftest.$ac_ext
18289cat >>conftest.$ac_ext <<_ACEOF
18290/* end confdefs.h. */
18291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18293#define $ac_func innocuous_$ac_func
18294
18295/* System header to define __stub macros and hopefully few prototypes,
18296 which can conflict with char $ac_func (); below.
18297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 <limits.h> exists even on freestanding compilers. */
18299
18300#ifdef __STDC__
18301# include <limits.h>
18302#else
18303# include <assert.h>
18304#endif
18305
18306#undef $ac_func
18307
18308/* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311#ifdef __cplusplus
18312extern "C"
18313#endif
18314char $ac_func ();
18315/* The GNU C library defines this for functions which it implements
18316 to always fail with ENOSYS. Some functions are actually named
18317 something starting with __ and the normal name is an alias. */
18318#if defined __stub_$ac_func || defined __stub___$ac_func
18319choke me
18320#endif
18321
18322int
18323main ()
18324{
18325return $ac_func ();
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext conftest$ac_exeext
18331if { (ac_try="$ac_link"
18332case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335esac
18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_link") 2>conftest.er1
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345 { (case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18348esac
18349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_try") 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
18355 { (case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358esac
18359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_try") 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 eval "$as_ac_var=yes"
18365else
18366 echo "$as_me: failed program was:" >&5
18367sed 's/^/| /' conftest.$ac_ext >&5
18368
18369 eval "$as_ac_var=no"
18370fi
18371
18372rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18374fi
18375ac_res=`eval echo '${'$as_ac_var'}'`
18376 { echo "$as_me:$LINENO: result: $ac_res" >&5
18377echo "${ECHO_T}$ac_res" >&6; }
18378if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018381_ACEOF
18382
18383fi
18384done
18385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018386
18387
18388
18389
18390
Eric Christophere4291822010-04-16 05:14:21 +000018391
18392for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018393do
18394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18395{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18397if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18399else
18400 cat >conftest.$ac_ext <<_ACEOF
18401/* confdefs.h. */
18402_ACEOF
18403cat confdefs.h >>conftest.$ac_ext
18404cat >>conftest.$ac_ext <<_ACEOF
18405/* end confdefs.h. */
18406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18408#define $ac_func innocuous_$ac_func
18409
18410/* System header to define __stub macros and hopefully few prototypes,
18411 which can conflict with char $ac_func (); below.
18412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18413 <limits.h> exists even on freestanding compilers. */
18414
18415#ifdef __STDC__
18416# include <limits.h>
18417#else
18418# include <assert.h>
18419#endif
18420
18421#undef $ac_func
18422
18423/* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18426#ifdef __cplusplus
18427extern "C"
18428#endif
18429char $ac_func ();
18430/* The GNU C library defines this for functions which it implements
18431 to always fail with ENOSYS. Some functions are actually named
18432 something starting with __ and the normal name is an alias. */
18433#if defined __stub_$ac_func || defined __stub___$ac_func
18434choke me
18435#endif
18436
18437int
18438main ()
18439{
18440return $ac_func ();
18441 ;
18442 return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext conftest$ac_exeext
18446if { (ac_try="$ac_link"
18447case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18473esac
18474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 eval "$as_ac_var=yes"
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 eval "$as_ac_var=no"
18485fi
18486
18487rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489fi
18490ac_res=`eval echo '${'$as_ac_var'}'`
18491 { echo "$as_me:$LINENO: result: $ac_res" >&5
18492echo "${ECHO_T}$ac_res" >&6; }
18493if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018494 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018496_ACEOF
18497
18498fi
18499done
Reid Spencerdf3be822006-01-23 08:15:53 +000018500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018501
18502
18503
18504
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018505for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018506do
18507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18508{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512else
18513 cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
18519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18521#define $ac_func innocuous_$ac_func
18522
18523/* System header to define __stub macros and hopefully few prototypes,
18524 which can conflict with char $ac_func (); below.
18525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 <limits.h> exists even on freestanding compilers. */
18527
18528#ifdef __STDC__
18529# include <limits.h>
18530#else
18531# include <assert.h>
18532#endif
18533
18534#undef $ac_func
18535
18536/* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18539#ifdef __cplusplus
18540extern "C"
18541#endif
18542char $ac_func ();
18543/* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546#if defined __stub_$ac_func || defined __stub___$ac_func
18547choke me
18548#endif
18549
18550int
18551main ()
18552{
18553return $ac_func ();
18554 ;
18555 return 0;
18556}
18557_ACEOF
18558rm -f conftest.$ac_objext conftest$ac_exeext
18559if { (ac_try="$ac_link"
18560case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563esac
18564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
18572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest$ac_exeext'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586esac
18587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 eval "$as_ac_var=yes"
18593else
18594 echo "$as_me: failed program was:" >&5
18595sed 's/^/| /' conftest.$ac_ext >&5
18596
18597 eval "$as_ac_var=no"
18598fi
18599
18600rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18602fi
18603ac_res=`eval echo '${'$as_ac_var'}'`
18604 { echo "$as_me:$LINENO: result: $ac_res" >&5
18605echo "${ECHO_T}$ac_res" >&6; }
18606if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018607 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018609_ACEOF
18610
18611fi
18612done
18613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018614
18615
18616
18617
Chris Lattner511f11d2005-11-14 07:25:50 +000018618for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018619do
18620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625else
18626 cat >conftest.$ac_ext <<_ACEOF
18627/* confdefs.h. */
18628_ACEOF
18629cat confdefs.h >>conftest.$ac_ext
18630cat >>conftest.$ac_ext <<_ACEOF
18631/* end confdefs.h. */
18632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634#define $ac_func innocuous_$ac_func
18635
18636/* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18640
18641#ifdef __STDC__
18642# include <limits.h>
18643#else
18644# include <assert.h>
18645#endif
18646
18647#undef $ac_func
18648
18649/* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652#ifdef __cplusplus
18653extern "C"
18654#endif
18655char $ac_func ();
18656/* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659#if defined __stub_$ac_func || defined __stub___$ac_func
18660choke me
18661#endif
18662
18663int
18664main ()
18665{
18666return $ac_func ();
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext conftest$ac_exeext
18672if { (ac_try="$ac_link"
18673case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676esac
18677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_link") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689esac
18690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try='test -s conftest$ac_exeext'
18696 { (case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699esac
18700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 eval "$as_ac_var=yes"
18706else
18707 echo "$as_me: failed program was:" >&5
18708sed 's/^/| /' conftest.$ac_ext >&5
18709
18710 eval "$as_ac_var=no"
18711fi
18712
18713rm -f core conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18715fi
18716ac_res=`eval echo '${'$as_ac_var'}'`
18717 { echo "$as_me:$LINENO: result: $ac_res" >&5
18718echo "${ECHO_T}$ac_res" >&6; }
18719if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018720 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018722_ACEOF
18723
18724fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018725done
John Criswell7a73b802003-06-30 21:59:07 +000018726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018727
18728
18729
18730
Reid Spencerafa22e22006-12-10 23:29:19 +000018731for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018732do
18733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738else
18739 cat >conftest.$ac_ext <<_ACEOF
18740/* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
18745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18747#define $ac_func innocuous_$ac_func
18748
18749/* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char $ac_func (); below.
18751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 <limits.h> exists even on freestanding compilers. */
18753
18754#ifdef __STDC__
18755# include <limits.h>
18756#else
18757# include <assert.h>
18758#endif
18759
18760#undef $ac_func
18761
18762/* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18765#ifdef __cplusplus
18766extern "C"
18767#endif
18768char $ac_func ();
18769/* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772#if defined __stub_$ac_func || defined __stub___$ac_func
18773choke me
18774#endif
18775
18776int
18777main ()
18778{
18779return $ac_func ();
18780 ;
18781 return 0;
18782}
18783_ACEOF
18784rm -f conftest.$ac_objext conftest$ac_exeext
18785if { (ac_try="$ac_link"
18786case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789esac
18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_link") 2>conftest.er1
18792 ac_status=$?
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -f conftest.er1
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799 { (case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18802esac
18803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_try") 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest$ac_exeext'
18809 { (case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18812esac
18813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_try") 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 eval "$as_ac_var=yes"
18819else
18820 echo "$as_me: failed program was:" >&5
18821sed 's/^/| /' conftest.$ac_ext >&5
18822
18823 eval "$as_ac_var=no"
18824fi
18825
18826rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18828fi
18829ac_res=`eval echo '${'$as_ac_var'}'`
18830 { echo "$as_me:$LINENO: result: $ac_res" >&5
18831echo "${ECHO_T}$ac_res" >&6; }
18832if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018833 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018835_ACEOF
18836
18837fi
18838done
18839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018840{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18841echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18842if test "${llvm_cv_c_printf_a+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018844else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018845 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018846ac_cpp='$CPP $CPPFLAGS'
18847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849ac_compiler_gnu=$ac_cv_c_compiler_gnu
18850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018851 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018852 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018854 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018856 /* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018861
John Criswella0137d32003-10-13 16:22:01 +000018862#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018863#include <stdlib.h>
18864
John Criswella0137d32003-10-13 16:22:01 +000018865int
18866main ()
18867{
18868
Reid Spencer2706f8c2004-09-19 23:53:36 +000018869volatile double A, B;
18870char Buffer[100];
18871A = 1;
18872A /= 10.0;
18873sprintf(Buffer, "%a", A);
18874B = atof(Buffer);
18875if (A != B)
18876 return (1);
18877if (A != 0x1.999999999999ap-4)
18878 return (1);
18879return (0);
John Criswella0137d32003-10-13 16:22:01 +000018880 ;
18881 return 0;
18882}
18883_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018884rm -f conftest$ac_exeext
18885if { (ac_try="$ac_link"
18886case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_link") 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898esac
18899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018904 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018906 echo "$as_me: program exited with status $ac_status" >&5
18907echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910( exit $ac_status )
18911llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018913rm -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 +000018914fi
Reid Spencera773bd52006-08-04 18:18:08 +000018915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018916
Reid Spencer2706f8c2004-09-19 23:53:36 +000018917 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018918ac_cpp='$CPP $CPPFLAGS'
18919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921ac_compiler_gnu=$ac_cv_c_compiler_gnu
18922
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018924{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18925echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018926 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018928cat >>confdefs.h <<\_ACEOF
18929#define HAVE_PRINTF_A 1
18930_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018931
Reid Spencer2706f8c2004-09-19 23:53:36 +000018932 fi
John Criswella0137d32003-10-13 16:22:01 +000018933
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018935{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18936echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18937if test "${ac_cv_func_rand48+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018939else
Reid Spencera773bd52006-08-04 18:18:08 +000018940 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018941ac_cpp='$CXXCPP $CPPFLAGS'
18942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018946 cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018951/* end confdefs.h. */
18952#include <stdlib.h>
18953int
18954main ()
18955{
18956srand48(0);lrand48();drand48();
18957 ;
18958 return 0;
18959}
18960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961rm -f conftest.$ac_objext
18962if { (ac_try="$ac_compile"
18963case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966esac
18967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_compile") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979esac
18980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest.$ac_objext'
18986 { (case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989esac
18990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018995 ac_cv_func_rand48=yes
18996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018997 echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019002
Reid Spencera773bd52006-08-04 18:18:08 +000019003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019004 ac_ext=c
19005ac_cpp='$CPP $CPPFLAGS'
19006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008ac_compiler_gnu=$ac_cv_c_compiler_gnu
19009
19010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019011{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19012echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019013
19014if test "$ac_cv_func_rand48" = "yes" ; then
19015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019016cat >>confdefs.h <<\_ACEOF
19017#define HAVE_RAND48 1
19018_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019019
19020fi
John Criswell0021c312004-02-13 21:57:29 +000019021
19022
Torok Edwin871384f2010-01-26 08:50:50 +000019023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019024{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19025echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19026if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019028else
Reid Spencera773bd52006-08-04 18:18:08 +000019029 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019030ac_cpp='$CXXCPP $CPPFLAGS'
19031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035 cat >conftest.$ac_ext <<_ACEOF
19036/* confdefs.h. */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019040/* end confdefs.h. */
19041#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019042int
19043main ()
19044{
19045float f; isnan(f);
19046 ;
19047 return 0;
19048}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019049_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019050rm -f conftest.$ac_objext
19051if { (ac_try="$ac_compile"
19052case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055esac
19056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_compile") 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19065 { (case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19068esac
19069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_try") 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; } &&
19074 { ac_try='test -s conftest.$ac_objext'
19075 { (case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078esac
19079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_try") 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019084 ac_cv_func_isnan_in_math_h=yes
19085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019086 echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019091
Reid Spencera773bd52006-08-04 18:18:08 +000019092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019093 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019094ac_cpp='$CPP $CPPFLAGS'
19095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098
19099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019100{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19101echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019102
19103
19104if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019106cat >>confdefs.h <<\_ACEOF
19107#define HAVE_ISNAN_IN_MATH_H 1
19108_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019109
Reid Spencerabec8f92004-10-27 23:03:44 +000019110fi
19111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019112{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19113echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19114if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019116else
Reid Spencera773bd52006-08-04 18:18:08 +000019117 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019118ac_cpp='$CXXCPP $CPPFLAGS'
19119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123 cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019128/* end confdefs.h. */
19129#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019130int
19131main ()
19132{
19133float f; isnan(f);
19134 ;
19135 return 0;
19136}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019138rm -f conftest.$ac_objext
19139if { (ac_try="$ac_compile"
19140case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143esac
19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156esac
19157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019172 ac_cv_func_isnan_in_cmath=yes
19173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019179
Reid Spencera773bd52006-08-04 18:18:08 +000019180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019181 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019182ac_cpp='$CPP $CPPFLAGS'
19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019188{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19189echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019190
19191if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019193cat >>confdefs.h <<\_ACEOF
19194#define HAVE_ISNAN_IN_CMATH 1
19195_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019196
Reid Spencerabec8f92004-10-27 23:03:44 +000019197fi
19198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019199{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19200echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19201if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019203else
Reid Spencera773bd52006-08-04 18:18:08 +000019204 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019205ac_cpp='$CXXCPP $CPPFLAGS'
19206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019215/* end confdefs.h. */
19216#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019217int
19218main ()
19219{
19220float f; std::isnan(f);
19221 ;
19222 return 0;
19223}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019225rm -f conftest.$ac_objext
19226if { (ac_try="$ac_compile"
19227case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230esac
19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243esac
19244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest.$ac_objext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019259 ac_cv_func_std_isnan_in_cmath=yes
19260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019266
Reid Spencera773bd52006-08-04 18:18:08 +000019267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019268 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019269ac_cpp='$CPP $CPPFLAGS'
19270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19272ac_compiler_gnu=$ac_cv_c_compiler_gnu
19273
19274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019275{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19276echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019277
19278if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019280cat >>confdefs.h <<\_ACEOF
19281#define HAVE_STD_ISNAN_IN_CMATH 1
19282_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019283
Reid Spencerabec8f92004-10-27 23:03:44 +000019284fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019285
19286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019287{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19288echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19289if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019291else
Reid Spencera773bd52006-08-04 18:18:08 +000019292 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019293ac_cpp='$CXXCPP $CPPFLAGS'
19294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019298 cat >conftest.$ac_ext <<_ACEOF
19299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019303/* end confdefs.h. */
19304#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019305int
19306main ()
19307{
19308float f; isinf(f);
19309 ;
19310 return 0;
19311}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019312_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019313rm -f conftest.$ac_objext
19314if { (ac_try="$ac_compile"
19315case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19318esac
19319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_compile") 2>conftest.er1
19321 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331esac
19332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341esac
19342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019347 ac_cv_func_isinf_in_math_h=yes
19348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019349 echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019354
Reid Spencera773bd52006-08-04 18:18:08 +000019355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019356 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019357ac_cpp='$CPP $CPPFLAGS'
19358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361
19362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19364echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019365
19366if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019368cat >>confdefs.h <<\_ACEOF
19369#define HAVE_ISINF_IN_MATH_H 1
19370_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019371
Reid Spencerabec8f92004-10-27 23:03:44 +000019372fi
19373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019374{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19375echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19376if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019378else
Reid Spencera773bd52006-08-04 18:18:08 +000019379 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019380ac_cpp='$CXXCPP $CPPFLAGS'
19381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019385 cat >conftest.$ac_ext <<_ACEOF
19386/* confdefs.h. */
19387_ACEOF
19388cat confdefs.h >>conftest.$ac_ext
19389cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019390/* end confdefs.h. */
19391#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019392int
19393main ()
19394{
19395float f; isinf(f);
19396 ;
19397 return 0;
19398}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019400rm -f conftest.$ac_objext
19401if { (ac_try="$ac_compile"
19402case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405esac
19406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } &&
19414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19415 { (case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418esac
19419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_try") 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; } &&
19424 { ac_try='test -s conftest.$ac_objext'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019434 ac_cv_func_isinf_in_cmath=yes
19435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436 echo "$as_me: failed program was:" >&5
19437sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019441
Reid Spencera773bd52006-08-04 18:18:08 +000019442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019443 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019444ac_cpp='$CPP $CPPFLAGS'
19445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448
19449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019450{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19451echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019452
19453if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019455cat >>confdefs.h <<\_ACEOF
19456#define HAVE_ISINF_IN_CMATH 1
19457_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019458
Reid Spencerabec8f92004-10-27 23:03:44 +000019459fi
19460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019461{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19462echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19463if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019465else
Reid Spencera773bd52006-08-04 18:18:08 +000019466 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019467ac_cpp='$CXXCPP $CPPFLAGS'
19468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019472 cat >conftest.$ac_ext <<_ACEOF
19473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019477/* end confdefs.h. */
19478#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019479int
19480main ()
19481{
19482float f; std::isinf(f)}
19483 ;
19484 return 0;
19485}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019486_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019487rm -f conftest.$ac_objext
19488if { (ac_try="$ac_compile"
19489case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492esac
19493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_compile") 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19502 { (case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505esac
19506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_try") 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019521 ac_cv_func_std_isinf_in_cmath=yes
19522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019528
Reid Spencera773bd52006-08-04 18:18:08 +000019529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019530 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019531ac_cpp='$CPP $CPPFLAGS'
19532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534ac_compiler_gnu=$ac_cv_c_compiler_gnu
19535
19536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019537{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19538echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019539
19540if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019542cat >>confdefs.h <<\_ACEOF
19543#define HAVE_STD_ISINF_IN_CMATH 1
19544_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019545
Reid Spencerabec8f92004-10-27 23:03:44 +000019546fi
19547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019548{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19549echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19550if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019552else
Reid Spencera773bd52006-08-04 18:18:08 +000019553 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019554ac_cpp='$CXXCPP $CPPFLAGS'
19555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019559 cat >conftest.$ac_ext <<_ACEOF
19560/* confdefs.h. */
19561_ACEOF
19562cat confdefs.h >>conftest.$ac_ext
19563cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019564/* end confdefs.h. */
19565#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019566int
19567main ()
19568{
19569float f; finite(f);
19570 ;
19571 return 0;
19572}
Brian Gaeked59a6472004-07-21 03:33:58 +000019573_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019574rm -f conftest.$ac_objext
19575if { (ac_try="$ac_compile"
19576case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19579esac
19580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_compile") 2>conftest.er1
19582 ac_status=$?
19583 grep -v '^ *+' conftest.er1 >conftest.err
19584 rm -f conftest.er1
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
19588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19589 { (case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_try") 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019608 ac_cv_func_finite_in_ieeefp_h=yes
19609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019615
Reid Spencera773bd52006-08-04 18:18:08 +000019616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019617 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019618ac_cpp='$CPP $CPPFLAGS'
19619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19621ac_compiler_gnu=$ac_cv_c_compiler_gnu
19622
19623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019624{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19625echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019626
Brian Gaeke6802b552004-10-28 05:06:45 +000019627if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019629cat >>confdefs.h <<\_ACEOF
19630#define HAVE_FINITE_IN_IEEEFP_H 1
19631_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019632
Reid Spencerabec8f92004-10-27 23:03:44 +000019633fi
19634
19635
19636
Reid Spencer30fe5262007-01-20 07:48:49 +000019637if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019638
19639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640for ac_header in stdlib.h unistd.h
19641do
19642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648fi
19649ac_res=`eval echo '${'$as_ac_Header'}'`
19650 { echo "$as_me:$LINENO: result: $ac_res" >&5
19651echo "${ECHO_T}$ac_res" >&6; }
19652else
19653 # Is the header compilable?
19654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19656cat >conftest.$ac_ext <<_ACEOF
19657/* confdefs.h. */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
19661/* end confdefs.h. */
19662$ac_includes_default
19663#include <$ac_header>
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (ac_try="$ac_compile"
19667case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670esac
19671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680 { (case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683esac
19684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_try") 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_header_compiler=yes
19700else
19701 echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019704 ac_header_compiler=no
19705fi
19706
19707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709echo "${ECHO_T}$ac_header_compiler" >&6; }
19710
19711# Is the header present?
19712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19714cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#include <$ac_header>
19721_ACEOF
19722if { (ac_try="$ac_cpp conftest.$ac_ext"
19723case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } >/dev/null; then
19735 if test -s conftest.err; then
19736 ac_cpp_err=$ac_c_preproc_warn_flag
19737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19738 else
19739 ac_cpp_err=
19740 fi
19741else
19742 ac_cpp_err=yes
19743fi
19744if test -z "$ac_cpp_err"; then
19745 ac_header_preproc=yes
19746else
19747 echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750 ac_header_preproc=no
19751fi
19752
19753rm -f conftest.err conftest.$ac_ext
19754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755echo "${ECHO_T}$ac_header_preproc" >&6; }
19756
19757# So? What about this header?
19758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759 yes:no: )
19760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764 ac_header_preproc=yes
19765 ;;
19766 no:yes:* )
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779 ( cat <<\_ASBOX
19780## ----------------------------------- ##
19781## Report this to llvmbugs@cs.uiuc.edu ##
19782## ----------------------------------- ##
19783_ASBOX
19784 ) | sed "s/^/$as_me: WARNING: /" >&2
19785 ;;
19786esac
19787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792 eval "$as_ac_Header=\$ac_header_preproc"
19793fi
19794ac_res=`eval echo '${'$as_ac_Header'}'`
19795 { echo "$as_me:$LINENO: result: $ac_res" >&5
19796echo "${ECHO_T}$ac_res" >&6; }
19797
19798fi
19799if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019800 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019802_ACEOF
19803
19804fi
19805
19806done
19807
19808
19809for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019810do
19811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19816else
19817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19825#define $ac_func innocuous_$ac_func
19826
19827/* System header to define __stub macros and hopefully few prototypes,
19828 which can conflict with char $ac_func (); below.
19829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19830 <limits.h> exists even on freestanding compilers. */
19831
19832#ifdef __STDC__
19833# include <limits.h>
19834#else
19835# include <assert.h>
19836#endif
19837
19838#undef $ac_func
19839
19840/* Override any GCC internal prototype to avoid an error.
19841 Use char because int might match the return type of a GCC
19842 builtin and then its argument prototype would still apply. */
19843#ifdef __cplusplus
19844extern "C"
19845#endif
19846char $ac_func ();
19847/* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850#if defined __stub_$ac_func || defined __stub___$ac_func
19851choke me
19852#endif
19853
19854int
19855main ()
19856{
19857return $ac_func ();
19858 ;
19859 return 0;
19860}
19861_ACEOF
19862rm -f conftest.$ac_objext conftest$ac_exeext
19863if { (ac_try="$ac_link"
19864case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_link") 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest$ac_exeext'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890esac
19891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 eval "$as_ac_var=yes"
19897else
19898 echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 eval "$as_ac_var=no"
19902fi
19903
19904rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19906fi
19907ac_res=`eval echo '${'$as_ac_var'}'`
19908 { echo "$as_me:$LINENO: result: $ac_res" >&5
19909echo "${ECHO_T}$ac_res" >&6; }
19910if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019911 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019913_ACEOF
19914
19915fi
19916done
19917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918{ echo "$as_me:$LINENO: checking for working mmap" >&5
19919echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19920if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019923 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019924 ac_cv_func_mmap_fixed_mapped=no
19925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019926 cat >conftest.$ac_ext <<_ACEOF
19927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019932$ac_includes_default
19933/* malloc might have been renamed as rpl_malloc. */
19934#undef malloc
19935
19936/* Thanks to Mike Haertel and Jim Avera for this test.
19937 Here is a matrix of mmap possibilities:
19938 mmap private not fixed
19939 mmap private fixed at somewhere currently unmapped
19940 mmap private fixed at somewhere already mapped
19941 mmap shared not fixed
19942 mmap shared fixed at somewhere currently unmapped
19943 mmap shared fixed at somewhere already mapped
19944 For private mappings, we should verify that changes cannot be read()
19945 back from the file, nor mmap's back from the file at a different
19946 address. (There have been systems where private was not correctly
19947 implemented like the infamous i386 svr4.0, and systems where the
19948 VM page cache was not coherent with the file system buffer cache
19949 like early versions of FreeBSD and possibly contemporary NetBSD.)
19950 For shared mappings, we should conversely verify that changes get
19951 propagated back to all the places they're supposed to be.
19952
19953 Grep wants private fixed already mapped.
19954 The main things grep needs to know about mmap are:
19955 * does it exist and is it safe to write into the mmap'd area
19956 * how to use it (BSD variants) */
19957
19958#include <fcntl.h>
19959#include <sys/mman.h>
19960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019962char *malloc ();
19963#endif
19964
19965/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019966#if !HAVE_GETPAGESIZE
19967/* Assume that all systems that can run configure have sys/param.h. */
19968# if !HAVE_SYS_PARAM_H
19969# define HAVE_SYS_PARAM_H 1
19970# endif
19971
John Criswell7a73b802003-06-30 21:59:07 +000019972# ifdef _SC_PAGESIZE
19973# define getpagesize() sysconf(_SC_PAGESIZE)
19974# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019975# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019976# include <sys/param.h>
19977# ifdef EXEC_PAGESIZE
19978# define getpagesize() EXEC_PAGESIZE
19979# else /* no EXEC_PAGESIZE */
19980# ifdef NBPG
19981# define getpagesize() NBPG * CLSIZE
19982# ifndef CLSIZE
19983# define CLSIZE 1
19984# endif /* no CLSIZE */
19985# else /* no NBPG */
19986# ifdef NBPC
19987# define getpagesize() NBPC
19988# else /* no NBPC */
19989# ifdef PAGESIZE
19990# define getpagesize() PAGESIZE
19991# endif /* PAGESIZE */
19992# endif /* no NBPC */
19993# endif /* no NBPG */
19994# endif /* no EXEC_PAGESIZE */
19995# else /* no HAVE_SYS_PARAM_H */
19996# define getpagesize() 8192 /* punt totally */
19997# endif /* no HAVE_SYS_PARAM_H */
19998# endif /* no _SC_PAGESIZE */
19999
20000#endif /* no HAVE_GETPAGESIZE */
20001
20002int
20003main ()
20004{
20005 char *data, *data2, *data3;
20006 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020008
20009 pagesize = getpagesize ();
20010
20011 /* First, make a file with some known garbage in it. */
20012 data = (char *) malloc (pagesize);
20013 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020014 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020015 for (i = 0; i < pagesize; ++i)
20016 *(data + i) = rand ();
20017 umask (0);
20018 fd = creat ("conftest.mmap", 0600);
20019 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020021 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020022 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020023 close (fd);
20024
20025 /* Next, try to mmap the file at a fixed address which already has
20026 something else allocated at it. If we can, also make sure that
20027 we see the same garbage. */
20028 fd = open ("conftest.mmap", O_RDWR);
20029 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020030 return 1;
20031 data2 = (char *) malloc (2 * pagesize);
20032 if (!data2)
20033 return 1;
20034 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020035 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020036 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020037 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020038 for (i = 0; i < pagesize; ++i)
20039 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020040 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020041
20042 /* Finally, make sure that changes to the mapped area do not
20043 percolate back to the file as seen by read(). (This is a bug on
20044 some variants of i386 svr4.0.) */
20045 for (i = 0; i < pagesize; ++i)
20046 *(data2 + i) = *(data2 + i) + 1;
20047 data3 = (char *) malloc (pagesize);
20048 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020050 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020051 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020052 for (i = 0; i < pagesize; ++i)
20053 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020055 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020056 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020057}
20058_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020059rm -f conftest$ac_exeext
20060if { (ac_try="$ac_link"
20061case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20064esac
20065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_link") 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20070 { (case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20073esac
20074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020079 ac_cv_func_mmap_fixed_mapped=yes
20080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081 echo "$as_me: program exited with status $ac_status" >&5
20082echo "$as_me: failed program was:" >&5
20083sed 's/^/| /' conftest.$ac_ext >&5
20084
20085( exit $ac_status )
20086ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088rm -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 +000020089fi
Reid Spencera773bd52006-08-04 18:18:08 +000020090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020091
John Criswell7a73b802003-06-30 21:59:07 +000020092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020093{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20094echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020095if test $ac_cv_func_mmap_fixed_mapped = yes; then
20096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020097cat >>confdefs.h <<\_ACEOF
20098#define HAVE_MMAP 1
20099_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020100
20101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020104 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20105echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20106if test "${ac_cv_func_mmap_file+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020108else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020109 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020110ac_cpp='$CPP $CPPFLAGS'
20111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113ac_compiler_gnu=$ac_cv_c_compiler_gnu
20114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020116 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020118 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020120 /* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020125
John Criswell7a73b802003-06-30 21:59:07 +000020126#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020127#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020128#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020129
20130int
20131main ()
20132{
John Criswell7a73b802003-06-30 21:59:07 +000020133
20134 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020135 fd = creat ("foo",0777);
20136 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20137 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020138 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020139 ;
20140 return 0;
20141}
John Criswell7a73b802003-06-30 21:59:07 +000020142_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143rm -f conftest$ac_exeext
20144if { (ac_try="$ac_link"
20145case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148esac
20149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154 { (case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20157esac
20158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_try") 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020163 ac_cv_func_mmap_file=yes
20164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020165 echo "$as_me: program exited with status $ac_status" >&5
20166echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169( exit $ac_status )
20170ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172rm -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 +000020173fi
Reid Spencera773bd52006-08-04 18:18:08 +000020174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020175
John Criswell7a73b802003-06-30 21:59:07 +000020176 ac_ext=c
20177ac_cpp='$CPP $CPPFLAGS'
20178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181
20182
20183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20185echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020186if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188cat >>confdefs.h <<\_ACEOF
20189#define HAVE_MMAP_FILE
20190_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020191
20192 MMAP_FILE=yes
20193
20194fi
20195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020196 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20197echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20198if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020200else
Reid Spencer582a23c2004-12-29 07:07:57 +000020201 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020202 ac_cv_need_dev_zero_for_mmap=yes
20203 else
20204 ac_cv_need_dev_zero_for_mmap=no
20205 fi
20206
20207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020208{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20209echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020210if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020212cat >>confdefs.h <<\_ACEOF
20213#define NEED_DEV_ZERO_FOR_MMAP 1
20214_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020215
20216fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020217
Reid Spencer30fe5262007-01-20 07:48:49 +000020218 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20219 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020220 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20221echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020222 fi
20223 if test "$ac_cv_func_mmap_file" = "no"
20224 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20226echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020227 fi
John Criswellb13092b2003-07-22 21:00:24 +000020228fi
John Criswell7a73b802003-06-30 21:59:07 +000020229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020230{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20231echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020232ac_ext=cpp
20233ac_cpp='$CXXCPP $CPPFLAGS'
20234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238cat >conftest.$ac_ext <<_ACEOF
20239/* confdefs.h. */
20240_ACEOF
20241cat confdefs.h >>conftest.$ac_ext
20242cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020243/* end confdefs.h. */
20244int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020245 volatile unsigned long val = 1;
20246 __sync_synchronize();
20247 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020248 __sync_add_and_fetch(&val, 1);
20249 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020250 return 0;
20251 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020252
20253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254rm -f conftest.$ac_objext conftest$ac_exeext
20255if { (ac_try="$ac_link"
20256case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272esac
20273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282esac
20283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020288 ac_ext=c
20289ac_cpp='$CPP $CPPFLAGS'
20290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20292ac_compiler_gnu=$ac_cv_c_compiler_gnu
20293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020294 { echo "$as_me:$LINENO: result: yes" >&5
20295echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297cat >>confdefs.h <<\_ACEOF
20298#define LLVM_MULTITHREADED 1
20299_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020300
Owen Andersond4b272b2009-05-18 23:58:51 +000020301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020305 { echo "$as_me:$LINENO: result: no" >&5
20306echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020308cat >>confdefs.h <<\_ACEOF
20309#define LLVM_MULTITHREADED 0
20310_ACEOF
20311
20312 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20313echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020315
Owen Andersond4b272b2009-05-18 23:58:51 +000020316rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020318
John Criswell7a73b802003-06-30 21:59:07 +000020319
Nick Lewycky4372e692009-09-29 06:18:23 +000020320if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20322echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20323if test "${llvm_cv_linux_mixed+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020325else
20326 ac_ext=c
20327ac_cpp='$CPP $CPPFLAGS'
20328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20330ac_compiler_gnu=$ac_cv_c_compiler_gnu
20331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020332 cat >conftest.$ac_ext <<_ACEOF
20333/* confdefs.h. */
20334_ACEOF
20335cat confdefs.h >>conftest.$ac_ext
20336cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020337/* end confdefs.h. */
20338#ifndef __x86_64__
20339 error: Not x86-64 even if uname says so!
20340 #endif
20341
20342int
20343main ()
20344{
20345
20346 ;
20347 return 0;
20348}
20349_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350rm -f conftest.$ac_objext
20351if { (ac_try="$ac_compile"
20352case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20355esac
20356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_compile") 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; } &&
20374 { ac_try='test -s conftest.$ac_objext'
20375 { (case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20378esac
20379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_try") 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020384 llvm_cv_linux_mixed=no
20385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386 echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391
Nick Lewycky4372e692009-09-29 06:18:23 +000020392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 ac_ext=c
20394ac_cpp='$CPP $CPPFLAGS'
20395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397ac_compiler_gnu=$ac_cv_c_compiler_gnu
20398
20399
20400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020401{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20402echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020403
20404 if test "$llvm_cv_linux_mixed" = "yes"; then
20405 llvm_cv_target_arch="x86"
20406 ARCH="x86"
20407 fi
20408fi
20409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410
Reid Spencer9372f152007-07-30 20:13:24 +000020411for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412do
20413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419 cat >conftest.$ac_ext <<_ACEOF
20420/* confdefs.h. */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h. */
20425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20427#define $ac_func innocuous_$ac_func
20428
20429/* System header to define __stub macros and hopefully few prototypes,
20430 which can conflict with char $ac_func (); below.
20431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20432 <limits.h> exists even on freestanding compilers. */
20433
20434#ifdef __STDC__
20435# include <limits.h>
20436#else
20437# include <assert.h>
20438#endif
20439
20440#undef $ac_func
20441
20442/* Override any GCC internal prototype to avoid an error.
20443 Use char because int might match the return type of a GCC
20444 builtin and then its argument prototype would still apply. */
20445#ifdef __cplusplus
20446extern "C"
20447#endif
20448char $ac_func ();
20449/* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452#if defined __stub_$ac_func || defined __stub___$ac_func
20453choke me
20454#endif
20455
20456int
20457main ()
20458{
20459return $ac_func ();
20460 ;
20461 return 0;
20462}
20463_ACEOF
20464rm -f conftest.$ac_objext conftest$ac_exeext
20465if { (ac_try="$ac_link"
20466case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469esac
20470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20479 { (case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest$ac_exeext'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492esac
20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 eval "$as_ac_var=yes"
20499else
20500 echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 eval "$as_ac_var=no"
20504fi
20505
20506rm -f core conftest.err conftest.$ac_objext \
20507 conftest$ac_exeext conftest.$ac_ext
20508fi
20509ac_res=`eval echo '${'$as_ac_var'}'`
20510 { echo "$as_me:$LINENO: result: $ac_res" >&5
20511echo "${ECHO_T}$ac_res" >&6; }
20512if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020515_ACEOF
20516
20517fi
20518done
20519
20520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020521{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20522echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20523if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020525else
20526 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020527if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020528 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020529 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20530 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020531 if test $? -eq 0 ; then
20532 llvm_cv_llvmgcc_sanity="yes"
20533 fi
20534 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020535fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20538echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020539
20540if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20542echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020543 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020544 LLVMCC1=$llvmcc1path
20545
Reid Spencer502935f2004-12-22 05:56:56 +000020546 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020547 LLVMCC1PLUS=$llvmcc1pluspath
20548
Reid Spencer502935f2004-12-22 05:56:56 +000020549 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20550 LLVMGCCDIR=$llvmgccdir
20551
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020552 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020553 LLVMGCC_LANGS=$llvmgcclangs
20554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020555 { echo "$as_me:$LINENO: result: ok" >&5
20556echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020557fi
20558
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020559SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020560
20561
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020562SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20563
20564
Reid Spencere9de0912004-08-20 09:03:57 +000020565# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020566# information into substitutions that will end up in Makefile.config.in
20567# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020568if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020569 prefix="/usr/local"
20570fi
Reid Spencere9de0912004-08-20 09:03:57 +000020571eval LLVM_PREFIX="${prefix}";
20572eval LLVM_BINDIR="${prefix}/bin";
20573eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020574eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020575eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020576eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020577eval LLVM_INCLUDEDIR="${prefix}/include";
20578eval LLVM_INFODIR="${prefix}/info";
20579eval LLVM_MANDIR="${prefix}/man";
20580LLVM_CONFIGTIME=`date`
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020592# Place the various directores into the config.h file as #defines so that we
20593# can know about the installation paths within LLVM.
20594
Reid Spencere9de0912004-08-20 09:03:57 +000020595cat >>confdefs.h <<_ACEOF
20596#define LLVM_PREFIX "$LLVM_PREFIX"
20597_ACEOF
20598
20599
20600cat >>confdefs.h <<_ACEOF
20601#define LLVM_BINDIR "$LLVM_BINDIR"
20602_ACEOF
20603
20604
20605cat >>confdefs.h <<_ACEOF
20606#define LLVM_LIBDIR "$LLVM_LIBDIR"
20607_ACEOF
20608
20609
20610cat >>confdefs.h <<_ACEOF
20611#define LLVM_DATADIR "$LLVM_DATADIR"
20612_ACEOF
20613
20614
20615cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020616#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020617_ACEOF
20618
20619
20620cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020621#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020622_ACEOF
20623
20624
20625cat >>confdefs.h <<_ACEOF
20626#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20627_ACEOF
20628
20629
20630cat >>confdefs.h <<_ACEOF
20631#define LLVM_INFODIR "$LLVM_INFODIR"
20632_ACEOF
20633
20634
20635cat >>confdefs.h <<_ACEOF
20636#define LLVM_MANDIR "$LLVM_MANDIR"
20637_ACEOF
20638
20639
20640cat >>confdefs.h <<_ACEOF
20641#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20642_ACEOF
20643
20644
Eric Christopher790e11c2007-12-01 00:34:39 +000020645cat >>confdefs.h <<_ACEOF
20646#define LLVM_HOSTTRIPLE "$host"
20647_ACEOF
20648
20649
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020650# Determine which bindings to build.
20651if test "$BINDINGS_TO_BUILD" = auto ; then
20652 BINDINGS_TO_BUILD=""
20653 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20654 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20655 fi
20656fi
20657BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20658
20659
20660# This isn't really configurey, but it avoids having to repeat the list in
20661# other files.
20662ALL_BINDINGS=ocaml
20663
20664
Gordon Henriksenf0915682007-10-02 16:42:22 +000020665# Do any work necessary to ensure that bindings have what they need.
20666binding_prereqs_failed=0
20667for a_binding in $BINDINGS_TO_BUILD ; do
20668 case "$a_binding" in
20669 ocaml)
20670 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20672echo "$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 +000020673 binding_prereqs_failed=1
20674 fi
20675 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20677echo "$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 +000020678 binding_prereqs_failed=1
20679 fi
20680 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20682echo "$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 +000020683 fi
20684 if test "x$with_ocaml_libdir" != xauto ; then
20685 OCAML_LIBDIR=$with_ocaml_libdir
20686
20687 else
20688 ocaml_stdlib="`"$OCAMLC" -where`"
20689 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20690 then
20691 # ocaml stdlib is beneath our prefix; use stdlib
20692 OCAML_LIBDIR=$ocaml_stdlib
20693
20694 else
20695 # ocaml stdlib is outside our prefix; use libdir/ocaml
20696 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20697
20698 fi
20699 fi
20700 ;;
20701 esac
20702done
20703if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20705echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20706 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020707fi
20708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20710echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20711if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020713else
20714 ac_ext=cpp
20715ac_cpp='$CXXCPP $CPPFLAGS'
20716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20719
20720 oldcxxflags="$CXXFLAGS"
20721 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020722 cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h. */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020727/* end confdefs.h. */
20728
20729int
20730main ()
20731{
20732
20733 ;
20734 return 0;
20735}
20736_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020737rm -f conftest.$ac_objext
20738if { (ac_try="$ac_compile"
20739case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742esac
20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_compile") 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20752 { (case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755esac
20756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_try") 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
20762 { (case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765esac
20766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020771 llvm_cv_cxx_visibility_inlines_hidden=yes
20772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780 CXXFLAGS="$oldcxxflags"
20781 ac_ext=c
20782ac_cpp='$CPP $CPPFLAGS'
20783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787
20788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20790echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020791if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20792 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20793
20794else
20795 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20796
20797fi
20798
Gordon Henriksenf0915682007-10-02 16:42:22 +000020799
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020800if test "$llvm_cv_link_use_r" = "yes" ; then
20801 RPATH="-Wl,-R"
20802else
20803 RPATH="-Wl,-rpath"
20804fi
20805
20806
20807if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20808 RDYNAMIC="-Wl,-export-dynamic"
20809else
20810 RDYNAMIC=""
20811fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020812
20813
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020814
Eric Christophera1cba682010-08-08 02:44:25 +000020815ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020816
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020817
20818
20819
20820
20821
Douglas Gregor1555a232009-06-16 20:12:29 +000020822ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20823
20824ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20825
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020826ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20827
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020828ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20829
Chandler Carruth8b67f772009-10-26 01:35:46 +000020830ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020831
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020832
Reid Spencera773bd52006-08-04 18:18:08 +000020833ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020834
20835
Reid Spencerea949cf2006-08-16 00:45:38 +000020836ac_config_files="$ac_config_files llvm.spec"
20837
20838
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020839ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020840
20841
Reid Spencera773bd52006-08-04 18:18:08 +000020842ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020843
20844
Reid Spencera773bd52006-08-04 18:18:08 +000020845ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020846
Reid Spencera773bd52006-08-04 18:18:08 +000020847ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020848
20849
Reid Spencera773bd52006-08-04 18:18:08 +000020850ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020851
20852
Reid Spencera773bd52006-08-04 18:18:08 +000020853ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020854
20855
Reid Spencera773bd52006-08-04 18:18:08 +000020856ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020857
20858
Reid Spencer8b2e1412006-11-17 03:32:33 +000020859ac_config_commands="$ac_config_commands runtime/Makefile"
20860
20861
Reid Spencera773bd52006-08-04 18:18:08 +000020862ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020863
20864
Reid Spencera773bd52006-08-04 18:18:08 +000020865ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020866
20867
Bill Wendlingf24eb392009-01-04 23:12:30 +000020868ac_config_commands="$ac_config_commands unittests/Makefile"
20869
20870
Reid Spencera773bd52006-08-04 18:18:08 +000020871ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020872
20873
Reid Spencera773bd52006-08-04 18:18:08 +000020874ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020875
20876
Reid Spencera773bd52006-08-04 18:18:08 +000020877ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020878
20879
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020880ac_config_commands="$ac_config_commands bindings/Makefile"
20881
20882
20883ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20884
20885
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020886
John Criswell7a73b802003-06-30 21:59:07 +000020887cat >confcache <<\_ACEOF
20888# This file is a shell script that caches the results of configure
20889# tests run on this system so they can be shared between configure
20890# scripts and configure runs, see configure's option --config-cache.
20891# It is not useful on other systems. If it contains results you don't
20892# want to keep, you may remove or edit it.
20893#
20894# config.status only pays attention to the cache file if you give it
20895# the --recheck option to rerun configure.
20896#
John Criswell0c38eaf2003-09-10 15:17:25 +000020897# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020898# loading this file, other *unset* `ac_cv_foo' will be assigned the
20899# following values.
20900
20901_ACEOF
20902
20903# The following way of writing the cache mishandles newlines in values,
20904# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020905# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020906# Ultrix sh set writes to stderr and can't be redirected directly,
20907# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020908(
20909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20910 eval ac_val=\$$ac_var
20911 case $ac_val in #(
20912 *${as_nl}*)
20913 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20915echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020916 esac
20917 case $ac_var in #(
20918 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020920 esac ;;
20921 esac
20922 done
20923
John Criswell7a73b802003-06-30 21:59:07 +000020924 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20926 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020927 # `set' does not quote correctly, so add quotes (double-quote
20928 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020929 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020930 "s/'/'\\\\''/g;
20931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020932 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020933 *)
20934 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020936 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020937 esac |
20938 sort
20939) |
John Criswell7a73b802003-06-30 21:59:07 +000020940 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020941 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020942 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020943 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20945 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20947 :end' >>confcache
20948if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20949 if test -w "$cache_file"; then
20950 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20952echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020953 cat confcache >$cache_file
20954 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020955 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20956echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020957 fi
20958fi
20959rm -f confcache
20960
20961test "x$prefix" = xNONE && prefix=$ac_default_prefix
20962# Let make expand exec_prefix.
20963test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20964
John Criswell7a73b802003-06-30 21:59:07 +000020965DEFS=-DHAVE_CONFIG_H
20966
John Criswell0c38eaf2003-09-10 15:17:25 +000020967ac_libobjs=
20968ac_ltlibobjs=
20969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20970 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020972 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20974 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020975 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20976 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020977done
20978LIBOBJS=$ac_libobjs
20979
20980LTLIBOBJS=$ac_ltlibobjs
20981
20982
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020983if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20985Usually this means the macro was only invoked conditionally." >&5
20986echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20987Usually this means the macro was only invoked conditionally." >&2;}
20988 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020989fi
20990if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020991 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20992Usually this means the macro was only invoked conditionally." >&5
20993echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20994Usually this means the macro was only invoked conditionally." >&2;}
20995 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020996fi
John Criswell7a73b802003-06-30 21:59:07 +000020997
20998: ${CONFIG_STATUS=./config.status}
20999ac_clean_files_save=$ac_clean_files
21000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021001{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21002echo "$as_me: creating $CONFIG_STATUS" >&6;}
21003cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021004#! $SHELL
21005# Generated by $as_me.
21006# Run this file to recreate the current configuration.
21007# Compiler output produced by configure, useful for debugging
21008# configure, is in config.log if it exists.
21009
21010debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021011ac_cs_recheck=false
21012ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021013SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021016cat >>$CONFIG_STATUS <<\_ACEOF
21017## --------------------- ##
21018## M4sh Initialization. ##
21019## --------------------- ##
21020
21021# Be Bourne compatible
21022if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021023 emulate sh
21024 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021026 # is contrary to our usage. Disable this feature.
21027 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021028 setopt NO_GLOB_SUBST
21029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021032BIN_SH=xpg4; export BIN_SH # for Tru64
21033DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021034
John Criswell7a73b802003-06-30 21:59:07 +000021035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036# PATH needs CR
21037# Avoid depending upon Character Ranges.
21038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21041as_cr_digits='0123456789'
21042as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021043
21044# The user is always right.
21045if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046 echo "#! /bin/sh" >conf$$.sh
21047 echo "exit 0" >>conf$$.sh
21048 chmod +x conf$$.sh
21049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21050 PATH_SEPARATOR=';'
21051 else
21052 PATH_SEPARATOR=:
21053 fi
21054 rm -f conf$$.sh
21055fi
21056
21057# Support unset when possible.
21058if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21059 as_unset=unset
21060else
21061 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021062fi
John Criswell7a73b802003-06-30 21:59:07 +000021063
Reid Spencera773bd52006-08-04 18:18:08 +000021064
21065# IFS
21066# We need space, tab and new line, in precisely that order. Quoting is
21067# there to prevent editors from complaining about space-tab.
21068# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21069# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070as_nl='
21071'
Reid Spencera773bd52006-08-04 18:18:08 +000021072IFS=" "" $as_nl"
21073
21074# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021076 *[\\/]* ) as_myself=$0 ;;
21077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021078for as_dir in $PATH
21079do
21080 IFS=$as_save_IFS
21081 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21083done
Reid Spencera773bd52006-08-04 18:18:08 +000021084IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021085
Reid Spencera773bd52006-08-04 18:18:08 +000021086 ;;
21087esac
21088# We did not find ourselves, most probably we were run as `sh COMMAND'
21089# in which case we are not to be found in the path.
21090if test "x$as_myself" = x; then
21091 as_myself=$0
21092fi
21093if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021094 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21095 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021096fi
21097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021098# Work around bugs in pre-3.0 UWIN ksh.
21099for as_var in ENV MAIL MAILPATH
21100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021101done
21102PS1='$ '
21103PS2='> '
21104PS4='+ '
21105
21106# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107for as_var in \
21108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21110 LC_TELEPHONE LC_TIME
21111do
21112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21113 eval $as_var=C; export $as_var
21114 else
21115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021116 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117done
Torok Edwin871384f2010-01-26 08:50:50 +000021118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021119# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021120if expr a : '\(a\)' >/dev/null 2>&1 &&
21121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21122 as_expr=expr
21123else
21124 as_expr=false
21125fi
21126
21127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21128 as_basename=basename
21129else
21130 as_basename=false
21131fi
21132
21133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021134# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021135as_me=`$as_basename -- "$0" ||
21136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21137 X"$0" : 'X\(//\)$' \| \
21138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021139echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021140 sed '/^.*\/\([^/][^/]*\)\/*$/{
21141 s//\1/
21142 q
21143 }
21144 /^X\/\(\/\/\)$/{
21145 s//\1/
21146 q
21147 }
21148 /^X\/\(\/\).*/{
21149 s//\1/
21150 q
21151 }
21152 s/.*/./; q'`
21153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154# CDPATH.
21155$as_unset CDPATH
21156
21157
21158
21159 as_lineno_1=$LINENO
21160 as_lineno_2=$LINENO
21161 test "x$as_lineno_1" != "x$as_lineno_2" &&
21162 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21163
21164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21165 # uniformly replaced by the line number. The first 'sed' inserts a
21166 # line-number line after each line using $LINENO; the second 'sed'
21167 # does the real work. The second script uses 'N' to pair each
21168 # line-number line with the line containing $LINENO, and appends
21169 # trailing '-' during substitution so that $LINENO is not a special
21170 # case at line end.
21171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21172 # scripts with optimization help from Paolo Bonzini. Blame Lee
21173 # E. McMahon (1931-1989) for sed's syntax. :-)
21174 sed -n '
21175 p
21176 /[$]LINENO/=
21177 ' <$as_myself |
21178 sed '
21179 s/[$]LINENO.*/&-/
21180 t lineno
21181 b
21182 :lineno
21183 N
21184 :loop
21185 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21186 t loop
21187 s/-\n.*//
21188 ' >$as_me.lineno &&
21189 chmod +x "$as_me.lineno" ||
21190 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21191 { (exit 1); exit 1; }; }
21192
21193 # Don't try to exec as it changes $[0], causing all sort of problems
21194 # (the dirname of $[0] is not the place where we might find the
21195 # original and so on. Autoconf is especially sensitive to this).
21196 . "./$as_me.lineno"
21197 # Exit status is that of the last command.
21198 exit
21199}
21200
21201
21202if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21203 as_dirname=dirname
21204else
21205 as_dirname=false
21206fi
Reid Spencera773bd52006-08-04 18:18:08 +000021207
21208ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021210-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021212 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021214 esac;;
21215*)
21216 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021217esac
21218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219if expr a : '\(a\)' >/dev/null 2>&1 &&
21220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21221 as_expr=expr
21222else
21223 as_expr=false
21224fi
21225
John Criswell7a73b802003-06-30 21:59:07 +000021226rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021227if test -d conf$$.dir; then
21228 rm -f conf$$.dir/conf$$.file
21229else
21230 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233echo >conf$$.file
21234if ln -s conf$$.file conf$$ 2>/dev/null; then
21235 as_ln_s='ln -s'
21236 # ... but there are two gotchas:
21237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21239 # In both cases, we have to default to `cp -p'.
21240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021241 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021242elif ln conf$$.file conf$$ 2>/dev/null; then
21243 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021244else
21245 as_ln_s='cp -p'
21246fi
Reid Spencera773bd52006-08-04 18:18:08 +000021247rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21248rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021249
John Criswell0c38eaf2003-09-10 15:17:25 +000021250if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021252else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021253 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021254 as_mkdir_p=false
21255fi
21256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21258# systems may use methods other than mode bits to determine executability.
21259cat >conf$$.file <<_ASEOF
21260#! /bin/sh
21261exit 0
21262_ASEOF
21263chmod +x conf$$.file
21264if test -x conf$$.file >/dev/null 2>&1; then
21265 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021270
21271# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021272as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021273
21274# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021275as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021276
21277
John Criswell7a73b802003-06-30 21:59:07 +000021278exec 6>&1
21279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021281# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021282# values after options handling.
21283ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021284This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021285generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021286
21287 CONFIG_FILES = $CONFIG_FILES
21288 CONFIG_HEADERS = $CONFIG_HEADERS
21289 CONFIG_LINKS = $CONFIG_LINKS
21290 CONFIG_COMMANDS = $CONFIG_COMMANDS
21291 $ $0 $@
21292
Reid Spencera773bd52006-08-04 18:18:08 +000021293on `(hostname || uname -n) 2>/dev/null | sed 1q`
21294"
21295
John Criswell7a73b802003-06-30 21:59:07 +000021296_ACEOF
21297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021299# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021300config_files="$ac_config_files"
21301config_headers="$ac_config_headers"
21302config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021303
Reid Spencera773bd52006-08-04 18:18:08 +000021304_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021307ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021308\`$as_me' instantiates files from templates according to the
21309current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021311Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021312
21313 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021314 -V, --version print version number, then exit
21315 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021316 -d, --debug don't remove temporary files
21317 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021318 --file=FILE[:TEMPLATE]
21319 instantiate the configuration file FILE
21320 --header=FILE[:TEMPLATE]
21321 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021322
21323Configuration files:
21324$config_files
21325
21326Configuration headers:
21327$config_headers
21328
John Criswellc764fbc2003-09-06 15:17:13 +000021329Configuration commands:
21330$config_commands
21331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021333
Reid Spencera773bd52006-08-04 18:18:08 +000021334_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021335cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021336ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021337llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021338configured by $0, generated by GNU Autoconf 2.60,
21339 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021342This config.status script is free software; the Free Software Foundation
21343gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021344
21345ac_pwd='$ac_pwd'
21346srcdir='$srcdir'
21347INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021348_ACEOF
21349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021350cat >>$CONFIG_STATUS <<\_ACEOF
21351# If no file are specified by the user, then we need to provide default
21352# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021353ac_need_defaults=:
21354while test $# != 0
21355do
21356 case $1 in
21357 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021358 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21359 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021360 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021362 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021363 ac_option=$1
21364 ac_optarg=$2
21365 ac_shift=shift
21366 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021367 esac
21368
John Criswell0c38eaf2003-09-10 15:17:25 +000021369 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021370 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21372 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021373 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021375 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021376 debug=: ;;
21377 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021378 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021380 ac_need_defaults=false;;
21381 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021382 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021384 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021385 --he | --h)
21386 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021387 { echo "$as_me: error: ambiguous option: $1
21388Try \`$0 --help' for more information." >&2
21389 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021390 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21394 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021395
21396 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021397 -*) { echo "$as_me: error: unrecognized option: $1
21398Try \`$0 --help' for more information." >&2
21399 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021401 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021402 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021403
21404 esac
21405 shift
21406done
21407
John Criswell0c38eaf2003-09-10 15:17:25 +000021408ac_configure_extra_args=
21409
21410if $ac_cs_silent; then
21411 exec 6>/dev/null
21412 ac_configure_extra_args="$ac_configure_extra_args --silent"
21413fi
21414
21415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021417if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021418 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21419 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021420 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021422fi
21423
John Criswell7a73b802003-06-30 21:59:07 +000021424_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021426exec 5>>config.log
21427{
21428 echo
21429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21430## Running $as_me. ##
21431_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021432 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021433} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021434
Reid Spencera773bd52006-08-04 18:18:08 +000021435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021437#
Reid Spencera773bd52006-08-04 18:18:08 +000021438# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021439#
Reid Spencerc0682832005-02-24 19:05:19 +000021440llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021441
21442_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021445
21446# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021447for ac_config_target in $ac_config_targets
21448do
Reid Spencera773bd52006-08-04 18:18:08 +000021449 case $ac_config_target in
21450 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021451 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021452 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21453 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021454 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021455 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021456 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021457 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021458 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021459 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021460 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21461 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21462 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21463 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21464 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21465 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021466 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021467 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21468 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021469 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021470 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21471 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21472 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021473 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21474 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21477echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21478 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021479 esac
21480done
21481
Reid Spencera773bd52006-08-04 18:18:08 +000021482
John Criswell7a73b802003-06-30 21:59:07 +000021483# If the user did not use the arguments to specify the items to instantiate,
21484# then the envvar interface is used. Set only those that are not.
21485# We use the long form for the default assignment because of an extremely
21486# bizarre bug on SunOS 4.1.3.
21487if $ac_need_defaults; then
21488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021491fi
21492
John Criswell0c38eaf2003-09-10 15:17:25 +000021493# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021494# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021495# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021496# Hook for its removal unless debugging.
21497# Note that there is a small window in which the directory will not be cleaned:
21498# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021499$debug ||
21500{
Reid Spencera773bd52006-08-04 18:18:08 +000021501 tmp=
21502 trap 'exit_status=$?
21503 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21504' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021506}
John Criswell7a73b802003-06-30 21:59:07 +000021507# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021508
John Criswell7a73b802003-06-30 21:59:07 +000021509{
Reid Spencera773bd52006-08-04 18:18:08 +000021510 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021511 test -n "$tmp" && test -d "$tmp"
21512} ||
21513{
Reid Spencera773bd52006-08-04 18:18:08 +000021514 tmp=./conf$$-$RANDOM
21515 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516} ||
21517{
21518 echo "$me: cannot create a temporary directory in ." >&2
21519 { (exit 1); exit 1; }
21520}
John Criswell7a73b802003-06-30 21:59:07 +000021521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522#
21523# Set up the sed scripts for CONFIG_FILES section.
21524#
21525
21526# No need to generate the scripts if there are no CONFIG_FILES.
21527# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021528if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021529
21530_ACEOF
21531
Reid Spencera773bd52006-08-04 18:18:08 +000021532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533
Reid Spencera773bd52006-08-04 18:18:08 +000021534ac_delim='%!_!# '
21535for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536 cat >conf$$subs.sed <<_ACEOF
21537SHELL!$SHELL$ac_delim
21538PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21539PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21540PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21541PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21542PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21543PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21544exec_prefix!$exec_prefix$ac_delim
21545prefix!$prefix$ac_delim
21546program_transform_name!$program_transform_name$ac_delim
21547bindir!$bindir$ac_delim
21548sbindir!$sbindir$ac_delim
21549libexecdir!$libexecdir$ac_delim
21550datarootdir!$datarootdir$ac_delim
21551datadir!$datadir$ac_delim
21552sysconfdir!$sysconfdir$ac_delim
21553sharedstatedir!$sharedstatedir$ac_delim
21554localstatedir!$localstatedir$ac_delim
21555includedir!$includedir$ac_delim
21556oldincludedir!$oldincludedir$ac_delim
21557docdir!$docdir$ac_delim
21558infodir!$infodir$ac_delim
21559htmldir!$htmldir$ac_delim
21560dvidir!$dvidir$ac_delim
21561pdfdir!$pdfdir$ac_delim
21562psdir!$psdir$ac_delim
21563libdir!$libdir$ac_delim
21564localedir!$localedir$ac_delim
21565mandir!$mandir$ac_delim
21566DEFS!$DEFS$ac_delim
21567ECHO_C!$ECHO_C$ac_delim
21568ECHO_N!$ECHO_N$ac_delim
21569ECHO_T!$ECHO_T$ac_delim
21570LIBS!$LIBS$ac_delim
21571build_alias!$build_alias$ac_delim
21572host_alias!$host_alias$ac_delim
21573target_alias!$target_alias$ac_delim
21574LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21575subdirs!$subdirs$ac_delim
21576build!$build$ac_delim
21577build_cpu!$build_cpu$ac_delim
21578build_vendor!$build_vendor$ac_delim
21579build_os!$build_os$ac_delim
21580host!$host$ac_delim
21581host_cpu!$host_cpu$ac_delim
21582host_vendor!$host_vendor$ac_delim
21583host_os!$host_os$ac_delim
21584target!$target$ac_delim
21585target_cpu!$target_cpu$ac_delim
21586target_vendor!$target_vendor$ac_delim
21587target_os!$target_os$ac_delim
21588OS!$OS$ac_delim
21589HOST_OS!$HOST_OS$ac_delim
21590TARGET_OS!$TARGET_OS$ac_delim
21591LINKALL!$LINKALL$ac_delim
21592NOLINKALL!$NOLINKALL$ac_delim
21593LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21594LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21595ARCH!$ARCH$ac_delim
21596ENDIAN!$ENDIAN$ac_delim
21597CC!$CC$ac_delim
21598CFLAGS!$CFLAGS$ac_delim
21599LDFLAGS!$LDFLAGS$ac_delim
21600CPPFLAGS!$CPPFLAGS$ac_delim
21601ac_ct_CC!$ac_ct_CC$ac_delim
21602EXEEXT!$EXEEXT$ac_delim
21603OBJEXT!$OBJEXT$ac_delim
21604CPP!$CPP$ac_delim
21605GREP!$GREP$ac_delim
21606EGREP!$EGREP$ac_delim
21607LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21608BUILD_CC!$BUILD_CC$ac_delim
21609BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21610BUILD_CXX!$BUILD_CXX$ac_delim
21611CVSBUILD!$CVSBUILD$ac_delim
21612ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21613ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21614DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21615ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21616EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21617DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21618DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21619JIT!$JIT$ac_delim
21620TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21621ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21622ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21623ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021624ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021625ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21627LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21628LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21629LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21630LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21631ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021632CLANGPATH!$CLANGPATH$ac_delim
21633CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021637 break
21638 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021639 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21640echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21641 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021642 else
21643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021644 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021645done
21646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21648if test -n "$ac_eof"; then
21649 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21650 ac_eof=`expr $ac_eof + 1`
21651fi
21652
21653cat >>$CONFIG_STATUS <<_ACEOF
21654cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21655/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021656_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657sed '
21658s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21659s/^/s,@/; s/!/@,|#_!!_#|/
21660:n
21661t n
21662s/'"$ac_delim"'$/,g/; t
21663s/$/\\/; p
21664N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21665' >>$CONFIG_STATUS <conf$$subs.sed
21666rm -f conf$$subs.sed
21667cat >>$CONFIG_STATUS <<_ACEOF
21668CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021669_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670
21671
21672ac_delim='%!_!# '
21673for ac_last_try in false false false false false :; do
21674 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021675ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021676OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021677EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21678BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679CXX!$CXX$ac_delim
21680CXXFLAGS!$CXXFLAGS$ac_delim
21681ac_ct_CXX!$ac_ct_CXX$ac_delim
21682NM!$NM$ac_delim
21683ifGNUmake!$ifGNUmake$ac_delim
21684LN_S!$LN_S$ac_delim
21685CMP!$CMP$ac_delim
21686CP!$CP$ac_delim
21687DATE!$DATE$ac_delim
21688FIND!$FIND$ac_delim
21689MKDIR!$MKDIR$ac_delim
21690MV!$MV$ac_delim
21691RANLIB!$RANLIB$ac_delim
21692AR!$AR$ac_delim
21693RM!$RM$ac_delim
21694SED!$SED$ac_delim
21695TAR!$TAR$ac_delim
21696BINPWD!$BINPWD$ac_delim
21697GRAPHVIZ!$GRAPHVIZ$ac_delim
21698DOT!$DOT$ac_delim
21699FDP!$FDP$ac_delim
21700NEATO!$NEATO$ac_delim
21701TWOPI!$TWOPI$ac_delim
21702CIRCO!$CIRCO$ac_delim
21703GV!$GV$ac_delim
21704DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021705XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706PERL!$PERL$ac_delim
21707HAVE_PERL!$HAVE_PERL$ac_delim
21708INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21709INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21710INSTALL_DATA!$INSTALL_DATA$ac_delim
21711BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021712CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713DOXYGEN!$DOXYGEN$ac_delim
21714GROFF!$GROFF$ac_delim
21715GZIP!$GZIP$ac_delim
21716POD2HTML!$POD2HTML$ac_delim
21717POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021718PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719RUNTEST!$RUNTEST$ac_delim
21720TCLSH!$TCLSH$ac_delim
21721ZIP!$ZIP$ac_delim
21722OCAMLC!$OCAMLC$ac_delim
21723OCAMLOPT!$OCAMLOPT$ac_delim
21724OCAMLDEP!$OCAMLDEP$ac_delim
21725OCAMLDOC!$OCAMLDOC$ac_delim
21726GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021727HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21729INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21730CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21731CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21732LIBADD_DL!$LIBADD_DL$ac_delim
21733LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21734LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21735LLVMGCC!$LLVMGCC$ac_delim
21736LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021737LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021738NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21739NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21740USE_UDIS86!$USE_UDIS86$ac_delim
21741USE_OPROFILE!$USE_OPROFILE$ac_delim
21742HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21743HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21744MMAP_FILE!$MMAP_FILE$ac_delim
21745LLVMCC1!$LLVMCC1$ac_delim
21746LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21747LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021748LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21749SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021750SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021751LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21752LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21753LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21754LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21755LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21756LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21757LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21758LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21759LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21760LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21761BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21762ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21763OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21764ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21765RPATH!$RPATH$ac_delim
21766RDYNAMIC!$RDYNAMIC$ac_delim
21767LIBOBJS!$LIBOBJS$ac_delim
21768LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021769_ACEOF
21770
Dan Gohman48fd5a72010-09-27 16:28:34 +000021771 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 break
21773 elif $ac_last_try; then
21774 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21775echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21776 { (exit 1); exit 1; }; }
21777 else
21778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21779 fi
21780done
21781
21782ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21783if test -n "$ac_eof"; then
21784 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21785 ac_eof=`expr $ac_eof + 1`
21786fi
21787
21788cat >>$CONFIG_STATUS <<_ACEOF
21789cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21791_ACEOF
21792sed '
21793s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21794s/^/s,@/; s/!/@,|#_!!_#|/
21795:n
21796t n
21797s/'"$ac_delim"'$/,g/; t
21798s/$/\\/; p
21799N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21800' >>$CONFIG_STATUS <conf$$subs.sed
21801rm -f conf$$subs.sed
21802cat >>$CONFIG_STATUS <<_ACEOF
21803:end
21804s/|#_!!_#|//g
21805CEOF$ac_eof
21806_ACEOF
21807
21808
Reid Spencera773bd52006-08-04 18:18:08 +000021809# VPATH may cause trouble with some makes, so we remove $(srcdir),
21810# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21811# trailing colons and then remove the whole line if VPATH becomes empty
21812# (actually we leave an empty line to preserve line numbers).
21813if test "x$srcdir" = x.; then
21814 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21815s/:*\$(srcdir):*/:/
21816s/:*\${srcdir}:*/:/
21817s/:*@srcdir@:*/:/
21818s/^\([^=]*=[ ]*\):*/\1/
21819s/:*$//
21820s/^[^=]*=[ ]*$//
21821}'
21822fi
21823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021825fi # test -n "$CONFIG_FILES"
21826
Reid Spencera773bd52006-08-04 18:18:08 +000021827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021829do
21830 case $ac_tag in
21831 :[FHLC]) ac_mode=$ac_tag; continue;;
21832 esac
21833 case $ac_mode$ac_tag in
21834 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21836echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21837 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021838 :[FH]-) ac_tag=-:-;;
21839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21840 esac
21841 ac_save_IFS=$IFS
21842 IFS=:
21843 set x $ac_tag
21844 IFS=$ac_save_IFS
21845 shift
21846 ac_file=$1
21847 shift
21848
21849 case $ac_mode in
21850 :L) ac_source=$1;;
21851 :[FH])
21852 ac_file_inputs=
21853 for ac_f
21854 do
21855 case $ac_f in
21856 -) ac_f="$tmp/stdin";;
21857 *) # Look for the file first in the build tree, then in the source tree
21858 # (if the path is not absolute). The absolute path cannot be DOS-style,
21859 # because $ac_f cannot contain `:'.
21860 test -f "$ac_f" ||
21861 case $ac_f in
21862 [\\/$]*) false;;
21863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21864 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21866echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21867 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021868 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021870 done
21871
21872 # Let's still pretend it is `configure' which instantiates (i.e., don't
21873 # use $as_me), people would be surprised to read:
21874 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 configure_input="Generated from "`IFS=:
21876 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021877 if test x"$ac_file" != x-; then
21878 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 { echo "$as_me:$LINENO: creating $ac_file" >&5
21880echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021881 fi
21882
21883 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021884 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021885 esac
21886 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021887 esac
21888
Reid Spencera773bd52006-08-04 18:18:08 +000021889 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021890$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021891 X"$ac_file" : 'X\(//\)[^/]' \| \
21892 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021894echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21896 s//\1/
21897 q
21898 }
21899 /^X\(\/\/\)[^/].*/{
21900 s//\1/
21901 q
21902 }
21903 /^X\(\/\/\)$/{
21904 s//\1/
21905 q
21906 }
21907 /^X\(\/\).*/{
21908 s//\1/
21909 q
21910 }
21911 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021912 { as_dir="$ac_dir"
21913 case $as_dir in #(
21914 -*) as_dir=./$as_dir;;
21915 esac
21916 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21917 as_dirs=
21918 while :; do
21919 case $as_dir in #(
21920 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21921 *) as_qdir=$as_dir;;
21922 esac
21923 as_dirs="'$as_qdir' $as_dirs"
21924 as_dir=`$as_dirname -- "$as_dir" ||
21925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21926 X"$as_dir" : 'X\(//\)[^/]' \| \
21927 X"$as_dir" : 'X\(//\)$' \| \
21928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21929echo X"$as_dir" |
21930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21931 s//\1/
21932 q
21933 }
21934 /^X\(\/\/\)[^/].*/{
21935 s//\1/
21936 q
21937 }
21938 /^X\(\/\/\)$/{
21939 s//\1/
21940 q
21941 }
21942 /^X\(\/\).*/{
21943 s//\1/
21944 q
21945 }
21946 s/.*/./; q'`
21947 test -d "$as_dir" && break
21948 done
21949 test -z "$as_dirs" || eval "mkdir $as_dirs"
21950 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21951echo "$as_me: error: cannot create directory $as_dir" >&2;}
21952 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021953 ac_builddir=.
21954
Reid Spencera773bd52006-08-04 18:18:08 +000021955case "$ac_dir" in
21956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21957*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021959 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021960 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021961 case $ac_top_builddir_sub in
21962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21964 esac ;;
21965esac
21966ac_abs_top_builddir=$ac_pwd
21967ac_abs_builddir=$ac_pwd$ac_dir_suffix
21968# for backward compatibility:
21969ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021970
21971case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021972 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021973 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021974 ac_top_srcdir=$ac_top_builddir_sub
21975 ac_abs_top_srcdir=$ac_pwd ;;
21976 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021977 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021978 ac_top_srcdir=$srcdir
21979 ac_abs_top_srcdir=$srcdir ;;
21980 *) # Relative name.
21981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21982 ac_top_srcdir=$ac_top_build_prefix$srcdir
21983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021984esac
Reid Spencera773bd52006-08-04 18:18:08 +000021985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021986
John Criswell7a73b802003-06-30 21:59:07 +000021987
Reid Spencera773bd52006-08-04 18:18:08 +000021988 case $ac_mode in
21989 :F)
21990 #
21991 # CONFIG_FILE
21992 #
John Criswell7a73b802003-06-30 21:59:07 +000021993
21994 case $INSTALL in
21995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021997 esac
John Criswell7a73b802003-06-30 21:59:07 +000021998_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022001# If the template does not know about datarootdir, expand it.
22002# FIXME: This hack should be removed a few years after 2.60.
22003ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022004
22005case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022006 p
22007 q
22008}
22009/@datadir@/p
22010/@docdir@/p
22011/@infodir@/p
22012/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022013/@mandir@/p
22014' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022015*datarootdir*) ac_datarootdir_seen=yes;;
22016*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022017 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22018echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022019_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022020cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022021 ac_datarootdir_hack='
22022 s&@datadir@&$datadir&g
22023 s&@docdir@&$docdir&g
22024 s&@infodir@&$infodir&g
22025 s&@localedir@&$localedir&g
22026 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022027 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022028esac
22029_ACEOF
22030
22031# Neutralize VPATH when `$srcdir' = `.'.
22032# Shell code in configure.ac might set extrasub.
22033# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022034cat >>$CONFIG_STATUS <<_ACEOF
22035 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022036$extrasub
22037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022038cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022039:t
22040/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022042s&@top_builddir@&$ac_top_builddir_sub&;t t
22043s&@srcdir@&$ac_srcdir&;t t
22044s&@abs_srcdir@&$ac_abs_srcdir&;t t
22045s&@top_srcdir@&$ac_top_srcdir&;t t
22046s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22047s&@builddir@&$ac_builddir&;t t
22048s&@abs_builddir@&$ac_abs_builddir&;t t
22049s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22050s&@INSTALL@&$ac_INSTALL&;t t
22051$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022053
Reid Spencera773bd52006-08-04 18:18:08 +000022054test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22055 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022058which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022060which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022061
Reid Spencera773bd52006-08-04 18:18:08 +000022062 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022063 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064 -) cat "$tmp/out"; rm -f "$tmp/out";;
22065 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22066 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022067 ;;
22068 :H)
22069 #
22070 # CONFIG_HEADER
22071 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022072_ACEOF
22073
22074# Transform confdefs.h into a sed script `conftest.defines', that
22075# substitutes the proper values into config.h.in to produce config.h.
22076rm -f conftest.defines conftest.tail
22077# First, append a space to every undef/define line, to ease matching.
22078echo 's/$/ /' >conftest.defines
22079# Then, protect against being on the right side of a sed subst, or in
22080# an unquoted here document, in config.status. If some macros were
22081# called several times there might be several #defines for the same
22082# symbol, which is useless. But do not sort them, since the last
22083# AC_DEFINE must be honored.
22084ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22085# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22086# NAME is the cpp macro being defined, VALUE is the value it is being given.
22087# PARAMS is the parameter list in the macro definition--in most cases, it's
22088# just an empty string.
22089ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22090ac_dB='\\)[ (].*,\\1define\\2'
22091ac_dC=' '
22092ac_dD=' ,'
22093
22094uniq confdefs.h |
22095 sed -n '
22096 t rset
22097 :rset
22098 s/^[ ]*#[ ]*define[ ][ ]*//
22099 t ok
22100 d
22101 :ok
22102 s/[\\&,]/\\&/g
22103 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22104 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22105 ' >>conftest.defines
22106
22107# Remove the space that was appended to ease matching.
22108# Then replace #undef with comments. This is necessary, for
22109# example, in the case of _POSIX_SOURCE, which is predefined and required
22110# on some systems where configure will not decide to define it.
22111# (The regexp can be short, since the line contains either #define or #undef.)
22112echo 's/ $//
22113s,^[ #]*u.*,/* & */,' >>conftest.defines
22114
22115# Break up conftest.defines:
22116ac_max_sed_lines=50
22117
22118# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22119# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22120# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22121# et cetera.
22122ac_in='$ac_file_inputs'
22123ac_out='"$tmp/out1"'
22124ac_nxt='"$tmp/out2"'
22125
22126while :
22127do
22128 # Write a here document:
22129 cat >>$CONFIG_STATUS <<_ACEOF
22130 # First, check the format of the line:
22131 cat >"\$tmp/defines.sed" <<\\CEOF
22132/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22133/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22134b
22135:def
22136_ACEOF
22137 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22138 echo 'CEOF
22139 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22140 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22141 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22142 grep . conftest.tail >/dev/null || break
22143 rm -f conftest.defines
22144 mv conftest.tail conftest.defines
22145done
22146rm -f conftest.defines conftest.tail
22147
22148echo "ac_result=$ac_in" >>$CONFIG_STATUS
22149cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022150 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151 echo "/* $configure_input */" >"$tmp/config.h"
22152 cat "$ac_result" >>"$tmp/config.h"
22153 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22155echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022156 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157 rm -f $ac_file
22158 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022159 fi
22160 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 echo "/* $configure_input */"
22162 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022163 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022165 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022167 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22168echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022169 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022170 esac
John Criswell7a73b802003-06-30 21:59:07 +000022171
Reid Spencera773bd52006-08-04 18:18:08 +000022172
22173 case $ac_file$ac_mode in
22174 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022175 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022176 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022177 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022178 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022179 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022180 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022181 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022182 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022184 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022186 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022188 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022190 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022192 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022194 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022196 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022198 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022199 ${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 +000022200
22201 esac
22202done # for ac_tag
22203
John Criswell7a73b802003-06-30 21:59:07 +000022204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022205{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022207chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022208ac_clean_files=$ac_clean_files_save
22209
22210
22211# configure is writing to config.log, and then calls config.status.
22212# config.status does its own redirection, appending to config.log.
22213# Unfortunately, on DOS this fails, as config.log is still kept open
22214# by configure, so config.status won't be able to write to it; its
22215# output is simply discarded. So we exec the FD to /dev/null,
22216# effectively closing config.log, so it can be properly (re)opened and
22217# appended to by config.status. When coming back to configure, we
22218# need to make the FD available again.
22219if test "$no_create" != yes; then
22220 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022221 ac_config_status_args=
22222 test "$silent" = yes &&
22223 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022224 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022226 exec 5>>config.log
22227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22228 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022229 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022230fi
22231
John Criswell12399a12003-09-30 15:55:44 +000022232#
22233# CONFIG_SUBDIRS section.
22234#
22235if test "$no_recursion" != yes; then
22236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022238 ac_sub_configure_args=
22239 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022240 eval "set x $ac_configure_args"
22241 shift
22242 for ac_arg
22243 do
John Criswell12399a12003-09-30 15:55:44 +000022244 if test -n "$ac_prev"; then
22245 ac_prev=
22246 continue
22247 fi
22248 case $ac_arg in
22249 -cache-file | --cache-file | --cache-fil | --cache-fi \
22250 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22251 ac_prev=cache_file ;;
22252 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22253 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22254 | --c=*)
22255 ;;
22256 --config-cache | -C)
22257 ;;
22258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22259 ac_prev=srcdir ;;
22260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22261 ;;
22262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22263 ac_prev=prefix ;;
22264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22265 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022266 *)
22267 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022268 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022269 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022271 esac
22272 done
22273
22274 # Always prepend --prefix to ensure using the same prefix
22275 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022276 ac_arg="--prefix=$prefix"
22277 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022278 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022279 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022281
22282 ac_popdir=`pwd`
22283 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22284
22285 # Do not complain, so a configure script can configure whichever
22286 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022287 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022288
Reid Spencera773bd52006-08-04 18:18:08 +000022289 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290 echo "$as_me:$LINENO: $ac_msg" >&5
22291 echo "$ac_msg" >&6
22292 { as_dir="$ac_dir"
22293 case $as_dir in #(
22294 -*) as_dir=./$as_dir;;
22295 esac
22296 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22297 as_dirs=
22298 while :; do
22299 case $as_dir in #(
22300 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22301 *) as_qdir=$as_dir;;
22302 esac
22303 as_dirs="'$as_qdir' $as_dirs"
22304 as_dir=`$as_dirname -- "$as_dir" ||
22305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22306 X"$as_dir" : 'X\(//\)[^/]' \| \
22307 X"$as_dir" : 'X\(//\)$' \| \
22308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22309echo X"$as_dir" |
22310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22311 s//\1/
22312 q
22313 }
22314 /^X\(\/\/\)[^/].*/{
22315 s//\1/
22316 q
22317 }
22318 /^X\(\/\/\)$/{
22319 s//\1/
22320 q
22321 }
22322 /^X\(\/\).*/{
22323 s//\1/
22324 q
22325 }
22326 s/.*/./; q'`
22327 test -d "$as_dir" && break
22328 done
22329 test -z "$as_dirs" || eval "mkdir $as_dirs"
22330 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22331echo "$as_me: error: cannot create directory $as_dir" >&2;}
22332 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022333 ac_builddir=.
22334
Reid Spencera773bd52006-08-04 18:18:08 +000022335case "$ac_dir" in
22336.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022339 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022340 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022341 case $ac_top_builddir_sub in
22342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22344 esac ;;
22345esac
22346ac_abs_top_builddir=$ac_pwd
22347ac_abs_builddir=$ac_pwd$ac_dir_suffix
22348# for backward compatibility:
22349ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022350
22351case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022352 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022353 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022354 ac_top_srcdir=$ac_top_builddir_sub
22355 ac_abs_top_srcdir=$ac_pwd ;;
22356 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022357 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022358 ac_top_srcdir=$srcdir
22359 ac_abs_top_srcdir=$srcdir ;;
22360 *) # Relative name.
22361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22362 ac_top_srcdir=$ac_top_build_prefix$srcdir
22363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022364esac
Reid Spencera773bd52006-08-04 18:18:08 +000022365ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022366
22367
Reid Spencera773bd52006-08-04 18:18:08 +000022368 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022369
22370 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022371 if test -f "$ac_srcdir/configure.gnu"; then
22372 ac_sub_configure=$ac_srcdir/configure.gnu
22373 elif test -f "$ac_srcdir/configure"; then
22374 ac_sub_configure=$ac_srcdir/configure
22375 elif test -f "$ac_srcdir/configure.in"; then
22376 # This should be Cygnus configure.
22377 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022378 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22380echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022381 ac_sub_configure=
22382 fi
22383
22384 # The recursion is here.
22385 if test -n "$ac_sub_configure"; then
22386 # Make the cache file name correct relative to the subdirectory.
22387 case $cache_file in
22388 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022389 *) # Relative name.
22390 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022391 esac
22392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022393 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22394echo "$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 +000022395 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022396 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22397 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22399echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22400 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022401 fi
22402
Reid Spencera773bd52006-08-04 18:18:08 +000022403 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022404 done
22405fi
22406