blob: f3f444e21ba28567b72cd33a2ab7dcb183cb5c4d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
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
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000694ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000696ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000697ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000698ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699TARGETS_TO_BUILD
700LLVM_ENUM_TARGETS
701LLVM_ENUM_ASM_PRINTERS
702LLVM_ENUM_ASM_PARSERS
703LLVM_ENUM_DISASSEMBLERS
704ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000705CLANGPATH
706CLANGXXPATH
707ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712CXX
713CXXFLAGS
714ac_ct_CXX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CPP
814CXX
815CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000816CCC'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001474 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001477 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CC C compiler command
1483 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001487 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001488 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to <llvmbugs@cs.uiuc.edu>.
1496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001497ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001503 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_builddir=.
1505
Reid Spencera773bd52006-08-04 18:18:08 +00001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001521
1522case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001523 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001524 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001535esac
Reid Spencera773bd52006-08-04 18:18:08 +00001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001537
Reid Spencera773bd52006-08-04 18:18:08 +00001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001546 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001550 done
1551fi
1552
Reid Spencera773bd52006-08-04 18:18:08 +00001553test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001554if $ac_init_version; then
1555 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001556llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001564Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566 exit
John Criswell7a73b802003-06-30 21:59:07 +00001567fi
Reid Spencera773bd52006-08-04 18:18:08 +00001568cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001572It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001573generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575 $ $0 $@
1576
1577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001578exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001609 echo "PATH: $as_dir"
1610done
Reid Spencera773bd52006-08-04 18:18:08 +00001611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
1625# Keep a trace of the command line.
1626# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001628# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001630ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_configure_args0=
1632ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_must_keep_next=false
1634for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001635do
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001643 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 esac
1646 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 ;;
1667 esac
1668 done
John Criswell7a73b802003-06-30 21:59:07 +00001669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671$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 +00001672
1673# When interrupted or exit'd, cleanup temporary files, and complete
1674# config.log. We remove comments because anyway the quotes in there
1675# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001676# WARNING: Use '\'' to represent an apostrophe within the trap.
1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001678trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001682
John Criswell7a73b802003-06-30 21:59:07 +00001683 cat <<\_ASBOX
1684## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##
1687_ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001690(
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001701 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac ;;
1703 esac
1704 done
John Criswell7a73b802003-06-30 21:59:07 +00001705 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001708 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001712 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001715 esac |
1716 sort
1717)
John Criswell7a73b802003-06-30 21:59:07 +00001718 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001719
1720 cat <<\_ASBOX
1721## ----------------- ##
1722## Output variables. ##
1723## ----------------- ##
1724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
Reid Spencera773bd52006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001738## ------------------- ##
1739## File substitutions. ##
1740## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
Reid Spencera773bd52006-08-04 18:18:08 +00001745 eval ac_val=\$$ac_var
1746 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001748 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 done | sort
1751 echo
1752 fi
1753
John Criswell7a73b802003-06-30 21:59:07 +00001754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756## ----------- ##
1757## confdefs.h. ##
1758## ----------- ##
1759_ASBOX
1760 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001761 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001767 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001770 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001771' 0
John Criswell7a73b802003-06-30 21:59:07 +00001772for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001774done
1775ac_signal=0
1776
1777# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001778rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001779
1780# Predefined preprocessor variables.
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_NAME "$PACKAGE_NAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_VERSION "$PACKAGE_VERSION"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_STRING "$PACKAGE_STRING"
1799_ACEOF
1800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801
John Criswell7a73b802003-06-30 21:59:07 +00001802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806
1807# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001809if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001811elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817shift
1818for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001819do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826done
1827
1828if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001837 esac
1838 fi
1839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 >$cache_file
1843fi
1844
1845# Check that the precious variables saved in the cache have kept the same
1846# value.
1847ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001848for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001853 case $ac_old_set,$ac_new_set in
1854 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001857 ac_cache_corrupted=: ;;
1858 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001883 esac
1884 fi
1885done
1886if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
Reid Spencera773bd52006-08-04 18:18:08 +00001917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001926LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001927
1928
1929
1930
1931
1932
1933
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
John Criswell7a73b802003-06-30 21:59:07 +00001949done
1950if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001954fi
Reid Spencera773bd52006-08-04 18:18:08 +00001955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964
John Criswell392aaa32003-07-22 19:18:09 +00001965
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971 fi
John Criswell93e1c722003-09-15 17:04:06 +00001972fi
1973
John Criswell0157f502010-03-19 21:31:39 +00001974
1975
1976if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1978
1979fi
1980
1981if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1983
1984fi
1985
1986if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1988
1989fi
1990
1991if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1993
1994fi
1995
1996if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
1998
1999fi
2000
John Criswell33a911a2003-11-25 20:36:46 +00002001for i in `ls ${srcdir}/projects`
2002do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 if test -d ${srcdir}/projects/${i} ; then
2004 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002014 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002016 ;;
John Criswell7def2932010-02-25 22:57:19 +00002017 safecode) subdirs="$subdirs projects/safecode"
2018 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002020 ;;
John Criswell52c02862010-03-25 13:59:09 +00002021 llvm-gcc) ;;
2022 test-suite) ;;
2023 llvm-test) ;;
2024 poolalloc) ;;
2025 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002026 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002029 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002030 esac
John Criswell33a911a2003-11-25 20:36:46 +00002031 fi
2032done
John Criswell559a6c12003-09-30 16:31:48 +00002033
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002034# Check whether --enable-polly was given.
2035if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2037else
2038 enableval=default
2039fi
2040
2041case "$enableval" in
2042 yes) ENABLE_POLLY=1
2043 ;;
2044 no) ENABLE_POLLY=0
2045 ;;
2046 default) ENABLE_POLLY=1
2047 ;;
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2051esac
2052
2053
2054if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 LLVM_HAS_POLLY=1
2056
2057 subdirs="$subdirs tools/polly"
2058
2059fi
2060
John Criswell7a73b802003-06-30 21:59:07 +00002061
2062# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002063$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: checking build system type" >&5
2069echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
Reid Spencera773bd52006-08-04 18:18:08 +00002073 ac_build_alias=$build_alias
2074test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002084
2085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002088case $ac_cv_build in
2089*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002093esac
John Criswell7a73b802003-06-30 21:59:07 +00002094build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002095ac_save_IFS=$IFS; IFS='-'
2096set x $ac_cv_build
2097shift
2098build_cpu=$1
2099build_vendor=$2
2100shift; shift
2101# Remember, the first character of IFS is used to create $*,
2102# except with old shells:
2103build_os=$*
2104IFS=$ac_save_IFS
2105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002106
2107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108{ echo "$as_me:$LINENO: checking host system type" >&5
2109echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002112else
Reid Spencera773bd52006-08-04 18:18:08 +00002113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2115else
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002120fi
John Criswell7a73b802003-06-30 21:59:07 +00002121
2122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002125case $ac_cv_host in
2126*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002127*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002130esac
John Criswell7a73b802003-06-30 21:59:07 +00002131host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002132ac_save_IFS=$IFS; IFS='-'
2133set x $ac_cv_host
2134shift
2135host_cpu=$1
2136host_vendor=$2
2137shift; shift
2138# Remember, the first character of IFS is used to create $*,
2139# except with old shells:
2140host_os=$*
2141IFS=$ac_save_IFS
2142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002143
2144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145{ echo "$as_me:$LINENO: checking target system type" >&5
2146echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002149else
Reid Spencera773bd52006-08-04 18:18:08 +00002150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2152else
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157fi
John Criswell7a73b802003-06-30 21:59:07 +00002158
2159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002162case $ac_cv_target in
2163*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002164*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002167esac
John Criswell7a73b802003-06-30 21:59:07 +00002168target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002169ac_save_IFS=$IFS; IFS='-'
2170set x $ac_cv_target
2171shift
2172target_cpu=$1
2173target_vendor=$2
2174shift; shift
2175# Remember, the first character of IFS is used to create $*,
2176# except with old shells:
2177target_os=$*
2178IFS=$ac_save_IFS
2179case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002180
2181
2182# The aliases save the names the user supplied, while $host etc.
2183# will get canonicalized.
2184test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2186 NONENONEs,x,x, &&
2187 program_prefix=${target_alias}-
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002193else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002194 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002195 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002200 *-*-irix*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002211 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002212 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002215 *-*-minix*)
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002220 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002225 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002230 *-*-netbsd*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002235 *-*-dragonfly*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002240 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002260 *-*-auroraux*)
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2270 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002275 *-*-haiku*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002280 *-unknown-eabi*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-unknown-elf*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002295esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002304else
2305 case $target in
2306 *-*-aix*)
2307 llvm_cv_target_os_type="AIX" ;;
2308 *-*-irix*)
2309 llvm_cv_target_os_type="IRIX" ;;
2310 *-*-cygwin*)
2311 llvm_cv_target_os_type="Cygwin" ;;
2312 *-*-darwin*)
2313 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002314 *-*-minix*)
2315 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002316 *-*-freebsd*)
2317 llvm_cv_target_os_type="FreeBSD" ;;
2318 *-*-openbsd*)
2319 llvm_cv_target_os_type="OpenBSD" ;;
2320 *-*-netbsd*)
2321 llvm_cv_target_os_type="NetBSD" ;;
2322 *-*-dragonfly*)
2323 llvm_cv_target_os_type="DragonFly" ;;
2324 *-*-hpux*)
2325 llvm_cv_target_os_type="HP-UX" ;;
2326 *-*-interix*)
2327 llvm_cv_target_os_type="Interix" ;;
2328 *-*-linux*)
2329 llvm_cv_target_os_type="Linux" ;;
2330 *-*-solaris*)
2331 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002332 *-*-auroraux*)
2333 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002334 *-*-win32*)
2335 llvm_cv_target_os_type="Win32" ;;
2336 *-*-mingw*)
2337 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002338 *-*-haiku*)
2339 llvm_cv_target_os_type="Haiku" ;;
Douglas Gregor6ced1d12011-07-01 22:41:06 +00002340 *-*-rtems*)
2341 llvm_cv_target_os_type="RTEMS" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002342 *-unknown-eabi*)
2343 llvm_cv_target_os_type="Freestanding" ;;
2344 *)
2345 llvm_cv_target_os_type="Unknown" ;;
2346esac
2347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002355fi
2356
Reid Spencer7b3e8512004-12-24 06:29:05 +00002357OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002359HOST_OS=$llvm_cv_os_type
2360
2361TARGET_OS=$llvm_cv_target_os_type
2362
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002363
Reid Spencera773bd52006-08-04 18:18:08 +00002364LINKALL=$llvm_cv_link_all_option
2365
2366NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369case $llvm_cv_platform_type in
2370 Unix)
2371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_UNIX 1
2374_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002376 LLVM_ON_UNIX=1
2377
2378 LLVM_ON_WIN32=0
2379
Reid Spencer7b3e8512004-12-24 06:29:05 +00002380 ;;
2381 Win32)
2382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383cat >>confdefs.h <<\_ACEOF
2384#define LLVM_ON_WIN32 1
2385_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002386
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002387 LLVM_ON_UNIX=0
2388
2389 LLVM_ON_WIN32=1
2390
Reid Spencer7b3e8512004-12-24 06:29:05 +00002391 ;;
2392esac
2393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking target architecture" >&5
2395echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
2399 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002400 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002405 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002406 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002407 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002408 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002410 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002411 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002412 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002413 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002414esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422fi
John Criswell76595452003-07-01 22:07:39 +00002423
Nick Lewycky83fc4472009-09-29 05:48:51 +00002424# Determine the LLVM native architecture for the target
2425case "$llvm_cv_target_arch" in
2426 x86) LLVM_NATIVE_ARCH="X86" ;;
2427 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2428 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2429esac
2430
2431ARCH=$llvm_cv_target_arch
2432
2433
2434ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435ac_cpp='$CPP $CPPFLAGS'
2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002439if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446else
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC="$CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 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 +00002457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 break 2
2460 fi
2461done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462done
Reid Spencera773bd52006-08-04 18:18:08 +00002463IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002469 { echo "$as_me:$LINENO: result: $CC" >&5
2470echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472 { echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474fi
2475
Reid Spencera773bd52006-08-04 18:18:08 +00002476
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477fi
2478if test -z "$ac_cv_prog_CC"; then
2479 ac_ct_CC=$CC
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 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 +00002497 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 break 2
2500 fi
2501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502done
Reid Spencera773bd52006-08-04 18:18:08 +00002503IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504
2505fi
2506fi
2507ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512 { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514fi
2515
Reid Spencera773bd52006-08-04 18:18:08 +00002516 if test "x$ac_ct_CC" = x; then
2517 CC=""
2518 else
2519 case $cross_compiling:$ac_tool_warned in
2520yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522whose name does not start with the host triplet. If you think this
2523configuration is useful to you, please write to autoconf@gnu.org." >&5
2524echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525whose name does not start with the host triplet. If you think this
2526configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002527ac_tool_warned=yes ;;
2528esac
2529 CC=$ac_ct_CC
2530 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531else
2532 CC="$ac_cv_prog_CC"
2533fi
2534
2535if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002536 if test -n "$ac_tool_prefix"; then
2537 # 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 +00002538set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 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 +00002554 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 break 2
2557 fi
2558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559done
Reid Spencera773bd52006-08-04 18:18:08 +00002560IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561
2562fi
2563fi
2564CC=$ac_cv_prog_CC
2565if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002566 { echo "$as_me:$LINENO: result: $CC" >&5
2567echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002569 { echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572
Reid Spencera773bd52006-08-04 18:18:08 +00002573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575fi
2576if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587 ac_prog_rejected=no
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 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 +00002595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected=yes
2597 continue
2598 fi
2599 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601 break 2
2602 fi
2603done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604done
Reid Spencera773bd52006-08-04 18:18:08 +00002605IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606
2607if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy $ac_cv_prog_CC
2610 shift
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2615 shift
2616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 fi
2618fi
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628fi
2629
Reid Spencera773bd52006-08-04 18:18:08 +00002630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631fi
2632if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002634 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002635 do
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002642else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 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 +00002653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002655 break 2
2656 fi
2657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002658done
Reid Spencera773bd52006-08-04 18:18:08 +00002659IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002660
2661fi
2662fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665 { echo "$as_me:$LINENO: result: $CC" >&5
2666echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002668 { echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002670fi
2671
Reid Spencera773bd52006-08-04 18:18:08 +00002672
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002674 done
2675fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676if test -z "$CC"; then
2677 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002678 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002686else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 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 +00002697 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 break 2
2700 fi
2701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702done
Reid Spencera773bd52006-08-04 18:18:08 +00002703IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002704
2705fi
2706fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002707ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002712 { echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002714fi
2715
Reid Spencera773bd52006-08-04 18:18:08 +00002716
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002718done
John Criswell7a73b802003-06-30 21:59:07 +00002719
Reid Spencera773bd52006-08-04 18:18:08 +00002720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726whose name does not start with the host triplet. If you think this
2727configuration is useful to you, please write to autoconf@gnu.org." >&5
2728echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729whose name does not start with the host triplet. If you think this
2730configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002731ac_tool_warned=yes ;;
2732esac
2733 CC=$ac_ct_CC
2734 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735fi
2736
John Criswell7a73b802003-06-30 21:59:07 +00002737fi
2738
2739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741See \`config.log' for more details." >&5
2742echo "$as_me: error: no acceptable C compiler found in \$PATH
2743See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745
John Criswell7a73b802003-06-30 21:59:07 +00002746# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747echo "$as_me:$LINENO: checking for C compiler version" >&5
2748ac_compiler=`set X $ac_compile; echo $2`
2749{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002756 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759{ (ac_try="$ac_compiler -v >&5"
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769{ (ac_try="$ac_compiler -V >&5"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002786
John Criswell7a73b802003-06-30 21:59:07 +00002787int
2788main ()
2789{
2790
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002797# Try to create an executable without -o first, disregard a.out.
2798# It will help us diagnose broken compilers, and finding out an intuition
2799# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803#
2804# List of possible output files, starting from the most likely.
2805# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2806# only as a last resort. b.out is created by i960 compilers.
2807ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808#
2809# The IRIX 6 linker writes into existing files which may not be
2810# executable, retaining their permissions. Remove them first so a
2811# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002812ac_rmfiles=
2813for ac_file in $ac_files
2814do
2815 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 esac
2819done
2820rm -f $ac_rmfiles
2821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002822if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002828 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002829 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834# in a Makefile. We should not override ac_cv_exeext if it was cached,
2835# so that the user can short-circuit this test for compilers unknown to
2836# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002838do
2839 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002840 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002842 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002843 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002844 # We found the default executable, but exeext='' is most
2845 # certainly right.
2846 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002847 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002849 then :; else
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 fi
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2856 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002858 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002859 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002860 esac
2861done
Reid Spencera773bd52006-08-04 18:18:08 +00002862test "$ac_cv_exeext" = no && ac_cv_exeext=
2863
John Criswell7a73b802003-06-30 21:59:07 +00002864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002866sed 's/^/| /' conftest.$ac_ext >&5
2867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: C compiler cannot create executables
2871See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002873fi
John Criswell7a73b802003-06-30 21:59:07 +00002874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002875ac_exeext=$ac_cv_exeext
2876{ echo "$as_me:$LINENO: result: $ac_file" >&5
2877echo "${ECHO_T}$ac_file" >&6; }
2878
2879# Check that the compiler produces executables we can run. If not, either
2880# the compiler is broken, or we cross compile.
2881{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884# If not cross compiling, check that we can run a simple program.
2885if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 cross_compiling=no
2897 else
2898 if test "$cross_compiling" = maybe; then
2899 cross_compiling=yes
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot run C compiled programs.
2905If you meant to cross compile, use \`--host'.
2906See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2908 fi
2909 fi
2910fi
2911{ echo "$as_me:$LINENO: result: yes" >&5
2912echo "${ECHO_T}yes" >&6; }
2913
2914rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002915ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916# Check that the compiler produces executables we can run. If not, either
2917# the compiler is broken, or we cross compile.
2918{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921echo "${ECHO_T}$cross_compiling" >&6; }
2922
2923{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002931 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002932 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937# work properly (i.e., refer to `conftest.exe'), while it won't with
2938# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002939for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002941 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002944 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002945 * ) break;;
2946 esac
2947done
2948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&5
2951echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955
2956rm -f conftest$ac_cv_exeext
2957{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002959
2960rm -f conftest.$ac_ext
2961EXEEXT=$ac_cv_exeext
2962ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002968 cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002974
John Criswell7a73b802003-06-30 21:59:07 +00002975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002984if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002990 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002991 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002996 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 break;;
3000 esac
3001done
3002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003004sed 's/^/| /' conftest.$ac_ext >&5
3005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003012
John Criswell7a73b802003-06-30 21:59:07 +00003013rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003017OBJEXT=$ac_cv_objext
3018ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003019{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003024 cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034#ifndef __GNUC__
3035 choke me
3036#endif
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003076 ac_compiler_gnu=yes
3077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003083
Reid Spencera773bd52006-08-04 18:18:08 +00003084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003085ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003086
3087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003088{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003091ac_test_CFLAGS=${CFLAGS+set}
3092ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003097else
Reid Spencera773bd52006-08-04 18:18:08 +00003098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3100 ac_cv_prog_cc_g=no
3101 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003102 cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003108
John Criswell7a73b802003-06-30 21:59:07 +00003109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003117rm -f conftest.$ac_objext
3118if { (ac_try="$ac_compile"
3119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003151 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 CFLAGS=""
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003172rm -f conftest.$ac_objext
3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 :
Torok Edwin871384f2010-01-26 08:50:50 +00003207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003208 echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003212 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228rm -f conftest.$ac_objext
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003262 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263else
3264 echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
John Criswell7a73b802003-06-30 21:59:07 +00003268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269
Reid Spencera773bd52006-08-04 18:18:08 +00003270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272
Reid Spencera773bd52006-08-04 18:18:08 +00003273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275
Reid Spencera773bd52006-08-04 18:18:08 +00003276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3285 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003286 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003288 fi
3289else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 if test "$GCC" = yes; then
3291 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003292 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003294 fi
3295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3298if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300else
Reid Spencera773bd52006-08-04 18:18:08 +00003301 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003303cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308/* end confdefs.h. */
3309#include <stdarg.h>
3310#include <stdio.h>
3311#include <sys/types.h>
3312#include <sys/stat.h>
3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314struct buf { int x; };
3315FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316static char *e (p, i)
3317 char **p;
3318 int i;
3319{
3320 return p[i];
3321}
3322static char *f (char * (*g) (char **, int), char **p, ...)
3323{
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3330}
3331
3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003335 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003338 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
Reid Spencera773bd52006-08-04 18:18:08 +00003341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343#define FOO(x) 'x'
3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346int test (int i, double x);
3347struct s1 {int (*f) (int a);};
3348struct s2 {int (*f) (double a);};
3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350int argc;
3351char **argv;
3352int
3353main ()
3354{
3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 ;
3357 return 0;
3358}
3359_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362do
3363 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364 rm -f conftest.$ac_objext
3365if { (ac_try="$ac_compile"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003398 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399else
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405
Reid Spencera773bd52006-08-04 18:18:08 +00003406rm -f core conftest.err conftest.$ac_objext
3407 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408done
Reid Spencera773bd52006-08-04 18:18:08 +00003409rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410CC=$ac_save_CC
3411
3412fi
Reid Spencera773bd52006-08-04 18:18:08 +00003413# AC_CACHE_VAL
3414case "x$ac_cv_prog_cc_c89" in
3415 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 { echo "$as_me:$LINENO: result: none needed" >&5
3417echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003418 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 { echo "$as_me:$LINENO: result: unsupported" >&5
3420echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003422 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3424echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425esac
3426
John Criswell0c38eaf2003-09-10 15:17:25 +00003427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435ac_ext=c
3436ac_cpp='$CPP $CPPFLAGS'
3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442# On Suns, sometimes $CPP names a directory.
3443if test -n "$CPP" && test -d "$CPP"; then
3444 CPP=
3445fi
3446if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449else
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 do
3453 ac_preproc_ok=false
3454for ac_c_preproc_warn_flag in '' yes
3455do
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#ifdef __STDC__
3469# include <limits.h>
3470#else
3471# include <assert.h>
3472#endif
3473 Syntax error
3474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003475if { (ac_try="$ac_cpp conftest.$ac_ext"
3476case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3491 else
3492 ac_cpp_err=
3493 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003495 ac_cpp_err=yes
3496fi
3497if test -z "$ac_cpp_err"; then
3498 :
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 # Broken: fails on valid input.
3504continue
3505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003506
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507rm -f conftest.err conftest.$ac_ext
3508
Reid Spencera773bd52006-08-04 18:18:08 +00003509 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516/* end confdefs.h. */
3517#include <ac_nonexistent.h>
3518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3537 fi
3538else
3539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542 # Broken: success on invalid input.
3543continue
3544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548 # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003553rm -f conftest.err conftest.$ac_ext
3554
3555done
3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003558if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003559 break
3560fi
3561
3562 done
3563 ac_cv_prog_CPP=$CPP
3564
3565fi
3566 CPP=$ac_cv_prog_CPP
3567else
3568 ac_cv_prog_CPP=$CPP
3569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003570{ echo "$as_me:$LINENO: result: $CPP" >&5
3571echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572ac_preproc_ok=false
3573for ac_c_preproc_warn_flag in '' yes
3574do
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
3592 Syntax error
3593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003594if { (ac_try="$ac_cpp conftest.$ac_ext"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3610 else
3611 ac_cpp_err=
3612 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003614 ac_cpp_err=yes
3615fi
3616if test -z "$ac_cpp_err"; then
3617 :
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 # Broken: fails on valid input.
3623continue
3624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626rm -f conftest.err conftest.$ac_ext
3627
Reid Spencera773bd52006-08-04 18:18:08 +00003628 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003635/* end confdefs.h. */
3636#include <ac_nonexistent.h>
3637_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003638if { (ac_try="$ac_cpp conftest.$ac_ext"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654 else
3655 ac_cpp_err=
3656 fi
3657else
3658 ac_cpp_err=yes
3659fi
3660if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003661 # Broken: success on invalid input.
3662continue
3663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664 echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003667 # Passes both tests.
3668ac_preproc_ok=:
3669break
3670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003671
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003672rm -f conftest.err conftest.$ac_ext
3673
3674done
3675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003677if $ac_preproc_ok; then
3678 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details." >&5
3682echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003685fi
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
John Criswell7a73b802003-06-30 21:59:07 +00003693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003694{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699 # Extract the first word of "grep ggrep" to use in msg output
3700if test -z "$GREP"; then
3701set dummy grep ggrep; ac_prog_name=$2
3702if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
Reid Spencera773bd52006-08-04 18:18:08 +00003705 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706# Loop through the user's path and test for each of PROGNAME-LIST
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003717 # Check for GNU $ac_path_GREP
3718case `"$ac_path_GREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721*)
3722 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003729 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003737 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003744
3745 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003746 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747done
3748
3749done
Reid Spencera773bd52006-08-04 18:18:08 +00003750IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751
3752
3753fi
3754
3755GREP="$ac_cv_path_GREP"
3756if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3760fi
3761
Reid Spencera773bd52006-08-04 18:18:08 +00003762else
3763 ac_cv_path_GREP=$GREP
3764fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766
Reid Spencera773bd52006-08-04 18:18:08 +00003767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003770 GREP="$ac_cv_path_GREP"
3771
3772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003773{ echo "$as_me:$LINENO: checking for egrep" >&5
3774echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003777else
3778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3779 then ac_cv_path_EGREP="$GREP -E"
3780 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781 # Extract the first word of "egrep" to use in msg output
3782if test -z "$EGREP"; then
3783set dummy egrep; ac_prog_name=$2
3784if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
Reid Spencera773bd52006-08-04 18:18:08 +00003787 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003788# Loop through the user's path and test for each of PROGNAME-LIST
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003799 # Check for GNU $ac_path_EGREP
3800case `"$ac_path_EGREP" --version 2>&1` in
3801*GNU*)
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3803*)
3804 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003806 while :
3807 do
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003811 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3819 fi
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824esac
3825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003826
3827 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003828 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003829done
3830
3831done
Reid Spencera773bd52006-08-04 18:18:08 +00003832IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833
3834
3835fi
3836
3837EGREP="$ac_cv_path_EGREP"
3838if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3842fi
3843
Reid Spencera773bd52006-08-04 18:18:08 +00003844else
3845 ac_cv_path_EGREP=$EGREP
3846fi
3847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003848
Reid Spencera773bd52006-08-04 18:18:08 +00003849 fi
3850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003851{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003853 EGREP="$ac_cv_path_EGREP"
3854
3855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003856{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003861 cat >conftest.$ac_ext <<_ACEOF
3862/* confdefs.h. */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003867#include <stdlib.h>
3868#include <stdarg.h>
3869#include <string.h>
3870#include <float.h>
3871
John Criswell0c38eaf2003-09-10 15:17:25 +00003872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
John Criswell7a73b802003-06-30 21:59:07 +00003879_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003880rm -f conftest.$ac_objext
3881if { (ac_try="$ac_compile"
3882case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898esac
3899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908esac
3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003914 ac_cv_header_stdc=yes
3915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921
Reid Spencera773bd52006-08-04 18:18:08 +00003922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003923
3924if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003932#include <string.h>
3933
3934_ACEOF
3935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 $EGREP "memchr" >/dev/null 2>&1; then
3937 :
John Criswell7a73b802003-06-30 21:59:07 +00003938else
3939 ac_cv_header_stdc=no
3940fi
3941rm -f conftest*
3942
3943fi
3944
3945if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947 cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003953#include <stdlib.h>
3954
3955_ACEOF
3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 $EGREP "free" >/dev/null 2>&1; then
3958 :
John Criswell7a73b802003-06-30 21:59:07 +00003959else
3960 ac_cv_header_stdc=no
3961fi
3962rm -f conftest*
3963
3964fi
3965
3966if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003969 :
3970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003977#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003978#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003979#if ((' ' & 0x0FF) == 0x020)
3980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003983# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988#endif
3989
3990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991int
3992main ()
3993{
3994 int i;
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003997 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003998 return 2;
3999 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004000}
4001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002rm -f conftest$ac_exeext
4003if { (ac_try="$ac_link"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 :
John Criswell7a73b802003-06-30 21:59:07 +00004023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024 echo "$as_me: program exited with status $ac_status" >&5
4025echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028( exit $ac_status )
4029ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031rm -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 +00004032fi
4033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034
John Criswell7a73b802003-06-30 21:59:07 +00004035fi
4036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004039if test $ac_cv_header_stdc = yes; then
4040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041cat >>confdefs.h <<\_ACEOF
4042#define STDC_HEADERS 1
4043_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004044
4045fi
4046
Reid Spencera773bd52006-08-04 18:18:08 +00004047# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048
4049
4050
4051
4052
4053
4054
4055
4056
Reid Spencera773bd52006-08-04 18:18:08 +00004057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059do
4060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_includes_default
4073
4074#include <$ac_header>
4075_ACEOF
4076rm -f conftest.$ac_objext
4077if { (ac_try="$ac_compile"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 eval "$as_ac_Header=no"
4116fi
4117
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119fi
4120ac_res=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122echo "${ECHO_T}$ac_res" >&6; }
4123if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004124 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004126_ACEOF
4127
4128fi
4129
4130done
4131
4132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138 # See if sys/param.h defines the BYTE_ORDER macro.
4139cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004141_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004144/* end confdefs.h. */
4145#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004147
4148int
4149main ()
4150{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004151#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4152 bogus endian macros
4153#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155 ;
4156 return 0;
4157}
4158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004193 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004199/* end confdefs.h. */
4200#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004202
4203int
4204main ()
4205{
4206#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207 not big endian
4208#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004209
4210 ;
4211 return 0;
4212}
4213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004214rm -f conftest.$ac_objext
4215if { (ac_try="$ac_compile"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004248 ac_cv_c_bigendian=yes
4249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253 ac_cv_c_bigendian=no
4254fi
4255
4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257else
4258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 # It does not; compile a test program.
4262if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian=unknown
4265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004277int
4278main ()
4279{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004280 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004281 ;
4282 return 0;
4283}
4284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285rm -f conftest.$ac_objext
4286if { (ac_try="$ac_compile"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004320 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004321fi
4322if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4325 else
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4328 fi
4329fi
Reid Spencera773bd52006-08-04 18:18:08 +00004330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004334
Torok Edwin871384f2010-01-26 08:50:50 +00004335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336
Reid Spencera773bd52006-08-04 18:18:08 +00004337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004344/* end confdefs.h. */
4345$ac_includes_default
4346int
4347main ()
4348{
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350 /* Are we little or big endian? From Harbison&Steele. */
4351 union
4352 {
4353 long int l;
4354 char c[sizeof (long int)];
4355 } u;
4356 u.l = 1;
4357 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004358
4359 ;
4360 return 0;
4361}
4362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004363rm -f conftest$ac_exeext
4364if { (ac_try="$ac_link"
4365case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004383 ac_cv_c_bigendian=no
4384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385 echo "$as_me: program exited with status $ac_status" >&5
4386echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389( exit $ac_status )
4390ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392rm -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 +00004393fi
4394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395
Reid Spencera773bd52006-08-04 18:18:08 +00004396fi
4397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399fi
4400{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402case $ac_cv_c_bigendian in
4403 yes)
4404 ENDIAN=big
4405 ;;
4406 no)
4407 ENDIAN=little
4408 ;;
4409 *)
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412echo "$as_me: error: unknown endianness
4413presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4415esac
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417
4418if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4420
4421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004426else
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4429else
4430 ac_build_prefix=${build_alias}-
4431
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004438else
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 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 +00004449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004451 break 2
4452 fi
4453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454done
Reid Spencera773bd52006-08-04 18:18:08 +00004455IFS=$as_save_IFS
4456
4457fi
4458fi
4459BUILD_CC=$ac_cv_prog_BUILD_CC
4460if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 { echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004466fi
4467
4468
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004476else
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 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 +00004487 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004489 break 2
4490 fi
4491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492done
Reid Spencera773bd52006-08-04 18:18:08 +00004493IFS=$as_save_IFS
4494
4495fi
4496fi
4497BUILD_CC=$ac_cv_prog_BUILD_CC
4498if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004502 { echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004504fi
4505
4506
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004514else
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4517else
4518 ac_prog_rejected=no
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 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 +00004526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4528 continue
4529 fi
4530 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004532 break 2
4533 fi
4534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535done
Reid Spencera773bd52006-08-04 18:18:08 +00004536IFS=$as_save_IFS
4537
4538if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4541 shift
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4546 shift
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 fi
4549fi
4550fi
4551fi
4552BUILD_CC=$ac_cv_prog_BUILD_CC
4553if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 { echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004559fi
4560
4561
4562 fi
4563 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 rm -f conftest*
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4570 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004572 (eval $ac_build_link) 2>&5
4573 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004576 for file in conftest.*; do
4577 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004578 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004579 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4580 esac
4581 done
4582 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004586 fi
4587 rm -f conftest*
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589fi
4590fi
4591
4592BUILD_EXEEXT=""
4593test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004596ac_build_exeext=$BUILD_EXEEXT
4597
Jim Grosbach673612e2008-10-02 22:56:44 +00004598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004605else
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 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 +00004616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004618 break 2
4619 fi
4620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621done
Jim Grosbach673612e2008-10-02 22:56:44 +00004622IFS=$as_save_IFS
4623
4624fi
4625fi
4626BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631 { echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004633fi
4634
4635
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004643else
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 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 +00004654 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004656 break 2
4657 fi
4658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659done
Jim Grosbach673612e2008-10-02 22:56:44 +00004660IFS=$as_save_IFS
4661
4662fi
4663fi
4664BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669 { echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004671fi
4672
4673
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004681else
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4684else
4685 ac_prog_rejected=no
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 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 +00004693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4695 continue
4696 fi
4697 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004699 break 2
4700 fi
4701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702done
Jim Grosbach673612e2008-10-02 22:56:44 +00004703IFS=$as_save_IFS
4704
4705if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4708 shift
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4713 shift
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 fi
4716fi
4717fi
4718fi
4719BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004726fi
4727
4728
4729 fi
4730 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
4732 LLVM_CROSS_COMPILING=0
4733
4734fi
4735
Dan Gohman56fb5f92010-08-04 16:25:01 +00004736if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004737 cvsbuild="yes"
4738 optimize="no"
4739 CVSBUILD=CVSBUILD=1
4740
4741else
4742 cvsbuild="no"
4743 optimize="yes"
4744fi
4745
4746
4747# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004749 enableval=$enable_optimized;
4750else
4751 enableval=$optimize
4752fi
4753
4754if test ${enableval} = "no" ; then
4755 ENABLE_OPTIMIZED=
4756
4757else
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4759
4760fi
4761
David Greene2a5a12c2009-04-17 14:50:39 +00004762# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004764 enableval=$enable_profiling;
4765else
4766 enableval="no"
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 ENABLE_PROFILING=
4771
4772else
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4774
4775fi
4776
Reid Spencera773bd52006-08-04 18:18:08 +00004777# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004779 enableval=$enable_assertions;
4780else
4781 enableval="yes"
4782fi
4783
4784if test ${enableval} = "yes" ; then
4785 DISABLE_ASSERTIONS=
4786
4787else
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4789
4790fi
4791
David Greenea696d242007-06-28 19:36:08 +00004792# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004794 enableval=$enable_expensive_checks;
4795else
4796 enableval="no"
4797fi
4798
4799if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4801
4802 EXPENSIVE_CHECKS=yes
4803
4804else
4805 ENABLE_EXPENSIVE_CHECKS=
4806
4807 EXPENSIVE_CHECKS=no
4808
4809fi
4810
Reid Spencer8b2e1412006-11-17 03:32:33 +00004811# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004813 enableval=$enable_debug_runtime;
4814else
4815 enableval=no
4816fi
4817
4818if test ${enableval} = "no" ; then
4819 DEBUG_RUNTIME=
4820
4821else
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4823
4824fi
4825
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004826# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004828 enableval=$enable_debug_symbols;
4829else
4830 enableval=no
4831fi
4832
4833if test ${enableval} = "no" ; then
4834 DEBUG_SYMBOLS=
4835
4836else
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4838
4839fi
4840
Reid Spencera773bd52006-08-04 18:18:08 +00004841# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004843 enableval=$enable_jit;
4844else
4845 enableval=default
4846fi
4847
4848if test ${enableval} = "no"
4849then
4850 JIT=
4851
4852else
4853 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004862 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004863 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004864 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 Blackfin) TARGET_HAS_JIT=0
4875 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004876 MBlaze) TARGET_HAS_JIT=0
4877 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004878 PTX) TARGET_HAS_JIT=0
4879 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004880 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004881 ;;
4882 esac
4883fi
4884
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004885# Check whether --enable-docs was given.
4886if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4888else
4889 enableval=default
4890fi
4891
4892case "$enableval" in
4893 yes) ENABLE_DOCS=1
4894 ;;
4895 no) ENABLE_DOCS=0
4896 ;;
4897 default) ENABLE_DOCS=1
4898 ;;
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4902esac
4903
Reid Spencera773bd52006-08-04 18:18:08 +00004904# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004906 enableval=$enable_doxygen;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4913 ;;
4914 no) ENABLE_DOXYGEN=0
4915 ;;
4916 default) ENABLE_DOXYGEN=0
4917 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004921esac
4922
4923# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004925 enableval=$enable_threads;
4926else
Reid Spencer65c5d752006-11-05 17:08:18 +00004927 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004928fi
4929
4930case "$enableval" in
4931 yes) ENABLE_THREADS=1
4932 ;;
4933 no) ENABLE_THREADS=0
4934 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004935 default) ENABLE_THREADS=1
4936 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004940esac
4941
Owen Andersona8603702009-05-19 22:18:56 +00004942cat >>confdefs.h <<_ACEOF
4943#define ENABLE_THREADS $ENABLE_THREADS
4944_ACEOF
4945
4946
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004947# Check whether --enable-pthreads was given.
4948if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4950else
4951 enableval=default
4952fi
4953
4954case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4956 ;;
4957 no) ENABLE_PTHREADS=0
4958 ;;
4959 default) ENABLE_PTHREADS=1
4960 ;;
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964esac
4965
Reid Spencer89b0d992006-12-16 22:07:52 +00004966# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004967if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004968 enableval=$enable_pic;
4969else
4970 enableval=default
4971fi
4972
4973case "$enableval" in
4974 yes) ENABLE_PIC=1
4975 ;;
4976 no) ENABLE_PIC=0
4977 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004978 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004979 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004983esac
4984
4985cat >>confdefs.h <<_ACEOF
4986#define ENABLE_PIC $ENABLE_PIC
4987_ACEOF
4988
4989
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004990# Check whether --enable-shared was given.
4991if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4993else
4994 enableval=default
4995fi
4996
4997case "$enableval" in
4998 yes) ENABLE_SHARED=1
4999 ;;
5000 no) ENABLE_SHARED=0
5001 ;;
5002 default) ENABLE_SHARED=0
5003 ;;
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007esac
5008
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005009# Check whether --enable-embed-stdcxx was given.
5010if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5012else
5013 enableval=default
5014fi
5015
5016case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5018 ;;
5019 no) ENABLE_EMBED_STDCXX=0
5020 ;;
5021 default) ENABLE_EMBED_STDCXX=1
5022 ;;
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5026esac
5027
Daniel Dunbardd464df2010-05-10 20:11:56 +00005028# Check whether --enable-timestamps was given.
5029if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5031else
5032 enableval=default
5033fi
5034
5035case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5037 ;;
5038 no) ENABLE_TIMESTAMPS=0
5039 ;;
5040 default) ENABLE_TIMESTAMPS=1
5041 ;;
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5045esac
5046
5047cat >>confdefs.h <<_ACEOF
5048#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049_ACEOF
5050
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052TARGETS_TO_BUILD=""
5053# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005055 enableval=$enable_targets;
5056else
5057 enableval=all
5058fi
5059
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005060if test "$enableval" = host-only ; then
5061 enableval=host
5062fi
Reid Spencera773bd52006-08-04 18:18:08 +00005063case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005065 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5066 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005101 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005105 esac
5106 done
5107 ;;
5108esac
Reid Spencera773bd52006-08-04 18:18:08 +00005109TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5110
5111
Douglas Gregor0711c302009-06-17 00:43:20 +00005112# Determine whether we are building LLVM support for the native architecture.
5113# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5116
5117cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005118#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5119_ACEOF
5120
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng1abf2cb2011-07-14 23:50:31 +00005123 LLVM_NATIVE_MCASMINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCAsmInfo"
Evan Cheng43966132011-07-19 06:37:02 +00005124 LLVM_NATIVE_MCCODEGENINFO="LLVMInitialize${LLVM_NATIVE_ARCH}MCCodeGenInfo"
Eric Christopher753f3262010-08-30 18:34:48 +00005125 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005126 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5127 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5128 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005129
5130cat >>confdefs.h <<_ACEOF
5131#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005132_ACEOF
5133
5134
5135cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005136#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5137_ACEOF
5138
5139
5140cat >>confdefs.h <<_ACEOF
Evan Cheng1abf2cb2011-07-14 23:50:31 +00005141#define LLVM_NATIVE_MCASMINFO $LLVM_NATIVE_MCASMINFO
5142_ACEOF
5143
5144
5145cat >>confdefs.h <<_ACEOF
Evan Cheng43966132011-07-19 06:37:02 +00005146#define LLVM_NATIVE_MCCODEGENINFO $LLVM_NATIVE_MCCODEGENINFO
5147_ACEOF
5148
5149
5150cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005151#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005152_ACEOF
5153
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005154 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005155
5156cat >>confdefs.h <<_ACEOF
5157#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5158_ACEOF
5159
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005160 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005161 fi
5162done
5163
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005164# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5165# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005166LLVM_ENUM_TARGETS=""
5167LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005168LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005169LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005170for target_to_build in $TARGETS_TO_BUILD; do
5171 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005172 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005173 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5174 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005175 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5176 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5177 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005178 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5179 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5180 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005181done
5182
5183
5184
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005185
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005186
Reid Spencer65c5d752006-11-05 17:08:18 +00005187# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005188if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005189 enableval=$enable_cbe_printf_a;
5190else
5191 enableval=default
5192fi
5193
5194case "$enableval" in
5195 yes) ENABLE_CBE_PRINTF_A=1
5196 ;;
5197 no) ENABLE_CBE_PRINTF_A=0
5198 ;;
5199 default) ENABLE_CBE_PRINTF_A=1
5200 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5202echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005204esac
5205
5206cat >>confdefs.h <<_ACEOF
5207#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5208_ACEOF
5209
5210
Reid Spencera773bd52006-08-04 18:18:08 +00005211
5212# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005214 withval=$with_llvmgccdir;
5215else
5216 withval=default
5217fi
5218
5219case "$withval" in
5220 default) WITH_LLVMGCCDIR=default ;;
5221 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005222 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5223echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5224 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005225esac
5226
5227
Devang Patel5d28b882007-12-04 22:54:47 +00005228# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005229if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005230 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5231 WITH_LLVMGCCDIR=""
5232fi
5233
5234
5235
5236# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005237if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005238 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5239 WITH_LLVMGCCDIR=""
5240fi
5241
Douglas Gregor01746742009-05-11 18:05:52 +00005242
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005243if test -n "$LLVMGCC"; then
5244 LLVMGCCCOMMAND="$LLVMGCC"
5245fi
5246
5247if test -n "$LLVMGXX"; then
5248 LLVMGXXCOMMAND="$LLVMGXX"
5249fi
Devang Patel5d28b882007-12-04 22:54:47 +00005250
5251if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005252 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5253echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5254 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005255fi
5256
5257if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005258 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5259echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5260 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005261fi
5262
5263
Daniel Dunbar98515672010-02-23 10:00:49 +00005264# Check whether --with-clang was given.
5265if test "${with_clang+set}" = set; then
5266 withval=$with_clang;
5267else
5268 with_clang=default
5269fi
5270
5271
5272
5273# Check whether --with-built-clang was given.
5274if test "${with_built_clang+set}" = set; then
5275 withval=$with_built_clang;
5276else
5277 with_built_clang=check
5278fi
5279
5280
5281{ echo "$as_me:$LINENO: checking clang compiler" >&5
5282echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5283WITH_CLANGPATH=""
5284WITH_BUILT_CLANG=0
5285if test "$with_clang" != "default"; then
5286 WITH_CLANGPATH="$with_clang"
5287 if ! test -x "$WITH_CLANGPATH"; then
5288 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5289echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5290 { (exit 1); exit 1; }; }
5291 fi
5292elif test "$with_built_clang" = "yes"; then
5293 WITH_BUILT_CLANG=1
5294elif test "$with_built_clang" = "no"; then
5295 WITH_BUILT_CLANG=0
5296else
5297 if test "$with_built_clang" != "check"; then
5298 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5299echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5300 { (exit 1); exit 1; }; }
5301 fi
5302
5303 if test -f ${srcdir}/tools/clang/README.txt; then
5304 WITH_BUILT_CLANG=1
5305 fi
5306fi
5307
5308if ! test -z "$WITH_CLANGPATH"; then
5309 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5310echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5311 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5312elif test "$WITH_BUILT_CLANG" = "1"; then
5313 { echo "$as_me:$LINENO: result: built" >&5
5314echo "${ECHO_T}built" >&6; }
5315else
5316 { echo "$as_me:$LINENO: result: none" >&5
5317echo "${ECHO_T}none" >&6; }
5318fi
5319CLANGPATH=$WITH_CLANGPATH
5320
5321CLANGXXPATH=$WITH_CLANGXXPATH
5322
5323ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5324
5325
5326
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005327# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005328if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005329 withval=$with_optimize_option;
5330else
5331 withval=default
5332fi
5333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005334{ echo "$as_me:$LINENO: checking optimization flags" >&5
5335echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005336case "$withval" in
5337 default)
5338 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005339 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005340 MingW) optimize_option=-O2 ;;
5341 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005342 esac ;;
5343 *) optimize_option="$withval" ;;
5344esac
5345OPTIMIZE_OPTION=$optimize_option
5346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005347{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5348echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005349
5350
Reid Spencera773bd52006-08-04 18:18:08 +00005351# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005352if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005353 withval=$with_extra_options;
5354else
5355 withval=default
5356fi
5357
5358case "$withval" in
5359 default) EXTRA_OPTIONS= ;;
5360 *) EXTRA_OPTIONS=$withval ;;
5361esac
5362EXTRA_OPTIONS=$EXTRA_OPTIONS
5363
5364
Daniel Dunbared344d22011-06-16 22:30:41 +00005365
5366# Check whether --with-extra-ld-options was given.
5367if test "${with_extra_ld_options+set}" = set; then
5368 withval=$with_extra_ld_options;
5369else
5370 withval=default
5371fi
5372
5373case "$withval" in
5374 default) EXTRA_LD_OPTIONS= ;;
5375 *) EXTRA_LD_OPTIONS=$withval ;;
5376esac
5377EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5378
5379
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005380# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005381if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005382 enableval=$enable_bindings;
5383else
5384 enableval=default
5385fi
5386
5387BINDINGS_TO_BUILD=""
5388case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005389 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005390 all ) BINDINGS_TO_BUILD="ocaml" ;;
5391 none | no) BINDINGS_TO_BUILD="" ;;
5392 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5393 case "$a_binding" in
5394 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005395 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5396echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5397 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005398 esac
5399 done
5400 ;;
5401esac
5402
Reid Spencera773bd52006-08-04 18:18:08 +00005403
Gordon Henriksenf0915682007-10-02 16:42:22 +00005404# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005405if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005406 withval=$with_ocaml_libdir;
5407else
5408 withval=auto
5409fi
5410
5411case "$withval" in
5412 auto) with_ocaml_libdir="$withval" ;;
5413 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5415echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5416 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005417esac
5418
5419
Chandler Carruth6b241162010-10-19 08:21:25 +00005420# Check whether --with-clang-resource-dir was given.
5421if test "${with_clang_resource_dir+set}" = set; then
5422 withval=$with_clang_resource_dir;
5423else
5424 withval=""
5425fi
5426
5427
5428cat >>confdefs.h <<_ACEOF
5429#define CLANG_RESOURCE_DIR "$withval"
5430_ACEOF
5431
5432
5433
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005434# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005435if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005436 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005437else
5438 withval=""
5439fi
5440
5441
5442cat >>confdefs.h <<_ACEOF
5443#define C_INCLUDE_DIRS "$withval"
5444_ACEOF
5445
5446
5447
Rafael Espindola420d23c2009-11-16 19:46:55 +00005448# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005450 withval=$with_cxx_include_root;
5451else
5452 withval=""
5453fi
5454
5455
5456cat >>confdefs.h <<_ACEOF
5457#define CXX_INCLUDE_ROOT "$withval"
5458_ACEOF
5459
5460
5461
5462# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005464 withval=$with_cxx_include_arch;
5465else
5466 withval=""
5467fi
5468
5469
5470cat >>confdefs.h <<_ACEOF
5471#define CXX_INCLUDE_ARCH "$withval"
5472_ACEOF
5473
5474
5475
5476# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005477if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005478 withval=$with_cxx_include_32bit_dir;
5479else
5480 withval=""
5481fi
5482
5483
5484cat >>confdefs.h <<_ACEOF
5485#define CXX_INCLUDE_32BIT_DIR "$withval"
5486_ACEOF
5487
5488
5489
5490# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005492 withval=$with_cxx_include_64bit_dir;
5493else
5494 withval=""
5495fi
5496
5497
5498cat >>confdefs.h <<_ACEOF
5499#define CXX_INCLUDE_64BIT_DIR "$withval"
5500_ACEOF
5501
5502
5503
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005504# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005505if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005506 withval=$with_binutils_include;
5507else
5508 withval=default
5509fi
5510
5511case "$withval" in
5512 default) WITH_BINUTILS_INCDIR=default ;;
5513 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005514 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5515echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5516 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005517esac
5518if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5519 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5520
5521 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5522 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005523 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5524echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5525 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005526 fi
5527fi
5528
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005529# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005531 enableval=$enable_libffi; case "$enableval" in
5532 yes) llvm_cv_enable_libffi="yes" ;;
5533 no) llvm_cv_enable_libffi="no" ;;
5534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5536 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005537 esac
5538else
5539 llvm_cv_enable_libffi=no
5540fi
5541
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005542
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005543
Reid Spencera773bd52006-08-04 18:18:08 +00005544ac_ext=c
5545ac_cpp='$CPP $CPPFLAGS'
5546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005549{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5550echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005551# On Suns, sometimes $CPP names a directory.
5552if test -n "$CPP" && test -d "$CPP"; then
5553 CPP=
5554fi
5555if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005556 if test "${ac_cv_prog_CPP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005558else
5559 # Double quotes because CPP needs to be expanded
5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5561 do
5562 ac_preproc_ok=false
5563for ac_c_preproc_warn_flag in '' yes
5564do
5565 # Use a header file that comes with gcc, so configuring glibc
5566 # with a fresh cross-compiler works.
5567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5568 # <limits.h> exists even on freestanding compilers.
5569 # On the NeXT, cc -E runs the code through the compiler's parser,
5570 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571 cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005576/* end confdefs.h. */
5577#ifdef __STDC__
5578# include <limits.h>
5579#else
5580# include <assert.h>
5581#endif
5582 Syntax error
5583_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584if { (ac_try="$ac_cpp conftest.$ac_ext"
5585case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588esac
5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } >/dev/null; then
5597 if test -s conftest.err; then
5598 ac_cpp_err=$ac_c_preproc_warn_flag
5599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5600 else
5601 ac_cpp_err=
5602 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005604 ac_cpp_err=yes
5605fi
5606if test -z "$ac_cpp_err"; then
5607 :
5608else
5609 echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
Reid Spencera773bd52006-08-04 18:18:08 +00005612 # Broken: fails on valid input.
5613continue
5614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005615
Reid Spencera773bd52006-08-04 18:18:08 +00005616rm -f conftest.err conftest.$ac_ext
5617
5618 # OK, works on sane cases. Now check whether nonexistent headers
5619 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620 cat >conftest.$ac_ext <<_ACEOF
5621/* confdefs.h. */
5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005625/* end confdefs.h. */
5626#include <ac_nonexistent.h>
5627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005628if { (ac_try="$ac_cpp conftest.$ac_ext"
5629case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } >/dev/null; then
5641 if test -s conftest.err; then
5642 ac_cpp_err=$ac_c_preproc_warn_flag
5643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5644 else
5645 ac_cpp_err=
5646 fi
5647else
5648 ac_cpp_err=yes
5649fi
5650if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005651 # Broken: success on invalid input.
5652continue
5653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
Reid Spencera773bd52006-08-04 18:18:08 +00005657 # Passes both tests.
5658ac_preproc_ok=:
5659break
5660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005661
Reid Spencera773bd52006-08-04 18:18:08 +00005662rm -f conftest.err conftest.$ac_ext
5663
5664done
5665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005667if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005668 break
5669fi
5670
5671 done
5672 ac_cv_prog_CPP=$CPP
5673
5674fi
5675 CPP=$ac_cv_prog_CPP
5676else
5677 ac_cv_prog_CPP=$CPP
5678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005679{ echo "$as_me:$LINENO: result: $CPP" >&5
5680echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005681ac_preproc_ok=false
5682for ac_c_preproc_warn_flag in '' yes
5683do
5684 # Use a header file that comes with gcc, so configuring glibc
5685 # with a fresh cross-compiler works.
5686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 # <limits.h> exists even on freestanding compilers.
5688 # On the NeXT, cc -E runs the code through the compiler's parser,
5689 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005695/* end confdefs.h. */
5696#ifdef __STDC__
5697# include <limits.h>
5698#else
5699# include <assert.h>
5700#endif
5701 Syntax error
5702_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005703if { (ac_try="$ac_cpp conftest.$ac_ext"
5704case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null; then
5716 if test -s conftest.err; then
5717 ac_cpp_err=$ac_c_preproc_warn_flag
5718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5719 else
5720 ac_cpp_err=
5721 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723 ac_cpp_err=yes
5724fi
5725if test -z "$ac_cpp_err"; then
5726 :
5727else
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
Reid Spencera773bd52006-08-04 18:18:08 +00005731 # Broken: fails on valid input.
5732continue
5733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734
Reid Spencera773bd52006-08-04 18:18:08 +00005735rm -f conftest.err conftest.$ac_ext
5736
5737 # OK, works on sane cases. Now check whether nonexistent headers
5738 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739 cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005744/* end confdefs.h. */
5745#include <ac_nonexistent.h>
5746_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747if { (ac_try="$ac_cpp conftest.$ac_ext"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } >/dev/null; then
5760 if test -s conftest.err; then
5761 ac_cpp_err=$ac_c_preproc_warn_flag
5762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5763 else
5764 ac_cpp_err=
5765 fi
5766else
5767 ac_cpp_err=yes
5768fi
5769if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005770 # Broken: success on invalid input.
5771continue
5772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773 echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
Reid Spencera773bd52006-08-04 18:18:08 +00005776 # Passes both tests.
5777ac_preproc_ok=:
5778break
5779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780
Reid Spencera773bd52006-08-04 18:18:08 +00005781rm -f conftest.err conftest.$ac_ext
5782
5783done
5784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5785rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786if $ac_preproc_ok; then
5787 :
Reid Spencera773bd52006-08-04 18:18:08 +00005788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5790See \`config.log' for more details." >&5
5791echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5792See \`config.log' for more details." >&2;}
5793 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005794fi
5795
5796ac_ext=c
5797ac_cpp='$CPP $CPPFLAGS'
5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_c_compiler_gnu
5801
5802ac_ext=c
5803ac_cpp='$CPP $CPPFLAGS'
5804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807if test -n "$ac_tool_prefix"; then
5808 for ac_prog in gcc
5809 do
5810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814if test "${ac_cv_prog_CC+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005816else
5817 if test -n "$CC"; then
5818 ac_cv_prog_CC="$CC" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 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 +00005827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005829 break 2
5830 fi
5831done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005832done
Reid Spencera773bd52006-08-04 18:18:08 +00005833IFS=$as_save_IFS
5834
5835fi
5836fi
5837CC=$ac_cv_prog_CC
5838if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005839 { echo "$as_me:$LINENO: result: $CC" >&5
5840echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842 { echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005844fi
5845
5846
5847 test -n "$CC" && break
5848 done
5849fi
5850if test -z "$CC"; then
5851 ac_ct_CC=$CC
5852 for ac_prog in gcc
5853do
5854 # Extract the first word of "$ac_prog", so it can be a program name with args.
5855set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005860else
5861 if test -n "$ac_ct_CC"; then
5862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 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 +00005871 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005873 break 2
5874 fi
5875done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876done
Reid Spencera773bd52006-08-04 18:18:08 +00005877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_CC=$ac_cv_prog_ac_ct_CC
5882if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5884echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886 { echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005888fi
5889
5890
5891 test -n "$ac_ct_CC" && break
5892done
5893
5894 if test "x$ac_ct_CC" = x; then
5895 CC=""
5896 else
5897 case $cross_compiling:$ac_tool_warned in
5898yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5900whose name does not start with the host triplet. If you think this
5901configuration is useful to you, please write to autoconf@gnu.org." >&5
5902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5903whose name does not start with the host triplet. If you think this
5904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005905ac_tool_warned=yes ;;
5906esac
5907 CC=$ac_ct_CC
5908 fi
5909fi
5910
5911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5913See \`config.log' for more details." >&5
5914echo "$as_me: error: no acceptable C compiler found in \$PATH
5915See \`config.log' for more details." >&2;}
5916 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005917
5918# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919echo "$as_me:$LINENO: checking for C compiler version" >&5
5920ac_compiler=`set X $ac_compile; echo $2`
5921{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005928 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }
5931{ (ac_try="$ac_compiler -v >&5"
5932case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935esac
5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compiler -v >&5") 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941{ (ac_try="$ac_compiler -V >&5"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compiler -V >&5") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005952{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5953echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5954if test "${ac_cv_c_compiler_gnu+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005962/* end confdefs.h. */
5963
5964int
5965main ()
5966{
5967#ifndef __GNUC__
5968 choke me
5969#endif
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006009 ac_compiler_gnu=yes
6010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016
Reid Spencera773bd52006-08-04 18:18:08 +00006017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018ac_cv_c_compiler_gnu=$ac_compiler_gnu
6019
6020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6023GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006024ac_test_CFLAGS=${CFLAGS+set}
6025ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6028if test "${ac_cv_prog_cc_g+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006030else
6031 ac_save_c_werror_flag=$ac_c_werror_flag
6032 ac_c_werror_flag=yes
6033 ac_cv_prog_cc_g=no
6034 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035 cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006040/* end confdefs.h. */
6041
6042int
6043main ()
6044{
6045
6046 ;
6047 return 0;
6048}
6049_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050rm -f conftest.$ac_objext
6051if { (ac_try="$ac_compile"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6065 { (case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_try") 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006084 ac_cv_prog_cc_g=yes
6085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086 echo "$as_me: failed program was:" >&5
6087sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 CFLAGS=""
6090 cat >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
6097int
6098main ()
6099{
6100
6101 ;
6102 return 0;
6103}
6104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105rm -f conftest.$ac_objext
6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 :
Torok Edwin871384f2010-01-26 08:50:50 +00006140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006145 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146 cat >conftest.$ac_ext <<_ACEOF
6147/* confdefs.h. */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006151/* end confdefs.h. */
6152
6153int
6154main ()
6155{
6156
6157 ;
6158 return 0;
6159}
6160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161rm -f conftest.$ac_objext
6162if { (ac_try="$ac_compile"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6185 { ac_try='test -s conftest.$ac_objext'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006195 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196else
6197 echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200
Reid Spencera773bd52006-08-04 18:18:08 +00006201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202
Reid Spencera773bd52006-08-04 18:18:08 +00006203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205
Reid Spencera773bd52006-08-04 18:18:08 +00006206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208
Reid Spencera773bd52006-08-04 18:18:08 +00006209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 ac_c_werror_flag=$ac_save_c_werror_flag
6211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6213echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006214if test "$ac_test_CFLAGS" = set; then
6215 CFLAGS=$ac_save_CFLAGS
6216elif test $ac_cv_prog_cc_g = yes; then
6217 if test "$GCC" = yes; then
6218 CFLAGS="-g -O2"
6219 else
6220 CFLAGS="-g"
6221 fi
6222else
6223 if test "$GCC" = yes; then
6224 CFLAGS="-O2"
6225 else
6226 CFLAGS=
6227 fi
6228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6230echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6231if test "${ac_cv_prog_cc_c89+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006233else
6234 ac_cv_prog_cc_c89=no
6235ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006241/* end confdefs.h. */
6242#include <stdarg.h>
6243#include <stdio.h>
6244#include <sys/types.h>
6245#include <sys/stat.h>
6246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6247struct buf { int x; };
6248FILE * (*rcsopen) (struct buf *, struct stat *, int);
6249static char *e (p, i)
6250 char **p;
6251 int i;
6252{
6253 return p[i];
6254}
6255static char *f (char * (*g) (char **, int), char **p, ...)
6256{
6257 char *s;
6258 va_list v;
6259 va_start (v,p);
6260 s = g (p, va_arg (v,int));
6261 va_end (v);
6262 return s;
6263}
6264
6265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6266 function prototypes and stuff, but not '\xHH' hex character constants.
6267 These don't provoke an error unfortunately, instead are silently treated
6268 as 'x'. The following induces an error, until -std is added to get
6269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6270 array size at least. It's necessary to write '\x00'==0 to get something
6271 that's true only with -std. */
6272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6273
6274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6275 inside strings and character constants. */
6276#define FOO(x) 'x'
6277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6278
6279int test (int i, double x);
6280struct s1 {int (*f) (int a);};
6281struct s2 {int (*f) (double a);};
6282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6283int argc;
6284char **argv;
6285int
6286main ()
6287{
6288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6295do
6296 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297 rm -f conftest.$ac_objext
6298if { (ac_try="$ac_compile"
6299case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6312 { (case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_try") 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325esac
6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_try") 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006331 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332else
6333 echo "$as_me: failed program was:" >&5
6334sed 's/^/| /' conftest.$ac_ext >&5
6335
6336
Reid Spencera773bd52006-08-04 18:18:08 +00006337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338
Reid Spencera773bd52006-08-04 18:18:08 +00006339rm -f core conftest.err conftest.$ac_objext
6340 test "x$ac_cv_prog_cc_c89" != "xno" && break
6341done
6342rm -f conftest.$ac_ext
6343CC=$ac_save_CC
6344
6345fi
6346# AC_CACHE_VAL
6347case "x$ac_cv_prog_cc_c89" in
6348 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006349 { echo "$as_me:$LINENO: result: none needed" >&5
6350echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006351 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006352 { echo "$as_me:$LINENO: result: unsupported" >&5
6353echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006354 *)
6355 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6357echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006358esac
6359
6360
6361ac_ext=c
6362ac_cpp='$CPP $CPPFLAGS'
6363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
6367ac_ext=cpp
6368ac_cpp='$CXXCPP $CPPFLAGS'
6369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6372if test -z "$CXX"; then
6373 if test -n "$CCC"; then
6374 CXX=$CCC
6375 else
6376 if test -n "$ac_tool_prefix"; then
6377 for ac_prog in g++
6378 do
6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383if test "${ac_cv_prog_CXX+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006385else
6386 if test -n "$CXX"; then
6387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 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 +00006396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006398 break 2
6399 fi
6400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401done
Reid Spencera773bd52006-08-04 18:18:08 +00006402IFS=$as_save_IFS
6403
6404fi
6405fi
6406CXX=$ac_cv_prog_CXX
6407if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006408 { echo "$as_me:$LINENO: result: $CXX" >&5
6409echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006413fi
6414
6415
6416 test -n "$CXX" && break
6417 done
6418fi
6419if test -z "$CXX"; then
6420 ac_ct_CXX=$CXX
6421 for ac_prog in g++
6422do
6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
6424set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006429else
6430 if test -n "$ac_ct_CXX"; then
6431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 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 +00006440 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006442 break 2
6443 fi
6444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445done
Reid Spencera773bd52006-08-04 18:18:08 +00006446IFS=$as_save_IFS
6447
6448fi
6449fi
6450ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6451if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006452 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6453echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455 { echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006457fi
6458
6459
6460 test -n "$ac_ct_CXX" && break
6461done
6462
6463 if test "x$ac_ct_CXX" = x; then
6464 CXX="g++"
6465 else
6466 case $cross_compiling:$ac_tool_warned in
6467yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6469whose name does not start with the host triplet. If you think this
6470configuration is useful to you, please write to autoconf@gnu.org." >&5
6471echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6472whose name does not start with the host triplet. If you think this
6473configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006474ac_tool_warned=yes ;;
6475esac
6476 CXX=$ac_ct_CXX
6477 fi
6478fi
6479
6480 fi
6481fi
6482# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6484ac_compiler=`set X $ac_compile; echo $2`
6485{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006486case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006492 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }
6495{ (ac_try="$ac_compiler -v >&5"
6496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compiler -v >&5") 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }
6505{ (ac_try="$ac_compiler -V >&5"
6506case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compiler -V >&5") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6517echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6518if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 cat >conftest.$ac_ext <<_ACEOF
6522/* confdefs.h. */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006526/* end confdefs.h. */
6527
6528int
6529main ()
6530{
6531#ifndef __GNUC__
6532 choke me
6533#endif
6534
6535 ;
6536 return 0;
6537}
6538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539rm -f conftest.$ac_objext
6540if { (ac_try="$ac_compile"
6541case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544esac
6545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006573 ac_compiler_gnu=yes
6574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580
Reid Spencera773bd52006-08-04 18:18:08 +00006581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6583
6584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6586echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6587GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006588ac_test_CXXFLAGS=${CXXFLAGS+set}
6589ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6591echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6592if test "${ac_cv_prog_cxx_g+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006594else
6595 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6596 ac_cxx_werror_flag=yes
6597 ac_cv_prog_cxx_g=no
6598 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006604/* end confdefs.h. */
6605
6606int
6607main ()
6608{
6609
6610 ;
6611 return 0;
6612}
6613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614rm -f conftest.$ac_objext
6615if { (ac_try="$ac_compile"
6616case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619esac
6620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6629 { (case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632esac
6633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_try") 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642esac
6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006648 ac_cv_prog_cxx_g=yes
6649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006650 echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 CXXFLAGS=""
6654 cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006659/* end confdefs.h. */
6660
6661int
6662main ()
6663{
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006669rm -f conftest.$ac_objext
6670if { (ac_try="$ac_compile"
6671case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674esac
6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676 (eval "$ac_compile") 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6684 { (case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687esac
6688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_try") 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697esac
6698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_try") 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 :
Torok Edwin871384f2010-01-26 08:50:50 +00006704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705 echo "$as_me: failed program was:" >&5
6706sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006709 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710 cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h. */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006715/* end confdefs.h. */
6716
6717int
6718main ()
6719{
6720
6721 ;
6722 return 0;
6723}
6724_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725rm -f conftest.$ac_objext
6726if { (ac_try="$ac_compile"
6727case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730esac
6731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6740 { (case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6743esac
6744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745 (eval "$ac_try") 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753esac
6754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_try") 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006759 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760else
6761 echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764
Reid Spencera773bd52006-08-04 18:18:08 +00006765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766
Reid Spencera773bd52006-08-04 18:18:08 +00006767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769
Reid Spencera773bd52006-08-04 18:18:08 +00006770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772
Reid Spencera773bd52006-08-04 18:18:08 +00006773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6777echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006778if test "$ac_test_CXXFLAGS" = set; then
6779 CXXFLAGS=$ac_save_CXXFLAGS
6780elif test $ac_cv_prog_cxx_g = yes; then
6781 if test "$GXX" = yes; then
6782 CXXFLAGS="-g -O2"
6783 else
6784 CXXFLAGS="-g"
6785 fi
6786else
6787 if test "$GXX" = yes; then
6788 CXXFLAGS="-O2"
6789 else
6790 CXXFLAGS=
6791 fi
6792fi
6793ac_ext=c
6794ac_cpp='$CPP $CPPFLAGS'
6795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
Reid Spencera773bd52006-08-04 18:18:08 +00006799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6801echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6802if test "${lt_cv_path_NM+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006804else
6805 if test -n "$NM"; then
6806 # Let the user override the test.
6807 lt_cv_path_NM="$NM"
6808else
6809 lt_nm_to_check="${ac_tool_prefix}nm"
6810 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6811 lt_nm_to_check="$lt_nm_to_check nm"
6812 fi
6813 for lt_tmp_nm in $lt_nm_to_check; do
6814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6815 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6816 IFS="$lt_save_ifs"
6817 test -z "$ac_dir" && ac_dir=.
6818 tmp_nm="$ac_dir/$lt_tmp_nm"
6819 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6820 # Check to see if the nm accepts a BSD-compat flag.
6821 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6822 # nm: unknown option "B" ignored
6823 # Tru64's nm complains that /dev/null is an invalid object file
6824 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6825 */dev/null* | *'Invalid file or object type'*)
6826 lt_cv_path_NM="$tmp_nm -B"
6827 break
6828 ;;
6829 *)
6830 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6831 */dev/null*)
6832 lt_cv_path_NM="$tmp_nm -p"
6833 break
6834 ;;
6835 *)
6836 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6837 continue # so that we can try to find one that supports BSD flags
6838 ;;
6839 esac
6840 ;;
6841 esac
6842 fi
6843 done
6844 IFS="$lt_save_ifs"
6845 done
6846 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6847fi
6848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6850echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006851NM="$lt_cv_path_NM"
6852
6853
6854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855{ echo "$as_me:$LINENO: checking for GNU make" >&5
6856echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6857if test "${llvm_cv_gnu_make_command+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006859else
6860 llvm_cv_gnu_make_command=''
6861 for a in "$MAKE" make gmake gnumake ; do
6862 if test -z "$a" ; then continue ; fi ;
6863 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6864 then
6865 llvm_cv_gnu_make_command=$a ;
6866 break;
6867 fi
6868 done
6869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6871echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006872 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6873 ifGNUmake='' ;
6874 else
6875 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006876 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6877echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006878 fi
6879
6880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6882echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006883LN_S=$as_ln_s
6884if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 { echo "$as_me:$LINENO: result: yes" >&5
6886echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006887else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6889echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006890fi
6891
6892# Extract the first word of "cmp", so it can be a program name with args.
6893set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896if test "${ac_cv_path_CMP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
6899 case $CMP in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6902 ;;
6903 *)
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 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 +00006911 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006913 break 2
6914 fi
6915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916done
Reid Spencera773bd52006-08-04 18:18:08 +00006917IFS=$as_save_IFS
6918
6919 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6920 ;;
6921esac
6922fi
6923CMP=$ac_cv_path_CMP
6924if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 { echo "$as_me:$LINENO: result: $CMP" >&5
6926echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006930fi
6931
6932
6933# Extract the first word of "cp", so it can be a program name with args.
6934set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_CP+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006939else
6940 case $CP in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 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 +00006952 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006954 break 2
6955 fi
6956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957done
Reid Spencera773bd52006-08-04 18:18:08 +00006958IFS=$as_save_IFS
6959
6960 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6961 ;;
6962esac
6963fi
6964CP=$ac_cv_path_CP
6965if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: $CP" >&5
6967echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006971fi
6972
6973
6974# Extract the first word of "date", so it can be a program name with args.
6975set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978if test "${ac_cv_path_DATE+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
6981 case $DATE in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6984 ;;
6985 *)
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 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 +00006993 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006995 break 2
6996 fi
6997done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998done
Reid Spencera773bd52006-08-04 18:18:08 +00006999IFS=$as_save_IFS
7000
7001 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7002 ;;
7003esac
7004fi
7005DATE=$ac_cv_path_DATE
7006if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 { echo "$as_me:$LINENO: result: $DATE" >&5
7008echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 { echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007012fi
7013
7014
7015# Extract the first word of "find", so it can be a program name with args.
7016set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019if test "${ac_cv_path_FIND+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007021else
7022 case $FIND in
7023 [\\/]* | ?:[\\/]*)
7024 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7025 ;;
7026 *)
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 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 +00007034 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007036 break 2
7037 fi
7038done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039done
Reid Spencera773bd52006-08-04 18:18:08 +00007040IFS=$as_save_IFS
7041
7042 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7043 ;;
7044esac
7045fi
7046FIND=$ac_cv_path_FIND
7047if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: $FIND" >&5
7049echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053fi
7054
7055
7056# Extract the first word of "grep", so it can be a program name with args.
7057set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_GREP+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007062else
7063 case $GREP in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007075 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007077 break 2
7078 fi
7079done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080done
Reid Spencera773bd52006-08-04 18:18:08 +00007081IFS=$as_save_IFS
7082
7083 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7084 ;;
7085esac
7086fi
7087GREP=$ac_cv_path_GREP
7088if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: $GREP" >&5
7090echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094fi
7095
7096
7097# Extract the first word of "mkdir", so it can be a program name with args.
7098set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_path_MKDIR+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007103else
7104 case $MKDIR in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 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 +00007116 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007118 break 2
7119 fi
7120done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121done
Reid Spencera773bd52006-08-04 18:18:08 +00007122IFS=$as_save_IFS
7123
7124 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7125 ;;
7126esac
7127fi
7128MKDIR=$ac_cv_path_MKDIR
7129if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7131echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007135fi
7136
7137
7138# Extract the first word of "mv", so it can be a program name with args.
7139set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142if test "${ac_cv_path_MV+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007144else
7145 case $MV in
7146 [\\/]* | ?:[\\/]*)
7147 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7148 ;;
7149 *)
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 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 +00007157 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007159 break 2
7160 fi
7161done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162done
Reid Spencera773bd52006-08-04 18:18:08 +00007163IFS=$as_save_IFS
7164
7165 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7166 ;;
7167esac
7168fi
7169MV=$ac_cv_path_MV
7170if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 { echo "$as_me:$LINENO: result: $MV" >&5
7172echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 { echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007176fi
7177
7178
7179if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7181set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184if test "${ac_cv_prog_RANLIB+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007186else
7187 if test -n "$RANLIB"; then
7188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7189else
7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 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 +00007197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007199 break 2
7200 fi
7201done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202done
Reid Spencera773bd52006-08-04 18:18:08 +00007203IFS=$as_save_IFS
7204
7205fi
7206fi
7207RANLIB=$ac_cv_prog_RANLIB
7208if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007209 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7210echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 { echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007214fi
7215
7216
7217fi
7218if test -z "$ac_cv_prog_RANLIB"; then
7219 ac_ct_RANLIB=$RANLIB
7220 # Extract the first word of "ranlib", so it can be a program name with args.
7221set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 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 +00007237 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007239 break 2
7240 fi
7241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242done
Reid Spencera773bd52006-08-04 18:18:08 +00007243IFS=$as_save_IFS
7244
7245fi
7246fi
7247ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7248if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007249 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7250echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252 { echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007254fi
7255
7256 if test "x$ac_ct_RANLIB" = x; then
7257 RANLIB=":"
7258 else
7259 case $cross_compiling:$ac_tool_warned in
7260yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7262whose name does not start with the host triplet. If you think this
7263configuration is useful to you, please write to autoconf@gnu.org." >&5
7264echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7265whose name does not start with the host triplet. If you think this
7266configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007267ac_tool_warned=yes ;;
7268esac
7269 RANLIB=$ac_ct_RANLIB
7270 fi
7271else
7272 RANLIB="$ac_cv_prog_RANLIB"
7273fi
7274
Torok Edwin871384f2010-01-26 08:50:50 +00007275if test -n "$ac_tool_prefix"; then
7276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7277set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280if test "${ac_cv_prog_AR+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007282else
7283 if test -n "$AR"; then
7284 ac_cv_prog_AR="$AR" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 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 +00007293 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007295 break 2
7296 fi
7297done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298done
Torok Edwin871384f2010-01-26 08:50:50 +00007299IFS=$as_save_IFS
7300
7301fi
7302fi
7303AR=$ac_cv_prog_AR
7304if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 { echo "$as_me:$LINENO: result: $AR" >&5
7306echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308 { echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007310fi
7311
7312
7313fi
7314if test -z "$ac_cv_prog_AR"; then
7315 ac_ct_AR=$AR
7316 # Extract the first word of "ar", so it can be a program name with args.
7317set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007322else
7323 if test -n "$ac_ct_AR"; then
7324 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 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 +00007333 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007335 break 2
7336 fi
7337done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338done
Torok Edwin871384f2010-01-26 08:50:50 +00007339IFS=$as_save_IFS
7340
7341fi
7342fi
7343ac_ct_AR=$ac_cv_prog_ac_ct_AR
7344if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7346echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007350fi
7351
7352 if test "x$ac_ct_AR" = x; then
7353 AR="false"
7354 else
7355 case $cross_compiling:$ac_tool_warned in
7356yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7358whose name does not start with the host triplet. If you think this
7359configuration is useful to you, please write to autoconf@gnu.org." >&5
7360echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7361whose name does not start with the host triplet. If you think this
7362configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007363ac_tool_warned=yes ;;
7364esac
7365 AR=$ac_ct_AR
7366 fi
7367else
7368 AR="$ac_cv_prog_AR"
7369fi
7370
Reid Spencera773bd52006-08-04 18:18:08 +00007371# Extract the first word of "rm", so it can be a program name with args.
7372set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375if test "${ac_cv_path_RM+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
7378 case $RM in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7381 ;;
7382 *)
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 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 +00007390 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007392 break 2
7393 fi
7394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395done
Reid Spencera773bd52006-08-04 18:18:08 +00007396IFS=$as_save_IFS
7397
7398 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7399 ;;
7400esac
7401fi
7402RM=$ac_cv_path_RM
7403if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: $RM" >&5
7405echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 { echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007409fi
7410
7411
7412# Extract the first word of "sed", so it can be a program name with args.
7413set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_SED+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007418else
7419 case $SED in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 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 +00007431 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436done
Reid Spencera773bd52006-08-04 18:18:08 +00007437IFS=$as_save_IFS
7438
7439 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7440 ;;
7441esac
7442fi
7443SED=$ac_cv_path_SED
7444if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 { echo "$as_me:$LINENO: result: $SED" >&5
7446echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450fi
7451
7452
7453# Extract the first word of "tar", so it can be a program name with args.
7454set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457if test "${ac_cv_path_TAR+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
7460 case $TAR in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7463 ;;
7464 *)
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 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 +00007472 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007474 break 2
7475 fi
7476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477done
Reid Spencera773bd52006-08-04 18:18:08 +00007478IFS=$as_save_IFS
7479
7480 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7481 ;;
7482esac
7483fi
7484TAR=$ac_cv_path_TAR
7485if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: $TAR" >&5
7487echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491fi
7492
7493
7494# Extract the first word of "pwd", so it can be a program name with args.
7495set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498if test "${ac_cv_path_BINPWD+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007500else
7501 case $BINPWD in
7502 [\\/]* | ?:[\\/]*)
7503 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7504 ;;
7505 *)
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 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 +00007513 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007515 break 2
7516 fi
7517done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518done
Reid Spencera773bd52006-08-04 18:18:08 +00007519IFS=$as_save_IFS
7520
7521 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7522 ;;
7523esac
7524fi
7525BINPWD=$ac_cv_path_BINPWD
7526if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7528echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007532fi
7533
7534
7535
7536# Extract the first word of "Graphviz", so it can be a program name with args.
7537set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007542else
7543 case $GRAPHVIZ in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 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 +00007555 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007557 break 2
7558 fi
7559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560done
Reid Spencera773bd52006-08-04 18:18:08 +00007561IFS=$as_save_IFS
7562
7563 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7564 ;;
7565esac
7566fi
7567GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7568if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7570echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007574fi
7575
7576
7577if test "$GRAPHVIZ" != "echo Graphviz" ; then
7578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579cat >>confdefs.h <<\_ACEOF
7580#define HAVE_GRAPHVIZ 1
7581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007582
Jeff Cohen28783c32007-01-12 18:22:38 +00007583 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007584 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7585 fi
7586
7587cat >>confdefs.h <<_ACEOF
7588#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7589_ACEOF
7590
7591fi
7592# Extract the first word of "dot", so it can be a program name with args.
7593set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_DOT+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007598else
7599 case $DOT in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 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 +00007611 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007613 break 2
7614 fi
7615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616done
Reid Spencera773bd52006-08-04 18:18:08 +00007617IFS=$as_save_IFS
7618
7619 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7620 ;;
7621esac
7622fi
7623DOT=$ac_cv_path_DOT
7624if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 { echo "$as_me:$LINENO: result: $DOT" >&5
7626echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007630fi
7631
7632
7633if test "$DOT" != "echo dot" ; then
7634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635cat >>confdefs.h <<\_ACEOF
7636#define HAVE_DOT 1
7637_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007638
Jeff Cohen28783c32007-01-12 18:22:38 +00007639 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007640 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7641 fi
7642
7643cat >>confdefs.h <<_ACEOF
7644#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7645_ACEOF
7646
7647fi
David Greenef0b9eff2009-07-09 17:16:26 +00007648# Extract the first word of "fdp", so it can be a program name with args.
7649set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652if test "${ac_cv_path_FDP+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007654else
7655 case $FDP in
7656 [\\/]* | ?:[\\/]*)
7657 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7658 ;;
7659 *)
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 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 +00007667 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007669 break 2
7670 fi
7671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672done
David Greenef0b9eff2009-07-09 17:16:26 +00007673IFS=$as_save_IFS
7674
7675 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7676 ;;
7677esac
7678fi
7679FDP=$ac_cv_path_FDP
7680if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 { echo "$as_me:$LINENO: result: $FDP" >&5
7682echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 { echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007686fi
7687
7688
7689if test "$FDP" != "echo fdp" ; then
7690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_FDP 1
7693_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007694
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7697 fi
7698
7699cat >>confdefs.h <<_ACEOF
7700#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7701_ACEOF
7702
7703fi
7704# Extract the first word of "neato", so it can be a program name with args.
7705set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708if test "${ac_cv_path_NEATO+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007710else
7711 case $NEATO in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7714 ;;
7715 *)
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 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 +00007723 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007725 break 2
7726 fi
7727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007728done
David Greenef0b9eff2009-07-09 17:16:26 +00007729IFS=$as_save_IFS
7730
7731 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7732 ;;
7733esac
7734fi
7735NEATO=$ac_cv_path_NEATO
7736if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737 { echo "$as_me:$LINENO: result: $NEATO" >&5
7738echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 { echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007742fi
7743
7744
7745if test "$NEATO" != "echo neato" ; then
7746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747cat >>confdefs.h <<\_ACEOF
7748#define HAVE_NEATO 1
7749_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007750
7751 if test "$llvm_cv_os_type" = "MingW" ; then
7752 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7753 fi
7754
7755cat >>confdefs.h <<_ACEOF
7756#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7757_ACEOF
7758
7759fi
7760# Extract the first word of "twopi", so it can be a program name with args.
7761set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764if test "${ac_cv_path_TWOPI+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007766else
7767 case $TWOPI in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 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 +00007779 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007781 break 2
7782 fi
7783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784done
David Greenef0b9eff2009-07-09 17:16:26 +00007785IFS=$as_save_IFS
7786
7787 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7788 ;;
7789esac
7790fi
7791TWOPI=$ac_cv_path_TWOPI
7792if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7794echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796 { echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007798fi
7799
7800
7801if test "$TWOPI" != "echo twopi" ; then
7802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803cat >>confdefs.h <<\_ACEOF
7804#define HAVE_TWOPI 1
7805_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007806
7807 if test "$llvm_cv_os_type" = "MingW" ; then
7808 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7809 fi
7810
7811cat >>confdefs.h <<_ACEOF
7812#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7813_ACEOF
7814
7815fi
7816# Extract the first word of "circo", so it can be a program name with args.
7817set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7820if test "${ac_cv_path_CIRCO+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007822else
7823 case $CIRCO in
7824 [\\/]* | ?:[\\/]*)
7825 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7826 ;;
7827 *)
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 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 +00007835 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007837 break 2
7838 fi
7839done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840done
David Greenef0b9eff2009-07-09 17:16:26 +00007841IFS=$as_save_IFS
7842
7843 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7844 ;;
7845esac
7846fi
7847CIRCO=$ac_cv_path_CIRCO
7848if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7850echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 { echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007854fi
7855
7856
7857if test "$CIRCO" != "echo circo" ; then
7858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859cat >>confdefs.h <<\_ACEOF
7860#define HAVE_CIRCO 1
7861_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007862
7863 if test "$llvm_cv_os_type" = "MingW" ; then
7864 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7865 fi
7866
7867cat >>confdefs.h <<_ACEOF
7868#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7869_ACEOF
7870
7871fi
Reid Spencera773bd52006-08-04 18:18:08 +00007872for ac_prog in gv gsview32
7873do
7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
7875set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7878if test "${ac_cv_path_GV+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007880else
7881 case $GV in
7882 [\\/]* | ?:[\\/]*)
7883 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7884 ;;
7885 *)
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 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 +00007893 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007895 break 2
7896 fi
7897done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898done
Reid Spencera773bd52006-08-04 18:18:08 +00007899IFS=$as_save_IFS
7900
7901 ;;
7902esac
7903fi
7904GV=$ac_cv_path_GV
7905if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 { echo "$as_me:$LINENO: result: $GV" >&5
7907echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909 { echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007911fi
7912
7913
7914 test -n "$GV" && break
7915done
7916test -n "$GV" || GV="echo gv"
7917
7918if test "$GV" != "echo gv" ; then
7919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920cat >>confdefs.h <<\_ACEOF
7921#define HAVE_GV 1
7922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007923
Jeff Cohen28783c32007-01-12 18:22:38 +00007924 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007925 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7926 fi
7927
7928cat >>confdefs.h <<_ACEOF
7929#define LLVM_PATH_GV "$GV${EXEEXT}"
7930_ACEOF
7931
7932fi
7933# Extract the first word of "dotty", so it can be a program name with args.
7934set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937if test "${ac_cv_path_DOTTY+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007939else
7940 case $DOTTY in
7941 [\\/]* | ?:[\\/]*)
7942 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7943 ;;
7944 *)
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 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 +00007952 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007954 break 2
7955 fi
7956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957done
Reid Spencera773bd52006-08-04 18:18:08 +00007958IFS=$as_save_IFS
7959
7960 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7961 ;;
7962esac
7963fi
7964DOTTY=$ac_cv_path_DOTTY
7965if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7967echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969 { echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007971fi
7972
7973
7974if test "$DOTTY" != "echo dotty" ; then
7975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976cat >>confdefs.h <<\_ACEOF
7977#define HAVE_DOTTY 1
7978_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007979
Jeff Cohen28783c32007-01-12 18:22:38 +00007980 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007981 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7982 fi
7983
7984cat >>confdefs.h <<_ACEOF
7985#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7986_ACEOF
7987
7988fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007989# Extract the first word of "xdot.py", so it can be a program name with args.
7990set dummy xdot.py; ac_word=$2
7991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993if test "${ac_cv_path_XDOT_PY+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995else
7996 case $XDOT_PY in
7997 [\\/]* | ?:[\\/]*)
7998 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7999 ;;
8000 *)
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012done
8013done
8014IFS=$as_save_IFS
8015
8016 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8017 ;;
8018esac
8019fi
8020XDOT_PY=$ac_cv_path_XDOT_PY
8021if test -n "$XDOT_PY"; then
8022 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8023echo "${ECHO_T}$XDOT_PY" >&6; }
8024else
8025 { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
8027fi
8028
8029
8030if test "$XDOT_PY" != "echo xdot.py" ; then
8031
8032cat >>confdefs.h <<\_ACEOF
8033#define HAVE_XDOT_PY 1
8034_ACEOF
8035
8036 if test "$llvm_cv_os_type" = "MingW" ; then
8037 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8038 fi
8039
8040cat >>confdefs.h <<_ACEOF
8041#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8042_ACEOF
8043
8044fi
Reid Spencera773bd52006-08-04 18:18:08 +00008045
8046
8047# Extract the first word of "perl", so it can be a program name with args.
8048set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051if test "${ac_cv_path_PERL+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008053else
8054 case $PERL in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8057 ;;
8058 *)
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 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 +00008066 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008068 break 2
8069 fi
8070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071done
Reid Spencera773bd52006-08-04 18:18:08 +00008072IFS=$as_save_IFS
8073
8074 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8075 ;;
8076esac
8077fi
8078PERL=$ac_cv_path_PERL
8079if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008080 { echo "$as_me:$LINENO: result: $PERL" >&5
8081echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008085fi
8086
8087
8088if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8090echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008091 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008092 { echo "$as_me:$LINENO: result: yes" >&5
8093echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008094 else
8095 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 { echo "$as_me:$LINENO: result: not found" >&5
8097echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008098 fi
8099fi
8100
8101
8102if test x"$PERL" = xnone; then
8103 HAVE_PERL=0
8104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8106echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8107 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008108else
8109 HAVE_PERL=1
8110
8111fi
8112
8113# Find a good install program. We prefer a C program (faster),
8114# so one script is as good as another. But avoid the broken or
8115# incompatible versions:
8116# SysV /etc/install, /usr/sbin/install
8117# SunOS /usr/etc/install
8118# IRIX /sbin/install
8119# AIX /bin/install
8120# AmigaOS /C/install, which installs bootblocks on floppy discs
8121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8122# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8124# OS/2's system install, which has a completely different semantic
8125# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8127echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008128if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129if test "${ac_cv_path_install+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008131else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008137 # Account for people who put trailing slashes in PATH elements.
8138case $as_dir/ in
8139 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008142 /usr/ucb/* ) ;;
8143 *)
8144 # OSF1 and SCO ODT 3.0 have their own names for install.
8145 # Don't use installbsd from OSF since it installs stuff as root
8146 # by default.
8147 for ac_prog in ginstall scoinst install; do
8148 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149 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 +00008150 if test $ac_prog = install &&
8151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8152 # AIX install. It has an incompatible calling convention.
8153 :
8154 elif test $ac_prog = install &&
8155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8156 # program-specific install script used by HP pwplus--don't use.
8157 :
8158 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8160 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008161 fi
8162 fi
8163 done
8164 done
8165 ;;
8166esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167done
Reid Spencera773bd52006-08-04 18:18:08 +00008168IFS=$as_save_IFS
8169
8170
8171fi
8172 if test "${ac_cv_path_install+set}" = set; then
8173 INSTALL=$ac_cv_path_install
8174 else
8175 # As a last resort, use the slow shell script. Don't cache a
8176 # value for INSTALL within a source directory, because that will
8177 # break other packages using the cache if that directory is
8178 # removed, or if the value is a relative name.
8179 INSTALL=$ac_install_sh
8180 fi
8181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8183echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008184
8185# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8186# It thinks the first close brace ends the variable substitution.
8187test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8188
8189test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8190
8191test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8192
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008193case "$INSTALL" in
8194 [\\/$]* | ?:[\\/]* ) ;;
8195 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8196esac
Reid Spencera773bd52006-08-04 18:18:08 +00008197
8198# Extract the first word of "bzip2", so it can be a program name with args.
8199set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202if test "${ac_cv_path_BZIP2+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008204else
8205 case $BZIP2 in
8206 [\\/]* | ?:[\\/]*)
8207 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8208 ;;
8209 *)
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 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 +00008217 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008219 break 2
8220 fi
8221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222done
Reid Spencera773bd52006-08-04 18:18:08 +00008223IFS=$as_save_IFS
8224
Reid Spencera773bd52006-08-04 18:18:08 +00008225 ;;
8226esac
8227fi
8228BZIP2=$ac_cv_path_BZIP2
8229if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8231echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233 { echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008235fi
8236
8237
mike-m68cb3192010-05-06 23:45:43 +00008238# Extract the first word of "cat", so it can be a program name with args.
8239set dummy cat; ac_word=$2
8240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242if test "${ac_cv_path_CAT+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245 case $CAT in
8246 [\\/]* | ?:[\\/]*)
8247 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8248 ;;
8249 *)
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8260 fi
8261done
8262done
8263IFS=$as_save_IFS
8264
8265 ;;
8266esac
8267fi
8268CAT=$ac_cv_path_CAT
8269if test -n "$CAT"; then
8270 { echo "$as_me:$LINENO: result: $CAT" >&5
8271echo "${ECHO_T}$CAT" >&6; }
8272else
8273 { echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6; }
8275fi
8276
8277
Reid Spencera773bd52006-08-04 18:18:08 +00008278# Extract the first word of "doxygen", so it can be a program name with args.
8279set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282if test "${ac_cv_path_DOXYGEN+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008284else
8285 case $DOXYGEN in
8286 [\\/]* | ?:[\\/]*)
8287 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8288 ;;
8289 *)
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 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 +00008297 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008299 break 2
8300 fi
8301done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008302done
Reid Spencera773bd52006-08-04 18:18:08 +00008303IFS=$as_save_IFS
8304
Reid Spencera773bd52006-08-04 18:18:08 +00008305 ;;
8306esac
8307fi
8308DOXYGEN=$ac_cv_path_DOXYGEN
8309if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8311echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313 { echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008315fi
8316
8317
Reid Spencera773bd52006-08-04 18:18:08 +00008318# Extract the first word of "groff", so it can be a program name with args.
8319set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8322if test "${ac_cv_path_GROFF+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008324else
8325 case $GROFF in
8326 [\\/]* | ?:[\\/]*)
8327 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8328 ;;
8329 *)
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 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 +00008337 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008339 break 2
8340 fi
8341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342done
Reid Spencera773bd52006-08-04 18:18:08 +00008343IFS=$as_save_IFS
8344
Reid Spencera773bd52006-08-04 18:18:08 +00008345 ;;
8346esac
8347fi
8348GROFF=$ac_cv_path_GROFF
8349if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350 { echo "$as_me:$LINENO: result: $GROFF" >&5
8351echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353 { echo "$as_me:$LINENO: result: no" >&5
8354echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008355fi
8356
8357
8358# Extract the first word of "gzip", so it can be a program name with args.
8359set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008362if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008364else
Eric Christopher031d3072010-12-10 01:31:51 +00008365 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008366 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008367 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008368 ;;
8369 *)
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00008377 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008379 break 2
8380 fi
8381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382done
Reid Spencera773bd52006-08-04 18:18:08 +00008383IFS=$as_save_IFS
8384
Reid Spencera773bd52006-08-04 18:18:08 +00008385 ;;
8386esac
8387fi
Eric Christopher031d3072010-12-10 01:31:51 +00008388GZIPBIN=$ac_cv_path_GZIPBIN
8389if test -n "$GZIPBIN"; then
8390 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8391echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393 { echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008395fi
8396
8397
8398# Extract the first word of "pod2html", so it can be a program name with args.
8399set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402if test "${ac_cv_path_POD2HTML+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008404else
8405 case $POD2HTML in
8406 [\\/]* | ?:[\\/]*)
8407 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8408 ;;
8409 *)
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 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 +00008417 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008419 break 2
8420 fi
8421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008422done
Reid Spencera773bd52006-08-04 18:18:08 +00008423IFS=$as_save_IFS
8424
Reid Spencera773bd52006-08-04 18:18:08 +00008425 ;;
8426esac
8427fi
8428POD2HTML=$ac_cv_path_POD2HTML
8429if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008430 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8431echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008432else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008433 { echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008435fi
8436
8437
8438# Extract the first word of "pod2man", so it can be a program name with args.
8439set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442if test "${ac_cv_path_POD2MAN+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008444else
8445 case $POD2MAN in
8446 [\\/]* | ?:[\\/]*)
8447 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8448 ;;
8449 *)
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 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 +00008457 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008459 break 2
8460 fi
8461done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008462done
Reid Spencera773bd52006-08-04 18:18:08 +00008463IFS=$as_save_IFS
8464
Reid Spencera773bd52006-08-04 18:18:08 +00008465 ;;
8466esac
8467fi
8468POD2MAN=$ac_cv_path_POD2MAN
8469if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8471echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473 { echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008475fi
8476
8477
mike-m68cb3192010-05-06 23:45:43 +00008478# Extract the first word of "pdfroff", so it can be a program name with args.
8479set dummy pdfroff; ac_word=$2
8480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8482if test "${ac_cv_path_PDFROFF+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484else
8485 case $PDFROFF in
8486 [\\/]* | ?:[\\/]*)
8487 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8488 ;;
8489 *)
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491for as_dir in $PATH
8492do
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8497 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8500 fi
8501done
8502done
8503IFS=$as_save_IFS
8504
8505 ;;
8506esac
8507fi
8508PDFROFF=$ac_cv_path_PDFROFF
8509if test -n "$PDFROFF"; then
8510 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8511echo "${ECHO_T}$PDFROFF" >&6; }
8512else
8513 { echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6; }
8515fi
8516
8517
Reid Spencera773bd52006-08-04 18:18:08 +00008518# Extract the first word of "runtest", so it can be a program name with args.
8519set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8522if test "${ac_cv_path_RUNTEST+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008524else
8525 case $RUNTEST in
8526 [\\/]* | ?:[\\/]*)
8527 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8528 ;;
8529 *)
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 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 +00008537 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008539 break 2
8540 fi
8541done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542done
Reid Spencera773bd52006-08-04 18:18:08 +00008543IFS=$as_save_IFS
8544
Reid Spencera773bd52006-08-04 18:18:08 +00008545 ;;
8546esac
8547fi
8548RUNTEST=$ac_cv_path_RUNTEST
8549if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8551echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008553 { echo "$as_me:$LINENO: result: no" >&5
8554echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008555fi
8556
8557
8558
8559no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8561echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008562
8563# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008565 withval=$with_tclinclude; with_tclinclude=${withval}
8566else
8567 with_tclinclude=''
8568fi
8569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570if test "${ac_cv_path_tclsh+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008572else
8573
8574if test x"${with_tclinclude}" != x ; then
8575 if test -f ${with_tclinclude}/tclsh ; then
8576 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8577 elif test -f ${with_tclinclude}/src/tclsh ; then
8578 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8579 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8581echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8582 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008583 fi
8584fi
Torok Edwin871384f2010-01-26 08:50:50 +00008585fi
8586
Reid Spencera773bd52006-08-04 18:18:08 +00008587
8588if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008589 { echo "$as_me:$LINENO: result: none" >&5
8590echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008591 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
8592do
8593 # Extract the first word of "$ac_prog", so it can be a program name with args.
8594set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8597if test "${ac_cv_path_TCLSH+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008599else
8600 case $TCLSH in
8601 [\\/]* | ?:[\\/]*)
8602 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8603 ;;
8604 *)
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 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 +00008612 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008614 break 2
8615 fi
8616done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008617done
Reid Spencera773bd52006-08-04 18:18:08 +00008618IFS=$as_save_IFS
8619
8620 ;;
8621esac
8622fi
8623TCLSH=$ac_cv_path_TCLSH
8624if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8626echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008628 { echo "$as_me:$LINENO: result: no" >&5
8629echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008630fi
8631
8632
8633 test -n "$TCLSH" && break
8634done
8635
8636 if test x"${TCLSH}" = x ; then
8637 ac_cv_path_tclsh='';
8638 else
8639 ac_cv_path_tclsh="${TCLSH}";
8640 fi
8641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008642 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8643echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008644 TCLSH="${ac_cv_path_tclsh}"
8645
8646fi
8647
Reid Spencera773bd52006-08-04 18:18:08 +00008648# Extract the first word of "zip", so it can be a program name with args.
8649set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8652if test "${ac_cv_path_ZIP+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008654else
8655 case $ZIP in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8658 ;;
8659 *)
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 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 +00008667 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008669 break 2
8670 fi
8671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008672done
Reid Spencera773bd52006-08-04 18:18:08 +00008673IFS=$as_save_IFS
8674
Reid Spencera773bd52006-08-04 18:18:08 +00008675 ;;
8676esac
8677fi
8678ZIP=$ac_cv_path_ZIP
8679if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680 { echo "$as_me:$LINENO: result: $ZIP" >&5
8681echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008683 { echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008685fi
8686
8687
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008688for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008689do
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8694if test "${ac_cv_path_OCAMLC+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008696else
8697 case $OCAMLC in
8698 [\\/]* | ?:[\\/]*)
8699 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8700 ;;
8701 *)
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 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 +00008709 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008711 break 2
8712 fi
8713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008715IFS=$as_save_IFS
8716
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008717 ;;
8718esac
8719fi
8720OCAMLC=$ac_cv_path_OCAMLC
8721if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008722 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8723echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008725 { echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008727fi
8728
8729
Gordon Henriksene7072162008-03-07 18:20:01 +00008730 test -n "$OCAMLC" && break
8731done
8732
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008733for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008734do
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008741else
8742 case $OCAMLOPT in
8743 [\\/]* | ?:[\\/]*)
8744 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8745 ;;
8746 *)
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 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 +00008754 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008756 break 2
8757 fi
8758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008760IFS=$as_save_IFS
8761
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008762 ;;
8763esac
8764fi
8765OCAMLOPT=$ac_cv_path_OCAMLOPT
8766if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008767 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8768echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008770 { echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008772fi
8773
8774
Gordon Henriksene7072162008-03-07 18:20:01 +00008775 test -n "$OCAMLOPT" && break
8776done
8777
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008778for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008779do
8780 # Extract the first word of "$ac_prog", so it can be a program name with args.
8781set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8784if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008786else
8787 case $OCAMLDEP in
8788 [\\/]* | ?:[\\/]*)
8789 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8790 ;;
8791 *)
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 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 +00008799 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008801 break 2
8802 fi
8803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008804done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008805IFS=$as_save_IFS
8806
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008807 ;;
8808esac
8809fi
8810OCAMLDEP=$ac_cv_path_OCAMLDEP
8811if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008812 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8813echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008815 { echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008817fi
8818
8819
Gordon Henriksene7072162008-03-07 18:20:01 +00008820 test -n "$OCAMLDEP" && break
8821done
8822
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008823for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008824do
8825 # Extract the first word of "$ac_prog", so it can be a program name with args.
8826set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8829if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008831else
8832 case $OCAMLDOC in
8833 [\\/]* | ?:[\\/]*)
8834 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8835 ;;
8836 *)
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838for as_dir in $PATH
8839do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 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 +00008844 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008846 break 2
8847 fi
8848done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008849done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008850IFS=$as_save_IFS
8851
8852 ;;
8853esac
8854fi
8855OCAMLDOC=$ac_cv_path_OCAMLDOC
8856if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008857 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8858echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008860 { echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008862fi
8863
8864
8865 test -n "$OCAMLDOC" && break
8866done
8867
Torok Edwincc499a42008-10-22 09:56:27 +00008868for ac_prog in gas as
8869do
8870 # Extract the first word of "$ac_prog", so it can be a program name with args.
8871set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8874if test "${ac_cv_path_GAS+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008876else
8877 case $GAS in
8878 [\\/]* | ?:[\\/]*)
8879 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8880 ;;
8881 *)
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 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 +00008889 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008891 break 2
8892 fi
8893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008894done
Torok Edwincc499a42008-10-22 09:56:27 +00008895IFS=$as_save_IFS
8896
8897 ;;
8898esac
8899fi
8900GAS=$ac_cv_path_GAS
8901if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008902 { echo "$as_me:$LINENO: result: $GAS" >&5
8903echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008905 { echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008907fi
8908
8909
8910 test -n "$GAS" && break
8911done
8912
Reid Spencera773bd52006-08-04 18:18:08 +00008913
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008914{ echo "$as_me:$LINENO: checking for linker version" >&5
8915echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8916if test "${llvm_cv_link_version+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918else
8919
8920 version_string="$(ld -v 2>&1 | head -1)"
8921
8922 # Check for ld64.
8923 if (echo "$version_string" | grep -q "ld64"); then
8924 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8925 else
8926 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8927 fi
8928
8929fi
8930{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8931echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8932
8933cat >>confdefs.h <<_ACEOF
8934#define HOST_LINK_VERSION "$llvm_cv_link_version"
8935_ACEOF
8936
8937
8938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008939{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8940echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8941if test "${llvm_cv_link_use_r+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008943else
8944 ac_ext=c
8945ac_cpp='$CPP $CPPFLAGS'
8946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950 oldcflags="$CFLAGS"
8951 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008952 cat >conftest.$ac_ext <<_ACEOF
8953/* confdefs.h. */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008957/* end confdefs.h. */
8958
8959int
8960main ()
8961{
Dan Gohman39ed6782010-04-25 00:12:20 +00008962
Reid Spencera773bd52006-08-04 18:18:08 +00008963 ;
8964 return 0;
8965}
8966_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008967rm -f conftest.$ac_objext conftest$ac_exeext
8968if { (ac_try="$ac_link"
8969case "(($ac_try" in
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8972esac
8973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_link") 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8982 { (case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985esac
8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_try") 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009001 llvm_cv_link_use_r=yes
9002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00009007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009008
Bill Wendlingebcceee2009-04-18 11:20:33 +00009009rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009010 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009011 CFLAGS="$oldcflags"
9012 ac_ext=c
9013ac_cpp='$CPP $CPPFLAGS'
9014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017
9018
9019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009020{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9021echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009022if test "$llvm_cv_link_use_r" = yes ; then
9023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009024cat >>confdefs.h <<\_ACEOF
9025#define HAVE_LINK_R 1
9026_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009027
9028 fi
9029
9030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009031{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9032echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9033if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009035else
9036 ac_ext=c
9037ac_cpp='$CPP $CPPFLAGS'
9038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9040ac_compiler_gnu=$ac_cv_c_compiler_gnu
9041
9042 oldcflags="$CFLAGS"
9043 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009044 cat >conftest.$ac_ext <<_ACEOF
9045/* confdefs.h. */
9046_ACEOF
9047cat confdefs.h >>conftest.$ac_ext
9048cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009049/* end confdefs.h. */
9050
9051int
9052main ()
9053{
Dan Gohman39ed6782010-04-25 00:12:20 +00009054
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009055 ;
9056 return 0;
9057}
9058_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009059rm -f conftest.$ac_objext conftest$ac_exeext
9060if { (ac_try="$ac_link"
9061case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064esac
9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_link") 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9074 { (case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077esac
9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_try") 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; } &&
9083 { ac_try='test -s conftest$ac_exeext'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009093 llvm_cv_link_use_export_dynamic=yes
9094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009095 echo "$as_me: failed program was:" >&5
9096sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009100
Bill Wendlingebcceee2009-04-18 11:20:33 +00009101rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009102 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009103 CFLAGS="$oldcflags"
9104 ac_ext=c
9105ac_cpp='$CPP $CPPFLAGS'
9106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110
9111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009112{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9113echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009114if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009116cat >>confdefs.h <<\_ACEOF
9117#define HAVE_LINK_EXPORT_DYNAMIC 1
9118_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009119
9120 fi
9121
9122
Dan Gohmanda612d62010-06-01 14:56:56 +00009123{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9124echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9125if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009126 echo $ECHO_N "(cached) $ECHO_C" >&6
9127else
9128 ac_ext=c
9129ac_cpp='$CPP $CPPFLAGS'
9130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9132ac_compiler_gnu=$ac_cv_c_compiler_gnu
9133
9134 oldcflags="$CFLAGS"
9135
9136 # The following code is from the autoconf manual,
9137 # "11.13: Limitations of Usual Tools".
9138 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9139 # Use mktemp if possible; otherwise fall back on mkdir,
9140 # with $RANDOM to make collisions less likely.
9141 : ${TMPDIR=/tmp}
9142 {
9143 tmp=`
9144 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9145 ` &&
9146 test -n "$tmp" && test -d "$tmp"
9147 } || {
9148 tmp=$TMPDIR/foo$$-$RANDOM
9149 (umask 077 && mkdir "$tmp")
9150 } || exit $?
9151
Dan Gohmanda612d62010-06-01 14:56:56 +00009152 echo "{" > "$tmp/export.map"
9153 echo " global: main;" >> "$tmp/export.map"
9154 echo " local: *;" >> "$tmp/export.map"
9155 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009156
Dan Gohmanda612d62010-06-01 14:56:56 +00009157 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009158 cat >conftest.$ac_ext <<_ACEOF
9159/* confdefs.h. */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */
9164
9165int
9166main ()
9167{
Dan Gohman39ed6782010-04-25 00:12:20 +00009168
Dan Gohman391569c2010-04-16 22:59:06 +00009169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (ac_try="$ac_link"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_link") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188 { (case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_try") 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201esac
9202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009207 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009208else
9209 echo "$as_me: failed program was:" >&5
9210sed 's/^/| /' conftest.$ac_ext >&5
9211
Dan Gohman943005e2010-06-01 16:22:27 +00009212 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009213fi
9214
9215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009217 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009218 rmdir "$tmp"
9219 CFLAGS="$oldcflags"
9220 ac_ext=c
9221ac_cpp='$CPP $CPPFLAGS'
9222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224ac_compiler_gnu=$ac_cv_c_compiler_gnu
9225
9226
9227fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009228{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9229echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9230if test "$llvm_cv_link_use_version_script" = yes ; then
9231 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009232
9233 fi
9234
9235
Reid Spencera773bd52006-08-04 18:18:08 +00009236
9237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009238{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9239echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9240if test "${ac_cv_c_const+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009243 cat >conftest.$ac_ext <<_ACEOF
9244/* confdefs.h. */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009248/* end confdefs.h. */
9249
9250int
9251main ()
9252{
9253/* FIXME: Include the comments suggested by Paul. */
9254#ifndef __cplusplus
9255 /* Ultrix mips cc rejects this. */
9256 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009258 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 char const *const *ccp;
9260 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009261 /* NEC SVR4.0.2 mips cc rejects this. */
9262 struct point {int x, y;};
9263 static struct point const zero = {0,0};
9264 /* AIX XL C 1.02.0.0 rejects this.
9265 It does not let you subtract one const X* pointer from another in
9266 an arm of an if-expression whose if-part is not a constant
9267 expression */
9268 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009269 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009270 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009271 ++ccp;
9272 p = (char**) ccp;
9273 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009274 { /* SCO 3.2v4 cc rejects this. */
9275 char *t;
9276 char const *s = 0 ? (char *) 0 : (char const *) 0;
9277
9278 *t++ = 0;
9279 if (s) return 0;
9280 }
9281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9282 int x[] = {25, 17};
9283 const int *foo = &x[0];
9284 ++foo;
9285 }
9286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9287 typedef const int *iptr;
9288 iptr p = 0;
9289 ++p;
9290 }
9291 { /* AIX XL C 1.02.0.0 rejects this saying
9292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9293 struct s { int j; const int *ap[3]; };
9294 struct s *b; b->j = 5;
9295 }
9296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9297 const int foo = 10;
9298 if (!foo) return 0;
9299 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009300 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009301#endif
9302
9303 ;
9304 return 0;
9305}
9306_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009307rm -f conftest.$ac_objext
9308if { (ac_try="$ac_compile"
9309case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312esac
9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9322 { (case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325esac
9326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_try") 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335esac
9336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_try") 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009341 ac_cv_c_const=yes
9342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343 echo "$as_me: failed program was:" >&5
9344sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009348
Reid Spencera773bd52006-08-04 18:18:08 +00009349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009351{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9352echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009353if test $ac_cv_c_const = no; then
9354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355cat >>confdefs.h <<\_ACEOF
9356#define const
9357_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009358
9359fi
9360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361
9362
9363
9364
9365
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366ac_header_dirent=no
9367for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9369{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9370echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374 cat >conftest.$ac_ext <<_ACEOF
9375/* confdefs.h. */
9376_ACEOF
9377cat confdefs.h >>conftest.$ac_ext
9378cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379/* end confdefs.h. */
9380#include <sys/types.h>
9381#include <$ac_hdr>
9382
9383int
9384main ()
9385{
9386if ((DIR *) 0)
9387return 0;
9388 ;
9389 return 0;
9390}
9391_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392rm -f conftest.$ac_objext
9393if { (ac_try="$ac_compile"
9394case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397esac
9398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9407 { (case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_try") 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest.$ac_objext'
9417 { (case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420esac
9421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_try") 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426 eval "$as_ac_Header=yes"
9427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428 echo "$as_me: failed program was:" >&5
9429sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009433
Reid Spencera773bd52006-08-04 18:18:08 +00009434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009436ac_res=`eval echo '${'$as_ac_Header'}'`
9437 { echo "$as_me:$LINENO: result: $ac_res" >&5
9438echo "${ECHO_T}$ac_res" >&6; }
9439if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009441#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442_ACEOF
9443
9444ac_header_dirent=$ac_hdr; break
9445fi
9446
9447done
9448# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9449if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9451echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9452if test "${ac_cv_search_opendir+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454else
9455 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009456cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h. */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461/* end confdefs.h. */
9462
Reid Spencera773bd52006-08-04 18:18:08 +00009463/* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466#ifdef __cplusplus
9467extern "C"
9468#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469char opendir ();
9470int
9471main ()
9472{
Reid Spencera773bd52006-08-04 18:18:08 +00009473return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474 ;
9475 return 0;
9476}
9477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009478for ac_lib in '' dir; do
9479 if test -z "$ac_lib"; then
9480 ac_res="none required"
9481 else
9482 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009484 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485 rm -f conftest.$ac_objext conftest$ac_exeext
9486if { (ac_try="$ac_link"
9487case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503esac
9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_try") 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest$ac_exeext'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513esac
9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009519 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520else
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009526
Bill Wendlingebcceee2009-04-18 11:20:33 +00009527rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009528 conftest$ac_exeext
9529 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009530 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009531fi
John Criswell7a73b802003-06-30 21:59:07 +00009532done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009533if test "${ac_cv_search_opendir+set}" = set; then
9534 :
Reid Spencera773bd52006-08-04 18:18:08 +00009535else
9536 ac_cv_search_opendir=no
9537fi
9538rm conftest.$ac_ext
9539LIBS=$ac_func_search_save_LIBS
9540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009541{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9542echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009543ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009546
Reid Spencera773bd52006-08-04 18:18:08 +00009547fi
9548
9549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009550 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9551echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9552if test "${ac_cv_search_opendir+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009554else
9555 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009556cat >conftest.$ac_ext <<_ACEOF
9557/* confdefs.h. */
9558_ACEOF
9559cat confdefs.h >>conftest.$ac_ext
9560cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009561/* end confdefs.h. */
9562
9563/* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566#ifdef __cplusplus
9567extern "C"
9568#endif
9569char opendir ();
9570int
9571main ()
9572{
9573return opendir ();
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578for ac_lib in '' x; do
9579 if test -z "$ac_lib"; then
9580 ac_res="none required"
9581 else
9582 ac_res=-l$ac_lib
9583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9584 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585 rm -f conftest.$ac_objext conftest$ac_exeext
9586if { (ac_try="$ac_link"
9587case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009619 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009620else
9621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
9624
Reid Spencera773bd52006-08-04 18:18:08 +00009625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009626
Bill Wendlingebcceee2009-04-18 11:20:33 +00009627rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009628 conftest$ac_exeext
9629 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009630 break
9631fi
9632done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009633if test "${ac_cv_search_opendir+set}" = set; then
9634 :
Reid Spencera773bd52006-08-04 18:18:08 +00009635else
9636 ac_cv_search_opendir=no
9637fi
9638rm conftest.$ac_ext
9639LIBS=$ac_func_search_save_LIBS
9640fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009641{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9642echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009643ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009644if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9646
9647fi
9648
9649fi
John Criswell7a73b802003-06-30 21:59:07 +00009650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651
John Criswell7a73b802003-06-30 21:59:07 +00009652for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653do
9654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660fi
9661ac_res=`eval echo '${'$as_ac_Header'}'`
9662 { echo "$as_me:$LINENO: result: $ac_res" >&5
9663echo "${ECHO_T}$ac_res" >&6; }
9664else
9665 # Is the header compilable?
9666{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9668cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h. */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h. */
9674$ac_includes_default
9675#include <$ac_header>
9676_ACEOF
9677rm -f conftest.$ac_objext
9678if { (ac_try="$ac_compile"
9679case "(($ac_try" in
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9682esac
9683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_compile") 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9692 { (case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695esac
9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_try") 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; } &&
9701 { ac_try='test -s conftest.$ac_objext'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_header_compiler=yes
9712else
9713 echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716 ac_header_compiler=no
9717fi
9718
9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721echo "${ECHO_T}$ac_header_compiler" >&6; }
9722
9723# Is the header present?
9724{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9726cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
9732#include <$ac_header>
9733_ACEOF
9734if { (ac_try="$ac_cpp conftest.$ac_ext"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } >/dev/null; then
9747 if test -s conftest.err; then
9748 ac_cpp_err=$ac_c_preproc_warn_flag
9749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9750 else
9751 ac_cpp_err=
9752 fi
9753else
9754 ac_cpp_err=yes
9755fi
9756if test -z "$ac_cpp_err"; then
9757 ac_header_preproc=yes
9758else
9759 echo "$as_me: failed program was:" >&5
9760sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_header_preproc=no
9763fi
9764
9765rm -f conftest.err conftest.$ac_ext
9766{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9767echo "${ECHO_T}$ac_header_preproc" >&6; }
9768
9769# So? What about this header?
9770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9771 yes:no: )
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9776 ac_header_preproc=yes
9777 ;;
9778 no:yes:* )
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9791 ( cat <<\_ASBOX
9792## ----------------------------------- ##
9793## Report this to llvmbugs@cs.uiuc.edu ##
9794## ----------------------------------- ##
9795_ASBOX
9796 ) | sed "s/^/$as_me: WARNING: /" >&2
9797 ;;
9798esac
9799{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 eval "$as_ac_Header=\$ac_header_preproc"
9805fi
9806ac_res=`eval echo '${'$as_ac_Header'}'`
9807 { echo "$as_me:$LINENO: result: $ac_res" >&5
9808echo "${ECHO_T}$ac_res" >&6; }
9809
9810fi
9811if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009812 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009814_ACEOF
9815
9816fi
9817
9818done
9819
Reid Spencera773bd52006-08-04 18:18:08 +00009820# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009821if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009822 enableval=$enable_ltdl_install;
9823fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009826
9827
9828if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829 INSTALL_LTDL_TRUE=
9830 INSTALL_LTDL_FALSE='#'
9831else
9832 INSTALL_LTDL_TRUE='#'
9833 INSTALL_LTDL_FALSE=
9834fi
9835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009836
9837
9838if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 CONVENIENCE_LTDL_TRUE=
9840 CONVENIENCE_LTDL_FALSE='#'
9841else
9842 CONVENIENCE_LTDL_TRUE='#'
9843 CONVENIENCE_LTDL_FALSE=
9844fi
9845
9846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009847{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849library_names_spec=
9850libname_spec='lib$name'
9851soname_spec=
9852shrext_cmds=".so"
9853postinstall_cmds=
9854postuninstall_cmds=
9855finish_cmds=
9856finish_eval=
9857shlibpath_var=
9858shlibpath_overrides_runpath=unknown
9859version_type=none
9860dynamic_linker="$host_os ld.so"
9861sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862if test "$GCC" = yes; then
9863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865 # if the path contains ";" then we assume it to be the separator
9866 # otherwise default to the standard path separator (i.e. ":") - it is
9867 # assumed that no part of a normal pathname contains ";" but that should
9868 # okay in the real world where ";" in dirpaths is itself problematic.
9869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9870 else
9871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9872 fi
9873else
9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9875fi
9876need_lib_prefix=unknown
9877hardcode_into_libs=no
9878
9879# when you set need_version to no, make sure it does not cause -set_version
9880# flags to be left without arguments
9881need_version=unknown
9882
9883case $host_os in
9884aix3*)
9885 version_type=linux
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887 shlibpath_var=LIBPATH
9888
9889 # AIX 3 has no versioning support, so we append a major version to the name.
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 ;;
9892
9893aix4* | aix5*)
9894 version_type=linux
9895 need_lib_prefix=no
9896 need_version=no
9897 hardcode_into_libs=yes
9898 if test "$host_cpu" = ia64; then
9899 # AIX 5 supports IA64
9900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 else
9903 # With GCC up to 2.95.x, collect2 would create an import file
9904 # for dependence libraries. The import file would start with
9905 # the line `#! .'. This would cause the generated library to
9906 # depend on `.', always an invalid library. This was fixed in
9907 # development snapshots of GCC prior to 3.0.
9908 case $host_os in
9909 aix4 | aix4.[01] | aix4.[01].*)
9910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9911 echo ' yes '
9912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9913 :
9914 else
9915 can_build_shared=no
9916 fi
9917 ;;
9918 esac
9919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920 # soname into executable. Probably we can add versioning support to
9921 # collect2, so additional links can be useful in future.
9922 if test "$aix_use_runtimelinking" = yes; then
9923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924 # instead of lib<name>.a to let people know that these are not
9925 # typical AIX shared libraries.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 else
9928 # We preserve .a as extension for shared libraries through AIX4.2
9929 # and later when we are not doing run time linking.
9930 library_names_spec='${libname}${release}.a $libname.a'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 fi
9933 shlibpath_var=LIBPATH
9934 fi
9935 ;;
9936
9937amigaos*)
9938 library_names_spec='$libname.ixlibrary $libname.a'
9939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940 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'
9941 ;;
9942
9943beos*)
9944 library_names_spec='${libname}${shared_ext}'
9945 dynamic_linker="$host_os ld.so"
9946 shlibpath_var=LIBRARY_PATH
9947 ;;
9948
9949bsdi[45]*)
9950 version_type=linux
9951 need_version=no
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958 # the default ld.so.conf also contains /usr/contrib/lib and
9959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960 # libtool to hard-code these into programs
9961 ;;
9962
9963cygwin* | mingw* | pw32*)
9964 version_type=windows
9965 shrext_cmds=".dll"
9966 need_version=no
9967 need_lib_prefix=no
9968
9969 case $GCC,$host_os in
9970 yes,cygwin* | yes,mingw* | yes,pw32*)
9971 library_names_spec='$libname.dll.a'
9972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973 postinstall_cmds='base_file=`basename \${file}`~
9974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975 dldir=$destdir/`dirname \$dlpath`~
9976 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009977 $install_prog $dir/$dlname \$dldir/$dlname~
9978 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980 dlpath=$dir/\$dldll~
9981 $rm \$dlpath'
9982 shlibpath_overrides_runpath=yes
9983
9984 case $host_os in
9985 cygwin*)
9986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9989 ;;
9990 mingw*)
9991 # MinGW DLLs use traditional 'lib' prefix
9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995 # It is most probably a Windows format PATH printed by
9996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997 # path with ; separators, and with drive letters. We can handle the
9998 # drive letters (cygwin fileutils understands them), so leave them,
9999 # especially as we might pass files found there to a mingw objdump,
10000 # which wouldn't understand a cygwinified path. Ahh.
10001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002 else
10003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10004 fi
10005 ;;
10006 pw32*)
10007 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000010008 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 +000010009 ;;
10010 esac
10011 ;;
10012
10013 *)
10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10015 ;;
10016 esac
10017 dynamic_linker='Win32 ld.exe'
10018 # FIXME: first we should search . and the directory the executable is in
10019 shlibpath_var=PATH
10020 ;;
10021
10022darwin* | rhapsody*)
10023 dynamic_linker="$host_os dyld"
10024 version_type=darwin
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028 soname_spec='${libname}${release}${major}$shared_ext'
10029 shlibpath_overrides_runpath=yes
10030 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010031 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033 if test "$GCC" = yes; then
10034 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"`
10035 else
10036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10037 fi
10038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10039 ;;
10040
10041dgux*)
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 ;;
10049
10050freebsd1*)
10051 dynamic_linker=no
10052 ;;
10053
10054kfreebsd*-gnu)
10055 version_type=linux
10056 need_lib_prefix=no
10057 need_version=no
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 dynamic_linker='GNU ld.so'
10064 ;;
10065
Reid Spencera773bd52006-08-04 18:18:08 +000010066freebsd* | dragonfly*)
10067 # DragonFly does not have aout. When/if they implement a new
10068 # versioning mechanism, adjust this.
10069 if test -x /usr/bin/objformat; then
10070 objformat=`/usr/bin/objformat`
10071 else
10072 case $host_os in
10073 freebsd[123]*) objformat=aout ;;
10074 *) objformat=elf ;;
10075 esac
10076 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077 version_type=freebsd-$objformat
10078 case $version_type in
10079 freebsd-elf*)
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081 need_version=no
10082 need_lib_prefix=no
10083 ;;
10084 freebsd-*)
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10086 need_version=yes
10087 ;;
10088 esac
10089 shlibpath_var=LD_LIBRARY_PATH
10090 case $host_os in
10091 freebsd2*)
10092 shlibpath_overrides_runpath=yes
10093 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010094 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100 shlibpath_overrides_runpath=no
10101 hardcode_into_libs=yes
10102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010103 freebsd*) # from 4.6 on
10104 shlibpath_overrides_runpath=yes
10105 hardcode_into_libs=yes
10106 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107 esac
10108 ;;
10109
10110gnu*)
10111 version_type=linux
10112 need_lib_prefix=no
10113 need_version=no
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 hardcode_into_libs=yes
10118 ;;
10119
10120hpux9* | hpux10* | hpux11*)
10121 # Give a soname corresponding to the major version so that dld.sl refuses to
10122 # link against other versions.
10123 version_type=sunos
10124 need_lib_prefix=no
10125 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010126 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 ia64*)
10128 shrext_cmds='.so'
10129 hardcode_into_libs=yes
10130 dynamic_linker="$host_os dld.so"
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 if test "X$HPUX_IA64_MODE" = X32; then
10136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10137 else
10138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10139 fi
10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10141 ;;
10142 hppa*64*)
10143 shrext_cmds='.sl'
10144 hardcode_into_libs=yes
10145 dynamic_linker="$host_os dld.sl"
10146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10152 ;;
10153 *)
10154 shrext_cmds='.sl'
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=SHLIB_PATH
10157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 ;;
10161 esac
10162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10163 postinstall_cmds='chmod 555 $lib'
10164 ;;
10165
Reid Spencera773bd52006-08-04 18:18:08 +000010166interix3*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=no
10175 hardcode_into_libs=yes
10176 ;;
10177
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178irix5* | irix6* | nonstopux*)
10179 case $host_os in
10180 nonstopux*) version_type=nonstopux ;;
10181 *)
10182 if test "$lt_cv_prog_gnu_ld" = yes; then
10183 version_type=linux
10184 else
10185 version_type=irix
10186 fi ;;
10187 esac
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}${release}${shared_ext} $libname${shared_ext}'
10192 case $host_os in
10193 irix5* | nonstopux*)
10194 libsuff= shlibsuff=
10195 ;;
10196 *)
10197 case $LD in # libtool.m4 will add one of these switches to LD
10198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10199 libsuff= shlibsuff= libmagic=32-bit;;
10200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10201 libsuff=32 shlibsuff=N32 libmagic=N32;;
10202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10204 *) libsuff= shlibsuff= libmagic=never-match;;
10205 esac
10206 ;;
10207 esac
10208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10209 shlibpath_overrides_runpath=no
10210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10212 hardcode_into_libs=yes
10213 ;;
10214
10215# No shared lib support for Linux oldld, aout, or coff.
10216linux*oldld* | linux*aout* | linux*coff*)
10217 dynamic_linker=no
10218 ;;
10219
10220# This must be Linux ELF.
10221linux*)
10222 version_type=linux
10223 need_lib_prefix=no
10224 need_version=no
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=no
10230 # This implies no fast_install, which is unacceptable.
10231 # Some rework will be needed to allow for fast_install
10232 # before this can be enabled.
10233 hardcode_into_libs=yes
10234
10235 # Append ld.so.conf contents to the search path
10236 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010237 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 +000010238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10239 fi
10240
10241 # We used to test for /lib/ld.so.1 and disable shared libraries on
10242 # powerpc, because MkLinux only supported shared libraries with the
10243 # GNU dynamic linker. Since this was broken with cross compilers,
10244 # most powerpc-linux boxes support dynamic linking these days and
10245 # people can always --disable-shared, the test was removed, and we
10246 # assume the GNU/Linux dynamic linker is in use.
10247 dynamic_linker='GNU/Linux ld.so'
10248 ;;
10249
10250knetbsd*-gnu)
10251 version_type=linux
10252 need_lib_prefix=no
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
10258 hardcode_into_libs=yes
10259 dynamic_linker='GNU ld.so'
10260 ;;
10261
10262netbsd*)
10263 version_type=sunos
10264 need_lib_prefix=no
10265 need_version=no
10266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269 dynamic_linker='NetBSD (a.out) ld.so'
10270 else
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 dynamic_linker='NetBSD ld.elf_so'
10274 fi
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 ;;
10279
10280newsos6)
10281 version_type=linux
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes
10285 ;;
10286
10287nto-qnx*)
10288 version_type=linux
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 ;;
10296
10297openbsd*)
10298 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010299 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10302 case $host_os in
10303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10304 *) need_version=no ;;
10305 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10310 case $host_os in
10311 openbsd2.[89] | openbsd2.[89].*)
10312 shlibpath_overrides_runpath=no
10313 ;;
10314 *)
10315 shlibpath_overrides_runpath=yes
10316 ;;
10317 esac
10318 else
10319 shlibpath_overrides_runpath=yes
10320 fi
10321 ;;
10322
10323os2*)
10324 libname_spec='$name'
10325 shrext_cmds=".dll"
10326 need_lib_prefix=no
10327 library_names_spec='$libname${shared_ext} $libname.a'
10328 dynamic_linker='OS/2 ld.exe'
10329 shlibpath_var=LIBPATH
10330 ;;
10331
10332osf3* | osf4* | osf5*)
10333 version_type=osf
10334 need_lib_prefix=no
10335 need_version=no
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10341 ;;
10342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343solaris*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 hardcode_into_libs=yes
10352 # ldd complains unless libraries are executable
10353 postinstall_cmds='chmod +x $lib'
10354 ;;
10355
10356sunos4*)
10357 version_type=sunos
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 if test "$with_gnu_ld" = yes; then
10363 need_lib_prefix=no
10364 fi
10365 need_version=yes
10366 ;;
10367
Reid Spencera773bd52006-08-04 18:18:08 +000010368sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 version_type=linux
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 case $host_vendor in
10374 sni)
10375 shlibpath_overrides_runpath=no
10376 need_lib_prefix=no
10377 export_dynamic_flag_spec='${wl}-Blargedynsym'
10378 runpath_var=LD_RUN_PATH
10379 ;;
10380 siemens)
10381 need_lib_prefix=no
10382 ;;
10383 motorola)
10384 need_lib_prefix=no
10385 need_version=no
10386 shlibpath_overrides_runpath=no
10387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10388 ;;
10389 esac
10390 ;;
10391
10392sysv4*MP*)
10393 if test -d /usr/nec ;then
10394 version_type=linux
10395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10396 soname_spec='$libname${shared_ext}.$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 fi
10399 ;;
10400
Reid Spencera773bd52006-08-04 18:18:08 +000010401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10402 version_type=freebsd-elf
10403 need_lib_prefix=no
10404 need_version=no
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 hardcode_into_libs=yes
10409 if test "$with_gnu_ld" = yes; then
10410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10411 shlibpath_overrides_runpath=no
10412 else
10413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10414 shlibpath_overrides_runpath=yes
10415 case $host_os in
10416 sco3.2v5*)
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10418 ;;
10419 esac
10420 fi
10421 sys_lib_dlsearch_path_spec='/usr/lib'
10422 ;;
10423
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424uts4*)
10425 version_type=linux
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 ;;
10430
10431*)
10432 dynamic_linker=no
10433 ;;
10434esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10436echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437test "$dynamic_linker" = no && can_build_shared=no
10438
Reid Spencera773bd52006-08-04 18:18:08 +000010439variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10440if test "$GCC" = yes; then
10441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10442fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443
Reid Spencera773bd52006-08-04 18:18:08 +000010444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10446echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10447if test "${libltdl_cv_shlibext+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449else
10450
10451module=yes
10452eval libltdl_cv_shlibext=$shrext_cmds
10453
10454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10456echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457if test -n "$libltdl_cv_shlibext"; then
10458
10459cat >>confdefs.h <<_ACEOF
10460#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10461_ACEOF
10462
10463fi
10464
10465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010466{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10467echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10468if test "${libltdl_cv_shlibpath_var+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470else
10471 libltdl_cv_shlibpath_var="$shlibpath_var"
10472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010473{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10474echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475if test -n "$libltdl_cv_shlibpath_var"; then
10476
10477cat >>confdefs.h <<_ACEOF
10478#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10479_ACEOF
10480
10481fi
10482
10483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010484{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10485echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10486if test "${libltdl_cv_sys_search_path+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488else
10489 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010491{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10492echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493if test -n "$libltdl_cv_sys_search_path"; then
10494 sys_search_path=
10495 for dir in $libltdl_cv_sys_search_path; do
10496 if test -z "$sys_search_path"; then
10497 sys_search_path="$dir"
10498 else
10499 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10500 fi
10501 done
10502
10503cat >>confdefs.h <<_ACEOF
10504#define LTDL_SYSSEARCHPATH "$sys_search_path"
10505_ACEOF
10506
10507fi
10508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010509{ echo "$as_me:$LINENO: checking for objdir" >&5
10510echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10511if test "${libltdl_cv_objdir+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513else
10514 libltdl_cv_objdir="$objdir"
10515 if test -n "$objdir"; then
10516 :
10517 else
10518 rm -f .libs 2>/dev/null
10519 mkdir .libs 2>/dev/null
10520 if test -d .libs; then
10521 libltdl_cv_objdir=.libs
10522 else
10523 # MS-DOS does not allow filenames that begin with a dot.
10524 libltdl_cv_objdir=_libs
10525 fi
10526 rmdir .libs 2>/dev/null
10527 fi
10528
10529fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010530{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10531echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532
10533cat >>confdefs.h <<_ACEOF
10534#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10535_ACEOF
10536
10537
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538
10539
10540
10541
10542# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010543{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10544echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10545if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547else
10548
10549# These are sane defaults that work on at least a few old systems.
10550# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10551
10552# Character class describing NM global symbol codes.
10553symcode='[BCDEGRST]'
10554
10555# Regexp to match symbols that can be accessed directly from C.
10556sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10557
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558# Transform an extracted symbol line into a proper C declaration
10559lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10560
10561# Transform an extracted symbol line into symbol name and symbol address
10562lt_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'"
10563
10564# Define system-specific variables.
10565case $host_os in
10566aix*)
10567 symcode='[BCDT]'
10568 ;;
10569cygwin* | mingw* | pw32*)
10570 symcode='[ABCDGISTW]'
10571 ;;
10572hpux*) # Its linker distinguishes data from code symbols
10573 if test "$host_cpu" = ia64; then
10574 symcode='[ABCDEGRST]'
10575 fi
10576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10577 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'"
10578 ;;
10579linux*)
10580 if test "$host_cpu" = ia64; then
10581 symcode='[ABCDGIRSTW]'
10582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10583 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'"
10584 fi
10585 ;;
10586irix* | nonstopux*)
10587 symcode='[BCDEGRST]'
10588 ;;
10589osf*)
10590 symcode='[BCDEGQRST]'
10591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010592solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 symcode='[BDRT]'
10594 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010595sco3.2v5*)
10596 symcode='[DT]'
10597 ;;
10598sysv4.2uw2*)
10599 symcode='[DT]'
10600 ;;
10601sysv5* | sco5v6* | unixware* | OpenUNIX*)
10602 symcode='[ABDT]'
10603 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010604sysv4)
10605 symcode='[DFNSTU]'
10606 ;;
10607esac
10608
10609# Handle CRLF in mingw tool chain
10610opt_cr=
10611case $build_os in
10612mingw*)
10613 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10614 ;;
10615esac
10616
10617# If we're using GNU nm, then use its standard symbol codes.
10618case `$NM -V 2>&1` in
10619*GNU* | *'with BFD'*)
10620 symcode='[ABCDGIRSTW]' ;;
10621esac
10622
10623# Try without a prefix undercore, then with it.
10624for ac_symprfx in "" "_"; do
10625
Reid Spencera773bd52006-08-04 18:18:08 +000010626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10627 symxfrm="\\1 $ac_symprfx\\2 \\2"
10628
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010630 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 +000010631
10632 # Check to see that the pipe works correctly.
10633 pipe_works=no
10634
10635 rm -f conftest*
10636 cat > conftest.$ac_ext <<EOF
10637#ifdef __cplusplus
10638extern "C" {
10639#endif
10640char nm_test_var;
10641void nm_test_func(){}
10642#ifdef __cplusplus
10643}
10644#endif
10645int main(){nm_test_var='a';nm_test_func();return(0);}
10646EOF
10647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649 (eval $ac_compile) 2>&5
10650 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653 # Now try to grab the symbols.
10654 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010655 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 +000010656 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10657 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660 # Try sorting and uniquifying the output.
10661 if sort "$nlist" | uniq > "$nlist"T; then
10662 mv -f "$nlist"T "$nlist"
10663 else
10664 rm -f "$nlist"T
10665 fi
10666
10667 # Make sure that we snagged all the symbols we need.
10668 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10669 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10670 cat <<EOF > conftest.$ac_ext
10671#ifdef __cplusplus
10672extern "C" {
10673#endif
10674
10675EOF
10676 # Now generate the symbol file.
10677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10678
10679 cat <<EOF >> conftest.$ac_ext
10680#if defined (__STDC__) && __STDC__
10681# define lt_ptr_t void *
10682#else
10683# define lt_ptr_t char *
10684# define const
10685#endif
10686
10687/* The mapping between symbol names and symbols. */
10688const struct {
10689 const char *name;
10690 lt_ptr_t address;
10691}
10692lt_preloaded_symbols[] =
10693{
10694EOF
10695 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10696 cat <<\EOF >> conftest.$ac_ext
10697 {0, (lt_ptr_t) 0}
10698};
10699
10700#ifdef __cplusplus
10701}
10702#endif
10703EOF
10704 # Now try linking the two files.
10705 mv conftest.$ac_objext conftstm.$ac_objext
10706 lt_save_LIBS="$LIBS"
10707 lt_save_CFLAGS="$CFLAGS"
10708 LIBS="conftstm.$ac_objext"
10709 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711 (eval $ac_link) 2>&5
10712 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715 pipe_works=yes
10716 fi
10717 LIBS="$lt_save_LIBS"
10718 CFLAGS="$lt_save_CFLAGS"
10719 else
10720 echo "cannot find nm_test_func in $nlist" >&5
10721 fi
10722 else
10723 echo "cannot find nm_test_var in $nlist" >&5
10724 fi
10725 else
10726 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10727 fi
10728 else
10729 echo "$progname: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 fi
10732 rm -f conftest* conftst*
10733
10734 # Do not use the global_symbol_pipe unless it works.
10735 if test "$pipe_works" = yes; then
10736 break
10737 else
10738 lt_cv_sys_global_symbol_pipe=
10739 fi
10740done
10741
10742fi
10743
10744if test -z "$lt_cv_sys_global_symbol_pipe"; then
10745 lt_cv_sys_global_symbol_to_cdecl=
10746fi
10747if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748 { echo "$as_me:$LINENO: result: failed" >&5
10749echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751 { echo "$as_me:$LINENO: result: ok" >&5
10752echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753fi
10754
10755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010756{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10757echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10758if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760else
10761 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10762 libltdl_cv_preloaded_symbols=yes
10763 else
10764 libltdl_cv_preloaded_symbols=no
10765 fi
10766
10767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10769echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010772cat >>confdefs.h <<\_ACEOF
10773#define HAVE_PRELOADED_SYMBOLS 1
10774_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775
10776fi
10777
10778LIBADD_DL=
10779
10780ac_ext=c
10781ac_cpp='$CPP $CPPFLAGS'
10782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784ac_compiler_gnu=$ac_cv_c_compiler_gnu
10785
10786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010787{ echo "$as_me:$LINENO: checking for shl_load" >&5
10788echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10789if test "${ac_cv_func_shl_load+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 cat >conftest.$ac_ext <<_ACEOF
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
10798/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010802/* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char shl_load (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10806
10807#ifdef __STDC__
10808# include <limits.h>
10809#else
10810# include <assert.h>
10811#endif
10812
10813#undef shl_load
10814
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char shl_load ();
10822/* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825#if defined __stub_shl_load || defined __stub___shl_load
10826choke me
10827#endif
10828
10829int
10830main ()
10831{
10832return shl_load ();
10833 ;
10834 return 0;
10835}
10836_ACEOF
10837rm -f conftest.$ac_objext conftest$ac_exeext
10838if { (ac_try="$ac_link"
10839case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest$ac_exeext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_func_shl_load=yes
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_cv_func_shl_load=no
10877fi
10878
10879rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881fi
10882{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10883echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10884if test $ac_cv_func_shl_load = yes; then
10885
10886cat >>confdefs.h <<\_ACEOF
10887#define HAVE_SHL_LOAD 1
10888_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889
10890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010891 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10892echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10893if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010895else
10896 ac_check_lib_save_LIBS=$LIBS
10897LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010898cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903/* end confdefs.h. */
10904
Reid Spencera773bd52006-08-04 18:18:08 +000010905/* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908#ifdef __cplusplus
10909extern "C"
10910#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911char shl_load ();
10912int
10913main ()
10914{
Reid Spencera773bd52006-08-04 18:18:08 +000010915return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916 ;
10917 return 0;
10918}
10919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (ac_try="$ac_link"
10922case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935 { (case "(($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_try") 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954 ac_cv_lib_dld_shl_load=yes
10955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010956 echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010961
Bill Wendlingebcceee2009-04-18 11:20:33 +000010962rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010963 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964LIBS=$ac_check_lib_save_LIBS
10965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010966{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10967echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10968if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010970cat >>confdefs.h <<\_ACEOF
10971#define HAVE_SHL_LOAD 1
10972_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973
10974 LIBADD_DL="$LIBADD_DL -ldld"
10975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010976 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10978if test "${ac_cv_lib_dl_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="-ldl $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_dl_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_dl_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_dl_dlopen" >&5
11052echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11053if test $ac_cv_lib_dl_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="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061 cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h. */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066/* end confdefs.h. */
11067#if HAVE_DLFCN_H
11068# include <dlfcn.h>
11069#endif
11070
11071int
11072main ()
11073{
11074dlopen(0, 0);
11075 ;
11076 return 0;
11077}
11078_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079rm -f conftest.$ac_objext conftest$ac_exeext
11080if { (ac_try="$ac_link"
11081case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_link") 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest$ac_exeext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011114cat >>confdefs.h <<\_ACEOF
11115#define HAVE_LIBDL 1
11116_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117 libltdl_cv_func_dlopen="yes"
11118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11123echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11124if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126else
11127 ac_check_lib_save_LIBS=$LIBS
11128LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011129cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134/* end confdefs.h. */
11135
Reid Spencera773bd52006-08-04 18:18:08 +000011136/* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139#ifdef __cplusplus
11140extern "C"
11141#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142char dlopen ();
11143int
11144main ()
11145{
Reid Spencera773bd52006-08-04 18:18:08 +000011146return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147 ;
11148 return 0;
11149}
11150_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011151rm -f conftest.$ac_objext conftest$ac_exeext
11152if { (ac_try="$ac_link"
11153case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156esac
11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185 ac_cv_lib_svld_dlopen=yes
11186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011192
Bill Wendlingebcceee2009-04-18 11:20:33 +000011193rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011194 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195LIBS=$ac_check_lib_save_LIBS
11196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011197{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11198echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11199if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011201cat >>confdefs.h <<\_ACEOF
11202#define HAVE_LIBDL 1
11203_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204
11205 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011207 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11208echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11209if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211else
11212 ac_check_lib_save_LIBS=$LIBS
11213LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011214cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219/* end confdefs.h. */
11220
Reid Spencera773bd52006-08-04 18:18:08 +000011221/* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224#ifdef __cplusplus
11225extern "C"
11226#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227char dld_link ();
11228int
11229main ()
11230{
Reid Spencera773bd52006-08-04 18:18:08 +000011231return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232 ;
11233 return 0;
11234}
11235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011236rm -f conftest.$ac_objext conftest$ac_exeext
11237if { (ac_try="$ac_link"
11238case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_link") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11251 { (case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_try") 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest$ac_exeext'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264esac
11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270 ac_cv_lib_dld_dld_link=yes
11271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011272 echo "$as_me: failed program was:" >&5
11273sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011277
Bill Wendlingebcceee2009-04-18 11:20:33 +000011278rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011279 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280LIBS=$ac_check_lib_save_LIBS
11281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011282{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11283echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11284if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011286cat >>confdefs.h <<\_ACEOF
11287#define HAVE_DLD 1
11288_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289
11290 LIBADD_DL="$LIBADD_DL -ldld"
11291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011292 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11293echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11294if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296else
11297 cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011307/* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char _dyld_func_lookup (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011312#ifdef __STDC__
11313# include <limits.h>
11314#else
11315# include <assert.h>
11316#endif
11317
11318#undef _dyld_func_lookup
11319
11320/* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323#ifdef __cplusplus
11324extern "C"
11325#endif
11326char _dyld_func_lookup ();
11327/* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11331choke me
11332#endif
11333
11334int
11335main ()
11336{
11337return _dyld_func_lookup ();
11338 ;
11339 return 0;
11340}
11341_ACEOF
11342rm -f conftest.$ac_objext conftest$ac_exeext
11343if { (ac_try="$ac_link"
11344case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347esac
11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_func__dyld_func_lookup=yes
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382fi
Reid Spencera773bd52006-08-04 18:18:08 +000011383
Bill Wendlingebcceee2009-04-18 11:20:33 +000011384rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011385 conftest$ac_exeext conftest.$ac_ext
11386fi
11387{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11388echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11389if test $ac_cv_func__dyld_func_lookup = yes; then
11390
11391cat >>confdefs.h <<\_ACEOF
11392#define HAVE_DYLD 1
11393_ACEOF
11394
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403
11404fi
11405
11406rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408
11409fi
11410
11411
11412fi
11413
11414
11415fi
11416
11417
11418if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11419then
11420 lt_save_LIBS="$LIBS"
11421 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422
11423for ac_func in dlerror
11424do
11425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h. */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h. */
11437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11439#define $ac_func innocuous_$ac_func
11440
11441/* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func (); below.
11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 <limits.h> exists even on freestanding compilers. */
11445
11446#ifdef __STDC__
11447# include <limits.h>
11448#else
11449# include <assert.h>
11450#endif
11451
11452#undef $ac_func
11453
11454/* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457#ifdef __cplusplus
11458extern "C"
11459#endif
11460char $ac_func ();
11461/* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464#if defined __stub_$ac_func || defined __stub___$ac_func
11465choke me
11466#endif
11467
11468int
11469main ()
11470{
11471return $ac_func ();
11472 ;
11473 return 0;
11474}
11475_ACEOF
11476rm -f conftest.$ac_objext conftest$ac_exeext
11477if { (ac_try="$ac_link"
11478case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_link") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "$as_ac_var=yes"
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 eval "$as_ac_var=no"
11516fi
11517
11518rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520fi
11521ac_res=`eval echo '${'$as_ac_var'}'`
11522 { echo "$as_me:$LINENO: result: $ac_res" >&5
11523echo "${ECHO_T}$ac_res" >&6; }
11524if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527_ACEOF
11528
11529fi
11530done
11531
11532 LIBS="$lt_save_LIBS"
11533fi
11534ac_ext=c
11535ac_cpp='$CPP $CPPFLAGS'
11536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538ac_compiler_gnu=$ac_cv_c_compiler_gnu
11539
11540
11541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011542{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11543echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11544if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546else
11547 ac_cv_sys_symbol_underscore=no
11548 cat > conftest.$ac_ext <<EOF
11549void nm_test_func(){}
11550int main(){nm_test_func;return 0;}
11551EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553 (eval $ac_compile) 2>&5
11554 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557 # Now try to grab the symbols.
11558 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011559 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 +000011560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11561 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011564 # See whether the symbols have a leading underscore.
11565 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11566 ac_cv_sys_symbol_underscore=yes
11567 else
11568 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11569 :
11570 else
11571 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11572 fi
11573 fi
11574 else
11575 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11576 fi
11577 else
11578 echo "configure: failed program was:" >&5
11579 cat conftest.c >&5
11580 fi
11581 rm -rf conftest*
11582
11583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11585echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586
11587
11588if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11589 if test x"$libltdl_cv_func_dlopen" = xyes ||
11590 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011591 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11592echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11593if test "${libltdl_cv_need_uscore+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595else
11596 libltdl_cv_need_uscore=unknown
11597 save_LIBS="$LIBS"
11598 LIBS="$LIBS $LIBADD_DL"
11599 if test "$cross_compiling" = yes; then :
11600 libltdl_cv_need_uscore=cross
11601else
11602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11603 lt_status=$lt_dlunknown
11604 cat > conftest.$ac_ext <<EOF
Daniel Dunbared344d22011-06-16 22:30:41 +000011605#line 11591 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606#include "confdefs.h"
11607
11608#if HAVE_DLFCN_H
11609#include <dlfcn.h>
11610#endif
11611
11612#include <stdio.h>
11613
11614#ifdef RTLD_GLOBAL
11615# define LT_DLGLOBAL RTLD_GLOBAL
11616#else
11617# ifdef DL_GLOBAL
11618# define LT_DLGLOBAL DL_GLOBAL
11619# else
11620# define LT_DLGLOBAL 0
11621# endif
11622#endif
11623
11624/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11625 find out it does not work in some platform. */
11626#ifndef LT_DLLAZY_OR_NOW
11627# ifdef RTLD_LAZY
11628# define LT_DLLAZY_OR_NOW RTLD_LAZY
11629# else
11630# ifdef DL_LAZY
11631# define LT_DLLAZY_OR_NOW DL_LAZY
11632# else
11633# ifdef RTLD_NOW
11634# define LT_DLLAZY_OR_NOW RTLD_NOW
11635# else
11636# ifdef DL_NOW
11637# define LT_DLLAZY_OR_NOW DL_NOW
11638# else
11639# define LT_DLLAZY_OR_NOW 0
11640# endif
11641# endif
11642# endif
11643# endif
11644#endif
11645
11646#ifdef __cplusplus
11647extern "C" void exit (int);
11648#endif
11649
11650void fnord() { int i=42;}
11651int main ()
11652{
11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654 int status = $lt_dlunknown;
11655
11656 if (self)
11657 {
11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11660 /* dlclose (self); */
11661 }
Reid Spencera773bd52006-08-04 18:18:08 +000011662 else
11663 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664
11665 exit (status);
11666}
11667EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 (eval $ac_link) 2>&5
11670 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011673 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674 lt_status=$?
11675 case x$lt_status in
11676 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11677 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011678 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679 esac
11680 else :
11681 # compilation failed
11682
11683 fi
11684fi
11685rm -fr conftest*
11686
11687 LIBS="$save_LIBS"
11688
11689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011690{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11691echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692 fi
11693fi
11694
11695if test x"$libltdl_cv_need_uscore" = xyes; then
11696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011697cat >>confdefs.h <<\_ACEOF
11698#define NEED_USCORE 1
11699_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700
11701fi
11702
11703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011704{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11705echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11706if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708else
11709 # PORTME does your system automatically load deplibs for dlopen?
11710 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11711 # For now, we just catch OSes we know something about -- in the
11712 # future, we'll try test this programmatically.
11713 libltdl_cv_sys_dlopen_deplibs=unknown
11714 case "$host_os" in
11715 aix3*|aix4.1.*|aix4.2.*)
11716 # Unknown whether this is true for these versions of AIX, but
11717 # we want this `case' here to explicitly catch those versions.
11718 libltdl_cv_sys_dlopen_deplibs=unknown
11719 ;;
11720 aix[45]*)
11721 libltdl_cv_sys_dlopen_deplibs=yes
11722 ;;
11723 darwin*)
11724 # Assuming the user has installed a libdl from somewhere, this is true
11725 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11726 libltdl_cv_sys_dlopen_deplibs=yes
11727 ;;
11728 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11729 # GNU and its variants, using gnu ld.so (Glibc)
11730 libltdl_cv_sys_dlopen_deplibs=yes
11731 ;;
11732 hpux10*|hpux11*)
11733 libltdl_cv_sys_dlopen_deplibs=yes
11734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011735 interix*)
11736 libltdl_cv_sys_dlopen_deplibs=yes
11737 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 irix[12345]*|irix6.[01]*)
11739 # Catch all versions of IRIX before 6.2, and indicate that we don't
11740 # know how it worked for any of those versions.
11741 libltdl_cv_sys_dlopen_deplibs=unknown
11742 ;;
11743 irix*)
11744 # The case above catches anything before 6.2, and it's known that
11745 # at 6.2 and later dlopen does load deplibs.
11746 libltdl_cv_sys_dlopen_deplibs=yes
11747 ;;
11748 netbsd*)
11749 libltdl_cv_sys_dlopen_deplibs=yes
11750 ;;
11751 openbsd*)
11752 libltdl_cv_sys_dlopen_deplibs=yes
11753 ;;
11754 osf[1234]*)
11755 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11756 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011757 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011758 libltdl_cv_sys_dlopen_deplibs=no
11759 ;;
11760 osf5.0|osf5.0a|osf5.1)
11761 # dlopen *does* load deplibs and with the right loader patch applied
11762 # it even uses RPATH in a shared library to search for shared objects
11763 # that the library depends on, but there's no easy way to know if that
11764 # patch is installed. Since this is the case, all we can really
11765 # say is unknown -- it depends on the patch being installed. If
11766 # it is, this changes to `yes'. Without it, it would be `no'.
11767 libltdl_cv_sys_dlopen_deplibs=unknown
11768 ;;
11769 osf*)
11770 # the two cases above should catch all versions of osf <= 5.1. Read
11771 # the comments above for what we know about them.
11772 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11773 # is used to find them so we can finally say `yes'.
11774 libltdl_cv_sys_dlopen_deplibs=yes
11775 ;;
11776 solaris*)
11777 libltdl_cv_sys_dlopen_deplibs=yes
11778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780 libltdl_cv_sys_dlopen_deplibs=yes
11781 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782 esac
11783
11784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011785{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11786echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011789cat >>confdefs.h <<\_ACEOF
11790#define LTDL_DLOPEN_DEPLIBS 1
11791_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792
11793fi
11794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011795
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011797do
11798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804fi
11805ac_res=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807echo "${ECHO_T}$ac_res" >&6; }
11808else
11809 # Is the header compilable?
11810{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812cat >conftest.$ac_ext <<_ACEOF
11813/* confdefs.h. */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h. */
11818$ac_includes_default
11819#include <$ac_header>
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (ac_try="$ac_compile"
11823case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826esac
11827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11836 { (case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839esac
11840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_try") 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest.$ac_objext'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_header_compiler=yes
11856else
11857 echo "$as_me: failed program was:" >&5
11858sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_header_compiler=no
11861fi
11862
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865echo "${ECHO_T}$ac_header_compiler" >&6; }
11866
11867# Is the header present?
11868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11870cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h. */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h. */
11876#include <$ac_header>
11877_ACEOF
11878if { (ac_try="$ac_cpp conftest.$ac_ext"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } >/dev/null; then
11891 if test -s conftest.err; then
11892 ac_cpp_err=$ac_c_preproc_warn_flag
11893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11894 else
11895 ac_cpp_err=
11896 fi
11897else
11898 ac_cpp_err=yes
11899fi
11900if test -z "$ac_cpp_err"; then
11901 ac_header_preproc=yes
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_header_preproc=no
11907fi
11908
11909rm -f conftest.err conftest.$ac_ext
11910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911echo "${ECHO_T}$ac_header_preproc" >&6; }
11912
11913# So? What about this header?
11914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11915 yes:no: )
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920 ac_header_preproc=yes
11921 ;;
11922 no:yes:* )
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11935 ( cat <<\_ASBOX
11936## ----------------------------------- ##
11937## Report this to llvmbugs@cs.uiuc.edu ##
11938## ----------------------------------- ##
11939_ASBOX
11940 ) | sed "s/^/$as_me: WARNING: /" >&2
11941 ;;
11942esac
11943{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
11948 eval "$as_ac_Header=\$ac_header_preproc"
11949fi
11950ac_res=`eval echo '${'$as_ac_Header'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952echo "${ECHO_T}$ac_res" >&6; }
11953
11954fi
11955if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958_ACEOF
11959
11960fi
11961
11962done
11963
11964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011965{ echo "$as_me:$LINENO: checking for error_t" >&5
11966echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11967if test "${ac_cv_type_error_t+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h. */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h. */
11976#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977# include <argz.h>
11978#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011979
11980typedef error_t ac__type_new_;
11981int
11982main ()
11983{
11984if ((ac__type_new_ *) 0)
11985 return 0;
11986if (sizeof (ac__type_new_))
11987 return 0;
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext
11993if { (ac_try="$ac_compile"
11994case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_compile") 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_type_error_t=yes
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ac_cv_type_error_t=no
12032fi
12033
12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035fi
12036{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12037echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12038if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039
12040cat >>confdefs.h <<_ACEOF
12041#define HAVE_ERROR_T 1
12042_ACEOF
12043
12044
12045else
12046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012047cat >>confdefs.h <<\_ACEOF
12048#define error_t int
12049_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050
12051fi
12052
12053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012054
12055
12056
12057
12058
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012060do
12061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075#define $ac_func innocuous_$ac_func
12076
12077/* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12081
12082#ifdef __STDC__
12083# include <limits.h>
12084#else
12085# include <assert.h>
12086#endif
12087
12088#undef $ac_func
12089
12090/* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093#ifdef __cplusplus
12094extern "C"
12095#endif
12096char $ac_func ();
12097/* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100#if defined __stub_$ac_func || defined __stub___$ac_func
12101choke me
12102#endif
12103
12104int
12105main ()
12106{
12107return $ac_func ();
12108 ;
12109 return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext conftest$ac_exeext
12113if { (ac_try="$ac_link"
12114case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140esac
12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 eval "$as_ac_var=yes"
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 eval "$as_ac_var=no"
12152fi
12153
12154rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156fi
12157ac_res=`eval echo '${'$as_ac_var'}'`
12158 { echo "$as_me:$LINENO: result: $ac_res" >&5
12159echo "${ECHO_T}$ac_res" >&6; }
12160if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163_ACEOF
12164
12165fi
12166done
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012187
12188
12189
12190
12191
12192
12193
12194
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12196 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012197do
12198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204fi
12205ac_res=`eval echo '${'$as_ac_Header'}'`
12206 { echo "$as_me:$LINENO: result: $ac_res" >&5
12207echo "${ECHO_T}$ac_res" >&6; }
12208else
12209 # Is the header compilable?
12210{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12212cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
12218$ac_includes_default
12219#include <$ac_header>
12220_ACEOF
12221rm -f conftest.$ac_objext
12222if { (ac_try="$ac_compile"
12223case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226esac
12227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_compile") 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12236 { (case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_try") 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249esac
12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_header_compiler=yes
12256else
12257 echo "$as_me: failed program was:" >&5
12258sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 ac_header_compiler=no
12261fi
12262
12263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12265echo "${ECHO_T}$ac_header_compiler" >&6; }
12266
12267# Is the header present?
12268{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12270cat >conftest.$ac_ext <<_ACEOF
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
12276#include <$ac_header>
12277_ACEOF
12278if { (ac_try="$ac_cpp conftest.$ac_ext"
12279case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282esac
12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } >/dev/null; then
12291 if test -s conftest.err; then
12292 ac_cpp_err=$ac_c_preproc_warn_flag
12293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12294 else
12295 ac_cpp_err=
12296 fi
12297else
12298 ac_cpp_err=yes
12299fi
12300if test -z "$ac_cpp_err"; then
12301 ac_header_preproc=yes
12302else
12303 echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 ac_header_preproc=no
12307fi
12308
12309rm -f conftest.err conftest.$ac_ext
12310{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12311echo "${ECHO_T}$ac_header_preproc" >&6; }
12312
12313# So? What about this header?
12314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12315 yes:no: )
12316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12320 ac_header_preproc=yes
12321 ;;
12322 no:yes:* )
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12335 ( cat <<\_ASBOX
12336## ----------------------------------- ##
12337## Report this to llvmbugs@cs.uiuc.edu ##
12338## ----------------------------------- ##
12339_ASBOX
12340 ) | sed "s/^/$as_me: WARNING: /" >&2
12341 ;;
12342esac
12343{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347else
12348 eval "$as_ac_Header=\$ac_header_preproc"
12349fi
12350ac_res=`eval echo '${'$as_ac_Header'}'`
12351 { echo "$as_me:$LINENO: result: $ac_res" >&5
12352echo "${ECHO_T}$ac_res" >&6; }
12353
12354fi
12355if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012356 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012358_ACEOF
12359
12360fi
12361
12362done
12363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012364
12365
12366
12367
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369do
12370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376fi
12377ac_res=`eval echo '${'$as_ac_Header'}'`
12378 { echo "$as_me:$LINENO: result: $ac_res" >&5
12379echo "${ECHO_T}$ac_res" >&6; }
12380else
12381 # Is the header compilable?
12382{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12384cat >conftest.$ac_ext <<_ACEOF
12385/* confdefs.h. */
12386_ACEOF
12387cat confdefs.h >>conftest.$ac_ext
12388cat >>conftest.$ac_ext <<_ACEOF
12389/* end confdefs.h. */
12390$ac_includes_default
12391#include <$ac_header>
12392_ACEOF
12393rm -f conftest.$ac_objext
12394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12408 { (case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12411esac
12412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_try") 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try='test -s conftest.$ac_objext'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_header_compiler=yes
12428else
12429 echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 ac_header_compiler=no
12433fi
12434
12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12437echo "${ECHO_T}$ac_header_compiler" >&6; }
12438
12439# Is the header present?
12440{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12442cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448#include <$ac_header>
12449_ACEOF
12450if { (ac_try="$ac_cpp conftest.$ac_ext"
12451case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12454esac
12455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } >/dev/null; then
12463 if test -s conftest.err; then
12464 ac_cpp_err=$ac_c_preproc_warn_flag
12465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12466 else
12467 ac_cpp_err=
12468 fi
12469else
12470 ac_cpp_err=yes
12471fi
12472if test -z "$ac_cpp_err"; then
12473 ac_header_preproc=yes
12474else
12475 echo "$as_me: failed program was:" >&5
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 ac_header_preproc=no
12479fi
12480
12481rm -f conftest.err conftest.$ac_ext
12482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12483echo "${ECHO_T}$ac_header_preproc" >&6; }
12484
12485# So? What about this header?
12486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12487 yes:no: )
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12492 ac_header_preproc=yes
12493 ;;
12494 no:yes:* )
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12507 ( cat <<\_ASBOX
12508## ----------------------------------- ##
12509## Report this to llvmbugs@cs.uiuc.edu ##
12510## ----------------------------------- ##
12511_ASBOX
12512 ) | sed "s/^/$as_me: WARNING: /" >&2
12513 ;;
12514esac
12515{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520 eval "$as_ac_Header=\$ac_header_preproc"
12521fi
12522ac_res=`eval echo '${'$as_ac_Header'}'`
12523 { echo "$as_me:$LINENO: result: $ac_res" >&5
12524echo "${ECHO_T}$ac_res" >&6; }
12525
12526fi
12527if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012528 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530_ACEOF
12531
12532fi
12533
12534done
12535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012536
12537
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012538for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012539do
12540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546fi
12547ac_res=`eval echo '${'$as_ac_Header'}'`
12548 { echo "$as_me:$LINENO: result: $ac_res" >&5
12549echo "${ECHO_T}$ac_res" >&6; }
12550else
12551 # Is the header compilable?
12552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12554cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560$ac_includes_default
12561#include <$ac_header>
12562_ACEOF
12563rm -f conftest.$ac_objext
12564if { (ac_try="$ac_compile"
12565case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_compile") 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_header_compiler=yes
12598else
12599 echo "$as_me: failed program was:" >&5
12600sed 's/^/| /' conftest.$ac_ext >&5
12601
12602 ac_header_compiler=no
12603fi
12604
12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12607echo "${ECHO_T}$ac_header_compiler" >&6; }
12608
12609# Is the header present?
12610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12612cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
12618#include <$ac_header>
12619_ACEOF
12620if { (ac_try="$ac_cpp conftest.$ac_ext"
12621case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } >/dev/null; then
12633 if test -s conftest.err; then
12634 ac_cpp_err=$ac_c_preproc_warn_flag
12635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12636 else
12637 ac_cpp_err=
12638 fi
12639else
12640 ac_cpp_err=yes
12641fi
12642if test -z "$ac_cpp_err"; then
12643 ac_header_preproc=yes
12644else
12645 echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 ac_header_preproc=no
12649fi
12650
12651rm -f conftest.err conftest.$ac_ext
12652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653echo "${ECHO_T}$ac_header_preproc" >&6; }
12654
12655# So? What about this header?
12656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12657 yes:no: )
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12662 ac_header_preproc=yes
12663 ;;
12664 no:yes:* )
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12677 ( cat <<\_ASBOX
12678## ----------------------------------- ##
12679## Report this to llvmbugs@cs.uiuc.edu ##
12680## ----------------------------------- ##
12681_ASBOX
12682 ) | sed "s/^/$as_me: WARNING: /" >&2
12683 ;;
12684esac
12685{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689else
12690 eval "$as_ac_Header=\$ac_header_preproc"
12691fi
12692ac_res=`eval echo '${'$as_ac_Header'}'`
12693 { echo "$as_me:$LINENO: result: $ac_res" >&5
12694echo "${ECHO_T}$ac_res" >&6; }
12695
12696fi
12697if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700_ACEOF
12701 break
12702fi
12703
12704done
12705
12706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707
12708
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012710do
12711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12716else
12717 cat >conftest.$ac_ext <<_ACEOF
12718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h. */
12723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12725#define $ac_func innocuous_$ac_func
12726
12727/* System header to define __stub macros and hopefully few prototypes,
12728 which can conflict with char $ac_func (); below.
12729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730 <limits.h> exists even on freestanding compilers. */
12731
12732#ifdef __STDC__
12733# include <limits.h>
12734#else
12735# include <assert.h>
12736#endif
12737
12738#undef $ac_func
12739
12740/* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12743#ifdef __cplusplus
12744extern "C"
12745#endif
12746char $ac_func ();
12747/* The GNU C library defines this for functions which it implements
12748 to always fail with ENOSYS. Some functions are actually named
12749 something starting with __ and the normal name is an alias. */
12750#if defined __stub_$ac_func || defined __stub___$ac_func
12751choke me
12752#endif
12753
12754int
12755main ()
12756{
12757return $ac_func ();
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext conftest$ac_exeext
12763if { (ac_try="$ac_link"
12764case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767esac
12768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_link") 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12777 { (case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780esac
12781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_try") 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 eval "$as_ac_var=yes"
12797else
12798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 eval "$as_ac_var=no"
12802fi
12803
12804rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806fi
12807ac_res=`eval echo '${'$as_ac_var'}'`
12808 { echo "$as_me:$LINENO: result: $ac_res" >&5
12809echo "${ECHO_T}$ac_res" >&6; }
12810if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012811 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012813_ACEOF
12814 break
12815fi
12816done
12817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818
12819
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012820for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821do
12822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827else
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836#define $ac_func innocuous_$ac_func
12837
12838/* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char $ac_func (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12842
12843#ifdef __STDC__
12844# include <limits.h>
12845#else
12846# include <assert.h>
12847#endif
12848
12849#undef $ac_func
12850
12851/* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12854#ifdef __cplusplus
12855extern "C"
12856#endif
12857char $ac_func ();
12858/* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861#if defined __stub_$ac_func || defined __stub___$ac_func
12862choke me
12863#endif
12864
12865int
12866main ()
12867{
12868return $ac_func ();
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
12874if { (ac_try="$ac_link"
12875case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_link") 2>conftest.er1
12881 ac_status=$?
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12888 { (case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12891esac
12892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_try") 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901esac
12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 eval "$as_ac_var=yes"
12908else
12909 echo "$as_me: failed program was:" >&5
12910sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 eval "$as_ac_var=no"
12913fi
12914
12915rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917fi
12918ac_res=`eval echo '${'$as_ac_var'}'`
12919 { echo "$as_me:$LINENO: result: $ac_res" >&5
12920echo "${ECHO_T}$ac_res" >&6; }
12921if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012922 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012924_ACEOF
12925 break
12926fi
12927done
12928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929
12930
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932do
12933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12934{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12947#define $ac_func innocuous_$ac_func
12948
12949/* System header to define __stub macros and hopefully few prototypes,
12950 which can conflict with char $ac_func (); below.
12951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12952 <limits.h> exists even on freestanding compilers. */
12953
12954#ifdef __STDC__
12955# include <limits.h>
12956#else
12957# include <assert.h>
12958#endif
12959
12960#undef $ac_func
12961
12962/* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12965#ifdef __cplusplus
12966extern "C"
12967#endif
12968char $ac_func ();
12969/* The GNU C library defines this for functions which it implements
12970 to always fail with ENOSYS. Some functions are actually named
12971 something starting with __ and the normal name is an alias. */
12972#if defined __stub_$ac_func || defined __stub___$ac_func
12973choke me
12974#endif
12975
12976int
12977main ()
12978{
12979return $ac_func ();
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext conftest$ac_exeext
12985if { (ac_try="$ac_link"
12986case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_link") 2>conftest.er1
12992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest$ac_exeext'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 eval "$as_ac_var=yes"
13019else
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
13023 eval "$as_ac_var=no"
13024fi
13025
13026rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028fi
13029ac_res=`eval echo '${'$as_ac_var'}'`
13030 { echo "$as_me:$LINENO: result: $ac_res" >&5
13031echo "${ECHO_T}$ac_res" >&6; }
13032if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013033 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013035_ACEOF
13036 break
13037fi
13038done
13039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013040
13041
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013042for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013043do
13044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13047if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049else
13050 cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13058#define $ac_func innocuous_$ac_func
13059
13060/* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char $ac_func (); below.
13062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 <limits.h> exists even on freestanding compilers. */
13064
13065#ifdef __STDC__
13066# include <limits.h>
13067#else
13068# include <assert.h>
13069#endif
13070
13071#undef $ac_func
13072
13073/* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076#ifdef __cplusplus
13077extern "C"
13078#endif
13079char $ac_func ();
13080/* The GNU C library defines this for functions which it implements
13081 to always fail with ENOSYS. Some functions are actually named
13082 something starting with __ and the normal name is an alias. */
13083#if defined __stub_$ac_func || defined __stub___$ac_func
13084choke me
13085#endif
13086
13087int
13088main ()
13089{
13090return $ac_func ();
13091 ;
13092 return 0;
13093}
13094_ACEOF
13095rm -f conftest.$ac_objext conftest$ac_exeext
13096if { (ac_try="$ac_link"
13097case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_link") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 eval "$as_ac_var=yes"
13130else
13131 echo "$as_me: failed program was:" >&5
13132sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 eval "$as_ac_var=no"
13135fi
13136
13137rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139fi
13140ac_res=`eval echo '${'$as_ac_var'}'`
13141 { echo "$as_me:$LINENO: result: $ac_res" >&5
13142echo "${ECHO_T}$ac_res" >&6; }
13143if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013144 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013146_ACEOF
13147
13148fi
13149done
13150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013151
13152
13153
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013154for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013155do
13156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13157{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13159if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162 cat >conftest.$ac_ext <<_ACEOF
13163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13170#define $ac_func innocuous_$ac_func
13171
13172/* System header to define __stub macros and hopefully few prototypes,
13173 which can conflict with char $ac_func (); below.
13174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175 <limits.h> exists even on freestanding compilers. */
13176
13177#ifdef __STDC__
13178# include <limits.h>
13179#else
13180# include <assert.h>
13181#endif
13182
13183#undef $ac_func
13184
13185/* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
13187 builtin and then its argument prototype would still apply. */
13188#ifdef __cplusplus
13189extern "C"
13190#endif
13191char $ac_func ();
13192/* The GNU C library defines this for functions which it implements
13193 to always fail with ENOSYS. Some functions are actually named
13194 something starting with __ and the normal name is an alias. */
13195#if defined __stub_$ac_func || defined __stub___$ac_func
13196choke me
13197#endif
13198
13199int
13200main ()
13201{
13202return $ac_func ();
13203 ;
13204 return 0;
13205}
13206_ACEOF
13207rm -f conftest.$ac_objext conftest$ac_exeext
13208if { (ac_try="$ac_link"
13209case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225esac
13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 eval "$as_ac_var=yes"
13242else
13243 echo "$as_me: failed program was:" >&5
13244sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 eval "$as_ac_var=no"
13247fi
13248
13249rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13251fi
13252ac_res=`eval echo '${'$as_ac_var'}'`
13253 { echo "$as_me:$LINENO: result: $ac_res" >&5
13254echo "${ECHO_T}$ac_res" >&6; }
13255if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013256 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013258_ACEOF
13259
13260fi
13261done
13262
13263
Douglas Gregor01746742009-05-11 18:05:52 +000013264
Reid Spencer7931a782004-12-27 06:15:02 +000013265if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013266 LLVMGCC="llvm-gcc${EXEEXT}"
13267 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013268 LLVMGCCCOMMAND="$LLVMGCC"
13269 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013270 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13271
13272 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13273
Reid Spencerc84492c2005-06-02 22:34:49 +000013274 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13275set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13278if test "${ac_cv_path_LLVMGCC+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013280else
13281 case $LLVMGCC in
13282 [\\/]* | ?:[\\/]*)
13283 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13284 ;;
13285 *)
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $PATH
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 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 +000013293 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013295 break 2
13296 fi
13297done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013298done
Reid Spencera773bd52006-08-04 18:18:08 +000013299IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013300
Reid Spencer59473af2004-12-25 07:31:29 +000013301 ;;
13302esac
13303fi
13304LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013305if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013306 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13307echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309 { echo "$as_me:$LINENO: result: no" >&5
13310echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013311fi
13312
Reid Spencera773bd52006-08-04 18:18:08 +000013313
Reid Spencerc84492c2005-06-02 22:34:49 +000013314 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13315set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13318if test "${ac_cv_path_LLVMGXX+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013320else
13321 case $LLVMGXX in
13322 [\\/]* | ?:[\\/]*)
13323 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13324 ;;
13325 *)
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 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 +000013333 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013335 break 2
13336 fi
13337done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338done
Reid Spencera773bd52006-08-04 18:18:08 +000013339IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013340
Reid Spencer59473af2004-12-25 07:31:29 +000013341 ;;
13342esac
13343fi
13344LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013345if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13347echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349 { echo "$as_me:$LINENO: result: no" >&5
13350echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013351fi
13352
Reid Spencera773bd52006-08-04 18:18:08 +000013353
Reid Spencer59473af2004-12-25 07:31:29 +000013354else
Devang Patel5d28b882007-12-04 22:54:47 +000013355 if test -z "$LLVMGCC"; then
13356 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013357 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013358 fi
13359 if test -z "$LLVMGXX"; then
13360 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013361 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013362 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013363
Reid Spencer59473af2004-12-25 07:31:29 +000013364 LLVMGCC=$LLVMGCC
13365
13366 LLVMGXX=$LLVMGXX
13367
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013368 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13369
13370 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13371
Reid Spencer59473af2004-12-25 07:31:29 +000013372fi
13373
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013374
Daniel Dunbar98515672010-02-23 10:00:49 +000013375# Check whether --with-llvmcc was given.
13376if test "${with_llvmcc+set}" = set; then
13377 withval=$with_llvmcc;
13378else
13379 with_llvmcc=check
13380fi
13381
13382{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13383echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13384if test "$with_llvmcc" != "check"; then
13385 if (test "$with_llvmcc" != "llvm-gcc" &&
13386 test "$with_llvmcc" != "clang" &&
13387 test "$with_llvmcc" != "none"); then
13388 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13389echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13390 { (exit 1); exit 1; }; }
13391 fi
13392 WITH_LLVMCC="$with_llvmcc"
13393elif test -n "$LLVMGCC"; then
13394 WITH_LLVMCC=llvm-gcc
13395elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13396 WITH_LLVMCC=clang
13397else
13398 WITH_LLVMCC=none
13399fi
13400{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13401echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13402LLVMCC_OPTION=$WITH_LLVMCC
13403
13404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13406echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013407
Reid Spencer86901802004-12-08 23:07:27 +000013408ICC=no
13409IXX=no
13410case $CC in
13411 icc*|icpc*)
13412 ICC=yes
13413 IXX=yes
13414 ;;
13415 *)
13416 ;;
13417esac
13418
Duraid Madina937c60a2006-02-15 07:57:42 +000013419if test "$GCC" != "yes" && test "$ICC" != "yes"
13420then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13422echo "$as_me: error: gcc|icc required but not found" >&2;}
13423 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013424fi
13425
13426if test "$GXX" != "yes" && test "$IXX" != "yes"
13427then
Eric Christopher73e36da2010-12-08 02:02:14 +000013428 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13429echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013430 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013431fi
13432
Reid Spencer86901802004-12-08 23:07:27 +000013433if test "$GCC" = "yes"
13434then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013436#if !defined(__GNUC__) || __GNUC__ < 3
13437#error Unsupported GCC version
13438#endif
13439
13440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441rm -f conftest.$ac_objext
13442if { (ac_try="$ac_compile"
13443case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13446esac
13447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_compile") 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459esac
13460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest.$ac_objext'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13481echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13482 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013484
Chris Lattner399c7c72008-02-05 19:43:53 +000013485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013486fi
13487
13488if test -z "$llvm_cv_gnu_make_command"
13489then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13491echo "$as_me: error: GNU Make required but not found" >&2;}
13492 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013493fi
13494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495{ echo "$as_me:$LINENO: result: ok" >&5
13496echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13499echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013500NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13501
13502NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013504{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13505echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013506
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508
13509{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13510echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13511if test "${ac_cv_lib_m_sin+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013513else
13514 ac_check_lib_save_LIBS=$LIBS
13515LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516cat >conftest.$ac_ext <<_ACEOF
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013521/* end confdefs.h. */
13522
Reid Spencera773bd52006-08-04 18:18:08 +000013523/* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013526#ifdef __cplusplus
13527extern "C"
13528#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013529char sin ();
13530int
13531main ()
13532{
Reid Spencera773bd52006-08-04 18:18:08 +000013533return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013534 ;
13535 return 0;
13536}
13537_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538rm -f conftest.$ac_objext conftest$ac_exeext
13539if { (ac_try="$ac_link"
13540case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543esac
13544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_link") 2>conftest.er1
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13556esac
13557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013572 ac_cv_lib_m_sin=yes
13573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013579
Bill Wendlingebcceee2009-04-18 11:20:33 +000013580rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013581 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013582LIBS=$ac_check_lib_save_LIBS
13583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13585echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13586if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013587 cat >>confdefs.h <<_ACEOF
13588#define HAVE_LIBM 1
13589_ACEOF
13590
13591 LIBS="-lm $LIBS"
13592
13593fi
13594
Jeff Cohen28783c32007-01-12 18:22:38 +000013595if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013596
13597{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13598echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13599if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013601else
13602 ac_check_lib_save_LIBS=$LIBS
13603LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013604cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013609/* end confdefs.h. */
13610
Reid Spencer48fdf912006-06-01 19:03:21 +000013611
Reid Spencer484fc8e2006-06-01 16:55:59 +000013612int
13613main ()
13614{
Reid Spencera773bd52006-08-04 18:18:08 +000013615return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013616 ;
13617 return 0;
13618}
13619_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620rm -f conftest.$ac_objext conftest$ac_exeext
13621if { (ac_try="$ac_link"
13622case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638esac
13639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013654 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661
Bill Wendlingebcceee2009-04-18 11:20:33 +000013662rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013664LIBS=$ac_check_lib_save_LIBS
13665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13667echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13668if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013669 cat >>confdefs.h <<_ACEOF
13670#define HAVE_LIBIMAGEHLP 1
13671_ACEOF
13672
13673 LIBS="-limagehlp $LIBS"
13674
13675fi
13676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013677
13678{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13679echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13680if test "${ac_cv_lib_psapi_main+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013682else
13683 ac_check_lib_save_LIBS=$LIBS
13684LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013685cat >conftest.$ac_ext <<_ACEOF
13686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013690/* end confdefs.h. */
13691
Reid Spencer48fdf912006-06-01 19:03:21 +000013692
Reid Spencer484fc8e2006-06-01 16:55:59 +000013693int
13694main ()
13695{
Reid Spencera773bd52006-08-04 18:18:08 +000013696return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013697 ;
13698 return 0;
13699}
13700_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013701rm -f conftest.$ac_objext conftest$ac_exeext
13702if { (ac_try="$ac_link"
13703case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706esac
13707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_link") 2>conftest.er1
13709 ac_status=$?
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719esac
13720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try='test -s conftest$ac_exeext'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013735 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013737 echo "$as_me: failed program was:" >&5
13738sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013742
Bill Wendlingebcceee2009-04-18 11:20:33 +000013743rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013744 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013745LIBS=$ac_check_lib_save_LIBS
13746fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13748echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13749if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013750 cat >>confdefs.h <<_ACEOF
13751#define HAVE_LIBPSAPI 1
13752_ACEOF
13753
13754 LIBS="-lpsapi $LIBS"
13755
13756fi
13757
13758fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013760{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13761echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13762if test "${ac_cv_search_dlopen+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013764else
13765 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013766cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013772
Reid Spencera773bd52006-08-04 18:18:08 +000013773/* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013776#ifdef __cplusplus
13777extern "C"
13778#endif
John Criswell7a73b802003-06-30 21:59:07 +000013779char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013780int
13781main ()
13782{
Reid Spencera773bd52006-08-04 18:18:08 +000013783return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013784 ;
13785 return 0;
13786}
13787_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013788for ac_lib in '' dl; do
13789 if test -z "$ac_lib"; then
13790 ac_res="none required"
13791 else
13792 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013794 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795 rm -f conftest.$ac_objext conftest$ac_exeext
13796if { (ac_try="$ac_link"
13797case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_link") 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813esac
13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest$ac_exeext'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013829 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830else
13831 echo "$as_me: failed program was:" >&5
13832sed 's/^/| /' conftest.$ac_ext >&5
13833
13834
John Criswell7a73b802003-06-30 21:59:07 +000013835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013836
Bill Wendlingebcceee2009-04-18 11:20:33 +000013837rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013838 conftest$ac_exeext
13839 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013840 break
John Criswell7a73b802003-06-30 21:59:07 +000013841fi
Reid Spencera773bd52006-08-04 18:18:08 +000013842done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843if test "${ac_cv_search_dlopen+set}" = set; then
13844 :
Reid Spencera773bd52006-08-04 18:18:08 +000013845else
13846 ac_cv_search_dlopen=no
13847fi
13848rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013849LIBS=$ac_func_search_save_LIBS
13850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013851{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13852echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013853ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013854if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013857cat >>confdefs.h <<\_ACEOF
13858#define HAVE_DLOPEN 1
13859_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013860
13861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013862 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13863echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013864fi
13865
13866
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013867if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013868 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13869echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13870if test "${ac_cv_search_ffi_call+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013872else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013873 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013874cat >conftest.$ac_ext <<_ACEOF
13875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013879/* end confdefs.h. */
13880
13881/* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13884#ifdef __cplusplus
13885extern "C"
13886#endif
13887char ffi_call ();
13888int
13889main ()
13890{
13891return ffi_call ();
13892 ;
13893 return 0;
13894}
13895_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013896for ac_lib in '' ffi; do
13897 if test -z "$ac_lib"; then
13898 ac_res="none required"
13899 else
13900 ac_res=-l$ac_lib
13901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13902 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903 rm -f conftest.$ac_objext conftest$ac_exeext
13904if { (ac_try="$ac_link"
13905case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>conftest.er1
13911 ac_status=$?
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921esac
13922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013937 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938else
13939 echo "$as_me: failed program was:" >&5
13940sed 's/^/| /' conftest.$ac_ext >&5
13941
13942
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944
Bill Wendlingebcceee2009-04-18 11:20:33 +000013945rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013946 conftest$ac_exeext
13947 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013948 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013949fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013950done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951if test "${ac_cv_search_ffi_call+set}" = set; then
13952 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013953else
13954 ac_cv_search_ffi_call=no
13955fi
13956rm conftest.$ac_ext
13957LIBS=$ac_func_search_save_LIBS
13958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13960echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013961ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013962if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013965cat >>confdefs.h <<\_ACEOF
13966#define HAVE_FFI_CALL 1
13967_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013968
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013969else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013970 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13971echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13972 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013973fi
13974
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013975fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13978echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13979if test "${ac_cv_search_mallinfo+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013981else
13982 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013983cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013988/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013989
Reid Spencera773bd52006-08-04 18:18:08 +000013990/* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013993#ifdef __cplusplus
13994extern "C"
13995#endif
John Criswell7a73b802003-06-30 21:59:07 +000013996char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013997int
13998main ()
13999{
Reid Spencera773bd52006-08-04 18:18:08 +000014000return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014001 ;
14002 return 0;
14003}
14004_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014005for ac_lib in '' malloc; do
14006 if test -z "$ac_lib"; then
14007 ac_res="none required"
14008 else
14009 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000014010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014011 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012 rm -f conftest.$ac_objext conftest$ac_exeext
14013if { (ac_try="$ac_link"
14014case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017esac
14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_link") 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14027 { (case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030esac
14031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_try") 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014046 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047else
14048 echo "$as_me: failed program was:" >&5
14049sed 's/^/| /' conftest.$ac_ext >&5
14050
14051
John Criswell7a73b802003-06-30 21:59:07 +000014052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014053
Bill Wendlingebcceee2009-04-18 11:20:33 +000014054rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014055 conftest$ac_exeext
14056 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014057 break
John Criswell7a73b802003-06-30 21:59:07 +000014058fi
Reid Spencera773bd52006-08-04 18:18:08 +000014059done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060if test "${ac_cv_search_mallinfo+set}" = set; then
14061 :
Reid Spencera773bd52006-08-04 18:18:08 +000014062else
14063 ac_cv_search_mallinfo=no
14064fi
14065rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014066LIBS=$ac_func_search_save_LIBS
14067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14069echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014070ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074cat >>confdefs.h <<\_ACEOF
14075#define HAVE_MALLINFO 1
14076_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014077
14078fi
14079
14080
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014081if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082
14083{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14084echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14085if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014087else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014088 ac_check_lib_save_LIBS=$LIBS
14089LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014095/* end confdefs.h. */
14096
Reid Spencera773bd52006-08-04 18:18:08 +000014097/* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014100#ifdef __cplusplus
14101extern "C"
14102#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014103char pthread_mutex_init ();
14104int
14105main ()
14106{
Reid Spencera773bd52006-08-04 18:18:08 +000014107return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014108 ;
14109 return 0;
14110}
14111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112rm -f conftest.$ac_objext conftest$ac_exeext
14113if { (ac_try="$ac_link"
14114case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_link") 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127 { (case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14130esac
14131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_try") 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest$ac_exeext'
14137 { (case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14140esac
14141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_try") 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014146 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014147else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148 echo "$as_me: failed program was:" >&5
14149sed 's/^/| /' conftest.$ac_ext >&5
14150
14151 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153
Bill Wendlingebcceee2009-04-18 11:20:33 +000014154rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014156LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14159echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14160if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014161 cat >>confdefs.h <<_ACEOF
14162#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014163_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014164
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014165 LIBS="-lpthread $LIBS"
14166
Reid Spencer22177fe2005-07-12 15:24:20 +000014167fi
14168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14170echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14171if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014173else
14174 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014180/* end confdefs.h. */
14181
Reid Spencera773bd52006-08-04 18:18:08 +000014182/* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014185#ifdef __cplusplus
14186extern "C"
14187#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014188char pthread_mutex_lock ();
14189int
14190main ()
14191{
Reid Spencera773bd52006-08-04 18:18:08 +000014192return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014193 ;
14194 return 0;
14195}
14196_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014197for ac_lib in '' pthread; do
14198 if test -z "$ac_lib"; then
14199 ac_res="none required"
14200 else
14201 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014203 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204 rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (ac_try="$ac_link"
14206case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14232esac
14233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014238 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014239else
14240 echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
14243
Brian Gaeke5f268f72003-12-05 19:29:01 +000014244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245
Bill Wendlingebcceee2009-04-18 11:20:33 +000014246rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247 conftest$ac_exeext
14248 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014249 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014250fi
Reid Spencera773bd52006-08-04 18:18:08 +000014251done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14253 :
Reid Spencera773bd52006-08-04 18:18:08 +000014254else
14255 ac_cv_search_pthread_mutex_lock=no
14256fi
14257rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014258LIBS=$ac_func_search_save_LIBS
14259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014260{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14261echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014262ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014263if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266cat >>confdefs.h <<\_ACEOF
14267#define HAVE_PTHREAD_MUTEX_LOCK 1
14268_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014269
14270fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14273echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14274if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014276else
14277 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014278cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014283/* end confdefs.h. */
14284
14285/* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14288#ifdef __cplusplus
14289extern "C"
14290#endif
14291char pthread_rwlock_init ();
14292int
14293main ()
14294{
14295return pthread_rwlock_init ();
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300for ac_lib in '' pthread; do
14301 if test -z "$ac_lib"; then
14302 ac_res="none required"
14303 else
14304 ac_res=-l$ac_lib
14305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14306 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307 rm -f conftest.$ac_objext conftest$ac_exeext
14308if { (ac_try="$ac_link"
14309case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312esac
14313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325esac
14326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335esac
14336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014341 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014342else
14343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346
Owen Andersonde8aed22009-06-16 18:20:20 +000014347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348
Owen Andersonde8aed22009-06-16 18:20:20 +000014349rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014350 conftest$ac_exeext
14351 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014352 break
14353fi
14354done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14356 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014357else
14358 ac_cv_search_pthread_rwlock_init=no
14359fi
14360rm conftest.$ac_ext
14361LIBS=$ac_func_search_save_LIBS
14362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014363{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14364echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014365ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014366if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369cat >>confdefs.h <<\_ACEOF
14370#define HAVE_PTHREAD_RWLOCK_INIT 1
14371_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014372
14373fi
14374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014375 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14376echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14377if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014379else
14380 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381cat >conftest.$ac_ext <<_ACEOF
14382/* confdefs.h. */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014386/* end confdefs.h. */
14387
14388/* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14391#ifdef __cplusplus
14392extern "C"
14393#endif
14394char pthread_getspecific ();
14395int
14396main ()
14397{
14398return pthread_getspecific ();
14399 ;
14400 return 0;
14401}
14402_ACEOF
14403for ac_lib in '' pthread; do
14404 if test -z "$ac_lib"; then
14405 ac_res="none required"
14406 else
14407 ac_res=-l$ac_lib
14408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14409 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410 rm -f conftest.$ac_objext conftest$ac_exeext
14411if { (ac_try="$ac_link"
14412case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14415esac
14416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_link") 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428esac
14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest$ac_exeext'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014444 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014445else
14446 echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
14449
Owen Anderson27fcfe12009-06-25 23:10:26 +000014450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014451
Owen Anderson27fcfe12009-06-25 23:10:26 +000014452rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014453 conftest$ac_exeext
14454 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014455 break
14456fi
14457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14459 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014460else
14461 ac_cv_search_pthread_getspecific=no
14462fi
14463rm conftest.$ac_ext
14464LIBS=$ac_func_search_save_LIBS
14465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014466{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14467echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014468ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014469if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014472cat >>confdefs.h <<\_ACEOF
14473#define HAVE_PTHREAD_GETSPECIFIC 1
14474_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014475
14476fi
14477
Reid Spencer0a262ba2005-08-24 10:07:20 +000014478fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014479
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014480
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014481# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014483 withval=$with_udis86;
14484 USE_UDIS86=1
14485
14486 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014487 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014488 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14489 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014490
14491{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14492echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14493if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014495else
14496 ac_check_lib_save_LIBS=$LIBS
14497LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h. */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014503/* end confdefs.h. */
14504
14505/* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14508#ifdef __cplusplus
14509extern "C"
14510#endif
14511char ud_init ();
14512int
14513main ()
14514{
14515return ud_init ();
14516 ;
14517 return 0;
14518}
14519_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520rm -f conftest.$ac_objext conftest$ac_exeext
14521if { (ac_try="$ac_link"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014554 ac_cv_lib_udis86_ud_init=yes
14555else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561
Bill Wendlingebcceee2009-04-18 11:20:33 +000014562rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014564LIBS=$ac_check_lib_save_LIBS
14565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14567echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14568if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014569 cat >>confdefs.h <<_ACEOF
14570#define HAVE_LIBUDIS86 1
14571_ACEOF
14572
14573 LIBS="-ludis86 $LIBS"
14574
14575else
14576
14577 echo "Error! You need to have libudis86 around."
14578 exit -1
14579
14580fi
14581
14582
14583else
14584 USE_UDIS86=0
14585
14586fi
14587
14588
14589cat >>confdefs.h <<_ACEOF
14590#define USE_UDIS86 $USE_UDIS86
14591_ACEOF
14592
14593
14594
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014595# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014597 withval=$with_oprofile;
14598 USE_OPROFILE=1
14599
14600 case "$withval" in
14601 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014602 no) llvm_cv_oppath=
14603 USE_OPROFILE=0
14604 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014605 *) llvm_cv_oppath="${withval}/lib/oprofile"
14606 CPPFLAGS="-I${withval}/include";;
14607 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014608 if test -n "$llvm_cv_oppath" ; then
14609 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014610 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14611echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14612if test "${ac_cv_search_bfd_init+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014614else
14615 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014616cat >conftest.$ac_ext <<_ACEOF
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014621/* end confdefs.h. */
14622
14623/* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14626#ifdef __cplusplus
14627extern "C"
14628#endif
14629char bfd_init ();
14630int
14631main ()
14632{
14633return bfd_init ();
14634 ;
14635 return 0;
14636}
14637_ACEOF
14638for ac_lib in '' bfd; do
14639 if test -z "$ac_lib"; then
14640 ac_res="none required"
14641 else
14642 ac_res=-l$ac_lib
14643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014645 rm -f conftest.$ac_objext conftest$ac_exeext
14646if { (ac_try="$ac_link"
14647case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650esac
14651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663esac
14664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest$ac_exeext'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014679 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014680else
14681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014686
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014687rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014688 conftest$ac_exeext
14689 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014690 break
14691fi
14692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014693if test "${ac_cv_search_bfd_init+set}" = set; then
14694 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014695else
14696 ac_cv_search_bfd_init=no
14697fi
14698rm conftest.$ac_ext
14699LIBS=$ac_func_search_save_LIBS
14700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014701{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14702echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014703ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14706
14707fi
14708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14710echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14711if test "${ac_cv_search_op_open_agent+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014713else
14714 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014715cat >conftest.$ac_ext <<_ACEOF
14716/* confdefs.h. */
14717_ACEOF
14718cat confdefs.h >>conftest.$ac_ext
14719cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014720/* end confdefs.h. */
14721
14722/* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14725#ifdef __cplusplus
14726extern "C"
14727#endif
14728char op_open_agent ();
14729int
14730main ()
14731{
14732return op_open_agent ();
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737for ac_lib in '' opagent; do
14738 if test -z "$ac_lib"; then
14739 ac_res="none required"
14740 else
14741 ac_res=-l$ac_lib
14742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14743 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014744 rm -f conftest.$ac_objext conftest$ac_exeext
14745if { (ac_try="$ac_link"
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_link") 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); } &&
14758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759 { (case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762esac
14763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_try") 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest$ac_exeext'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014778 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014785
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014786rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014787 conftest$ac_exeext
14788 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014789 break
14790fi
14791done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014792if test "${ac_cv_search_op_open_agent+set}" = set; then
14793 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014794else
14795 ac_cv_search_op_open_agent=no
14796fi
14797rm conftest.$ac_ext
14798LIBS=$ac_func_search_save_LIBS
14799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014800{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14801echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014802ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014803if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14805
14806else
14807
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014808 echo "Error! You need to have libopagent around."
14809 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014810
14811fi
14812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014813 if test "${ac_cv_header_opagent_h+set}" = set; then
14814 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14815echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14816if test "${ac_cv_header_opagent_h+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818fi
14819{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14820echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14821else
14822 # Is the header compilable?
14823{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14824echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14825cat >conftest.$ac_ext <<_ACEOF
14826/* confdefs.h. */
14827_ACEOF
14828cat confdefs.h >>conftest.$ac_ext
14829cat >>conftest.$ac_ext <<_ACEOF
14830/* end confdefs.h. */
14831$ac_includes_default
14832#include <opagent.h>
14833_ACEOF
14834rm -f conftest.$ac_objext
14835if { (ac_try="$ac_compile"
14836case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839esac
14840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_compile") 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 { (case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14852esac
14853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854 (eval "$ac_try") 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest.$ac_objext'
14859 { (case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862esac
14863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_try") 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_header_compiler=yes
14869else
14870 echo "$as_me: failed program was:" >&5
14871sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014873 ac_header_compiler=no
14874fi
14875
14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14878echo "${ECHO_T}$ac_header_compiler" >&6; }
14879
14880# Is the header present?
14881{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14882echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14883cat >conftest.$ac_ext <<_ACEOF
14884/* confdefs.h. */
14885_ACEOF
14886cat confdefs.h >>conftest.$ac_ext
14887cat >>conftest.$ac_ext <<_ACEOF
14888/* end confdefs.h. */
14889#include <opagent.h>
14890_ACEOF
14891if { (ac_try="$ac_cpp conftest.$ac_ext"
14892case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895esac
14896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } >/dev/null; then
14904 if test -s conftest.err; then
14905 ac_cpp_err=$ac_c_preproc_warn_flag
14906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14907 else
14908 ac_cpp_err=
14909 fi
14910else
14911 ac_cpp_err=yes
14912fi
14913if test -z "$ac_cpp_err"; then
14914 ac_header_preproc=yes
14915else
14916 echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
14919 ac_header_preproc=no
14920fi
14921
14922rm -f conftest.err conftest.$ac_ext
14923{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14924echo "${ECHO_T}$ac_header_preproc" >&6; }
14925
14926# So? What about this header?
14927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14928 yes:no: )
14929 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14930echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14932echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14933 ac_header_preproc=yes
14934 ;;
14935 no:yes:* )
14936 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14937echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14939echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14941echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14942 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14943echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14945echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14947echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14948 ( cat <<\_ASBOX
14949## ----------------------------------- ##
14950## Report this to llvmbugs@cs.uiuc.edu ##
14951## ----------------------------------- ##
14952_ASBOX
14953 ) | sed "s/^/$as_me: WARNING: /" >&2
14954 ;;
14955esac
14956{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14957echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14958if test "${ac_cv_header_opagent_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960else
14961 ac_cv_header_opagent_h=$ac_header_preproc
14962fi
14963{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14964echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14965
14966fi
14967if test $ac_cv_header_opagent_h = yes; then
14968 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014969else
14970
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014971 echo "Error! You need to have opagent.h around."
14972 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014973
14974fi
14975
14976
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014977 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014978
14979else
14980
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014981 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014982
14983
14984fi
14985
14986
14987cat >>confdefs.h <<_ACEOF
14988#define USE_OPROFILE $USE_OPROFILE
14989_ACEOF
14990
14991
14992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014993
14994
14995
14996
14997
Reid Spencer59473af2004-12-25 07:31:29 +000014998ac_header_dirent=no
14999for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15001{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15002echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006 cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015011/* end confdefs.h. */
15012#include <sys/types.h>
15013#include <$ac_hdr>
15014
15015int
15016main ()
15017{
15018if ((DIR *) 0)
15019return 0;
15020 ;
15021 return 0;
15022}
15023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024rm -f conftest.$ac_objext
15025if { (ac_try="$ac_compile"
15026case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029esac
15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15039 { (case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_try") 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015058 eval "$as_ac_Header=yes"
15059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015060 echo "$as_me: failed program was:" >&5
15061sed 's/^/| /' conftest.$ac_ext >&5
15062
15063 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015065
Reid Spencera773bd52006-08-04 18:18:08 +000015066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015068ac_res=`eval echo '${'$as_ac_Header'}'`
15069 { echo "$as_me:$LINENO: result: $ac_res" >&5
15070echo "${ECHO_T}$ac_res" >&6; }
15071if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015072 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015073#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015074_ACEOF
15075
15076ac_header_dirent=$ac_hdr; break
15077fi
15078
15079done
15080# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15081if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15083echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15084if test "${ac_cv_search_opendir+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015086else
15087 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015088cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015093/* end confdefs.h. */
15094
Reid Spencera773bd52006-08-04 18:18:08 +000015095/* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015098#ifdef __cplusplus
15099extern "C"
15100#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015101char opendir ();
15102int
15103main ()
15104{
Reid Spencera773bd52006-08-04 18:18:08 +000015105return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015106 ;
15107 return 0;
15108}
15109_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015110for ac_lib in '' dir; do
15111 if test -z "$ac_lib"; then
15112 ac_res="none required"
15113 else
15114 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015116 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117 rm -f conftest.$ac_objext conftest$ac_exeext
15118if { (ac_try="$ac_link"
15119case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122esac
15123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15132 { (case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_try") 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145esac
15146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015151 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015152else
15153 echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156
Reid Spencer59473af2004-12-25 07:31:29 +000015157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015158
Bill Wendlingebcceee2009-04-18 11:20:33 +000015159rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015160 conftest$ac_exeext
15161 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015162 break
Reid Spencer59473af2004-12-25 07:31:29 +000015163fi
Reid Spencera773bd52006-08-04 18:18:08 +000015164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015165if test "${ac_cv_search_opendir+set}" = set; then
15166 :
Reid Spencera773bd52006-08-04 18:18:08 +000015167else
15168 ac_cv_search_opendir=no
15169fi
15170rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015171LIBS=$ac_func_search_save_LIBS
15172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015173{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15174echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015175ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015178
15179fi
15180
15181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15183echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15184if test "${ac_cv_search_opendir+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015186else
15187 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015193/* end confdefs.h. */
15194
Reid Spencera773bd52006-08-04 18:18:08 +000015195/* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015198#ifdef __cplusplus
15199extern "C"
15200#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015201char opendir ();
15202int
15203main ()
15204{
Reid Spencera773bd52006-08-04 18:18:08 +000015205return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015206 ;
15207 return 0;
15208}
15209_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015210for ac_lib in '' x; do
15211 if test -z "$ac_lib"; then
15212 ac_res="none required"
15213 else
15214 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015216 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217 rm -f conftest.$ac_objext conftest$ac_exeext
15218if { (ac_try="$ac_link"
15219case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015251 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015252else
15253 echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
15256
Reid Spencer59473af2004-12-25 07:31:29 +000015257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015258
Bill Wendlingebcceee2009-04-18 11:20:33 +000015259rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015260 conftest$ac_exeext
15261 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015262 break
Reid Spencer59473af2004-12-25 07:31:29 +000015263fi
Reid Spencera773bd52006-08-04 18:18:08 +000015264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015265if test "${ac_cv_search_opendir+set}" = set; then
15266 :
Reid Spencera773bd52006-08-04 18:18:08 +000015267else
15268 ac_cv_search_opendir=no
15269fi
15270rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015271LIBS=$ac_func_search_save_LIBS
15272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015273{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15274echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015275ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015278
15279fi
15280
15281fi
15282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015283{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15284echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15285if test "${ac_cv_header_mmap_anon+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015287else
15288 ac_ext=c
15289ac_cpp='$CPP $CPPFLAGS'
15290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015294 cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015299/* end confdefs.h. */
15300#include <sys/mman.h>
15301#include <unistd.h>
15302#include <fcntl.h>
15303int
15304main ()
15305{
15306mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15307 ;
15308 return 0;
15309}
15310_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015311rm -f conftest.$ac_objext
15312if { (ac_try="$ac_compile"
15313case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316esac
15317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_compile") 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15326 { (case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329esac
15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_try") 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest.$ac_objext'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339esac
15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015345 ac_cv_header_mmap_anon=yes
15346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
15350 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352
Reid Spencera773bd52006-08-04 18:18:08 +000015353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015354 ac_ext=c
15355ac_cpp='$CPP $CPPFLAGS'
15356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15358ac_compiler_gnu=$ac_cv_c_compiler_gnu
15359
15360
15361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015362{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15363echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015364if test "$ac_cv_header_mmap_anon" = yes; then
15365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015366cat >>confdefs.h <<\_ACEOF
15367#define HAVE_MMAP_ANONYMOUS 1
15368_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015369
15370fi
15371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015372{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15373echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15374if test "${ac_cv_header_stat_broken+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015377 cat >conftest.$ac_ext <<_ACEOF
15378/* confdefs.h. */
15379_ACEOF
15380cat confdefs.h >>conftest.$ac_ext
15381cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015382/* end confdefs.h. */
15383#include <sys/types.h>
15384#include <sys/stat.h>
15385
Reid Spencera773bd52006-08-04 18:18:08 +000015386#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387# if S_ISBLK (S_IFDIR)
15388You lose.
15389# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015390#endif
15391
Reid Spencera773bd52006-08-04 18:18:08 +000015392#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393# if S_ISBLK (S_IFCHR)
15394You lose.
15395# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015396#endif
15397
Reid Spencera773bd52006-08-04 18:18:08 +000015398#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399# if S_ISLNK (S_IFREG)
15400You lose.
15401# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015402#endif
15403
Reid Spencera773bd52006-08-04 18:18:08 +000015404#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015405# if S_ISSOCK (S_IFREG)
15406You lose.
15407# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015408#endif
15409
15410_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15412 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015413 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015414else
15415 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015417rm -f conftest*
15418
Reid Spencer59473af2004-12-25 07:31:29 +000015419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015420{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15421echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015422if test $ac_cv_header_stat_broken = yes; then
15423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015424cat >>confdefs.h <<\_ACEOF
15425#define STAT_MACROS_BROKEN 1
15426_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015427
15428fi
15429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015430{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15431echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15432if test "${ac_cv_header_stdc+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015435 cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015441#include <stdlib.h>
15442#include <stdarg.h>
15443#include <string.h>
15444#include <float.h>
15445
John Criswell0c38eaf2003-09-10 15:17:25 +000015446int
15447main ()
15448{
15449
15450 ;
15451 return 0;
15452}
John Criswell7a73b802003-06-30 21:59:07 +000015453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015454rm -f conftest.$ac_objext
15455if { (ac_try="$ac_compile"
15456case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459esac
15460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_compile") 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; } &&
15478 { ac_try='test -s conftest.$ac_objext'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15482esac
15483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015488 ac_cv_header_stdc=yes
15489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015490 echo "$as_me: failed program was:" >&5
15491sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015495
Reid Spencera773bd52006-08-04 18:18:08 +000015496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015497
15498if test $ac_cv_header_stdc = yes; then
15499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015500 cat >conftest.$ac_ext <<_ACEOF
15501/* confdefs.h. */
15502_ACEOF
15503cat confdefs.h >>conftest.$ac_ext
15504cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015506#include <string.h>
15507
15508_ACEOF
15509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015510 $EGREP "memchr" >/dev/null 2>&1; then
15511 :
John Criswell7a73b802003-06-30 21:59:07 +000015512else
15513 ac_cv_header_stdc=no
15514fi
15515rm -f conftest*
15516
15517fi
15518
15519if test $ac_cv_header_stdc = yes; then
15520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015521 cat >conftest.$ac_ext <<_ACEOF
15522/* confdefs.h. */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015527#include <stdlib.h>
15528
15529_ACEOF
15530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015531 $EGREP "free" >/dev/null 2>&1; then
15532 :
John Criswell7a73b802003-06-30 21:59:07 +000015533else
15534 ac_cv_header_stdc=no
15535fi
15536rm -f conftest*
15537
15538fi
15539
15540if test $ac_cv_header_stdc = yes; then
15541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015542 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015543 :
15544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015545 cat >conftest.$ac_ext <<_ACEOF
15546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015551#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015552#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015553#if ((' ' & 0x0FF) == 0x020)
15554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15556#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015557# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015558 (('a' <= (c) && (c) <= 'i') \
15559 || ('j' <= (c) && (c) <= 'r') \
15560 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15562#endif
15563
15564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15565int
15566main ()
15567{
15568 int i;
15569 for (i = 0; i < 256; i++)
15570 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015571 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015572 return 2;
15573 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015574}
15575_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015576rm -f conftest$ac_exeext
15577if { (ac_try="$ac_link"
15578case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581esac
15582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15587 { (case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590esac
15591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_try") 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 :
John Criswell7a73b802003-06-30 21:59:07 +000015597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015598 echo "$as_me: program exited with status $ac_status" >&5
15599echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602( exit $ac_status )
15603ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015605rm -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 +000015606fi
15607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015608
John Criswell7a73b802003-06-30 21:59:07 +000015609fi
15610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015611{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15612echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015613if test $ac_cv_header_stdc = yes; then
15614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015615cat >>confdefs.h <<\_ACEOF
15616#define STDC_HEADERS 1
15617_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015618
15619fi
15620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015621{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15622echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15623if test "${ac_cv_header_sys_wait_h+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015626 cat >conftest.$ac_ext <<_ACEOF
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015632#include <sys/types.h>
15633#include <sys/wait.h>
15634#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015635# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015636#endif
15637#ifndef WIFEXITED
15638# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15639#endif
15640
John Criswell7a73b802003-06-30 21:59:07 +000015641int
15642main ()
15643{
15644 int s;
15645 wait (&s);
15646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15647 ;
15648 return 0;
15649}
15650_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015651rm -f conftest.$ac_objext
15652if { (ac_try="$ac_compile"
15653case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679esac
15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015685 ac_cv_header_sys_wait_h=yes
15686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015692
Reid Spencera773bd52006-08-04 18:18:08 +000015693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015695{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15696echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015697if test $ac_cv_header_sys_wait_h = yes; then
15698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015699cat >>confdefs.h <<\_ACEOF
15700#define HAVE_SYS_WAIT_H 1
15701_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015702
15703fi
15704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015705{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15706echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15707if test "${ac_cv_header_time+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015710 cat >conftest.$ac_ext <<_ACEOF
15711/* confdefs.h. */
15712_ACEOF
15713cat confdefs.h >>conftest.$ac_ext
15714cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015715/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015716#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015717#include <sys/time.h>
15718#include <time.h>
15719
15720int
15721main ()
15722{
15723if ((struct tm *) 0)
15724return 0;
15725 ;
15726 return 0;
15727}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015728_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015729rm -f conftest.$ac_objext
15730if { (ac_try="$ac_compile"
15731case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15734esac
15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_compile") 2>conftest.er1
15737 ac_status=$?
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747esac
15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015763 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015770
Reid Spencera773bd52006-08-04 18:18:08 +000015771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015773{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15774echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015775if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015777cat >>confdefs.h <<\_ACEOF
15778#define TIME_WITH_SYS_TIME 1
15779_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015780
15781fi
15782
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015784
15785
15786
15787
15788
15789
Reid Spencer59473af2004-12-25 07:31:29 +000015790for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015791do
15792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15798fi
15799ac_res=`eval echo '${'$as_ac_Header'}'`
15800 { echo "$as_me:$LINENO: result: $ac_res" >&5
15801echo "${ECHO_T}$ac_res" >&6; }
15802else
15803 # Is the header compilable?
15804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15806cat >conftest.$ac_ext <<_ACEOF
15807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
15812$ac_includes_default
15813#include <$ac_header>
15814_ACEOF
15815rm -f conftest.$ac_objext
15816if { (ac_try="$ac_compile"
15817case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820esac
15821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_compile") 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830 { (case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15833esac
15834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_try") 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_header_compiler=yes
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_header_compiler=no
15855fi
15856
15857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15859echo "${ECHO_T}$ac_header_compiler" >&6; }
15860
15861# Is the header present?
15862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15864cat >conftest.$ac_ext <<_ACEOF
15865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
15870#include <$ac_header>
15871_ACEOF
15872if { (ac_try="$ac_cpp conftest.$ac_ext"
15873case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876esac
15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } >/dev/null; then
15885 if test -s conftest.err; then
15886 ac_cpp_err=$ac_c_preproc_warn_flag
15887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15888 else
15889 ac_cpp_err=
15890 fi
15891else
15892 ac_cpp_err=yes
15893fi
15894if test -z "$ac_cpp_err"; then
15895 ac_header_preproc=yes
15896else
15897 echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 ac_header_preproc=no
15901fi
15902
15903rm -f conftest.err conftest.$ac_ext
15904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15905echo "${ECHO_T}$ac_header_preproc" >&6; }
15906
15907# So? What about this header?
15908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15909 yes:no: )
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15914 ac_header_preproc=yes
15915 ;;
15916 no:yes:* )
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15929 ( cat <<\_ASBOX
15930## ----------------------------------- ##
15931## Report this to llvmbugs@cs.uiuc.edu ##
15932## ----------------------------------- ##
15933_ASBOX
15934 ) | sed "s/^/$as_me: WARNING: /" >&2
15935 ;;
15936esac
15937{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15941else
15942 eval "$as_ac_Header=\$ac_header_preproc"
15943fi
15944ac_res=`eval echo '${'$as_ac_Header'}'`
15945 { echo "$as_me:$LINENO: result: $ac_res" >&5
15946echo "${ECHO_T}$ac_res" >&6; }
15947
15948fi
15949if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015950 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015952_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015953
15954fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015955
Reid Spencer59473af2004-12-25 07:31:29 +000015956done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015958
15959
15960
15961
15962
15963
Douglas Gregor071d73d2009-05-18 17:21:34 +000015964for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015965do
15966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972fi
15973ac_res=`eval echo '${'$as_ac_Header'}'`
15974 { echo "$as_me:$LINENO: result: $ac_res" >&5
15975echo "${ECHO_T}$ac_res" >&6; }
15976else
15977 # Is the header compilable?
15978{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15980cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
15986$ac_includes_default
15987#include <$ac_header>
15988_ACEOF
15989rm -f conftest.$ac_objext
15990if { (ac_try="$ac_compile"
15991case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15994esac
15995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_compile") 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007esac
16008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017esac
16018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_header_compiler=yes
16024else
16025 echo "$as_me: failed program was:" >&5
16026sed 's/^/| /' conftest.$ac_ext >&5
16027
16028 ac_header_compiler=no
16029fi
16030
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16033echo "${ECHO_T}$ac_header_compiler" >&6; }
16034
16035# Is the header present?
16036{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16038cat >conftest.$ac_ext <<_ACEOF
16039/* confdefs.h. */
16040_ACEOF
16041cat confdefs.h >>conftest.$ac_ext
16042cat >>conftest.$ac_ext <<_ACEOF
16043/* end confdefs.h. */
16044#include <$ac_header>
16045_ACEOF
16046if { (ac_try="$ac_cpp conftest.$ac_ext"
16047case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } >/dev/null; then
16059 if test -s conftest.err; then
16060 ac_cpp_err=$ac_c_preproc_warn_flag
16061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16062 else
16063 ac_cpp_err=
16064 fi
16065else
16066 ac_cpp_err=yes
16067fi
16068if test -z "$ac_cpp_err"; then
16069 ac_header_preproc=yes
16070else
16071 echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ac_header_preproc=no
16075fi
16076
16077rm -f conftest.err conftest.$ac_ext
16078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16079echo "${ECHO_T}$ac_header_preproc" >&6; }
16080
16081# So? What about this header?
16082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16083 yes:no: )
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16088 ac_header_preproc=yes
16089 ;;
16090 no:yes:* )
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16103 ( cat <<\_ASBOX
16104## ----------------------------------- ##
16105## Report this to llvmbugs@cs.uiuc.edu ##
16106## ----------------------------------- ##
16107_ASBOX
16108 ) | sed "s/^/$as_me: WARNING: /" >&2
16109 ;;
16110esac
16111{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115else
16116 eval "$as_ac_Header=\$ac_header_preproc"
16117fi
16118ac_res=`eval echo '${'$as_ac_Header'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120echo "${ECHO_T}$ac_res" >&6; }
16121
16122fi
16123if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016124 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016126_ACEOF
16127
16128fi
16129
16130done
16131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016132
16133
Douglas Gregor071d73d2009-05-18 17:21:34 +000016134for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016135do
16136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142fi
16143ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145echo "${ECHO_T}$ac_res" >&6; }
16146else
16147 # Is the header compilable?
16148{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150cat >conftest.$ac_ext <<_ACEOF
16151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
16156$ac_includes_default
16157#include <$ac_header>
16158_ACEOF
16159rm -f conftest.$ac_objext
16160if { (ac_try="$ac_compile"
16161case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164esac
16165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16174 { (case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_try") 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187esac
16188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_header_compiler=yes
16194else
16195 echo "$as_me: failed program was:" >&5
16196sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ac_header_compiler=no
16199fi
16200
16201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16203echo "${ECHO_T}$ac_header_compiler" >&6; }
16204
16205# Is the header present?
16206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16208cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
16214#include <$ac_header>
16215_ACEOF
16216if { (ac_try="$ac_cpp conftest.$ac_ext"
16217case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16220esac
16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } >/dev/null; then
16229 if test -s conftest.err; then
16230 ac_cpp_err=$ac_c_preproc_warn_flag
16231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16232 else
16233 ac_cpp_err=
16234 fi
16235else
16236 ac_cpp_err=yes
16237fi
16238if test -z "$ac_cpp_err"; then
16239 ac_header_preproc=yes
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244 ac_header_preproc=no
16245fi
16246
16247rm -f conftest.err conftest.$ac_ext
16248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16249echo "${ECHO_T}$ac_header_preproc" >&6; }
16250
16251# So? What about this header?
16252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16253 yes:no: )
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16258 ac_header_preproc=yes
16259 ;;
16260 no:yes:* )
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16264echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16268echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16273 ( cat <<\_ASBOX
16274## ----------------------------------- ##
16275## Report this to llvmbugs@cs.uiuc.edu ##
16276## ----------------------------------- ##
16277_ASBOX
16278 ) | sed "s/^/$as_me: WARNING: /" >&2
16279 ;;
16280esac
16281{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285else
16286 eval "$as_ac_Header=\$ac_header_preproc"
16287fi
16288ac_res=`eval echo '${'$as_ac_Header'}'`
16289 { echo "$as_me:$LINENO: result: $ac_res" >&5
16290echo "${ECHO_T}$ac_res" >&6; }
16291
16292fi
16293if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016294 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016296_ACEOF
16297
16298fi
16299
16300done
Reid Spencer59473af2004-12-25 07:31:29 +000016301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016302
16303
16304
16305
Daniel Dunbar3e462932011-02-03 02:40:02 +000016306
16307for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016308do
16309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315fi
16316ac_res=`eval echo '${'$as_ac_Header'}'`
16317 { echo "$as_me:$LINENO: result: $ac_res" >&5
16318echo "${ECHO_T}$ac_res" >&6; }
16319else
16320 # Is the header compilable?
16321{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16323cat >conftest.$ac_ext <<_ACEOF
16324/* confdefs.h. */
16325_ACEOF
16326cat confdefs.h >>conftest.$ac_ext
16327cat >>conftest.$ac_ext <<_ACEOF
16328/* end confdefs.h. */
16329$ac_includes_default
16330#include <$ac_header>
16331_ACEOF
16332rm -f conftest.$ac_objext
16333if { (ac_try="$ac_compile"
16334case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337esac
16338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_compile") 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350esac
16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360esac
16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_header_compiler=yes
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 ac_header_compiler=no
16372fi
16373
16374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16376echo "${ECHO_T}$ac_header_compiler" >&6; }
16377
16378# Is the header present?
16379{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16381cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387#include <$ac_header>
16388_ACEOF
16389if { (ac_try="$ac_cpp conftest.$ac_ext"
16390case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } >/dev/null; then
16402 if test -s conftest.err; then
16403 ac_cpp_err=$ac_c_preproc_warn_flag
16404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16405 else
16406 ac_cpp_err=
16407 fi
16408else
16409 ac_cpp_err=yes
16410fi
16411if test -z "$ac_cpp_err"; then
16412 ac_header_preproc=yes
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_header_preproc=no
16418fi
16419
16420rm -f conftest.err conftest.$ac_ext
16421{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16422echo "${ECHO_T}$ac_header_preproc" >&6; }
16423
16424# So? What about this header?
16425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16426 yes:no: )
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16431 ac_header_preproc=yes
16432 ;;
16433 no:yes:* )
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16446 ( cat <<\_ASBOX
16447## ----------------------------------- ##
16448## Report this to llvmbugs@cs.uiuc.edu ##
16449## ----------------------------------- ##
16450_ASBOX
16451 ) | sed "s/^/$as_me: WARNING: /" >&2
16452 ;;
16453esac
16454{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16458else
16459 eval "$as_ac_Header=\$ac_header_preproc"
16460fi
16461ac_res=`eval echo '${'$as_ac_Header'}'`
16462 { echo "$as_me:$LINENO: result: $ac_res" >&5
16463echo "${ECHO_T}$ac_res" >&6; }
16464
16465fi
16466if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016467 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016469_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016470
16471fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016472
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016473done
16474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016475
16476
16477
16478
Douglas Gregor01746742009-05-11 18:05:52 +000016479for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016480do
16481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487fi
16488ac_res=`eval echo '${'$as_ac_Header'}'`
16489 { echo "$as_me:$LINENO: result: $ac_res" >&5
16490echo "${ECHO_T}$ac_res" >&6; }
16491else
16492 # Is the header compilable?
16493{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16495cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501$ac_includes_default
16502#include <$ac_header>
16503_ACEOF
16504rm -f conftest.$ac_objext
16505if { (ac_try="$ac_compile"
16506case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522esac
16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_header_compiler=yes
16539else
16540 echo "$as_me: failed program was:" >&5
16541sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ac_header_compiler=no
16544fi
16545
16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16548echo "${ECHO_T}$ac_header_compiler" >&6; }
16549
16550# Is the header present?
16551{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16553cat >conftest.$ac_ext <<_ACEOF
16554/* confdefs.h. */
16555_ACEOF
16556cat confdefs.h >>conftest.$ac_ext
16557cat >>conftest.$ac_ext <<_ACEOF
16558/* end confdefs.h. */
16559#include <$ac_header>
16560_ACEOF
16561if { (ac_try="$ac_cpp conftest.$ac_ext"
16562case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565esac
16566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } >/dev/null; then
16574 if test -s conftest.err; then
16575 ac_cpp_err=$ac_c_preproc_warn_flag
16576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16577 else
16578 ac_cpp_err=
16579 fi
16580else
16581 ac_cpp_err=yes
16582fi
16583if test -z "$ac_cpp_err"; then
16584 ac_header_preproc=yes
16585else
16586 echo "$as_me: failed program was:" >&5
16587sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ac_header_preproc=no
16590fi
16591
16592rm -f conftest.err conftest.$ac_ext
16593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16594echo "${ECHO_T}$ac_header_preproc" >&6; }
16595
16596# So? What about this header?
16597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598 yes:no: )
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16603 ac_header_preproc=yes
16604 ;;
16605 no:yes:* )
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16618 ( cat <<\_ASBOX
16619## ----------------------------------- ##
16620## Report this to llvmbugs@cs.uiuc.edu ##
16621## ----------------------------------- ##
16622_ASBOX
16623 ) | sed "s/^/$as_me: WARNING: /" >&2
16624 ;;
16625esac
16626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 eval "$as_ac_Header=\$ac_header_preproc"
16632fi
16633ac_res=`eval echo '${'$as_ac_Header'}'`
16634 { echo "$as_me:$LINENO: result: $ac_res" >&5
16635echo "${ECHO_T}$ac_res" >&6; }
16636
16637fi
16638if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016639 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016641_ACEOF
16642
16643fi
16644
16645done
16646
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016647
16648for ac_header in valgrind/valgrind.h
16649do
16650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656fi
16657ac_res=`eval echo '${'$as_ac_Header'}'`
16658 { echo "$as_me:$LINENO: result: $ac_res" >&5
16659echo "${ECHO_T}$ac_res" >&6; }
16660else
16661 # Is the header compilable?
16662{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16663echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16664cat >conftest.$ac_ext <<_ACEOF
16665/* confdefs.h. */
16666_ACEOF
16667cat confdefs.h >>conftest.$ac_ext
16668cat >>conftest.$ac_ext <<_ACEOF
16669/* end confdefs.h. */
16670$ac_includes_default
16671#include <$ac_header>
16672_ACEOF
16673rm -f conftest.$ac_objext
16674if { (ac_try="$ac_compile"
16675case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16688 { (case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691esac
16692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_try") 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701esac
16702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_header_compiler=yes
16708else
16709 echo "$as_me: failed program was:" >&5
16710sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 ac_header_compiler=no
16713fi
16714
16715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16717echo "${ECHO_T}$ac_header_compiler" >&6; }
16718
16719# Is the header present?
16720{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16722cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h. */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h. */
16728#include <$ac_header>
16729_ACEOF
16730if { (ac_try="$ac_cpp conftest.$ac_ext"
16731case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } >/dev/null; then
16743 if test -s conftest.err; then
16744 ac_cpp_err=$ac_c_preproc_warn_flag
16745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16746 else
16747 ac_cpp_err=
16748 fi
16749else
16750 ac_cpp_err=yes
16751fi
16752if test -z "$ac_cpp_err"; then
16753 ac_header_preproc=yes
16754else
16755 echo "$as_me: failed program was:" >&5
16756sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 ac_header_preproc=no
16759fi
16760
16761rm -f conftest.err conftest.$ac_ext
16762{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16763echo "${ECHO_T}$ac_header_preproc" >&6; }
16764
16765# So? What about this header?
16766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16767 yes:no: )
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16772 ac_header_preproc=yes
16773 ;;
16774 no:yes:* )
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16787 ( cat <<\_ASBOX
16788## ----------------------------------- ##
16789## Report this to llvmbugs@cs.uiuc.edu ##
16790## ----------------------------------- ##
16791_ASBOX
16792 ) | sed "s/^/$as_me: WARNING: /" >&2
16793 ;;
16794esac
16795{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799else
16800 eval "$as_ac_Header=\$ac_header_preproc"
16801fi
16802ac_res=`eval echo '${'$as_ac_Header'}'`
16803 { echo "$as_me:$LINENO: result: $ac_res" >&5
16804echo "${ECHO_T}$ac_res" >&6; }
16805
16806fi
16807if test `eval echo '${'$as_ac_Header'}'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16810_ACEOF
16811
16812fi
16813
16814done
16815
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016816
16817for ac_header in fenv.h
16818do
16819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825fi
16826ac_res=`eval echo '${'$as_ac_Header'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828echo "${ECHO_T}$ac_res" >&6; }
16829else
16830 # Is the header compilable?
16831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16833cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839$ac_includes_default
16840#include <$ac_header>
16841_ACEOF
16842rm -f conftest.$ac_objext
16843if { (ac_try="$ac_compile"
16844case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_compile") 2>conftest.er1
16850 ac_status=$?
16851 grep -v '^ *+' conftest.er1 >conftest.err
16852 rm -f conftest.er1
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860esac
16861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (case "(($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_try") 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_header_compiler=yes
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 ac_header_compiler=no
16882fi
16883
16884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886echo "${ECHO_T}$ac_header_compiler" >&6; }
16887
16888# Is the header present?
16889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16891cat >conftest.$ac_ext <<_ACEOF
16892/* confdefs.h. */
16893_ACEOF
16894cat confdefs.h >>conftest.$ac_ext
16895cat >>conftest.$ac_ext <<_ACEOF
16896/* end confdefs.h. */
16897#include <$ac_header>
16898_ACEOF
16899if { (ac_try="$ac_cpp conftest.$ac_ext"
16900case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } >/dev/null; then
16912 if test -s conftest.err; then
16913 ac_cpp_err=$ac_c_preproc_warn_flag
16914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16915 else
16916 ac_cpp_err=
16917 fi
16918else
16919 ac_cpp_err=yes
16920fi
16921if test -z "$ac_cpp_err"; then
16922 ac_header_preproc=yes
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 ac_header_preproc=no
16928fi
16929
16930rm -f conftest.err conftest.$ac_ext
16931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16932echo "${ECHO_T}$ac_header_preproc" >&6; }
16933
16934# So? What about this header?
16935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16936 yes:no: )
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16941 ac_header_preproc=yes
16942 ;;
16943 no:yes:* )
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16956 ( cat <<\_ASBOX
16957## ----------------------------------- ##
16958## Report this to llvmbugs@cs.uiuc.edu ##
16959## ----------------------------------- ##
16960_ASBOX
16961 ) | sed "s/^/$as_me: WARNING: /" >&2
16962 ;;
16963esac
16964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16968else
16969 eval "$as_ac_Header=\$ac_header_preproc"
16970fi
16971ac_res=`eval echo '${'$as_ac_Header'}'`
16972 { echo "$as_me:$LINENO: result: $ac_res" >&5
16973echo "${ECHO_T}$ac_res" >&6; }
16974
16975fi
16976if test `eval echo '${'$as_ac_Header'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16979_ACEOF
16980
16981fi
16982
16983done
16984
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016985if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016986
16987for ac_header in pthread.h
16988do
16989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995fi
16996ac_res=`eval echo '${'$as_ac_Header'}'`
16997 { echo "$as_me:$LINENO: result: $ac_res" >&5
16998echo "${ECHO_T}$ac_res" >&6; }
16999else
17000 # Is the header compilable?
17001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17003cat >conftest.$ac_ext <<_ACEOF
17004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
17009$ac_includes_default
17010#include <$ac_header>
17011_ACEOF
17012rm -f conftest.$ac_objext
17013if { (ac_try="$ac_compile"
17014case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017esac
17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040esac
17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_header_compiler=yes
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_header_compiler=no
17052fi
17053
17054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17056echo "${ECHO_T}$ac_header_compiler" >&6; }
17057
17058# Is the header present?
17059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17061cat >conftest.$ac_ext <<_ACEOF
17062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
17067#include <$ac_header>
17068_ACEOF
17069if { (ac_try="$ac_cpp conftest.$ac_ext"
17070case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } >/dev/null; then
17082 if test -s conftest.err; then
17083 ac_cpp_err=$ac_c_preproc_warn_flag
17084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17085 else
17086 ac_cpp_err=
17087 fi
17088else
17089 ac_cpp_err=yes
17090fi
17091if test -z "$ac_cpp_err"; then
17092 ac_header_preproc=yes
17093else
17094 echo "$as_me: failed program was:" >&5
17095sed 's/^/| /' conftest.$ac_ext >&5
17096
17097 ac_header_preproc=no
17098fi
17099
17100rm -f conftest.err conftest.$ac_ext
17101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17102echo "${ECHO_T}$ac_header_preproc" >&6; }
17103
17104# So? What about this header?
17105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17106 yes:no: )
17107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17111 ac_header_preproc=yes
17112 ;;
17113 no:yes:* )
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17126 ( cat <<\_ASBOX
17127## ----------------------------------- ##
17128## Report this to llvmbugs@cs.uiuc.edu ##
17129## ----------------------------------- ##
17130_ASBOX
17131 ) | sed "s/^/$as_me: WARNING: /" >&2
17132 ;;
17133esac
17134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138else
17139 eval "$as_ac_Header=\$ac_header_preproc"
17140fi
17141ac_res=`eval echo '${'$as_ac_Header'}'`
17142 { echo "$as_me:$LINENO: result: $ac_res" >&5
17143echo "${ECHO_T}$ac_res" >&6; }
17144
17145fi
17146if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017147 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017149_ACEOF
17150 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017151
17152else
17153 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017154
17155fi
17156
Reid Spencerbe3e4192007-08-17 05:45:26 +000017157done
Reid Spencer1000b732006-12-01 00:37:14 +000017158
17159else
17160 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017161
17162fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017163
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017164if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017165
17166
17167for ac_header in ffi.h ffi/ffi.h
17168do
17169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175fi
17176ac_res=`eval echo '${'$as_ac_Header'}'`
17177 { echo "$as_me:$LINENO: result: $ac_res" >&5
17178echo "${ECHO_T}$ac_res" >&6; }
17179else
17180 # Is the header compilable?
17181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17183cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
17189$ac_includes_default
17190#include <$ac_header>
17191_ACEOF
17192rm -f conftest.$ac_objext
17193if { (ac_try="$ac_compile"
17194case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17197esac
17198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17210esac
17211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220esac
17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_header_compiler=yes
17227else
17228 echo "$as_me: failed program was:" >&5
17229sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ac_header_compiler=no
17232fi
17233
17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17236echo "${ECHO_T}$ac_header_compiler" >&6; }
17237
17238# Is the header present?
17239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17241cat >conftest.$ac_ext <<_ACEOF
17242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
17247#include <$ac_header>
17248_ACEOF
17249if { (ac_try="$ac_cpp conftest.$ac_ext"
17250case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253esac
17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } >/dev/null; then
17262 if test -s conftest.err; then
17263 ac_cpp_err=$ac_c_preproc_warn_flag
17264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17265 else
17266 ac_cpp_err=
17267 fi
17268else
17269 ac_cpp_err=yes
17270fi
17271if test -z "$ac_cpp_err"; then
17272 ac_header_preproc=yes
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_header_preproc=no
17278fi
17279
17280rm -f conftest.err conftest.$ac_ext
17281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17282echo "${ECHO_T}$ac_header_preproc" >&6; }
17283
17284# So? What about this header?
17285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17286 yes:no: )
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17291 ac_header_preproc=yes
17292 ;;
17293 no:yes:* )
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17306 ( cat <<\_ASBOX
17307## ----------------------------------- ##
17308## Report this to llvmbugs@cs.uiuc.edu ##
17309## ----------------------------------- ##
17310_ASBOX
17311 ) | sed "s/^/$as_me: WARNING: /" >&2
17312 ;;
17313esac
17314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318else
17319 eval "$as_ac_Header=\$ac_header_preproc"
17320fi
17321ac_res=`eval echo '${'$as_ac_Header'}'`
17322 { echo "$as_me:$LINENO: result: $ac_res" >&5
17323echo "${ECHO_T}$ac_res" >&6; }
17324
17325fi
17326if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017327 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017329_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017330
17331fi
17332
17333done
17334
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017335fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017336
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017337
Eric Christopher654dee42010-06-22 21:01:04 +000017338for ac_header in CrashReporterClient.h
17339do
17340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346fi
17347ac_res=`eval echo '${'$as_ac_Header'}'`
17348 { echo "$as_me:$LINENO: result: $ac_res" >&5
17349echo "${ECHO_T}$ac_res" >&6; }
17350else
17351 # Is the header compilable?
17352{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17354cat >conftest.$ac_ext <<_ACEOF
17355/* confdefs.h. */
17356_ACEOF
17357cat confdefs.h >>conftest.$ac_ext
17358cat >>conftest.$ac_ext <<_ACEOF
17359/* end confdefs.h. */
17360$ac_includes_default
17361#include <$ac_header>
17362_ACEOF
17363rm -f conftest.$ac_objext
17364if { (ac_try="$ac_compile"
17365case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368esac
17369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_compile") 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17381esac
17382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_header_compiler=yes
17398else
17399 echo "$as_me: failed program was:" >&5
17400sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 ac_header_compiler=no
17403fi
17404
17405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17407echo "${ECHO_T}$ac_header_compiler" >&6; }
17408
17409# Is the header present?
17410{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17412cat >conftest.$ac_ext <<_ACEOF
17413/* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418#include <$ac_header>
17419_ACEOF
17420if { (ac_try="$ac_cpp conftest.$ac_ext"
17421case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424esac
17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } >/dev/null; then
17433 if test -s conftest.err; then
17434 ac_cpp_err=$ac_c_preproc_warn_flag
17435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17436 else
17437 ac_cpp_err=
17438 fi
17439else
17440 ac_cpp_err=yes
17441fi
17442if test -z "$ac_cpp_err"; then
17443 ac_header_preproc=yes
17444else
17445 echo "$as_me: failed program was:" >&5
17446sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 ac_header_preproc=no
17449fi
17450
17451rm -f conftest.err conftest.$ac_ext
17452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17453echo "${ECHO_T}$ac_header_preproc" >&6; }
17454
17455# So? What about this header?
17456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17457 yes:no: )
17458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17462 ac_header_preproc=yes
17463 ;;
17464 no:yes:* )
17465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17477 ( cat <<\_ASBOX
17478## ----------------------------------- ##
17479## Report this to llvmbugs@cs.uiuc.edu ##
17480## ----------------------------------- ##
17481_ASBOX
17482 ) | sed "s/^/$as_me: WARNING: /" >&2
17483 ;;
17484esac
17485{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489else
17490 eval "$as_ac_Header=\$ac_header_preproc"
17491fi
17492ac_res=`eval echo '${'$as_ac_Header'}'`
17493 { echo "$as_me:$LINENO: result: $ac_res" >&5
17494echo "${ECHO_T}$ac_res" >&6; }
17495
17496fi
17497if test `eval echo '${'$as_ac_Header'}'` = yes; then
17498 cat >>confdefs.h <<_ACEOF
17499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17500_ACEOF
17501
17502fi
17503
17504done
17505
17506
Eric Christopher51e57132010-12-07 02:05:42 +000017507{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17508echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017509cat >conftest.$ac_ext <<_ACEOF
17510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017515extern const char *__crashreporter_info__;
17516 int main() {
17517 __crashreporter_info__ = "test";
17518 return 0;
17519 }
Eric Christopher481d4022010-12-03 07:45:22 +000017520
Eric Christopher481d4022010-12-03 07:45:22 +000017521_ACEOF
17522rm -f conftest.$ac_objext conftest$ac_exeext
17523if { (ac_try="$ac_link"
17524case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017556 { echo "$as_me:$LINENO: result: yes" >&5
17557echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017558
17559cat >>confdefs.h <<\_ACEOF
17560#define HAVE_CRASHREPORTER_INFO 1
17561_ACEOF
17562
Eric Christopher51e57132010-12-07 02:05:42 +000017563else
17564 echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 { echo "$as_me:$LINENO: result: no" >&5
17568echo "${ECHO_T}no" >&6; }
17569
17570cat >>confdefs.h <<\_ACEOF
17571#define HAVE_CRASHREPORTER_INFO 0
17572_ACEOF
17573
Eric Christopher481d4022010-12-03 07:45:22 +000017574fi
Eric Christopher654dee42010-06-22 21:01:04 +000017575
Eric Christopher51e57132010-12-07 02:05:42 +000017576rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578
17579
Reid Spencer8085cff2005-01-16 02:58:39 +000017580
Torok Edwin871384f2010-01-26 08:50:50 +000017581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017582 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17583echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17584if test "${ac_cv_huge_val_sanity+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017586else
17587
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017588 ac_ext=cpp
17589ac_cpp='$CXXCPP $CPPFLAGS'
17590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017593
Eric Christopherc7718502010-03-02 05:06:54 +000017594 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017595 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017596 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017597 ac_cv_huge_val_sanity=yes
17598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017599 cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017604/* end confdefs.h. */
17605#include <math.h>
17606int
17607main ()
17608{
17609double x = HUGE_VAL; return x != x;
17610 ;
17611 return 0;
17612}
17613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017614rm -f conftest$ac_exeext
17615if { (ac_try="$ac_link"
17616case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619esac
17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_link") 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017634 ac_cv_huge_val_sanity=yes
17635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017636 echo "$as_me: program exited with status $ac_status" >&5
17637echo "$as_me: failed program was:" >&5
17638sed 's/^/| /' conftest.$ac_ext >&5
17639
17640( exit $ac_status )
17641ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017643rm -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 +000017644fi
17645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646
Eric Christopherc7718502010-03-02 05:06:54 +000017647 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017648 ac_ext=c
17649ac_cpp='$CPP $CPPFLAGS'
17650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17652ac_compiler_gnu=$ac_cv_c_compiler_gnu
17653
17654
17655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017656{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17657echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017658 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17659
17660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017661{ echo "$as_me:$LINENO: checking for pid_t" >&5
17662echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17663if test "${ac_cv_type_pid_t+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665else
17666 cat >conftest.$ac_ext <<_ACEOF
17667/* confdefs.h. */
17668_ACEOF
17669cat confdefs.h >>conftest.$ac_ext
17670cat >>conftest.$ac_ext <<_ACEOF
17671/* end confdefs.h. */
17672$ac_includes_default
17673typedef pid_t ac__type_new_;
17674int
17675main ()
17676{
17677if ((ac__type_new_ *) 0)
17678 return 0;
17679if (sizeof (ac__type_new_))
17680 return 0;
17681 ;
17682 return 0;
17683}
17684_ACEOF
17685rm -f conftest.$ac_objext
17686if { (ac_try="$ac_compile"
17687case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700 { (case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_try") 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713esac
17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_cv_type_pid_t=yes
17720else
17721 echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017724 ac_cv_type_pid_t=no
17725fi
17726
17727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728fi
17729{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17730echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17731if test $ac_cv_type_pid_t = yes; then
17732 :
John Criswell7a73b802003-06-30 21:59:07 +000017733else
17734
17735cat >>confdefs.h <<_ACEOF
17736#define pid_t int
17737_ACEOF
17738
17739fi
17740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017741{ echo "$as_me:$LINENO: checking for size_t" >&5
17742echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17743if test "${ac_cv_type_size_t+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745else
17746 cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h. */
17752$ac_includes_default
17753typedef size_t ac__type_new_;
17754int
17755main ()
17756{
17757if ((ac__type_new_ *) 0)
17758 return 0;
17759if (sizeof (ac__type_new_))
17760 return 0;
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765rm -f conftest.$ac_objext
17766if { (ac_try="$ac_compile"
17767case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17770esac
17771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_compile") 2>conftest.er1
17773 ac_status=$?
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793esac
17794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_try") 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_type_size_t=yes
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017804 ac_cv_type_size_t=no
17805fi
17806
17807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808fi
17809{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17810echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17811if test $ac_cv_type_size_t = yes; then
17812 :
John Criswell7a73b802003-06-30 21:59:07 +000017813else
17814
17815cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017816#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017817_ACEOF
17818
17819fi
17820
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017821
17822cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017823#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017824_ACEOF
17825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017826{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17827echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17828if test "${ac_cv_struct_tm+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017831 cat >conftest.$ac_ext <<_ACEOF
17832/* confdefs.h. */
17833_ACEOF
17834cat confdefs.h >>conftest.$ac_ext
17835cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017836/* end confdefs.h. */
17837#include <sys/types.h>
17838#include <time.h>
17839
17840int
17841main ()
17842{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017844 ;
17845 return 0;
17846}
17847_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017848rm -f conftest.$ac_objext
17849if { (ac_try="$ac_compile"
17850case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853esac
17854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_compile") 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866esac
17867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876esac
17877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017882 ac_cv_struct_tm=time.h
17883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017884 echo "$as_me: failed program was:" >&5
17885sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017888fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017889
Reid Spencera773bd52006-08-04 18:18:08 +000017890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017892{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17893echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017894if test $ac_cv_struct_tm = sys/time.h; then
17895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017896cat >>confdefs.h <<\_ACEOF
17897#define TM_IN_SYS_TIME 1
17898_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017899
17900fi
17901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017902{ echo "$as_me:$LINENO: checking for int64_t" >&5
17903echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17904if test "${ac_cv_type_int64_t+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17906else
17907 cat >conftest.$ac_ext <<_ACEOF
17908/* confdefs.h. */
17909_ACEOF
17910cat confdefs.h >>conftest.$ac_ext
17911cat >>conftest.$ac_ext <<_ACEOF
17912/* end confdefs.h. */
17913$ac_includes_default
17914typedef int64_t ac__type_new_;
17915int
17916main ()
17917{
17918if ((ac__type_new_ *) 0)
17919 return 0;
17920if (sizeof (ac__type_new_))
17921 return 0;
17922 ;
17923 return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext
17927if { (ac_try="$ac_compile"
17928case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_type_int64_t=yes
17961else
17962 echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_type_int64_t=no
17966fi
17967
17968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969fi
17970{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17971echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17972if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017973
17974cat >>confdefs.h <<_ACEOF
17975#define HAVE_INT64_T 1
17976_ACEOF
17977
17978
17979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017980 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17981echo "$as_me: error: Type int64_t required but not found" >&2;}
17982 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017983fi
17984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017985{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17986echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17987if test "${ac_cv_type_uint64_t+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989else
17990 cat >conftest.$ac_ext <<_ACEOF
17991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
17996$ac_includes_default
17997typedef uint64_t ac__type_new_;
17998int
17999main ()
18000{
18001if ((ac__type_new_ *) 0)
18002 return 0;
18003if (sizeof (ac__type_new_))
18004 return 0;
18005 ;
18006 return 0;
18007}
18008_ACEOF
18009rm -f conftest.$ac_objext
18010if { (ac_try="$ac_compile"
18011case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_compile") 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027esac
18028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037esac
18038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_cv_type_uint64_t=yes
18044else
18045 echo "$as_me: failed program was:" >&5
18046sed 's/^/| /' conftest.$ac_ext >&5
18047
18048 ac_cv_type_uint64_t=no
18049fi
18050
18051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052fi
18053{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18054echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18055if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018056
18057cat >>confdefs.h <<_ACEOF
18058#define HAVE_UINT64_T 1
18059_ACEOF
18060
18061
18062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018063 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18064echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18065if test "${ac_cv_type_u_int64_t+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18067else
18068 cat >conftest.$ac_ext <<_ACEOF
18069/* confdefs.h. */
18070_ACEOF
18071cat confdefs.h >>conftest.$ac_ext
18072cat >>conftest.$ac_ext <<_ACEOF
18073/* end confdefs.h. */
18074$ac_includes_default
18075typedef u_int64_t ac__type_new_;
18076int
18077main ()
18078{
18079if ((ac__type_new_ *) 0)
18080 return 0;
18081if (sizeof (ac__type_new_))
18082 return 0;
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest.$ac_objext
18088if { (ac_try="$ac_compile"
18089case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18092esac
18093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_cv_type_u_int64_t=yes
18122else
18123 echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_cv_type_u_int64_t=no
18127fi
18128
18129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130fi
18131{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18132echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18133if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018134
18135cat >>confdefs.h <<_ACEOF
18136#define HAVE_U_INT64_T 1
18137_ACEOF
18138
18139
Misha Brukmanceca9042004-09-02 23:02:30 +000018140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018141 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18142echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18143 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018144fi
18145
John Criswell679ff312004-09-02 18:44:44 +000018146fi
18147
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018148
18149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018150
18151
18152
18153
18154
18155
18156
Reid Spencerdf3be822006-01-23 08:15:53 +000018157for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018158do
18159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164else
18165 cat >conftest.$ac_ext <<_ACEOF
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173#define $ac_func innocuous_$ac_func
18174
18175/* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18179
18180#ifdef __STDC__
18181# include <limits.h>
18182#else
18183# include <assert.h>
18184#endif
18185
18186#undef $ac_func
18187
18188/* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18191#ifdef __cplusplus
18192extern "C"
18193#endif
18194char $ac_func ();
18195/* The GNU C library defines this for functions which it implements
18196 to always fail with ENOSYS. Some functions are actually named
18197 something starting with __ and the normal name is an alias. */
18198#if defined __stub_$ac_func || defined __stub___$ac_func
18199choke me
18200#endif
18201
18202int
18203main ()
18204{
18205return $ac_func ();
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext conftest$ac_exeext
18211if { (ac_try="$ac_link"
18212case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_link") 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18225 { (case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18228esac
18229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_try") 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 eval "$as_ac_var=yes"
18245else
18246 echo "$as_me: failed program was:" >&5
18247sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 eval "$as_ac_var=no"
18250fi
18251
18252rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254fi
18255ac_res=`eval echo '${'$as_ac_var'}'`
18256 { echo "$as_me:$LINENO: result: $ac_res" >&5
18257echo "${ECHO_T}$ac_res" >&6; }
18258if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018261_ACEOF
18262
18263fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018264done
John Criswell7a73b802003-06-30 21:59:07 +000018265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018266
18267
18268
18269
Reid Spencer96cf5872007-07-13 10:05:30 +000018270for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018271do
18272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278 cat >conftest.$ac_ext <<_ACEOF
18279/* confdefs.h. */
18280_ACEOF
18281cat confdefs.h >>conftest.$ac_ext
18282cat >>conftest.$ac_ext <<_ACEOF
18283/* end confdefs.h. */
18284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18286#define $ac_func innocuous_$ac_func
18287
18288/* System header to define __stub macros and hopefully few prototypes,
18289 which can conflict with char $ac_func (); below.
18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 <limits.h> exists even on freestanding compilers. */
18292
18293#ifdef __STDC__
18294# include <limits.h>
18295#else
18296# include <assert.h>
18297#endif
18298
18299#undef $ac_func
18300
18301/* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18304#ifdef __cplusplus
18305extern "C"
18306#endif
18307char $ac_func ();
18308/* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311#if defined __stub_$ac_func || defined __stub___$ac_func
18312choke me
18313#endif
18314
18315int
18316main ()
18317{
18318return $ac_func ();
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext conftest$ac_exeext
18324if { (ac_try="$ac_link"
18325case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 eval "$as_ac_var=yes"
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 eval "$as_ac_var=no"
18363fi
18364
18365rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367fi
18368ac_res=`eval echo '${'$as_ac_var'}'`
18369 { echo "$as_me:$LINENO: result: $ac_res" >&5
18370echo "${ECHO_T}$ac_res" >&6; }
18371if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018372 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018374_ACEOF
18375
18376fi
18377done
18378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018379
18380
18381
18382
18383
Reid Spencerb90645c2007-02-16 19:17:20 +000018384for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018385do
18386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18387{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18389if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391else
18392 cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18400#define $ac_func innocuous_$ac_func
18401
18402/* System header to define __stub macros and hopefully few prototypes,
18403 which can conflict with char $ac_func (); below.
18404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18405 <limits.h> exists even on freestanding compilers. */
18406
18407#ifdef __STDC__
18408# include <limits.h>
18409#else
18410# include <assert.h>
18411#endif
18412
18413#undef $ac_func
18414
18415/* Override any GCC internal prototype to avoid an error.
18416 Use char because int might match the return type of a GCC
18417 builtin and then its argument prototype would still apply. */
18418#ifdef __cplusplus
18419extern "C"
18420#endif
18421char $ac_func ();
18422/* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425#if defined __stub_$ac_func || defined __stub___$ac_func
18426choke me
18427#endif
18428
18429int
18430main ()
18431{
18432return $ac_func ();
18433 ;
18434 return 0;
18435}
18436_ACEOF
18437rm -f conftest.$ac_objext conftest$ac_exeext
18438if { (ac_try="$ac_link"
18439case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442esac
18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 eval "$as_ac_var=yes"
18472else
18473 echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 eval "$as_ac_var=no"
18477fi
18478
18479rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18481fi
18482ac_res=`eval echo '${'$as_ac_var'}'`
18483 { echo "$as_me:$LINENO: result: $ac_res" >&5
18484echo "${ECHO_T}$ac_res" >&6; }
18485if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018486 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018488_ACEOF
18489
18490fi
18491done
18492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018493
18494
18495
Reid Spencerb90645c2007-02-16 19:17:20 +000018496for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018497do
18498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18499{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18501if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18503else
18504 cat >conftest.$ac_ext <<_ACEOF
18505/* confdefs.h. */
18506_ACEOF
18507cat confdefs.h >>conftest.$ac_ext
18508cat >>conftest.$ac_ext <<_ACEOF
18509/* end confdefs.h. */
18510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18512#define $ac_func innocuous_$ac_func
18513
18514/* System header to define __stub macros and hopefully few prototypes,
18515 which can conflict with char $ac_func (); below.
18516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517 <limits.h> exists even on freestanding compilers. */
18518
18519#ifdef __STDC__
18520# include <limits.h>
18521#else
18522# include <assert.h>
18523#endif
18524
18525#undef $ac_func
18526
18527/* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
18530#ifdef __cplusplus
18531extern "C"
18532#endif
18533char $ac_func ();
18534/* The GNU C library defines this for functions which it implements
18535 to always fail with ENOSYS. Some functions are actually named
18536 something starting with __ and the normal name is an alias. */
18537#if defined __stub_$ac_func || defined __stub___$ac_func
18538choke me
18539#endif
18540
18541int
18542main ()
18543{
18544return $ac_func ();
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext conftest$ac_exeext
18550if { (ac_try="$ac_link"
18551case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18554esac
18555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_link") 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } &&
18563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18564 { (case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18567esac
18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_try") 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try='test -s conftest$ac_exeext'
18574 { (case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577esac
18578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_try") 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 eval "$as_ac_var=yes"
18584else
18585 echo "$as_me: failed program was:" >&5
18586sed 's/^/| /' conftest.$ac_ext >&5
18587
18588 eval "$as_ac_var=no"
18589fi
18590
18591rm -f core conftest.err conftest.$ac_objext \
18592 conftest$ac_exeext conftest.$ac_ext
18593fi
18594ac_res=`eval echo '${'$as_ac_var'}'`
18595 { echo "$as_me:$LINENO: result: $ac_res" >&5
18596echo "${ECHO_T}$ac_res" >&6; }
18597if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018598 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018600_ACEOF
18601
18602fi
18603done
18604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018605
18606
18607
18608
18609
Eric Christophere4291822010-04-16 05:14:21 +000018610
18611for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018612do
18613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18614{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18616if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618else
18619 cat >conftest.$ac_ext <<_ACEOF
18620/* confdefs.h. */
18621_ACEOF
18622cat confdefs.h >>conftest.$ac_ext
18623cat >>conftest.$ac_ext <<_ACEOF
18624/* end confdefs.h. */
18625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18627#define $ac_func innocuous_$ac_func
18628
18629/* System header to define __stub macros and hopefully few prototypes,
18630 which can conflict with char $ac_func (); below.
18631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18632 <limits.h> exists even on freestanding compilers. */
18633
18634#ifdef __STDC__
18635# include <limits.h>
18636#else
18637# include <assert.h>
18638#endif
18639
18640#undef $ac_func
18641
18642/* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18645#ifdef __cplusplus
18646extern "C"
18647#endif
18648char $ac_func ();
18649/* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652#if defined __stub_$ac_func || defined __stub___$ac_func
18653choke me
18654#endif
18655
18656int
18657main ()
18658{
18659return $ac_func ();
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682esac
18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 eval "$as_ac_var=yes"
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 eval "$as_ac_var=no"
18704fi
18705
18706rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708fi
18709ac_res=`eval echo '${'$as_ac_var'}'`
18710 { echo "$as_me:$LINENO: result: $ac_res" >&5
18711echo "${ECHO_T}$ac_res" >&6; }
18712if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018713 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018715_ACEOF
18716
18717fi
18718done
Reid Spencerdf3be822006-01-23 08:15:53 +000018719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018720
18721
18722
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018723for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018724do
18725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731 cat >conftest.$ac_ext <<_ACEOF
18732/* confdefs.h. */
18733_ACEOF
18734cat confdefs.h >>conftest.$ac_ext
18735cat >>conftest.$ac_ext <<_ACEOF
18736/* end confdefs.h. */
18737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18739#define $ac_func innocuous_$ac_func
18740
18741/* System header to define __stub macros and hopefully few prototypes,
18742 which can conflict with char $ac_func (); below.
18743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744 <limits.h> exists even on freestanding compilers. */
18745
18746#ifdef __STDC__
18747# include <limits.h>
18748#else
18749# include <assert.h>
18750#endif
18751
18752#undef $ac_func
18753
18754/* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18757#ifdef __cplusplus
18758extern "C"
18759#endif
18760char $ac_func ();
18761/* The GNU C library defines this for functions which it implements
18762 to always fail with ENOSYS. Some functions are actually named
18763 something starting with __ and the normal name is an alias. */
18764#if defined __stub_$ac_func || defined __stub___$ac_func
18765choke me
18766#endif
18767
18768int
18769main ()
18770{
18771return $ac_func ();
18772 ;
18773 return 0;
18774}
18775_ACEOF
18776rm -f conftest.$ac_objext conftest$ac_exeext
18777if { (ac_try="$ac_link"
18778case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18781esac
18782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_link") 2>conftest.er1
18784 ac_status=$?
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794esac
18795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 eval "$as_ac_var=yes"
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 eval "$as_ac_var=no"
18816fi
18817
18818rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18820fi
18821ac_res=`eval echo '${'$as_ac_var'}'`
18822 { echo "$as_me:$LINENO: result: $ac_res" >&5
18823echo "${ECHO_T}$ac_res" >&6; }
18824if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018827_ACEOF
18828
18829fi
18830done
18831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018832
18833
18834
18835
Chris Lattner511f11d2005-11-14 07:25:50 +000018836for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018837do
18838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
18850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18852#define $ac_func innocuous_$ac_func
18853
18854/* System header to define __stub macros and hopefully few prototypes,
18855 which can conflict with char $ac_func (); below.
18856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857 <limits.h> exists even on freestanding compilers. */
18858
18859#ifdef __STDC__
18860# include <limits.h>
18861#else
18862# include <assert.h>
18863#endif
18864
18865#undef $ac_func
18866
18867/* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18870#ifdef __cplusplus
18871extern "C"
18872#endif
18873char $ac_func ();
18874/* The GNU C library defines this for functions which it implements
18875 to always fail with ENOSYS. Some functions are actually named
18876 something starting with __ and the normal name is an alias. */
18877#if defined __stub_$ac_func || defined __stub___$ac_func
18878choke me
18879#endif
18880
18881int
18882main ()
18883{
18884return $ac_func ();
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889rm -f conftest.$ac_objext conftest$ac_exeext
18890if { (ac_try="$ac_link"
18891case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894esac
18895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917esac
18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 eval "$as_ac_var=yes"
18924else
18925 echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928 eval "$as_ac_var=no"
18929fi
18930
18931rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933fi
18934ac_res=`eval echo '${'$as_ac_var'}'`
18935 { echo "$as_me:$LINENO: result: $ac_res" >&5
18936echo "${ECHO_T}$ac_res" >&6; }
18937if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018938 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018940_ACEOF
18941
18942fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018943done
John Criswell7a73b802003-06-30 21:59:07 +000018944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018945
18946
18947
18948
Daniel Dunbar3e462932011-02-03 02:40:02 +000018949
18950for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018951do
18952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18953{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18957else
18958 cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18966#define $ac_func innocuous_$ac_func
18967
18968/* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char $ac_func (); below.
18970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18971 <limits.h> exists even on freestanding compilers. */
18972
18973#ifdef __STDC__
18974# include <limits.h>
18975#else
18976# include <assert.h>
18977#endif
18978
18979#undef $ac_func
18980
18981/* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18984#ifdef __cplusplus
18985extern "C"
18986#endif
18987char $ac_func ();
18988/* The GNU C library defines this for functions which it implements
18989 to always fail with ENOSYS. Some functions are actually named
18990 something starting with __ and the normal name is an alias. */
18991#if defined __stub_$ac_func || defined __stub___$ac_func
18992choke me
18993#endif
18994
18995int
18996main ()
18997{
18998return $ac_func ();
18999 ;
19000 return 0;
19001}
19002_ACEOF
19003rm -f conftest.$ac_objext conftest$ac_exeext
19004if { (ac_try="$ac_link"
19005case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 eval "$as_ac_var=yes"
19038else
19039 echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042 eval "$as_ac_var=no"
19043fi
19044
19045rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047fi
19048ac_res=`eval echo '${'$as_ac_var'}'`
19049 { echo "$as_me:$LINENO: result: $ac_res" >&5
19050echo "${ECHO_T}$ac_res" >&6; }
19051if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019052 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019054_ACEOF
19055
19056fi
19057done
19058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019059{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19060echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19061if test "${llvm_cv_c_printf_a+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019063else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019064 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019065ac_cpp='$CPP $CPPFLAGS'
19066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068ac_compiler_gnu=$ac_cv_c_compiler_gnu
19069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019070 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019071 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019073 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019075 /* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019080
John Criswella0137d32003-10-13 16:22:01 +000019081#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019082#include <stdlib.h>
19083
John Criswella0137d32003-10-13 16:22:01 +000019084int
19085main ()
19086{
19087
Reid Spencer2706f8c2004-09-19 23:53:36 +000019088volatile double A, B;
19089char Buffer[100];
19090A = 1;
19091A /= 10.0;
19092sprintf(Buffer, "%a", A);
19093B = atof(Buffer);
19094if (A != B)
19095 return (1);
19096if (A != 0x1.999999999999ap-4)
19097 return (1);
19098return (0);
John Criswella0137d32003-10-13 16:22:01 +000019099 ;
19100 return 0;
19101}
19102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019103rm -f conftest$ac_exeext
19104if { (ac_try="$ac_link"
19105case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19108esac
19109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_link") 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117esac
19118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019123 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019125 echo "$as_me: program exited with status $ac_status" >&5
19126echo "$as_me: failed program was:" >&5
19127sed 's/^/| /' conftest.$ac_ext >&5
19128
19129( exit $ac_status )
19130llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019132rm -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 +000019133fi
Reid Spencera773bd52006-08-04 18:18:08 +000019134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019135
Reid Spencer2706f8c2004-09-19 23:53:36 +000019136 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019137ac_cpp='$CPP $CPPFLAGS'
19138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140ac_compiler_gnu=$ac_cv_c_compiler_gnu
19141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019143{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19144echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019145 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019147cat >>confdefs.h <<\_ACEOF
19148#define HAVE_PRINTF_A 1
19149_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019150
Reid Spencer2706f8c2004-09-19 23:53:36 +000019151 fi
John Criswella0137d32003-10-13 16:22:01 +000019152
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019154{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19155echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19156if test "${ac_cv_func_rand48+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019158else
Reid Spencera773bd52006-08-04 18:18:08 +000019159 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019160ac_cpp='$CXXCPP $CPPFLAGS'
19161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019165 cat >conftest.$ac_ext <<_ACEOF
19166/* confdefs.h. */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019170/* end confdefs.h. */
19171#include <stdlib.h>
19172int
19173main ()
19174{
19175srand48(0);lrand48();drand48();
19176 ;
19177 return 0;
19178}
19179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019180rm -f conftest.$ac_objext
19181if { (ac_try="$ac_compile"
19182case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019214 ac_cv_func_rand48=yes
19215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019221
Reid Spencera773bd52006-08-04 18:18:08 +000019222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019223 ac_ext=c
19224ac_cpp='$CPP $CPPFLAGS'
19225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019230{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19231echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019232
19233if test "$ac_cv_func_rand48" = "yes" ; then
19234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019235cat >>confdefs.h <<\_ACEOF
19236#define HAVE_RAND48 1
19237_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019238
19239fi
John Criswell0021c312004-02-13 21:57:29 +000019240
19241
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019242{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19243echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19244if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19246else
19247 cat >conftest.$ac_ext <<_ACEOF
19248/* confdefs.h. */
19249_ACEOF
19250cat confdefs.h >>conftest.$ac_ext
19251cat >>conftest.$ac_ext <<_ACEOF
19252/* end confdefs.h. */
19253$ac_includes_default
19254int
19255main ()
19256{
19257#ifndef strerror_s
19258 char *p = (char *) strerror_s;
19259 return !p;
19260#endif
19261
19262 ;
19263 return 0;
19264}
19265_ACEOF
19266rm -f conftest.$ac_objext
19267if { (ac_try="$ac_compile"
19268case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_compile") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19284esac
19285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_cv_have_decl_strerror_s=yes
19301else
19302 echo "$as_me: failed program was:" >&5
19303sed 's/^/| /' conftest.$ac_ext >&5
19304
19305 ac_cv_have_decl_strerror_s=no
19306fi
19307
19308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309fi
19310{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19311echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19312if test $ac_cv_have_decl_strerror_s = yes; then
19313
19314cat >>confdefs.h <<_ACEOF
19315#define HAVE_DECL_STRERROR_S 1
19316_ACEOF
19317
19318
19319else
19320 cat >>confdefs.h <<_ACEOF
19321#define HAVE_DECL_STRERROR_S 0
19322_ACEOF
19323
19324
19325fi
19326
19327
19328
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019329if test "$llvm_cv_os_type" = "MingW" ; then
19330 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19331echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19332if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19334else
19335 ac_check_lib_save_LIBS=$LIBS
19336LIBS="-lgcc $LIBS"
19337cat >conftest.$ac_ext <<_ACEOF
19338/* confdefs.h. */
19339_ACEOF
19340cat confdefs.h >>conftest.$ac_ext
19341cat >>conftest.$ac_ext <<_ACEOF
19342/* end confdefs.h. */
19343
19344/* Override any GCC internal prototype to avoid an error.
19345 Use char because int might match the return type of a GCC
19346 builtin and then its argument prototype would still apply. */
19347#ifdef __cplusplus
19348extern "C"
19349#endif
19350char _alloca ();
19351int
19352main ()
19353{
19354return _alloca ();
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext conftest$ac_exeext
19360if { (ac_try="$ac_link"
19361case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364esac
19365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_link") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377esac
19378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_try") 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_lib_gcc__alloca=yes
19394else
19395 echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_lib_gcc__alloca=no
19399fi
19400
19401rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403LIBS=$ac_check_lib_save_LIBS
19404fi
19405{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19406echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19407if test $ac_cv_lib_gcc__alloca = yes; then
19408
19409cat >>confdefs.h <<\_ACEOF
19410#define HAVE__ALLOCA 1
19411_ACEOF
19412
19413fi
19414
19415 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19416echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19417if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419else
19420 ac_check_lib_save_LIBS=$LIBS
19421LIBS="-lgcc $LIBS"
19422cat >conftest.$ac_ext <<_ACEOF
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428
19429/* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19432#ifdef __cplusplus
19433extern "C"
19434#endif
19435char __alloca ();
19436int
19437main ()
19438{
19439return __alloca ();
19440 ;
19441 return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext conftest$ac_exeext
19445if { (ac_try="$ac_link"
19446case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19449esac
19450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19452 ac_status=$?
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472esac
19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_lib_gcc___alloca=yes
19479else
19480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_cv_lib_gcc___alloca=no
19484fi
19485
19486rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488LIBS=$ac_check_lib_save_LIBS
19489fi
19490{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19491echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19492if test $ac_cv_lib_gcc___alloca = yes; then
19493
19494cat >>confdefs.h <<\_ACEOF
19495#define HAVE___ALLOCA 1
19496_ACEOF
19497
19498fi
19499
19500 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19501echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19502if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504else
19505 ac_check_lib_save_LIBS=$LIBS
19506LIBS="-lgcc $LIBS"
19507cat >conftest.$ac_ext <<_ACEOF
19508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
19513
19514/* Override any GCC internal prototype to avoid an error.
19515 Use char because int might match the return type of a GCC
19516 builtin and then its argument prototype would still apply. */
19517#ifdef __cplusplus
19518extern "C"
19519#endif
19520char __chkstk ();
19521int
19522main ()
19523{
19524return __chkstk ();
19525 ;
19526 return 0;
19527}
19528_ACEOF
19529rm -f conftest.$ac_objext conftest$ac_exeext
19530if { (ac_try="$ac_link"
19531case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19534esac
19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_link") 2>conftest.er1
19537 ac_status=$?
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19544 { (case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19547esac
19548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_try") 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest$ac_exeext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557esac
19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_gcc___chkstk=yes
19564else
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568 ac_cv_lib_gcc___chkstk=no
19569fi
19570
19571rm -f core conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19573LIBS=$ac_check_lib_save_LIBS
19574fi
19575{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19576echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19577if test $ac_cv_lib_gcc___chkstk = yes; then
19578
19579cat >>confdefs.h <<\_ACEOF
19580#define HAVE___CHKSTK 1
19581_ACEOF
19582
19583fi
19584
19585 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19586echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19587if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19589else
19590 ac_check_lib_save_LIBS=$LIBS
19591LIBS="-lgcc $LIBS"
19592cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
19598
19599/* Override any GCC internal prototype to avoid an error.
19600 Use char because int might match the return type of a GCC
19601 builtin and then its argument prototype would still apply. */
19602#ifdef __cplusplus
19603extern "C"
19604#endif
19605char ___chkstk ();
19606int
19607main ()
19608{
19609return ___chkstk ();
19610 ;
19611 return 0;
19612}
19613_ACEOF
19614rm -f conftest.$ac_objext conftest$ac_exeext
19615if { (ac_try="$ac_link"
19616case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_lib_gcc____chkstk=yes
19649else
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_cv_lib_gcc____chkstk=no
19654fi
19655
19656rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19658LIBS=$ac_check_lib_save_LIBS
19659fi
19660{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19661echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19662if test $ac_cv_lib_gcc____chkstk = yes; then
19663
19664cat >>confdefs.h <<\_ACEOF
19665#define HAVE____CHKSTK 1
19666_ACEOF
19667
19668fi
19669
19670
19671 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19672echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19673if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675else
19676 ac_check_lib_save_LIBS=$LIBS
19677LIBS="-lgcc $LIBS"
19678cat >conftest.$ac_ext <<_ACEOF
19679/* confdefs.h. */
19680_ACEOF
19681cat confdefs.h >>conftest.$ac_ext
19682cat >>conftest.$ac_ext <<_ACEOF
19683/* end confdefs.h. */
19684
19685/* Override any GCC internal prototype to avoid an error.
19686 Use char because int might match the return type of a GCC
19687 builtin and then its argument prototype would still apply. */
19688#ifdef __cplusplus
19689extern "C"
19690#endif
19691char __ashldi3 ();
19692int
19693main ()
19694{
19695return __ashldi3 ();
19696 ;
19697 return 0;
19698}
19699_ACEOF
19700rm -f conftest.$ac_objext conftest$ac_exeext
19701if { (ac_try="$ac_link"
19702case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19705esac
19706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707 (eval "$ac_link") 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718esac
19719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_try") 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest$ac_exeext'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_cv_lib_gcc___ashldi3=yes
19735else
19736 echo "$as_me: failed program was:" >&5
19737sed 's/^/| /' conftest.$ac_ext >&5
19738
19739 ac_cv_lib_gcc___ashldi3=no
19740fi
19741
19742rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744LIBS=$ac_check_lib_save_LIBS
19745fi
19746{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19747echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19748if test $ac_cv_lib_gcc___ashldi3 = yes; then
19749
19750cat >>confdefs.h <<\_ACEOF
19751#define HAVE___ASHLDI3 1
19752_ACEOF
19753
19754fi
19755
19756 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19757echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19758if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761 ac_check_lib_save_LIBS=$LIBS
19762LIBS="-lgcc $LIBS"
19763cat >conftest.$ac_ext <<_ACEOF
19764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769
19770/* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19773#ifdef __cplusplus
19774extern "C"
19775#endif
19776char __ashrdi3 ();
19777int
19778main ()
19779{
19780return __ashrdi3 ();
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext conftest$ac_exeext
19786if { (ac_try="$ac_link"
19787case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_link") 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest$ac_exeext'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_cv_lib_gcc___ashrdi3=yes
19820else
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824 ac_cv_lib_gcc___ashrdi3=no
19825fi
19826
19827rm -f core conftest.err conftest.$ac_objext \
19828 conftest$ac_exeext conftest.$ac_ext
19829LIBS=$ac_check_lib_save_LIBS
19830fi
19831{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19832echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19833if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19834
19835cat >>confdefs.h <<\_ACEOF
19836#define HAVE___ASHRDI3 1
19837_ACEOF
19838
19839fi
19840
19841 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19842echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19843if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 ac_check_lib_save_LIBS=$LIBS
19847LIBS="-lgcc $LIBS"
19848cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854
19855/* Override any GCC internal prototype to avoid an error.
19856 Use char because int might match the return type of a GCC
19857 builtin and then its argument prototype would still apply. */
19858#ifdef __cplusplus
19859extern "C"
19860#endif
19861char __divdi3 ();
19862int
19863main ()
19864{
19865return __divdi3 ();
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext conftest$ac_exeext
19871if { (ac_try="$ac_link"
19872case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888esac
19889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest$ac_exeext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 ac_cv_lib_gcc___divdi3=yes
19905else
19906 echo "$as_me: failed program was:" >&5
19907sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 ac_cv_lib_gcc___divdi3=no
19910fi
19911
19912rm -f core conftest.err conftest.$ac_objext \
19913 conftest$ac_exeext conftest.$ac_ext
19914LIBS=$ac_check_lib_save_LIBS
19915fi
19916{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19917echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19918if test $ac_cv_lib_gcc___divdi3 = yes; then
19919
19920cat >>confdefs.h <<\_ACEOF
19921#define HAVE___DIVDI3 1
19922_ACEOF
19923
19924fi
19925
19926 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19927echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19928if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931 ac_check_lib_save_LIBS=$LIBS
19932LIBS="-lgcc $LIBS"
19933cat >conftest.$ac_ext <<_ACEOF
19934/* confdefs.h. */
19935_ACEOF
19936cat confdefs.h >>conftest.$ac_ext
19937cat >>conftest.$ac_ext <<_ACEOF
19938/* end confdefs.h. */
19939
19940/* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19943#ifdef __cplusplus
19944extern "C"
19945#endif
19946char __fixdfdi ();
19947int
19948main ()
19949{
19950return __fixdfdi ();
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext conftest$ac_exeext
19956if { (ac_try="$ac_link"
19957case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_link") 2>conftest.er1
19963 ac_status=$?
19964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970 { (case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973esac
19974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_try") 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest$ac_exeext'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983esac
19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_cv_lib_gcc___fixdfdi=yes
19990else
19991 echo "$as_me: failed program was:" >&5
19992sed 's/^/| /' conftest.$ac_ext >&5
19993
19994 ac_cv_lib_gcc___fixdfdi=no
19995fi
19996
19997rm -f core conftest.err conftest.$ac_objext \
19998 conftest$ac_exeext conftest.$ac_ext
19999LIBS=$ac_check_lib_save_LIBS
20000fi
20001{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20002echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20003if test $ac_cv_lib_gcc___fixdfdi = yes; then
20004
20005cat >>confdefs.h <<\_ACEOF
20006#define HAVE___FIXDFDI 1
20007_ACEOF
20008
20009fi
20010
20011 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20012echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20013if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015else
20016 ac_check_lib_save_LIBS=$LIBS
20017LIBS="-lgcc $LIBS"
20018cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024
20025/* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20028#ifdef __cplusplus
20029extern "C"
20030#endif
20031char __fixsfdi ();
20032int
20033main ()
20034{
20035return __fixsfdi ();
20036 ;
20037 return 0;
20038}
20039_ACEOF
20040rm -f conftest.$ac_objext conftest$ac_exeext
20041if { (ac_try="$ac_link"
20042case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20055 { (case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20058esac
20059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_try") 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_lib_gcc___fixsfdi=yes
20075else
20076 echo "$as_me: failed program was:" >&5
20077sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ac_cv_lib_gcc___fixsfdi=no
20080fi
20081
20082rm -f core conftest.err conftest.$ac_objext \
20083 conftest$ac_exeext conftest.$ac_ext
20084LIBS=$ac_check_lib_save_LIBS
20085fi
20086{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20087echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20088if test $ac_cv_lib_gcc___fixsfdi = yes; then
20089
20090cat >>confdefs.h <<\_ACEOF
20091#define HAVE___FIXSFDI 1
20092_ACEOF
20093
20094fi
20095
20096 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20097echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20098if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100else
20101 ac_check_lib_save_LIBS=$LIBS
20102LIBS="-lgcc $LIBS"
20103cat >conftest.$ac_ext <<_ACEOF
20104/* confdefs.h. */
20105_ACEOF
20106cat confdefs.h >>conftest.$ac_ext
20107cat >>conftest.$ac_ext <<_ACEOF
20108/* end confdefs.h. */
20109
20110/* Override any GCC internal prototype to avoid an error.
20111 Use char because int might match the return type of a GCC
20112 builtin and then its argument prototype would still apply. */
20113#ifdef __cplusplus
20114extern "C"
20115#endif
20116char __floatdidf ();
20117int
20118main ()
20119{
20120return __floatdidf ();
20121 ;
20122 return 0;
20123}
20124_ACEOF
20125rm -f conftest.$ac_objext conftest$ac_exeext
20126if { (ac_try="$ac_link"
20127case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130esac
20131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest$ac_exeext'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153esac
20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_lib_gcc___floatdidf=yes
20160else
20161 echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ac_cv_lib_gcc___floatdidf=no
20165fi
20166
20167rm -f core conftest.err conftest.$ac_objext \
20168 conftest$ac_exeext conftest.$ac_ext
20169LIBS=$ac_check_lib_save_LIBS
20170fi
20171{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20172echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20173if test $ac_cv_lib_gcc___floatdidf = yes; then
20174
20175cat >>confdefs.h <<\_ACEOF
20176#define HAVE___FLOATDIDF 1
20177_ACEOF
20178
20179fi
20180
20181 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20182echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20183if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185else
20186 ac_check_lib_save_LIBS=$LIBS
20187LIBS="-lgcc $LIBS"
20188cat >conftest.$ac_ext <<_ACEOF
20189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194
20195/* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20198#ifdef __cplusplus
20199extern "C"
20200#endif
20201char __lshrdi3 ();
20202int
20203main ()
20204{
20205return __lshrdi3 ();
20206 ;
20207 return 0;
20208}
20209_ACEOF
20210rm -f conftest.$ac_objext conftest$ac_exeext
20211if { (ac_try="$ac_link"
20212case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_link") 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228esac
20229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest$ac_exeext'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238esac
20239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_lib_gcc___lshrdi3=yes
20245else
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ac_cv_lib_gcc___lshrdi3=no
20250fi
20251
20252rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254LIBS=$ac_check_lib_save_LIBS
20255fi
20256{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20257echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20258if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20259
20260cat >>confdefs.h <<\_ACEOF
20261#define HAVE___LSHRDI3 1
20262_ACEOF
20263
20264fi
20265
20266 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20267echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20268if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270else
20271 ac_check_lib_save_LIBS=$LIBS
20272LIBS="-lgcc $LIBS"
20273cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
20279
20280/* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20283#ifdef __cplusplus
20284extern "C"
20285#endif
20286char __moddi3 ();
20287int
20288main ()
20289{
20290return __moddi3 ();
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295rm -f conftest.$ac_objext conftest$ac_exeext
20296if { (ac_try="$ac_link"
20297case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300esac
20301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310 { (case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313esac
20314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_try") 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest$ac_exeext'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323esac
20324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_cv_lib_gcc___moddi3=yes
20330else
20331 echo "$as_me: failed program was:" >&5
20332sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ac_cv_lib_gcc___moddi3=no
20335fi
20336
20337rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339LIBS=$ac_check_lib_save_LIBS
20340fi
20341{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20342echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20343if test $ac_cv_lib_gcc___moddi3 = yes; then
20344
20345cat >>confdefs.h <<\_ACEOF
20346#define HAVE___MODDI3 1
20347_ACEOF
20348
20349fi
20350
20351 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20352echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20353if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355else
20356 ac_check_lib_save_LIBS=$LIBS
20357LIBS="-lgcc $LIBS"
20358cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364
20365/* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20368#ifdef __cplusplus
20369extern "C"
20370#endif
20371char __udivdi3 ();
20372int
20373main ()
20374{
20375return __udivdi3 ();
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext conftest$ac_exeext
20381if { (ac_try="$ac_link"
20382case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385esac
20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398esac
20399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408esac
20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_lib_gcc___udivdi3=yes
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 ac_cv_lib_gcc___udivdi3=no
20420fi
20421
20422rm -f core conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424LIBS=$ac_check_lib_save_LIBS
20425fi
20426{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20427echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20428if test $ac_cv_lib_gcc___udivdi3 = yes; then
20429
20430cat >>confdefs.h <<\_ACEOF
20431#define HAVE___UDIVDI3 1
20432_ACEOF
20433
20434fi
20435
20436 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20437echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20438if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440else
20441 ac_check_lib_save_LIBS=$LIBS
20442LIBS="-lgcc $LIBS"
20443cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h. */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h. */
20449
20450/* Override any GCC internal prototype to avoid an error.
20451 Use char because int might match the return type of a GCC
20452 builtin and then its argument prototype would still apply. */
20453#ifdef __cplusplus
20454extern "C"
20455#endif
20456char __umoddi3 ();
20457int
20458main ()
20459{
20460return __umoddi3 ();
20461 ;
20462 return 0;
20463}
20464_ACEOF
20465rm -f conftest.$ac_objext conftest$ac_exeext
20466if { (ac_try="$ac_link"
20467case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470esac
20471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_link") 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest$ac_exeext'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_cv_lib_gcc___umoddi3=yes
20500else
20501 echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504 ac_cv_lib_gcc___umoddi3=no
20505fi
20506
20507rm -f core conftest.err conftest.$ac_objext \
20508 conftest$ac_exeext conftest.$ac_ext
20509LIBS=$ac_check_lib_save_LIBS
20510fi
20511{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20512echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20513if test $ac_cv_lib_gcc___umoddi3 = yes; then
20514
20515cat >>confdefs.h <<\_ACEOF
20516#define HAVE___UMODDI3 1
20517_ACEOF
20518
20519fi
20520
20521
20522 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20523echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20524if test "${ac_cv_lib_gcc___main+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526else
20527 ac_check_lib_save_LIBS=$LIBS
20528LIBS="-lgcc $LIBS"
20529cat >conftest.$ac_ext <<_ACEOF
20530/* confdefs.h. */
20531_ACEOF
20532cat confdefs.h >>conftest.$ac_ext
20533cat >>conftest.$ac_ext <<_ACEOF
20534/* end confdefs.h. */
20535
20536/* Override any GCC internal prototype to avoid an error.
20537 Use char because int might match the return type of a GCC
20538 builtin and then its argument prototype would still apply. */
20539#ifdef __cplusplus
20540extern "C"
20541#endif
20542char __main ();
20543int
20544main ()
20545{
20546return __main ();
20547 ;
20548 return 0;
20549}
20550_ACEOF
20551rm -f conftest.$ac_objext conftest$ac_exeext
20552if { (ac_try="$ac_link"
20553case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556esac
20557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_link") 2>conftest.er1
20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20566 { (case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569esac
20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_try") 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } &&
20575 { ac_try='test -s conftest$ac_exeext'
20576 { (case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579esac
20580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_try") 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_lib_gcc___main=yes
20586else
20587 echo "$as_me: failed program was:" >&5
20588sed 's/^/| /' conftest.$ac_ext >&5
20589
20590 ac_cv_lib_gcc___main=no
20591fi
20592
20593rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20595LIBS=$ac_check_lib_save_LIBS
20596fi
20597{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20598echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20599if test $ac_cv_lib_gcc___main = yes; then
20600
20601cat >>confdefs.h <<\_ACEOF
20602#define HAVE___MAIN 1
20603_ACEOF
20604
20605fi
20606
20607 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20608echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20609if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611else
20612 ac_check_lib_save_LIBS=$LIBS
20613LIBS="-lgcc $LIBS"
20614cat >conftest.$ac_ext <<_ACEOF
20615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h. */
20620
20621/* Override any GCC internal prototype to avoid an error.
20622 Use char because int might match the return type of a GCC
20623 builtin and then its argument prototype would still apply. */
20624#ifdef __cplusplus
20625extern "C"
20626#endif
20627char __cmpdi2 ();
20628int
20629main ()
20630{
20631return __cmpdi2 ();
20632 ;
20633 return 0;
20634}
20635_ACEOF
20636rm -f conftest.$ac_objext conftest$ac_exeext
20637if { (ac_try="$ac_link"
20638case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641esac
20642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_link") 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654esac
20655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_try") 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest$ac_exeext'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664esac
20665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_lib_gcc___cmpdi2=yes
20671else
20672 echo "$as_me: failed program was:" >&5
20673sed 's/^/| /' conftest.$ac_ext >&5
20674
20675 ac_cv_lib_gcc___cmpdi2=no
20676fi
20677
20678rm -f core conftest.err conftest.$ac_objext \
20679 conftest$ac_exeext conftest.$ac_ext
20680LIBS=$ac_check_lib_save_LIBS
20681fi
20682{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20683echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20684if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20685
20686cat >>confdefs.h <<\_ACEOF
20687#define HAVE___CMPDI2 1
20688_ACEOF
20689
20690fi
20691
20692fi
20693
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020694if test "$llvm_cv_os_type" = "MingW" ; then
20695 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20696echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20697 cat >conftest.$ac_ext <<_ACEOF
20698#include <windows.h>
20699#include <imagehlp.h>
20700extern void foo(PENUMLOADED_MODULES_CALLBACK);
20701extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20702_ACEOF
20703rm -f conftest.$ac_objext
20704if { (ac_try="$ac_compile"
20705case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708esac
20709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_compile") 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721esac
20722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731esac
20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737
20738 { echo "$as_me:$LINENO: result: yes" >&5
20739echo "${ECHO_T}yes" >&6; }
20740 llvm_cv_win32_elmcb_pcstr="PCSTR"
20741
20742else
20743 echo "$as_me: failed program was:" >&5
20744sed 's/^/| /' conftest.$ac_ext >&5
20745
20746
20747 { echo "$as_me:$LINENO: result: no" >&5
20748echo "${ECHO_T}no" >&6; }
20749 llvm_cv_win32_elmcb_pcstr="PSTR"
20750
20751fi
20752
20753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754
20755cat >>confdefs.h <<_ACEOF
20756#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20757_ACEOF
20758
20759fi
20760
Torok Edwin871384f2010-01-26 08:50:50 +000020761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020762{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20763echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20764if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020766else
Reid Spencera773bd52006-08-04 18:18:08 +000020767 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020768ac_cpp='$CXXCPP $CPPFLAGS'
20769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020773 cat >conftest.$ac_ext <<_ACEOF
20774/* confdefs.h. */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020778/* end confdefs.h. */
20779#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020780int
20781main ()
20782{
20783float f; isnan(f);
20784 ;
20785 return 0;
20786}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020787_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020788rm -f conftest.$ac_objext
20789if { (ac_try="$ac_compile"
20790case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793esac
20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_compile") 2>conftest.er1
20796 ac_status=$?
20797 grep -v '^ *+' conftest.er1 >conftest.err
20798 rm -f conftest.er1
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } &&
20802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806esac
20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; } &&
20812 { ac_try='test -s conftest.$ac_objext'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816esac
20817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020822 ac_cv_func_isnan_in_math_h=yes
20823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020829
Reid Spencera773bd52006-08-04 18:18:08 +000020830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020831 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020832ac_cpp='$CPP $CPPFLAGS'
20833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835ac_compiler_gnu=$ac_cv_c_compiler_gnu
20836
20837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020838{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20839echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020840
20841
20842if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020844cat >>confdefs.h <<\_ACEOF
20845#define HAVE_ISNAN_IN_MATH_H 1
20846_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020847
Reid Spencerabec8f92004-10-27 23:03:44 +000020848fi
20849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20851echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20852if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020854else
Reid Spencera773bd52006-08-04 18:18:08 +000020855 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020856ac_cpp='$CXXCPP $CPPFLAGS'
20857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020861 cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h. */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020866/* end confdefs.h. */
20867#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020868int
20869main ()
20870{
20871float f; isnan(f);
20872 ;
20873 return 0;
20874}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020875_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876rm -f conftest.$ac_objext
20877if { (ac_try="$ac_compile"
20878case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881esac
20882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20891 { (case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894esac
20895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_try") 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904esac
20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_try") 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020910 ac_cv_func_isnan_in_cmath=yes
20911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912 echo "$as_me: failed program was:" >&5
20913sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020917
Reid Spencera773bd52006-08-04 18:18:08 +000020918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020919 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020920ac_cpp='$CPP $CPPFLAGS'
20921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020926{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20927echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020928
20929if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020931cat >>confdefs.h <<\_ACEOF
20932#define HAVE_ISNAN_IN_CMATH 1
20933_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020934
Reid Spencerabec8f92004-10-27 23:03:44 +000020935fi
20936
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20938echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20939if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020941else
Reid Spencera773bd52006-08-04 18:18:08 +000020942 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020943ac_cpp='$CXXCPP $CPPFLAGS'
20944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020948 cat >conftest.$ac_ext <<_ACEOF
20949/* confdefs.h. */
20950_ACEOF
20951cat confdefs.h >>conftest.$ac_ext
20952cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020953/* end confdefs.h. */
20954#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020955int
20956main ()
20957{
20958float f; std::isnan(f);
20959 ;
20960 return 0;
20961}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020962_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020963rm -f conftest.$ac_objext
20964if { (ac_try="$ac_compile"
20965case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20968esac
20969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20971 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981esac
20982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020997 ac_cv_func_std_isnan_in_cmath=yes
20998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999 echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004
Reid Spencera773bd52006-08-04 18:18:08 +000021005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021006 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021007ac_cpp='$CPP $CPPFLAGS'
21008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021013{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21014echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021015
21016if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021018cat >>confdefs.h <<\_ACEOF
21019#define HAVE_STD_ISNAN_IN_CMATH 1
21020_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021021
Reid Spencerabec8f92004-10-27 23:03:44 +000021022fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021023
21024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21026echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21027if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021029else
Reid Spencera773bd52006-08-04 18:18:08 +000021030 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021031ac_cpp='$CXXCPP $CPPFLAGS'
21032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036 cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021041/* end confdefs.h. */
21042#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021043int
21044main ()
21045{
21046float f; isinf(f);
21047 ;
21048 return 0;
21049}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021050_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021051rm -f conftest.$ac_objext
21052if { (ac_try="$ac_compile"
21053case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056esac
21057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21066 { (case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21069esac
21070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_try") 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079esac
21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021085 ac_cv_func_isinf_in_math_h=yes
21086else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092
Reid Spencera773bd52006-08-04 18:18:08 +000021093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021094 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021095ac_cpp='$CPP $CPPFLAGS'
21096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021101{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21102echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021103
21104if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021106cat >>confdefs.h <<\_ACEOF
21107#define HAVE_ISINF_IN_MATH_H 1
21108_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021109
Reid Spencerabec8f92004-10-27 23:03:44 +000021110fi
21111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021112{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21113echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21114if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021116else
Reid Spencera773bd52006-08-04 18:18:08 +000021117 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021118ac_cpp='$CXXCPP $CPPFLAGS'
21119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123 cat >conftest.$ac_ext <<_ACEOF
21124/* confdefs.h. */
21125_ACEOF
21126cat confdefs.h >>conftest.$ac_ext
21127cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021128/* end confdefs.h. */
21129#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021130int
21131main ()
21132{
21133float f; isinf(f);
21134 ;
21135 return 0;
21136}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021138rm -f conftest.$ac_objext
21139if { (ac_try="$ac_compile"
21140case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143esac
21144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
21152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21153 { (case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21156esac
21157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_try") 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest.$ac_objext'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166esac
21167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021172 ac_cv_func_isinf_in_cmath=yes
21173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179
Reid Spencera773bd52006-08-04 18:18:08 +000021180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021181 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021182ac_cpp='$CPP $CPPFLAGS'
21183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186
21187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021188{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21189echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021190
21191if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193cat >>confdefs.h <<\_ACEOF
21194#define HAVE_ISINF_IN_CMATH 1
21195_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021196
Reid Spencerabec8f92004-10-27 23:03:44 +000021197fi
21198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21200echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21201if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021203else
Reid Spencera773bd52006-08-04 18:18:08 +000021204 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021205ac_cpp='$CXXCPP $CPPFLAGS'
21206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021210 cat >conftest.$ac_ext <<_ACEOF
21211/* confdefs.h. */
21212_ACEOF
21213cat confdefs.h >>conftest.$ac_ext
21214cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021215/* end confdefs.h. */
21216#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021217int
21218main ()
21219{
21220float f; std::isinf(f)}
21221 ;
21222 return 0;
21223}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225rm -f conftest.$ac_objext
21226if { (ac_try="$ac_compile"
21227case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230esac
21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
21239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21240 { (case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21243esac
21244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_try") 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest.$ac_objext'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253esac
21254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021259 ac_cv_func_std_isinf_in_cmath=yes
21260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261 echo "$as_me: failed program was:" >&5
21262sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266
Reid Spencera773bd52006-08-04 18:18:08 +000021267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021268 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021269ac_cpp='$CPP $CPPFLAGS'
21270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272ac_compiler_gnu=$ac_cv_c_compiler_gnu
21273
21274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21276echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021277
21278if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280cat >>confdefs.h <<\_ACEOF
21281#define HAVE_STD_ISINF_IN_CMATH 1
21282_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021283
Reid Spencerabec8f92004-10-27 23:03:44 +000021284fi
21285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21287echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21288if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021290else
Reid Spencera773bd52006-08-04 18:18:08 +000021291 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021292ac_cpp='$CXXCPP $CPPFLAGS'
21293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 cat >conftest.$ac_ext <<_ACEOF
21298/* confdefs.h. */
21299_ACEOF
21300cat confdefs.h >>conftest.$ac_ext
21301cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021302/* end confdefs.h. */
21303#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021304int
21305main ()
21306{
21307float f; finite(f);
21308 ;
21309 return 0;
21310}
Brian Gaeked59a6472004-07-21 03:33:58 +000021311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312rm -f conftest.$ac_objext
21313if { (ac_try="$ac_compile"
21314case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317esac
21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21320 ac_status=$?
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
21326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330esac
21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest.$ac_objext'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340esac
21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021346 ac_cv_func_finite_in_ieeefp_h=yes
21347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348 echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
21351 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021353
Reid Spencera773bd52006-08-04 18:18:08 +000021354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021355 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021356ac_cpp='$CPP $CPPFLAGS'
21357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021362{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21363echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021364
Brian Gaeke6802b552004-10-28 05:06:45 +000021365if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021367cat >>confdefs.h <<\_ACEOF
21368#define HAVE_FINITE_IN_IEEEFP_H 1
21369_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021370
Reid Spencerabec8f92004-10-27 23:03:44 +000021371fi
21372
21373
21374
Reid Spencer30fe5262007-01-20 07:48:49 +000021375if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021376
21377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378for ac_header in stdlib.h unistd.h
21379do
21380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386fi
21387ac_res=`eval echo '${'$as_ac_Header'}'`
21388 { echo "$as_me:$LINENO: result: $ac_res" >&5
21389echo "${ECHO_T}$ac_res" >&6; }
21390else
21391 # Is the header compilable?
21392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21394cat >conftest.$ac_ext <<_ACEOF
21395/* confdefs.h. */
21396_ACEOF
21397cat confdefs.h >>conftest.$ac_ext
21398cat >>conftest.$ac_ext <<_ACEOF
21399/* end confdefs.h. */
21400$ac_includes_default
21401#include <$ac_header>
21402_ACEOF
21403rm -f conftest.$ac_objext
21404if { (ac_try="$ac_compile"
21405case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21408esac
21409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_compile") 2>conftest.er1
21411 ac_status=$?
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21418 { (case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421esac
21422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_try") 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
21428 { (case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431esac
21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_try") 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }; then
21437 ac_header_compiler=yes
21438else
21439 echo "$as_me: failed program was:" >&5
21440sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021442 ac_header_compiler=no
21443fi
21444
21445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21447echo "${ECHO_T}$ac_header_compiler" >&6; }
21448
21449# Is the header present?
21450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21452cat >conftest.$ac_ext <<_ACEOF
21453/* confdefs.h. */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h. */
21458#include <$ac_header>
21459_ACEOF
21460if { (ac_try="$ac_cpp conftest.$ac_ext"
21461case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464esac
21465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } >/dev/null; then
21473 if test -s conftest.err; then
21474 ac_cpp_err=$ac_c_preproc_warn_flag
21475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21476 else
21477 ac_cpp_err=
21478 fi
21479else
21480 ac_cpp_err=yes
21481fi
21482if test -z "$ac_cpp_err"; then
21483 ac_header_preproc=yes
21484else
21485 echo "$as_me: failed program was:" >&5
21486sed 's/^/| /' conftest.$ac_ext >&5
21487
21488 ac_header_preproc=no
21489fi
21490
21491rm -f conftest.err conftest.$ac_ext
21492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493echo "${ECHO_T}$ac_header_preproc" >&6; }
21494
21495# So? What about this header?
21496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21497 yes:no: )
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21502 ac_header_preproc=yes
21503 ;;
21504 no:yes:* )
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21517 ( cat <<\_ASBOX
21518## ----------------------------------- ##
21519## Report this to llvmbugs@cs.uiuc.edu ##
21520## ----------------------------------- ##
21521_ASBOX
21522 ) | sed "s/^/$as_me: WARNING: /" >&2
21523 ;;
21524esac
21525{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21529else
21530 eval "$as_ac_Header=\$ac_header_preproc"
21531fi
21532ac_res=`eval echo '${'$as_ac_Header'}'`
21533 { echo "$as_me:$LINENO: result: $ac_res" >&5
21534echo "${ECHO_T}$ac_res" >&6; }
21535
21536fi
21537if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021538 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021540_ACEOF
21541
21542fi
21543
21544done
21545
21546
21547for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548do
21549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555 cat >conftest.$ac_ext <<_ACEOF
21556/* confdefs.h. */
21557_ACEOF
21558cat confdefs.h >>conftest.$ac_ext
21559cat >>conftest.$ac_ext <<_ACEOF
21560/* end confdefs.h. */
21561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21563#define $ac_func innocuous_$ac_func
21564
21565/* System header to define __stub macros and hopefully few prototypes,
21566 which can conflict with char $ac_func (); below.
21567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21568 <limits.h> exists even on freestanding compilers. */
21569
21570#ifdef __STDC__
21571# include <limits.h>
21572#else
21573# include <assert.h>
21574#endif
21575
21576#undef $ac_func
21577
21578/* Override any GCC internal prototype to avoid an error.
21579 Use char because int might match the return type of a GCC
21580 builtin and then its argument prototype would still apply. */
21581#ifdef __cplusplus
21582extern "C"
21583#endif
21584char $ac_func ();
21585/* The GNU C library defines this for functions which it implements
21586 to always fail with ENOSYS. Some functions are actually named
21587 something starting with __ and the normal name is an alias. */
21588#if defined __stub_$ac_func || defined __stub___$ac_func
21589choke me
21590#endif
21591
21592int
21593main ()
21594{
21595return $ac_func ();
21596 ;
21597 return 0;
21598}
21599_ACEOF
21600rm -f conftest.$ac_objext conftest$ac_exeext
21601if { (ac_try="$ac_link"
21602case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21605esac
21606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_link") 2>conftest.er1
21608 ac_status=$?
21609 grep -v '^ *+' conftest.er1 >conftest.err
21610 rm -f conftest.er1
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21615 { (case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21618esac
21619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_try") 2>&5
21621 ac_status=$?
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; } &&
21624 { ac_try='test -s conftest$ac_exeext'
21625 { (case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21628esac
21629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_try") 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 eval "$as_ac_var=yes"
21635else
21636 echo "$as_me: failed program was:" >&5
21637sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 eval "$as_ac_var=no"
21640fi
21641
21642rm -f core conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21644fi
21645ac_res=`eval echo '${'$as_ac_var'}'`
21646 { echo "$as_me:$LINENO: result: $ac_res" >&5
21647echo "${ECHO_T}$ac_res" >&6; }
21648if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021651_ACEOF
21652
21653fi
21654done
21655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021656{ echo "$as_me:$LINENO: checking for working mmap" >&5
21657echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21658if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021662 ac_cv_func_mmap_fixed_mapped=no
21663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 cat >conftest.$ac_ext <<_ACEOF
21665/* confdefs.h. */
21666_ACEOF
21667cat confdefs.h >>conftest.$ac_ext
21668cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021669/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021670$ac_includes_default
21671/* malloc might have been renamed as rpl_malloc. */
21672#undef malloc
21673
21674/* Thanks to Mike Haertel and Jim Avera for this test.
21675 Here is a matrix of mmap possibilities:
21676 mmap private not fixed
21677 mmap private fixed at somewhere currently unmapped
21678 mmap private fixed at somewhere already mapped
21679 mmap shared not fixed
21680 mmap shared fixed at somewhere currently unmapped
21681 mmap shared fixed at somewhere already mapped
21682 For private mappings, we should verify that changes cannot be read()
21683 back from the file, nor mmap's back from the file at a different
21684 address. (There have been systems where private was not correctly
21685 implemented like the infamous i386 svr4.0, and systems where the
21686 VM page cache was not coherent with the file system buffer cache
21687 like early versions of FreeBSD and possibly contemporary NetBSD.)
21688 For shared mappings, we should conversely verify that changes get
21689 propagated back to all the places they're supposed to be.
21690
21691 Grep wants private fixed already mapped.
21692 The main things grep needs to know about mmap are:
21693 * does it exist and is it safe to write into the mmap'd area
21694 * how to use it (BSD variants) */
21695
21696#include <fcntl.h>
21697#include <sys/mman.h>
21698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021699#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021700char *malloc ();
21701#endif
21702
21703/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021704#if !HAVE_GETPAGESIZE
21705/* Assume that all systems that can run configure have sys/param.h. */
21706# if !HAVE_SYS_PARAM_H
21707# define HAVE_SYS_PARAM_H 1
21708# endif
21709
John Criswell7a73b802003-06-30 21:59:07 +000021710# ifdef _SC_PAGESIZE
21711# define getpagesize() sysconf(_SC_PAGESIZE)
21712# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021714# include <sys/param.h>
21715# ifdef EXEC_PAGESIZE
21716# define getpagesize() EXEC_PAGESIZE
21717# else /* no EXEC_PAGESIZE */
21718# ifdef NBPG
21719# define getpagesize() NBPG * CLSIZE
21720# ifndef CLSIZE
21721# define CLSIZE 1
21722# endif /* no CLSIZE */
21723# else /* no NBPG */
21724# ifdef NBPC
21725# define getpagesize() NBPC
21726# else /* no NBPC */
21727# ifdef PAGESIZE
21728# define getpagesize() PAGESIZE
21729# endif /* PAGESIZE */
21730# endif /* no NBPC */
21731# endif /* no NBPG */
21732# endif /* no EXEC_PAGESIZE */
21733# else /* no HAVE_SYS_PARAM_H */
21734# define getpagesize() 8192 /* punt totally */
21735# endif /* no HAVE_SYS_PARAM_H */
21736# endif /* no _SC_PAGESIZE */
21737
21738#endif /* no HAVE_GETPAGESIZE */
21739
21740int
21741main ()
21742{
21743 char *data, *data2, *data3;
21744 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021746
21747 pagesize = getpagesize ();
21748
21749 /* First, make a file with some known garbage in it. */
21750 data = (char *) malloc (pagesize);
21751 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021752 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021753 for (i = 0; i < pagesize; ++i)
21754 *(data + i) = rand ();
21755 umask (0);
21756 fd = creat ("conftest.mmap", 0600);
21757 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021759 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021760 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021761 close (fd);
21762
21763 /* Next, try to mmap the file at a fixed address which already has
21764 something else allocated at it. If we can, also make sure that
21765 we see the same garbage. */
21766 fd = open ("conftest.mmap", O_RDWR);
21767 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768 return 1;
21769 data2 = (char *) malloc (2 * pagesize);
21770 if (!data2)
21771 return 1;
21772 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021773 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021774 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021776 for (i = 0; i < pagesize; ++i)
21777 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021779
21780 /* Finally, make sure that changes to the mapped area do not
21781 percolate back to the file as seen by read(). (This is a bug on
21782 some variants of i386 svr4.0.) */
21783 for (i = 0; i < pagesize; ++i)
21784 *(data2 + i) = *(data2 + i) + 1;
21785 data3 = (char *) malloc (pagesize);
21786 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021787 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021788 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021789 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021790 for (i = 0; i < pagesize; ++i)
21791 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021793 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021794 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021795}
21796_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797rm -f conftest$ac_exeext
21798if { (ac_try="$ac_link"
21799case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802esac
21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808 { (case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21811esac
21812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_try") 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021817 ac_cv_func_mmap_fixed_mapped=yes
21818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021819 echo "$as_me: program exited with status $ac_status" >&5
21820echo "$as_me: failed program was:" >&5
21821sed 's/^/| /' conftest.$ac_ext >&5
21822
21823( exit $ac_status )
21824ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021826rm -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 +000021827fi
Reid Spencera773bd52006-08-04 18:18:08 +000021828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829
John Criswell7a73b802003-06-30 21:59:07 +000021830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21832echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021833if test $ac_cv_func_mmap_fixed_mapped = yes; then
21834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835cat >>confdefs.h <<\_ACEOF
21836#define HAVE_MMAP 1
21837_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021838
21839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021840rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21843echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21844if test "${ac_cv_func_mmap_file+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021846else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021847 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021848ac_cpp='$CPP $CPPFLAGS'
21849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851ac_compiler_gnu=$ac_cv_c_compiler_gnu
21852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021853 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021854 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858 /* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021863
John Criswell7a73b802003-06-30 21:59:07 +000021864#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021865#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021866#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021867
21868int
21869main ()
21870{
John Criswell7a73b802003-06-30 21:59:07 +000021871
21872 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021873 fd = creat ("foo",0777);
21874 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21875 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021876 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021877 ;
21878 return 0;
21879}
John Criswell7a73b802003-06-30 21:59:07 +000021880_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881rm -f conftest$ac_exeext
21882if { (ac_try="$ac_link"
21883case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21886esac
21887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_link") 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21892 { (case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895esac
21896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_try") 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021901 ac_cv_func_mmap_file=yes
21902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903 echo "$as_me: program exited with status $ac_status" >&5
21904echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907( exit $ac_status )
21908ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910rm -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 +000021911fi
Reid Spencera773bd52006-08-04 18:18:08 +000021912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913
John Criswell7a73b802003-06-30 21:59:07 +000021914 ac_ext=c
21915ac_cpp='$CPP $CPPFLAGS'
21916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21918ac_compiler_gnu=$ac_cv_c_compiler_gnu
21919
21920
21921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21923echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021924if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926cat >>confdefs.h <<\_ACEOF
21927#define HAVE_MMAP_FILE
21928_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021929
21930 MMAP_FILE=yes
21931
21932fi
21933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021934 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21935echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21936if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021938else
Reid Spencer582a23c2004-12-29 07:07:57 +000021939 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021940 ac_cv_need_dev_zero_for_mmap=yes
21941 else
21942 ac_cv_need_dev_zero_for_mmap=no
21943 fi
21944
21945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21947echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021948if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950cat >>confdefs.h <<\_ACEOF
21951#define NEED_DEV_ZERO_FOR_MMAP 1
21952_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021953
21954fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955
Reid Spencer30fe5262007-01-20 07:48:49 +000021956 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21957 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21959echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021960 fi
21961 if test "$ac_cv_func_mmap_file" = "no"
21962 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21964echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021965 fi
John Criswellb13092b2003-07-22 21:00:24 +000021966fi
John Criswell7a73b802003-06-30 21:59:07 +000021967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21969echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021970ac_ext=cpp
21971ac_cpp='$CXXCPP $CPPFLAGS'
21972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021976cat >conftest.$ac_ext <<_ACEOF
21977/* confdefs.h. */
21978_ACEOF
21979cat confdefs.h >>conftest.$ac_ext
21980cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021981/* end confdefs.h. */
21982int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021983 volatile unsigned long val = 1;
21984 __sync_synchronize();
21985 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021986 __sync_add_and_fetch(&val, 1);
21987 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021988 return 0;
21989 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021990
21991_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992rm -f conftest.$ac_objext conftest$ac_exeext
21993if { (ac_try="$ac_link"
21994case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997esac
21998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } &&
22006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22007 { (case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010esac
22011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_try") 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; } &&
22016 { ac_try='test -s conftest$ac_exeext'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022026 ac_ext=c
22027ac_cpp='$CPP $CPPFLAGS'
22028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030ac_compiler_gnu=$ac_cv_c_compiler_gnu
22031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022032 { echo "$as_me:$LINENO: result: yes" >&5
22033echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035cat >>confdefs.h <<\_ACEOF
22036#define LLVM_MULTITHREADED 1
22037_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022038
Owen Andersond4b272b2009-05-18 23:58:51 +000022039else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022040 echo "$as_me: failed program was:" >&5
22041sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022043 { echo "$as_me:$LINENO: result: no" >&5
22044echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046cat >>confdefs.h <<\_ACEOF
22047#define LLVM_MULTITHREADED 0
22048_ACEOF
22049
22050 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22051echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022053
Owen Andersond4b272b2009-05-18 23:58:51 +000022054rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022056
John Criswell7a73b802003-06-30 21:59:07 +000022057
Nick Lewycky4372e692009-09-29 06:18:23 +000022058if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22060echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22061if test "${llvm_cv_linux_mixed+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022063else
22064 ac_ext=c
22065ac_cpp='$CPP $CPPFLAGS'
22066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068ac_compiler_gnu=$ac_cv_c_compiler_gnu
22069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022070 cat >conftest.$ac_ext <<_ACEOF
22071/* confdefs.h. */
22072_ACEOF
22073cat confdefs.h >>conftest.$ac_ext
22074cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022075/* end confdefs.h. */
22076#ifndef __x86_64__
22077 error: Not x86-64 even if uname says so!
22078 #endif
22079
22080int
22081main ()
22082{
22083
22084 ;
22085 return 0;
22086}
22087_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022088rm -f conftest.$ac_objext
22089if { (ac_try="$ac_compile"
22090case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093esac
22094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_compile") 2>conftest.er1
22096 ac_status=$?
22097 grep -v '^ *+' conftest.er1 >conftest.err
22098 rm -f conftest.er1
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } &&
22102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106esac
22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22116esac
22117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022122 llvm_cv_linux_mixed=no
22123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022124 echo "$as_me: failed program was:" >&5
22125sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022128fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022129
Nick Lewycky4372e692009-09-29 06:18:23 +000022130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 ac_ext=c
22132ac_cpp='$CPP $CPPFLAGS'
22133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22135ac_compiler_gnu=$ac_cv_c_compiler_gnu
22136
22137
22138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22140echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022141
22142 if test "$llvm_cv_linux_mixed" = "yes"; then
22143 llvm_cv_target_arch="x86"
22144 ARCH="x86"
22145 fi
22146fi
22147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022148
Reid Spencer9372f152007-07-30 20:13:24 +000022149for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022150do
22151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22156else
22157 cat >conftest.$ac_ext <<_ACEOF
22158/* confdefs.h. */
22159_ACEOF
22160cat confdefs.h >>conftest.$ac_ext
22161cat >>conftest.$ac_ext <<_ACEOF
22162/* end confdefs.h. */
22163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22165#define $ac_func innocuous_$ac_func
22166
22167/* System header to define __stub macros and hopefully few prototypes,
22168 which can conflict with char $ac_func (); below.
22169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170 <limits.h> exists even on freestanding compilers. */
22171
22172#ifdef __STDC__
22173# include <limits.h>
22174#else
22175# include <assert.h>
22176#endif
22177
22178#undef $ac_func
22179
22180/* Override any GCC internal prototype to avoid an error.
22181 Use char because int might match the return type of a GCC
22182 builtin and then its argument prototype would still apply. */
22183#ifdef __cplusplus
22184extern "C"
22185#endif
22186char $ac_func ();
22187/* The GNU C library defines this for functions which it implements
22188 to always fail with ENOSYS. Some functions are actually named
22189 something starting with __ and the normal name is an alias. */
22190#if defined __stub_$ac_func || defined __stub___$ac_func
22191choke me
22192#endif
22193
22194int
22195main ()
22196{
22197return $ac_func ();
22198 ;
22199 return 0;
22200}
22201_ACEOF
22202rm -f conftest.$ac_objext conftest$ac_exeext
22203if { (ac_try="$ac_link"
22204case "(($ac_try" in
22205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206 *) ac_try_echo=$ac_try;;
22207esac
22208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209 (eval "$ac_link") 2>conftest.er1
22210 ac_status=$?
22211 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1
22213 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } &&
22216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22217 { (case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220esac
22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_try") 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest$ac_exeext'
22227 { (case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230esac
22231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_try") 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 eval "$as_ac_var=yes"
22237else
22238 echo "$as_me: failed program was:" >&5
22239sed 's/^/| /' conftest.$ac_ext >&5
22240
22241 eval "$as_ac_var=no"
22242fi
22243
22244rm -f core conftest.err conftest.$ac_objext \
22245 conftest$ac_exeext conftest.$ac_ext
22246fi
22247ac_res=`eval echo '${'$as_ac_var'}'`
22248 { echo "$as_me:$LINENO: result: $ac_res" >&5
22249echo "${ECHO_T}$ac_res" >&6; }
22250if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022251 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022253_ACEOF
22254
22255fi
22256done
22257
22258
Tobias Grossera84b5672010-11-10 16:31:34 +000022259{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22260echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22261if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263else
22264 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022265if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022266 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022267 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022268 if test $? -eq 0 ; then
22269 llvm_cv_llvmgcc_dragonegg="yes"
22270 fi
22271 rm conftest.c
22272fi
22273fi
22274{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22275echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22276
22277if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22278 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022279 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022280else
22281 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022282 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022283fi
22284
22285
22286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22288echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22289if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022291else
22292 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022293if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022294 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022295 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022296 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022297 if test $? -eq 0 ; then
22298 llvm_cv_llvmgcc_sanity="yes"
22299 fi
22300 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022301fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22304echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022305
22306if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022307 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22308echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022309 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022310 LLVMCC1=$llvmcc1path
22311
Duncan Sands1526b192010-11-25 17:47:42 +000022312 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022313 LLVMCC1PLUS=$llvmcc1pluspath
22314
Reid Spencer502935f2004-12-22 05:56:56 +000022315 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22316 LLVMGCCDIR=$llvmgccdir
22317
Duncan Sands1526b192010-11-25 17:47:42 +000022318 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022319 LLVMGCC_LANGS=$llvmgcclangs
22320
Tobias Grossera84b5672010-11-10 16:31:34 +000022321 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22322
22323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324 { echo "$as_me:$LINENO: result: ok" >&5
22325echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022326fi
22327
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022328SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022329
22330
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022331SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22332
22333
Reid Spencere9de0912004-08-20 09:03:57 +000022334# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022335# information into substitutions that will end up in Makefile.config.in
22336# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022337if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022338 prefix="/usr/local"
22339fi
Reid Spencere9de0912004-08-20 09:03:57 +000022340eval LLVM_PREFIX="${prefix}";
22341eval LLVM_BINDIR="${prefix}/bin";
22342eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022343eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022344eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022345eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022346eval LLVM_INCLUDEDIR="${prefix}/include";
22347eval LLVM_INFODIR="${prefix}/info";
22348eval LLVM_MANDIR="${prefix}/man";
22349LLVM_CONFIGTIME=`date`
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022361# Place the various directores into the config.h file as #defines so that we
22362# can know about the installation paths within LLVM.
22363
Reid Spencere9de0912004-08-20 09:03:57 +000022364cat >>confdefs.h <<_ACEOF
22365#define LLVM_PREFIX "$LLVM_PREFIX"
22366_ACEOF
22367
22368
22369cat >>confdefs.h <<_ACEOF
22370#define LLVM_BINDIR "$LLVM_BINDIR"
22371_ACEOF
22372
22373
22374cat >>confdefs.h <<_ACEOF
22375#define LLVM_LIBDIR "$LLVM_LIBDIR"
22376_ACEOF
22377
22378
22379cat >>confdefs.h <<_ACEOF
22380#define LLVM_DATADIR "$LLVM_DATADIR"
22381_ACEOF
22382
22383
22384cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022385#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022386_ACEOF
22387
22388
22389cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022390#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022391_ACEOF
22392
22393
22394cat >>confdefs.h <<_ACEOF
22395#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22396_ACEOF
22397
22398
22399cat >>confdefs.h <<_ACEOF
22400#define LLVM_INFODIR "$LLVM_INFODIR"
22401_ACEOF
22402
22403
22404cat >>confdefs.h <<_ACEOF
22405#define LLVM_MANDIR "$LLVM_MANDIR"
22406_ACEOF
22407
22408
22409cat >>confdefs.h <<_ACEOF
22410#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22411_ACEOF
22412
22413
Eric Christopher790e11c2007-12-01 00:34:39 +000022414cat >>confdefs.h <<_ACEOF
22415#define LLVM_HOSTTRIPLE "$host"
22416_ACEOF
22417
22418
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022419# Determine which bindings to build.
22420if test "$BINDINGS_TO_BUILD" = auto ; then
22421 BINDINGS_TO_BUILD=""
22422 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22423 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22424 fi
22425fi
22426BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22427
22428
22429# This isn't really configurey, but it avoids having to repeat the list in
22430# other files.
22431ALL_BINDINGS=ocaml
22432
22433
Gordon Henriksenf0915682007-10-02 16:42:22 +000022434# Do any work necessary to ensure that bindings have what they need.
22435binding_prereqs_failed=0
22436for a_binding in $BINDINGS_TO_BUILD ; do
22437 case "$a_binding" in
22438 ocaml)
22439 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22441echo "$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 +000022442 binding_prereqs_failed=1
22443 fi
22444 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22446echo "$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 +000022447 binding_prereqs_failed=1
22448 fi
22449 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22451echo "$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 +000022452 fi
22453 if test "x$with_ocaml_libdir" != xauto ; then
22454 OCAML_LIBDIR=$with_ocaml_libdir
22455
22456 else
22457 ocaml_stdlib="`"$OCAMLC" -where`"
22458 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22459 then
22460 # ocaml stdlib is beneath our prefix; use stdlib
22461 OCAML_LIBDIR=$ocaml_stdlib
22462
22463 else
22464 # ocaml stdlib is outside our prefix; use libdir/ocaml
22465 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22466
22467 fi
22468 fi
22469 ;;
22470 esac
22471done
22472if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022473 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22474echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22475 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022476fi
22477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022478{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22479echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22480if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022482else
22483 ac_ext=cpp
22484ac_cpp='$CXXCPP $CPPFLAGS'
22485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22488
22489 oldcxxflags="$CXXFLAGS"
22490 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022491 cat >conftest.$ac_ext <<_ACEOF
22492/* confdefs.h. */
22493_ACEOF
22494cat confdefs.h >>conftest.$ac_ext
22495cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022496/* end confdefs.h. */
22497
22498int
22499main ()
22500{
22501
22502 ;
22503 return 0;
22504}
22505_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506rm -f conftest.$ac_objext
22507if { (ac_try="$ac_compile"
22508case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511esac
22512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_compile") 2>conftest.er1
22514 ac_status=$?
22515 grep -v '^ *+' conftest.er1 >conftest.err
22516 rm -f conftest.er1
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } &&
22520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22521 { (case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22524esac
22525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_try") 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest.$ac_objext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534esac
22535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022540 llvm_cv_cxx_visibility_inlines_hidden=yes
22541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022542 echo "$as_me: failed program was:" >&5
22543sed 's/^/| /' conftest.$ac_ext >&5
22544
22545 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022547
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 CXXFLAGS="$oldcxxflags"
22550 ac_ext=c
22551ac_cpp='$CPP $CPPFLAGS'
22552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22554ac_compiler_gnu=$ac_cv_c_compiler_gnu
22555
22556
22557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022558{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22559echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022560if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22561 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22562
22563else
22564 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22565
22566fi
22567
Gordon Henriksenf0915682007-10-02 16:42:22 +000022568
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022569if test "$llvm_cv_link_use_r" = "yes" ; then
22570 RPATH="-Wl,-R"
22571else
22572 RPATH="-Wl,-rpath"
22573fi
22574
22575
22576if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22577 RDYNAMIC="-Wl,-export-dynamic"
22578else
22579 RDYNAMIC=""
22580fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022581
22582
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022583
Eric Christophera1cba682010-08-08 02:44:25 +000022584ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022585
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022586
22587
22588
22589
22590
Douglas Gregor1555a232009-06-16 20:12:29 +000022591ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22592
22593ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22594
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022595ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22596
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022597ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22598
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022599ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022600
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022601
Reid Spencera773bd52006-08-04 18:18:08 +000022602ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022603
22604
Reid Spencerea949cf2006-08-16 00:45:38 +000022605ac_config_files="$ac_config_files llvm.spec"
22606
22607
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022608ac_config_files="$ac_config_files docs/doxygen.cfg"
22609
22610if test -f ${srcdir}/tools/clang/README.txt; then
22611 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22612
22613fi
22614
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022615ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022616
22617
Reid Spencera773bd52006-08-04 18:18:08 +000022618ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022619
22620
Reid Spencera773bd52006-08-04 18:18:08 +000022621ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022622
Reid Spencera773bd52006-08-04 18:18:08 +000022623ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022624
22625
Reid Spencera773bd52006-08-04 18:18:08 +000022626ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022627
22628
Reid Spencera773bd52006-08-04 18:18:08 +000022629ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022630
22631
Reid Spencera773bd52006-08-04 18:18:08 +000022632ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022633
22634
Reid Spencer8b2e1412006-11-17 03:32:33 +000022635ac_config_commands="$ac_config_commands runtime/Makefile"
22636
22637
Reid Spencera773bd52006-08-04 18:18:08 +000022638ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022639
22640
Reid Spencera773bd52006-08-04 18:18:08 +000022641ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022642
22643
Bill Wendlingf24eb392009-01-04 23:12:30 +000022644ac_config_commands="$ac_config_commands unittests/Makefile"
22645
22646
Reid Spencera773bd52006-08-04 18:18:08 +000022647ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022648
22649
Reid Spencera773bd52006-08-04 18:18:08 +000022650ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022651
22652
Reid Spencera773bd52006-08-04 18:18:08 +000022653ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022654
22655
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022656ac_config_commands="$ac_config_commands bindings/Makefile"
22657
22658
22659ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22660
22661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022662
John Criswell7a73b802003-06-30 21:59:07 +000022663cat >confcache <<\_ACEOF
22664# This file is a shell script that caches the results of configure
22665# tests run on this system so they can be shared between configure
22666# scripts and configure runs, see configure's option --config-cache.
22667# It is not useful on other systems. If it contains results you don't
22668# want to keep, you may remove or edit it.
22669#
22670# config.status only pays attention to the cache file if you give it
22671# the --recheck option to rerun configure.
22672#
John Criswell0c38eaf2003-09-10 15:17:25 +000022673# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022674# loading this file, other *unset* `ac_cv_foo' will be assigned the
22675# following values.
22676
22677_ACEOF
22678
22679# The following way of writing the cache mishandles newlines in values,
22680# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022681# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022682# Ultrix sh set writes to stderr and can't be redirected directly,
22683# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022684(
22685 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22686 eval ac_val=\$$ac_var
22687 case $ac_val in #(
22688 *${as_nl}*)
22689 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22691echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022692 esac
22693 case $ac_var in #(
22694 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022695 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022696 esac ;;
22697 esac
22698 done
22699
John Criswell7a73b802003-06-30 21:59:07 +000022700 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22702 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022703 # `set' does not quote correctly, so add quotes (double-quote
22704 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022705 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706 "s/'/'\\\\''/g;
22707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022708 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022709 *)
22710 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022713 esac |
22714 sort
22715) |
John Criswell7a73b802003-06-30 21:59:07 +000022716 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022717 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022718 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022719 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22721 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22723 :end' >>confcache
22724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22725 if test -w "$cache_file"; then
22726 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022727 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22728echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022729 cat confcache >$cache_file
22730 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022731 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22732echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022733 fi
22734fi
22735rm -f confcache
22736
22737test "x$prefix" = xNONE && prefix=$ac_default_prefix
22738# Let make expand exec_prefix.
22739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22740
John Criswell7a73b802003-06-30 21:59:07 +000022741DEFS=-DHAVE_CONFIG_H
22742
John Criswell0c38eaf2003-09-10 15:17:25 +000022743ac_libobjs=
22744ac_ltlibobjs=
22745for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22746 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022748 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22750 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022751 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22752 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022753done
22754LIBOBJS=$ac_libobjs
22755
22756LTLIBOBJS=$ac_ltlibobjs
22757
22758
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022759if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022760 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22761Usually this means the macro was only invoked conditionally." >&5
22762echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22763Usually this means the macro was only invoked conditionally." >&2;}
22764 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022765fi
22766if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022767 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22768Usually this means the macro was only invoked conditionally." >&5
22769echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22770Usually this means the macro was only invoked conditionally." >&2;}
22771 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022772fi
John Criswell7a73b802003-06-30 21:59:07 +000022773
22774: ${CONFIG_STATUS=./config.status}
22775ac_clean_files_save=$ac_clean_files
22776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022777{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22778echo "$as_me: creating $CONFIG_STATUS" >&6;}
22779cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022780#! $SHELL
22781# Generated by $as_me.
22782# Run this file to recreate the current configuration.
22783# Compiler output produced by configure, useful for debugging
22784# configure, is in config.log if it exists.
22785
22786debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022787ac_cs_recheck=false
22788ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022789SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022790_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022792cat >>$CONFIG_STATUS <<\_ACEOF
22793## --------------------- ##
22794## M4sh Initialization. ##
22795## --------------------- ##
22796
22797# Be Bourne compatible
22798if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022799 emulate sh
22800 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022801 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022802 # is contrary to our usage. Disable this feature.
22803 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022804 setopt NO_GLOB_SUBST
22805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022806 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022808BIN_SH=xpg4; export BIN_SH # for Tru64
22809DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022810
John Criswell7a73b802003-06-30 21:59:07 +000022811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022812# PATH needs CR
22813# Avoid depending upon Character Ranges.
22814as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22815as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22816as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22817as_cr_digits='0123456789'
22818as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022819
22820# The user is always right.
22821if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022822 echo "#! /bin/sh" >conf$$.sh
22823 echo "exit 0" >>conf$$.sh
22824 chmod +x conf$$.sh
22825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22826 PATH_SEPARATOR=';'
22827 else
22828 PATH_SEPARATOR=:
22829 fi
22830 rm -f conf$$.sh
22831fi
22832
22833# Support unset when possible.
22834if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22835 as_unset=unset
22836else
22837 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022838fi
John Criswell7a73b802003-06-30 21:59:07 +000022839
Reid Spencera773bd52006-08-04 18:18:08 +000022840
22841# IFS
22842# We need space, tab and new line, in precisely that order. Quoting is
22843# there to prevent editors from complaining about space-tab.
22844# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22845# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022846as_nl='
22847'
Reid Spencera773bd52006-08-04 18:18:08 +000022848IFS=" "" $as_nl"
22849
22850# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022851case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022852 *[\\/]* ) as_myself=$0 ;;
22853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022854for as_dir in $PATH
22855do
22856 IFS=$as_save_IFS
22857 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22859done
Reid Spencera773bd52006-08-04 18:18:08 +000022860IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022861
Reid Spencera773bd52006-08-04 18:18:08 +000022862 ;;
22863esac
22864# We did not find ourselves, most probably we were run as `sh COMMAND'
22865# in which case we are not to be found in the path.
22866if test "x$as_myself" = x; then
22867 as_myself=$0
22868fi
22869if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022870 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22871 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022872fi
22873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022874# Work around bugs in pre-3.0 UWIN ksh.
22875for as_var in ENV MAIL MAILPATH
22876do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022877done
22878PS1='$ '
22879PS2='> '
22880PS4='+ '
22881
22882# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022883for as_var in \
22884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22886 LC_TELEPHONE LC_TIME
22887do
22888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22889 eval $as_var=C; export $as_var
22890 else
22891 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022892 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022893done
Torok Edwin871384f2010-01-26 08:50:50 +000022894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022895# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022896if expr a : '\(a\)' >/dev/null 2>&1 &&
22897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22898 as_expr=expr
22899else
22900 as_expr=false
22901fi
22902
22903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22904 as_basename=basename
22905else
22906 as_basename=false
22907fi
22908
22909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022910# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022911as_me=`$as_basename -- "$0" ||
22912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22913 X"$0" : 'X\(//\)$' \| \
22914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022915echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022916 sed '/^.*\/\([^/][^/]*\)\/*$/{
22917 s//\1/
22918 q
22919 }
22920 /^X\/\(\/\/\)$/{
22921 s//\1/
22922 q
22923 }
22924 /^X\/\(\/\).*/{
22925 s//\1/
22926 q
22927 }
22928 s/.*/./; q'`
22929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022930# CDPATH.
22931$as_unset CDPATH
22932
22933
22934
22935 as_lineno_1=$LINENO
22936 as_lineno_2=$LINENO
22937 test "x$as_lineno_1" != "x$as_lineno_2" &&
22938 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22939
22940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22941 # uniformly replaced by the line number. The first 'sed' inserts a
22942 # line-number line after each line using $LINENO; the second 'sed'
22943 # does the real work. The second script uses 'N' to pair each
22944 # line-number line with the line containing $LINENO, and appends
22945 # trailing '-' during substitution so that $LINENO is not a special
22946 # case at line end.
22947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22948 # scripts with optimization help from Paolo Bonzini. Blame Lee
22949 # E. McMahon (1931-1989) for sed's syntax. :-)
22950 sed -n '
22951 p
22952 /[$]LINENO/=
22953 ' <$as_myself |
22954 sed '
22955 s/[$]LINENO.*/&-/
22956 t lineno
22957 b
22958 :lineno
22959 N
22960 :loop
22961 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22962 t loop
22963 s/-\n.*//
22964 ' >$as_me.lineno &&
22965 chmod +x "$as_me.lineno" ||
22966 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22967 { (exit 1); exit 1; }; }
22968
22969 # Don't try to exec as it changes $[0], causing all sort of problems
22970 # (the dirname of $[0] is not the place where we might find the
22971 # original and so on. Autoconf is especially sensitive to this).
22972 . "./$as_me.lineno"
22973 # Exit status is that of the last command.
22974 exit
22975}
22976
22977
22978if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22979 as_dirname=dirname
22980else
22981 as_dirname=false
22982fi
Reid Spencera773bd52006-08-04 18:18:08 +000022983
22984ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022985case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022986-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022987 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022989 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022990 esac;;
22991*)
22992 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022993esac
22994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022995if expr a : '\(a\)' >/dev/null 2>&1 &&
22996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22997 as_expr=expr
22998else
22999 as_expr=false
23000fi
23001
John Criswell7a73b802003-06-30 21:59:07 +000023002rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000023003if test -d conf$$.dir; then
23004 rm -f conf$$.dir/conf$$.file
23005else
23006 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023007 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000023008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023009echo >conf$$.file
23010if ln -s conf$$.file conf$$ 2>/dev/null; then
23011 as_ln_s='ln -s'
23012 # ... but there are two gotchas:
23013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23015 # In both cases, we have to default to `cp -p'.
23016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023017 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023018elif ln conf$$.file conf$$ 2>/dev/null; then
23019 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023020else
23021 as_ln_s='cp -p'
23022fi
Reid Spencera773bd52006-08-04 18:18:08 +000023023rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23024rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023025
John Criswell0c38eaf2003-09-10 15:17:25 +000023026if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023027 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023028else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023029 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023030 as_mkdir_p=false
23031fi
23032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023033# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23034# systems may use methods other than mode bits to determine executability.
23035cat >conf$$.file <<_ASEOF
23036#! /bin/sh
23037exit 0
23038_ASEOF
23039chmod +x conf$$.file
23040if test -x conf$$.file >/dev/null 2>&1; then
23041 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023043 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023045rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023046
23047# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023048as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023049
23050# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023052
23053
John Criswell7a73b802003-06-30 21:59:07 +000023054exec 6>&1
23055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023056# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023057# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023058# values after options handling.
23059ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023060This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023061generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023062
23063 CONFIG_FILES = $CONFIG_FILES
23064 CONFIG_HEADERS = $CONFIG_HEADERS
23065 CONFIG_LINKS = $CONFIG_LINKS
23066 CONFIG_COMMANDS = $CONFIG_COMMANDS
23067 $ $0 $@
23068
Reid Spencera773bd52006-08-04 18:18:08 +000023069on `(hostname || uname -n) 2>/dev/null | sed 1q`
23070"
23071
John Criswell7a73b802003-06-30 21:59:07 +000023072_ACEOF
23073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023074cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023075# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023076config_files="$ac_config_files"
23077config_headers="$ac_config_headers"
23078config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023079
Reid Spencera773bd52006-08-04 18:18:08 +000023080_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023082cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023083ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023084\`$as_me' instantiates files from templates according to the
23085current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023087Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023088
23089 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023090 -V, --version print version number, then exit
23091 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023092 -d, --debug don't remove temporary files
23093 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023094 --file=FILE[:TEMPLATE]
23095 instantiate the configuration file FILE
23096 --header=FILE[:TEMPLATE]
23097 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023098
23099Configuration files:
23100$config_files
23101
23102Configuration headers:
23103$config_headers
23104
John Criswellc764fbc2003-09-06 15:17:13 +000023105Configuration commands:
23106$config_commands
23107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023108Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023109
Reid Spencera773bd52006-08-04 18:18:08 +000023110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023111cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023112ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023113llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023114configured by $0, generated by GNU Autoconf 2.60,
23115 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023117Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023118This config.status script is free software; the Free Software Foundation
23119gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023120
23121ac_pwd='$ac_pwd'
23122srcdir='$srcdir'
23123INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023124_ACEOF
23125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023126cat >>$CONFIG_STATUS <<\_ACEOF
23127# If no file are specified by the user, then we need to provide default
23128# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023129ac_need_defaults=:
23130while test $# != 0
23131do
23132 case $1 in
23133 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023136 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023138 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023139 ac_option=$1
23140 ac_optarg=$2
23141 ac_shift=shift
23142 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023143 esac
23144
John Criswell0c38eaf2003-09-10 15:17:25 +000023145 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023146 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23148 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023150 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023151 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023152 debug=: ;;
23153 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023154 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023156 ac_need_defaults=false;;
23157 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023158 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023160 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023161 --he | --h)
23162 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023163 { echo "$as_me: error: ambiguous option: $1
23164Try \`$0 --help' for more information." >&2
23165 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023166 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023167 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23169 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23170 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023171
23172 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023173 -*) { echo "$as_me: error: unrecognized option: $1
23174Try \`$0 --help' for more information." >&2
23175 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023177 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023178 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023179
23180 esac
23181 shift
23182done
23183
John Criswell0c38eaf2003-09-10 15:17:25 +000023184ac_configure_extra_args=
23185
23186if $ac_cs_silent; then
23187 exec 6>/dev/null
23188 ac_configure_extra_args="$ac_configure_extra_args --silent"
23189fi
23190
23191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023192cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023193if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023194 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23195 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023196 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023197 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023198fi
23199
John Criswell7a73b802003-06-30 21:59:07 +000023200_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023201cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023202exec 5>>config.log
23203{
23204 echo
23205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23206## Running $as_me. ##
23207_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023208 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023209} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023210
Reid Spencera773bd52006-08-04 18:18:08 +000023211_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023212cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023213#
Reid Spencera773bd52006-08-04 18:18:08 +000023214# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023215#
Reid Spencerc0682832005-02-24 19:05:19 +000023216llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023217
23218_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023220cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023221
23222# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023223for ac_config_target in $ac_config_targets
23224do
Reid Spencera773bd52006-08-04 18:18:08 +000023225 case $ac_config_target in
23226 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023227 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023228 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23229 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023230 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023231 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023232 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023233 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023234 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023235 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23236 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023237 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023238 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23239 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23240 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23241 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23242 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23243 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023244 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023245 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23246 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023247 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023248 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23249 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23250 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023251 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23252 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023254 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23255echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23256 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023257 esac
23258done
23259
Reid Spencera773bd52006-08-04 18:18:08 +000023260
John Criswell7a73b802003-06-30 21:59:07 +000023261# If the user did not use the arguments to specify the items to instantiate,
23262# then the envvar interface is used. Set only those that are not.
23263# We use the long form for the default assignment because of an extremely
23264# bizarre bug on SunOS 4.1.3.
23265if $ac_need_defaults; then
23266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023268 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023269fi
23270
John Criswell0c38eaf2003-09-10 15:17:25 +000023271# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023272# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023273# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023274# Hook for its removal unless debugging.
23275# Note that there is a small window in which the directory will not be cleaned:
23276# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023277$debug ||
23278{
Reid Spencera773bd52006-08-04 18:18:08 +000023279 tmp=
23280 trap 'exit_status=$?
23281 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23282' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023283 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023284}
John Criswell7a73b802003-06-30 21:59:07 +000023285# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023286
John Criswell7a73b802003-06-30 21:59:07 +000023287{
Reid Spencera773bd52006-08-04 18:18:08 +000023288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023289 test -n "$tmp" && test -d "$tmp"
23290} ||
23291{
Reid Spencera773bd52006-08-04 18:18:08 +000023292 tmp=./conf$$-$RANDOM
23293 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023294} ||
23295{
23296 echo "$me: cannot create a temporary directory in ." >&2
23297 { (exit 1); exit 1; }
23298}
John Criswell7a73b802003-06-30 21:59:07 +000023299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023300#
23301# Set up the sed scripts for CONFIG_FILES section.
23302#
23303
23304# No need to generate the scripts if there are no CONFIG_FILES.
23305# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023306if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023307
23308_ACEOF
23309
Reid Spencera773bd52006-08-04 18:18:08 +000023310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023311
Reid Spencera773bd52006-08-04 18:18:08 +000023312ac_delim='%!_!# '
23313for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023314 cat >conf$$subs.sed <<_ACEOF
23315SHELL!$SHELL$ac_delim
23316PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23317PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23318PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23319PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23320PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23321PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23322exec_prefix!$exec_prefix$ac_delim
23323prefix!$prefix$ac_delim
23324program_transform_name!$program_transform_name$ac_delim
23325bindir!$bindir$ac_delim
23326sbindir!$sbindir$ac_delim
23327libexecdir!$libexecdir$ac_delim
23328datarootdir!$datarootdir$ac_delim
23329datadir!$datadir$ac_delim
23330sysconfdir!$sysconfdir$ac_delim
23331sharedstatedir!$sharedstatedir$ac_delim
23332localstatedir!$localstatedir$ac_delim
23333includedir!$includedir$ac_delim
23334oldincludedir!$oldincludedir$ac_delim
23335docdir!$docdir$ac_delim
23336infodir!$infodir$ac_delim
23337htmldir!$htmldir$ac_delim
23338dvidir!$dvidir$ac_delim
23339pdfdir!$pdfdir$ac_delim
23340psdir!$psdir$ac_delim
23341libdir!$libdir$ac_delim
23342localedir!$localedir$ac_delim
23343mandir!$mandir$ac_delim
23344DEFS!$DEFS$ac_delim
23345ECHO_C!$ECHO_C$ac_delim
23346ECHO_N!$ECHO_N$ac_delim
23347ECHO_T!$ECHO_T$ac_delim
23348LIBS!$LIBS$ac_delim
23349build_alias!$build_alias$ac_delim
23350host_alias!$host_alias$ac_delim
23351target_alias!$target_alias$ac_delim
23352LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23353subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023354ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23355LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023356build!$build$ac_delim
23357build_cpu!$build_cpu$ac_delim
23358build_vendor!$build_vendor$ac_delim
23359build_os!$build_os$ac_delim
23360host!$host$ac_delim
23361host_cpu!$host_cpu$ac_delim
23362host_vendor!$host_vendor$ac_delim
23363host_os!$host_os$ac_delim
23364target!$target$ac_delim
23365target_cpu!$target_cpu$ac_delim
23366target_vendor!$target_vendor$ac_delim
23367target_os!$target_os$ac_delim
23368OS!$OS$ac_delim
23369HOST_OS!$HOST_OS$ac_delim
23370TARGET_OS!$TARGET_OS$ac_delim
23371LINKALL!$LINKALL$ac_delim
23372NOLINKALL!$NOLINKALL$ac_delim
23373LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23374LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23375ARCH!$ARCH$ac_delim
23376ENDIAN!$ENDIAN$ac_delim
23377CC!$CC$ac_delim
23378CFLAGS!$CFLAGS$ac_delim
23379LDFLAGS!$LDFLAGS$ac_delim
23380CPPFLAGS!$CPPFLAGS$ac_delim
23381ac_ct_CC!$ac_ct_CC$ac_delim
23382EXEEXT!$EXEEXT$ac_delim
23383OBJEXT!$OBJEXT$ac_delim
23384CPP!$CPP$ac_delim
23385GREP!$GREP$ac_delim
23386EGREP!$EGREP$ac_delim
23387LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23388BUILD_CC!$BUILD_CC$ac_delim
23389BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23390BUILD_CXX!$BUILD_CXX$ac_delim
23391CVSBUILD!$CVSBUILD$ac_delim
23392ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23393ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23394DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23395ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23396EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23397DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23398DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23399JIT!$JIT$ac_delim
23400TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023401ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023402ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23403ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023404ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023405ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023406ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023407ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023408ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023409TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23410LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23411LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023412_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023414 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023415 break
23416 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023417 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23418echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23419 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023420 else
23421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023422 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023423done
23424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023425ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23426if test -n "$ac_eof"; then
23427 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23428 ac_eof=`expr $ac_eof + 1`
23429fi
23430
23431cat >>$CONFIG_STATUS <<_ACEOF
23432cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023435sed '
23436s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23437s/^/s,@/; s/!/@,|#_!!_#|/
23438:n
23439t n
23440s/'"$ac_delim"'$/,g/; t
23441s/$/\\/; p
23442N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23443' >>$CONFIG_STATUS <conf$$subs.sed
23444rm -f conf$$subs.sed
23445cat >>$CONFIG_STATUS <<_ACEOF
23446CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023448
23449
23450ac_delim='%!_!# '
23451for ac_last_try in false false false false false :; do
23452 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023453LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023454LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023455ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023456CLANGPATH!$CLANGPATH$ac_delim
23457CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023458ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023459OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023460EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023461EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023462BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023463CXX!$CXX$ac_delim
23464CXXFLAGS!$CXXFLAGS$ac_delim
23465ac_ct_CXX!$ac_ct_CXX$ac_delim
23466NM!$NM$ac_delim
23467ifGNUmake!$ifGNUmake$ac_delim
23468LN_S!$LN_S$ac_delim
23469CMP!$CMP$ac_delim
23470CP!$CP$ac_delim
23471DATE!$DATE$ac_delim
23472FIND!$FIND$ac_delim
23473MKDIR!$MKDIR$ac_delim
23474MV!$MV$ac_delim
23475RANLIB!$RANLIB$ac_delim
23476AR!$AR$ac_delim
23477RM!$RM$ac_delim
23478SED!$SED$ac_delim
23479TAR!$TAR$ac_delim
23480BINPWD!$BINPWD$ac_delim
23481GRAPHVIZ!$GRAPHVIZ$ac_delim
23482DOT!$DOT$ac_delim
23483FDP!$FDP$ac_delim
23484NEATO!$NEATO$ac_delim
23485TWOPI!$TWOPI$ac_delim
23486CIRCO!$CIRCO$ac_delim
23487GV!$GV$ac_delim
23488DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023489XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023490PERL!$PERL$ac_delim
23491HAVE_PERL!$HAVE_PERL$ac_delim
23492INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23493INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23494INSTALL_DATA!$INSTALL_DATA$ac_delim
23495BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023496CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023497DOXYGEN!$DOXYGEN$ac_delim
23498GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023499GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023500POD2HTML!$POD2HTML$ac_delim
23501POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023502PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023503RUNTEST!$RUNTEST$ac_delim
23504TCLSH!$TCLSH$ac_delim
23505ZIP!$ZIP$ac_delim
23506OCAMLC!$OCAMLC$ac_delim
23507OCAMLOPT!$OCAMLOPT$ac_delim
23508OCAMLDEP!$OCAMLDEP$ac_delim
23509OCAMLDOC!$OCAMLDOC$ac_delim
23510GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023511HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023512INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23513INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23514CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23515CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23516LIBADD_DL!$LIBADD_DL$ac_delim
23517LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23518LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23519LLVMGCC!$LLVMGCC$ac_delim
23520LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023521LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023522NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23523NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23524USE_UDIS86!$USE_UDIS86$ac_delim
23525USE_OPROFILE!$USE_OPROFILE$ac_delim
23526HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23527HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23528MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023529LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023530LLVMCC1!$LLVMCC1$ac_delim
23531LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23532LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023533LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023534LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023535LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023536SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023537SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023538LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23539LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23540LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23541LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23542LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23543LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23544LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23545LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23546LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23547LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23548BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23549ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023550_ACEOF
23551
Tobias Grossera84b5672010-11-10 16:31:34 +000023552 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023553 break
23554 elif $ac_last_try; then
23555 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23556echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23557 { (exit 1); exit 1; }; }
23558 else
23559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23560 fi
23561done
23562
23563ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23564if test -n "$ac_eof"; then
23565 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23566 ac_eof=`expr $ac_eof + 1`
23567fi
23568
23569cat >>$CONFIG_STATUS <<_ACEOF
23570cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023572_ACEOF
23573sed '
23574s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23575s/^/s,@/; s/!/@,|#_!!_#|/
23576:n
23577t n
23578s/'"$ac_delim"'$/,g/; t
23579s/$/\\/; p
23580N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23581' >>$CONFIG_STATUS <conf$$subs.sed
23582rm -f conf$$subs.sed
23583cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023584CEOF$ac_eof
23585_ACEOF
23586
23587
Tobias Grossera84b5672010-11-10 16:31:34 +000023588ac_delim='%!_!# '
23589for ac_last_try in false false false false false :; do
23590 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023591OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023592ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023593RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023594RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023595LIBOBJS!$LIBOBJS$ac_delim
23596LTLIBOBJS!$LTLIBOBJS$ac_delim
23597_ACEOF
23598
Daniel Dunbared344d22011-06-16 22:30:41 +000023599 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023600 break
23601 elif $ac_last_try; then
23602 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23603echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23604 { (exit 1); exit 1; }; }
23605 else
23606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23607 fi
23608done
23609
23610ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23611if test -n "$ac_eof"; then
23612 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23613 ac_eof=`expr $ac_eof + 1`
23614fi
23615
23616cat >>$CONFIG_STATUS <<_ACEOF
23617cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23619_ACEOF
23620sed '
23621s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23622s/^/s,@/; s/!/@,|#_!!_#|/
23623:n
23624t n
23625s/'"$ac_delim"'$/,g/; t
23626s/$/\\/; p
23627N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23628' >>$CONFIG_STATUS <conf$$subs.sed
23629rm -f conf$$subs.sed
23630cat >>$CONFIG_STATUS <<_ACEOF
23631:end
23632s/|#_!!_#|//g
23633CEOF$ac_eof
23634_ACEOF
23635
23636
Reid Spencera773bd52006-08-04 18:18:08 +000023637# VPATH may cause trouble with some makes, so we remove $(srcdir),
23638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23639# trailing colons and then remove the whole line if VPATH becomes empty
23640# (actually we leave an empty line to preserve line numbers).
23641if test "x$srcdir" = x.; then
23642 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23643s/:*\$(srcdir):*/:/
23644s/:*\${srcdir}:*/:/
23645s/:*@srcdir@:*/:/
23646s/^\([^=]*=[ ]*\):*/\1/
23647s/:*$//
23648s/^[^=]*=[ ]*$//
23649}'
23650fi
23651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023652cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023653fi # test -n "$CONFIG_FILES"
23654
Reid Spencera773bd52006-08-04 18:18:08 +000023655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023656for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023657do
23658 case $ac_tag in
23659 :[FHLC]) ac_mode=$ac_tag; continue;;
23660 esac
23661 case $ac_mode$ac_tag in
23662 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023663 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23664echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23665 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023666 :[FH]-) ac_tag=-:-;;
23667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23668 esac
23669 ac_save_IFS=$IFS
23670 IFS=:
23671 set x $ac_tag
23672 IFS=$ac_save_IFS
23673 shift
23674 ac_file=$1
23675 shift
23676
23677 case $ac_mode in
23678 :L) ac_source=$1;;
23679 :[FH])
23680 ac_file_inputs=
23681 for ac_f
23682 do
23683 case $ac_f in
23684 -) ac_f="$tmp/stdin";;
23685 *) # Look for the file first in the build tree, then in the source tree
23686 # (if the path is not absolute). The absolute path cannot be DOS-style,
23687 # because $ac_f cannot contain `:'.
23688 test -f "$ac_f" ||
23689 case $ac_f in
23690 [\\/$]*) false;;
23691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23692 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023693 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23694echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23695 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023696 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023697 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023698 done
23699
23700 # Let's still pretend it is `configure' which instantiates (i.e., don't
23701 # use $as_me), people would be surprised to read:
23702 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023703 configure_input="Generated from "`IFS=:
23704 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023705 if test x"$ac_file" != x-; then
23706 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023707 { echo "$as_me:$LINENO: creating $ac_file" >&5
23708echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023709 fi
23710
23711 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023712 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023713 esac
23714 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023715 esac
23716
Reid Spencera773bd52006-08-04 18:18:08 +000023717 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023718$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023719 X"$ac_file" : 'X\(//\)[^/]' \| \
23720 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023721 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023722echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23724 s//\1/
23725 q
23726 }
23727 /^X\(\/\/\)[^/].*/{
23728 s//\1/
23729 q
23730 }
23731 /^X\(\/\/\)$/{
23732 s//\1/
23733 q
23734 }
23735 /^X\(\/\).*/{
23736 s//\1/
23737 q
23738 }
23739 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023740 { as_dir="$ac_dir"
23741 case $as_dir in #(
23742 -*) as_dir=./$as_dir;;
23743 esac
23744 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23745 as_dirs=
23746 while :; do
23747 case $as_dir in #(
23748 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23749 *) as_qdir=$as_dir;;
23750 esac
23751 as_dirs="'$as_qdir' $as_dirs"
23752 as_dir=`$as_dirname -- "$as_dir" ||
23753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23754 X"$as_dir" : 'X\(//\)[^/]' \| \
23755 X"$as_dir" : 'X\(//\)$' \| \
23756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23757echo X"$as_dir" |
23758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23759 s//\1/
23760 q
23761 }
23762 /^X\(\/\/\)[^/].*/{
23763 s//\1/
23764 q
23765 }
23766 /^X\(\/\/\)$/{
23767 s//\1/
23768 q
23769 }
23770 /^X\(\/\).*/{
23771 s//\1/
23772 q
23773 }
23774 s/.*/./; q'`
23775 test -d "$as_dir" && break
23776 done
23777 test -z "$as_dirs" || eval "mkdir $as_dirs"
23778 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23779echo "$as_me: error: cannot create directory $as_dir" >&2;}
23780 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023781 ac_builddir=.
23782
Reid Spencera773bd52006-08-04 18:18:08 +000023783case "$ac_dir" in
23784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23785*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023787 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023789 case $ac_top_builddir_sub in
23790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23792 esac ;;
23793esac
23794ac_abs_top_builddir=$ac_pwd
23795ac_abs_builddir=$ac_pwd$ac_dir_suffix
23796# for backward compatibility:
23797ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023798
23799case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023800 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023801 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023802 ac_top_srcdir=$ac_top_builddir_sub
23803 ac_abs_top_srcdir=$ac_pwd ;;
23804 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023805 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023806 ac_top_srcdir=$srcdir
23807 ac_abs_top_srcdir=$srcdir ;;
23808 *) # Relative name.
23809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23810 ac_top_srcdir=$ac_top_build_prefix$srcdir
23811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023812esac
Reid Spencera773bd52006-08-04 18:18:08 +000023813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023814
John Criswell7a73b802003-06-30 21:59:07 +000023815
Reid Spencera773bd52006-08-04 18:18:08 +000023816 case $ac_mode in
23817 :F)
23818 #
23819 # CONFIG_FILE
23820 #
John Criswell7a73b802003-06-30 21:59:07 +000023821
23822 case $INSTALL in
23823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023825 esac
John Criswell7a73b802003-06-30 21:59:07 +000023826_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023828cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023829# If the template does not know about datarootdir, expand it.
23830# FIXME: This hack should be removed a few years after 2.60.
23831ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023832
23833case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023834 p
23835 q
23836}
23837/@datadir@/p
23838/@docdir@/p
23839/@infodir@/p
23840/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023841/@mandir@/p
23842' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023843*datarootdir*) ac_datarootdir_seen=yes;;
23844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023845 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23846echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023847_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023848cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023849 ac_datarootdir_hack='
23850 s&@datadir@&$datadir&g
23851 s&@docdir@&$docdir&g
23852 s&@infodir@&$infodir&g
23853 s&@localedir@&$localedir&g
23854 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023855 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023856esac
23857_ACEOF
23858
23859# Neutralize VPATH when `$srcdir' = `.'.
23860# Shell code in configure.ac might set extrasub.
23861# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023862cat >>$CONFIG_STATUS <<_ACEOF
23863 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023864$extrasub
23865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023866cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023867:t
23868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023869s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023870s&@top_builddir@&$ac_top_builddir_sub&;t t
23871s&@srcdir@&$ac_srcdir&;t t
23872s&@abs_srcdir@&$ac_abs_srcdir&;t t
23873s&@top_srcdir@&$ac_top_srcdir&;t t
23874s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23875s&@builddir@&$ac_builddir&;t t
23876s&@abs_builddir@&$ac_abs_builddir&;t t
23877s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23878s&@INSTALL@&$ac_INSTALL&;t t
23879$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023880" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000023881
Reid Spencera773bd52006-08-04 18:18:08 +000023882test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023885 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023886which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023887echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023888which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023889
Reid Spencera773bd52006-08-04 18:18:08 +000023890 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023891 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023892 -) cat "$tmp/out"; rm -f "$tmp/out";;
23893 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23894 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023895 ;;
23896 :H)
23897 #
23898 # CONFIG_HEADER
23899 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023900_ACEOF
23901
23902# Transform confdefs.h into a sed script `conftest.defines', that
23903# substitutes the proper values into config.h.in to produce config.h.
23904rm -f conftest.defines conftest.tail
23905# First, append a space to every undef/define line, to ease matching.
23906echo 's/$/ /' >conftest.defines
23907# Then, protect against being on the right side of a sed subst, or in
23908# an unquoted here document, in config.status. If some macros were
23909# called several times there might be several #defines for the same
23910# symbol, which is useless. But do not sort them, since the last
23911# AC_DEFINE must be honored.
23912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23913# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23914# NAME is the cpp macro being defined, VALUE is the value it is being given.
23915# PARAMS is the parameter list in the macro definition--in most cases, it's
23916# just an empty string.
23917ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23918ac_dB='\\)[ (].*,\\1define\\2'
23919ac_dC=' '
23920ac_dD=' ,'
23921
23922uniq confdefs.h |
23923 sed -n '
23924 t rset
23925 :rset
23926 s/^[ ]*#[ ]*define[ ][ ]*//
23927 t ok
23928 d
23929 :ok
23930 s/[\\&,]/\\&/g
23931 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23932 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23933 ' >>conftest.defines
23934
23935# Remove the space that was appended to ease matching.
23936# Then replace #undef with comments. This is necessary, for
23937# example, in the case of _POSIX_SOURCE, which is predefined and required
23938# on some systems where configure will not decide to define it.
23939# (The regexp can be short, since the line contains either #define or #undef.)
23940echo 's/ $//
23941s,^[ #]*u.*,/* & */,' >>conftest.defines
23942
23943# Break up conftest.defines:
23944ac_max_sed_lines=50
23945
23946# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23947# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23948# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23949# et cetera.
23950ac_in='$ac_file_inputs'
23951ac_out='"$tmp/out1"'
23952ac_nxt='"$tmp/out2"'
23953
23954while :
23955do
23956 # Write a here document:
23957 cat >>$CONFIG_STATUS <<_ACEOF
23958 # First, check the format of the line:
23959 cat >"\$tmp/defines.sed" <<\\CEOF
23960/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23961/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23962b
23963:def
23964_ACEOF
23965 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23966 echo 'CEOF
23967 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23968 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23969 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23970 grep . conftest.tail >/dev/null || break
23971 rm -f conftest.defines
23972 mv conftest.tail conftest.defines
23973done
23974rm -f conftest.defines conftest.tail
23975
23976echo "ac_result=$ac_in" >>$CONFIG_STATUS
23977cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023978 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023979 echo "/* $configure_input */" >"$tmp/config.h"
23980 cat "$ac_result" >>"$tmp/config.h"
23981 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23982 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23983echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023984 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023985 rm -f $ac_file
23986 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023987 fi
23988 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023989 echo "/* $configure_input */"
23990 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023991 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023992 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023993 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023995 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23996echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023997 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023998 esac
John Criswell7a73b802003-06-30 21:59:07 +000023999
Reid Spencera773bd52006-08-04 18:18:08 +000024000
24001 case $ac_file$ac_mode in
24002 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024004 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000024005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024006 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024008 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000024010 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024012 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024014 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024016 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024018 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024020 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024022 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024024 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024026 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024027 ${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 +000024028
24029 esac
24030done # for ac_tag
24031
John Criswell7a73b802003-06-30 21:59:07 +000024032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024033{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024035chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024036ac_clean_files=$ac_clean_files_save
24037
24038
24039# configure is writing to config.log, and then calls config.status.
24040# config.status does its own redirection, appending to config.log.
24041# Unfortunately, on DOS this fails, as config.log is still kept open
24042# by configure, so config.status won't be able to write to it; its
24043# output is simply discarded. So we exec the FD to /dev/null,
24044# effectively closing config.log, so it can be properly (re)opened and
24045# appended to by config.status. When coming back to configure, we
24046# need to make the FD available again.
24047if test "$no_create" != yes; then
24048 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024049 ac_config_status_args=
24050 test "$silent" = yes &&
24051 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024052 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024054 exec 5>>config.log
24055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24056 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024057 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024058fi
24059
John Criswell12399a12003-09-30 15:55:44 +000024060#
24061# CONFIG_SUBDIRS section.
24062#
24063if test "$no_recursion" != yes; then
24064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024065 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024066 ac_sub_configure_args=
24067 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024068 eval "set x $ac_configure_args"
24069 shift
24070 for ac_arg
24071 do
John Criswell12399a12003-09-30 15:55:44 +000024072 if test -n "$ac_prev"; then
24073 ac_prev=
24074 continue
24075 fi
24076 case $ac_arg in
24077 -cache-file | --cache-file | --cache-fil | --cache-fi \
24078 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24079 ac_prev=cache_file ;;
24080 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24081 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24082 | --c=*)
24083 ;;
24084 --config-cache | -C)
24085 ;;
24086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24087 ac_prev=srcdir ;;
24088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24089 ;;
24090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24091 ac_prev=prefix ;;
24092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24093 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024094 *)
24095 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024096 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024097 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024098 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024099 esac
24100 done
24101
24102 # Always prepend --prefix to ensure using the same prefix
24103 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024104 ac_arg="--prefix=$prefix"
24105 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024106 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024107 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024108 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024109
24110 ac_popdir=`pwd`
24111 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24112
24113 # Do not complain, so a configure script can configure whichever
24114 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024115 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024116
Reid Spencera773bd52006-08-04 18:18:08 +000024117 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024118 echo "$as_me:$LINENO: $ac_msg" >&5
24119 echo "$ac_msg" >&6
24120 { as_dir="$ac_dir"
24121 case $as_dir in #(
24122 -*) as_dir=./$as_dir;;
24123 esac
24124 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24125 as_dirs=
24126 while :; do
24127 case $as_dir in #(
24128 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24129 *) as_qdir=$as_dir;;
24130 esac
24131 as_dirs="'$as_qdir' $as_dirs"
24132 as_dir=`$as_dirname -- "$as_dir" ||
24133$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134 X"$as_dir" : 'X\(//\)[^/]' \| \
24135 X"$as_dir" : 'X\(//\)$' \| \
24136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24137echo X"$as_dir" |
24138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24139 s//\1/
24140 q
24141 }
24142 /^X\(\/\/\)[^/].*/{
24143 s//\1/
24144 q
24145 }
24146 /^X\(\/\/\)$/{
24147 s//\1/
24148 q
24149 }
24150 /^X\(\/\).*/{
24151 s//\1/
24152 q
24153 }
24154 s/.*/./; q'`
24155 test -d "$as_dir" && break
24156 done
24157 test -z "$as_dirs" || eval "mkdir $as_dirs"
24158 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24159echo "$as_me: error: cannot create directory $as_dir" >&2;}
24160 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024161 ac_builddir=.
24162
Reid Spencera773bd52006-08-04 18:18:08 +000024163case "$ac_dir" in
24164.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24165*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024167 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024168 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024169 case $ac_top_builddir_sub in
24170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24172 esac ;;
24173esac
24174ac_abs_top_builddir=$ac_pwd
24175ac_abs_builddir=$ac_pwd$ac_dir_suffix
24176# for backward compatibility:
24177ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024178
24179case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024180 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024181 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024182 ac_top_srcdir=$ac_top_builddir_sub
24183 ac_abs_top_srcdir=$ac_pwd ;;
24184 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024185 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024186 ac_top_srcdir=$srcdir
24187 ac_abs_top_srcdir=$srcdir ;;
24188 *) # Relative name.
24189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24190 ac_top_srcdir=$ac_top_build_prefix$srcdir
24191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024192esac
Reid Spencera773bd52006-08-04 18:18:08 +000024193ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024194
24195
Reid Spencera773bd52006-08-04 18:18:08 +000024196 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024197
24198 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024199 if test -f "$ac_srcdir/configure.gnu"; then
24200 ac_sub_configure=$ac_srcdir/configure.gnu
24201 elif test -f "$ac_srcdir/configure"; then
24202 ac_sub_configure=$ac_srcdir/configure
24203 elif test -f "$ac_srcdir/configure.in"; then
24204 # This should be Cygnus configure.
24205 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024206 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024207 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24208echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024209 ac_sub_configure=
24210 fi
24211
24212 # The recursion is here.
24213 if test -n "$ac_sub_configure"; then
24214 # Make the cache file name correct relative to the subdirectory.
24215 case $cache_file in
24216 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024217 *) # Relative name.
24218 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024219 esac
24220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024221 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24222echo "$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 +000024223 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024224 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24225 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024226 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24227echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24228 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024229 fi
24230
Reid Spencera773bd52006-08-04 18:18:08 +000024231 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024232 done
24233fi
24234