blob: 6fd7d999bc021c8a73f042a75cc169b507c3fad6 [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
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000694ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_DOXYGEN
696ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000697ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000699ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000700ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000701ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000708CLANGPATH
709CLANGXXPATH
710ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711OPTIMIZE_OPTION
712EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000713EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
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
Reid Spencera773bd52006-08-04 18:18:08 +0000813CXX
814CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000815CCC
816CPP'
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.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001474 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001475 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001476 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001479 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001482
1483Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001484 CC C compiler command
1485 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001489 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001492 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <llvmbugs@cs.uiuc.edu>.
1498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001499ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001505 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_builddir=.
1507
Reid Spencera773bd52006-08-04 18:18:08 +00001508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001523
1524case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001525 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001530 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001537esac
Reid Spencera773bd52006-08-04 18:18:08 +00001538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001539
Reid Spencera773bd52006-08-04 18:18:08 +00001540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001552 done
1553fi
1554
Reid Spencera773bd52006-08-04 18:18:08 +00001555test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001556if $ac_init_version; then
1557 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001558llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001566Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001568 exit
John Criswell7a73b802003-06-30 21:59:07 +00001569fi
Reid Spencera773bd52006-08-04 18:18:08 +00001570cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001574It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001575generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001576
1577 $ $0 $@
1578
1579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001580exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001611 echo "PATH: $as_dir"
1612done
Reid Spencera773bd52006-08-04 18:18:08 +00001613IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001630# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001632ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_configure_args0=
1634ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001635ac_must_keep_next=false
1636for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001637do
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001645 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 esac
1648 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ;;
1669 esac
1670 done
John Criswell7a73b802003-06-30 21:59:07 +00001671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$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 +00001674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001684
John Criswell7a73b802003-06-30 21:59:07 +00001685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001703 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001704 esac ;;
1705 esac
1706 done
John Criswell7a73b802003-06-30 21:59:07 +00001707 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001710 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001714 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac |
1718 sort
1719)
John Criswell7a73b802003-06-30 21:59:07 +00001720 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
Reid Spencera773bd52006-08-04 18:18:08 +00001747 eval ac_val=\$$ac_var
1748 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 done | sort
1753 echo
1754 fi
1755
John Criswell7a73b802003-06-30 21:59:07 +00001756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001763 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001769 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001772 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001773' 0
John Criswell7a73b802003-06-30 21:59:07 +00001774for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001780rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798
John Criswell7a73b802003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803
John Criswell7a73b802003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001811if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001813elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819shift
1820for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001821do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001839 esac
1840 fi
1841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001850for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001855 case $ac_old_set,$ac_new_set in
1856 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
Reid Spencera773bd52006-08-04 18:18:08 +00001919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001928LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001929
1930
1931
1932
1933
1934
1935
John Criswell7a73b802003-06-30 21:59:07 +00001936ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001937for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 if test -f "$ac_dir/install-sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 break
1942 elif test -f "$ac_dir/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1950 fi
John Criswell7a73b802003-06-30 21:59:07 +00001951done
1952if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001956fi
Reid Spencera773bd52006-08-04 18:18:08 +00001957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965
John Criswell7a73b802003-06-30 21:59:07 +00001966
John Criswell392aaa32003-07-22 19:18:09 +00001967
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001973 fi
John Criswell93e1c722003-09-15 17:04:06 +00001974fi
1975
Nick Lewycky83fc4472009-09-29 05:48:51 +00001976ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001977ac_cpp='$CPP $CPPFLAGS'
1978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001981if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001982 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001983 do
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001990else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 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 +00002001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002003 break 2
2004 fi
2005done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006done
Reid Spencera773bd52006-08-04 18:18:08 +00002007IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002008
2009fi
2010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013 { echo "$as_me:$LINENO: result: $CC" >&5
2014echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016 { echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002018fi
2019
Reid Spencera773bd52006-08-04 18:18:08 +00002020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002026 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 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 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002047 break 2
2048 fi
2049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050done
Reid Spencera773bd52006-08-04 18:18:08 +00002051IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002052
2053fi
2054fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060 { echo "$as_me:$LINENO: result: no" >&5
2061echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002062fi
2063
Reid Spencera773bd52006-08-04 18:18:08 +00002064
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002066done
John Criswell7a73b802003-06-30 21:59:07 +00002067
Reid Spencera773bd52006-08-04 18:18:08 +00002068 if test "x$ac_ct_CC" = x; then
2069 CC=""
2070 else
2071 case $cross_compiling:$ac_tool_warned in
2072yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074whose name does not start with the host triplet. If you think this
2075configuration is useful to you, please write to autoconf@gnu.org." >&5
2076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077whose name does not start with the host triplet. If you think this
2078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002079ac_tool_warned=yes ;;
2080esac
2081 CC=$ac_ct_CC
2082 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083fi
2084
John Criswell7a73b802003-06-30 21:59:07 +00002085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&5
2088echo "$as_me: error: no acceptable C compiler found in \$PATH
2089See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091
John Criswell7a73b802003-06-30 21:59:07 +00002092# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002093echo "$as_me:$LINENO: checking for C compiler version" >&5
2094ac_compiler=`set X $ac_compile; echo $2`
2095{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002102 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -v >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -v >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115{ (ac_try="$ac_compiler -V >&5"
2116case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119esac
2120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -V >&5") 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002126cat >conftest.$ac_ext <<_ACEOF
2127/* confdefs.h. */
2128_ACEOF
2129cat confdefs.h >>conftest.$ac_ext
2130cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002132
John Criswell7a73b802003-06-30 21:59:07 +00002133int
2134main ()
2135{
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002143# Try to create an executable without -o first, disregard a.out.
2144# It will help us diagnose broken compilers, and finding out an intuition
2145# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149#
2150# List of possible output files, starting from the most likely.
2151# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152# only as a last resort. b.out is created by i960 compilers.
2153ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154#
2155# The IRIX 6 linker writes into existing files which may not be
2156# executable, retaining their permissions. Remove them first so a
2157# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_rmfiles=
2159for ac_file in $ac_files
2160do
2161 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002163 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164 esac
2165done
2166rm -f $ac_rmfiles
2167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002174 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002175 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180# in a Makefile. We should not override ac_cv_exeext if it was cached,
2181# so that the user can short-circuit this test for compilers unknown to
2182# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002183for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002184do
2185 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002186 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 # We found the default executable, but exeext='' is most
2191 # certainly right.
2192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002195 then :; else
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 fi
2198 # We set ac_cv_exeext here because the later test for it is not
2199 # safe: cross compilers may not add the suffix if given an `-o'
2200 # argument, so we may need to know it at that point already.
2201 # Even if this section looks crufty: it has the advantage of
2202 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002204 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002205 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002206 esac
2207done
Reid Spencera773bd52006-08-04 18:18:08 +00002208test "$ac_cv_exeext" = no && ac_cv_exeext=
2209
John Criswell7a73b802003-06-30 21:59:07 +00002210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002212sed 's/^/| /' conftest.$ac_ext >&5
2213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002214{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215See \`config.log' for more details." >&5
2216echo "$as_me: error: C compiler cannot create executables
2217See \`config.log' for more details." >&2;}
2218 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002219fi
John Criswell7a73b802003-06-30 21:59:07 +00002220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002221ac_exeext=$ac_cv_exeext
2222{ echo "$as_me:$LINENO: result: $ac_file" >&5
2223echo "${ECHO_T}$ac_file" >&6; }
2224
2225# Check that the compiler produces executables we can run. If not, either
2226# the compiler is broken, or we cross compile.
2227{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230# If not cross compiling, check that we can run a simple program.
2231if test "$cross_compiling" != yes; then
2232 if { ac_try='./$ac_file'
2233 { (case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236esac
2237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cross_compiling=no
2243 else
2244 if test "$cross_compiling" = maybe; then
2245 cross_compiling=yes
2246 else
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&5
2250echo "$as_me: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2254 fi
2255 fi
2256fi
2257{ echo "$as_me:$LINENO: result: yes" >&5
2258echo "${ECHO_T}yes" >&6; }
2259
2260rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002261ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262# Check that the compiler produces executables we can run. If not, either
2263# the compiler is broken, or we cross compile.
2264{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267echo "${ECHO_T}$cross_compiling" >&6; }
2268
2269{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002277 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002278 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283# work properly (i.e., refer to `conftest.exe'), while it won't with
2284# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002285for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002287 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002290 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002291 * ) break;;
2292 esac
2293done
2294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002301
2302rm -f conftest$ac_cv_exeext
2303{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002305
2306rm -f conftest.$ac_ext
2307EXEEXT=$ac_cv_exeext
2308ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002314 cat >conftest.$ac_ext <<_ACEOF
2315/* confdefs.h. */
2316_ACEOF
2317cat confdefs.h >>conftest.$ac_ext
2318cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002320
John Criswell7a73b802003-06-30 21:59:07 +00002321int
2322main ()
2323{
2324
2325 ;
2326 return 0;
2327}
2328_ACEOF
2329rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002331case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2334esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002336 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002337 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002340 for ac_file in conftest.o conftest.obj conftest.*; do
2341 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002342 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 break;;
2346 esac
2347done
2348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002350sed 's/^/| /' conftest.$ac_ext >&5
2351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358
John Criswell7a73b802003-06-30 21:59:07 +00002359rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002363OBJEXT=$ac_cv_objext
2364ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002370 cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002376
John Criswell7a73b802003-06-30 21:59:07 +00002377int
2378main ()
2379{
2380#ifndef __GNUC__
2381 choke me
2382#endif
2383
2384 ;
2385 return 0;
2386}
2387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002388rm -f conftest.$ac_objext
2389if { (ac_try="$ac_compile"
2390case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393esac
2394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002422 ac_compiler_gnu=yes
2423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429
Reid Spencera773bd52006-08-04 18:18:08 +00002430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002432
2433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437ac_test_CFLAGS=${CFLAGS+set}
2438ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002439{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002443else
Reid Spencera773bd52006-08-04 18:18:08 +00002444 ac_save_c_werror_flag=$ac_c_werror_flag
2445 ac_c_werror_flag=yes
2446 ac_cv_prog_cc_g=no
2447 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448 cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002454
John Criswell7a73b802003-06-30 21:59:07 +00002455int
2456main ()
2457{
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463rm -f conftest.$ac_objext
2464if { (ac_try="$ac_compile"
2465case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468esac
2469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compile") 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 CFLAGS=""
2503 cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002508/* end confdefs.h. */
2509
2510int
2511main ()
2512{
2513
2514 ;
2515 return 0;
2516}
2517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518rm -f conftest.$ac_objext
2519if { (ac_try="$ac_compile"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>conftest.er1
2526 ac_status=$?
2527 grep -v '^ *+' conftest.er1 >conftest.err
2528 rm -f conftest.er1
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546esac
2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 :
Torok Edwin871384f2010-01-26 08:50:50 +00002553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002554 echo "$as_me: failed program was:" >&5
2555sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002558 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559 cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002564/* end confdefs.h. */
2565
2566int
2567main ()
2568{
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002574rm -f conftest.$ac_objext
2575if { (ac_try="$ac_compile"
2576case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602esac
2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002608 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609else
2610 echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613
John Criswell7a73b802003-06-30 21:59:07 +00002614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615
Reid Spencera773bd52006-08-04 18:18:08 +00002616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618
Reid Spencera773bd52006-08-04 18:18:08 +00002619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621
Reid Spencera773bd52006-08-04 18:18:08 +00002622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_c_werror_flag=$ac_save_c_werror_flag
2624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2631 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002632 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002634 fi
2635else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 if test "$GCC" = yes; then
2637 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002638 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002640 fi
2641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644if test "${ac_cv_prog_cc_c89+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646else
Reid Spencera773bd52006-08-04 18:18:08 +00002647 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654/* end confdefs.h. */
2655#include <stdarg.h>
2656#include <stdio.h>
2657#include <sys/types.h>
2658#include <sys/stat.h>
2659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660struct buf { int x; };
2661FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662static char *e (p, i)
2663 char **p;
2664 int i;
2665{
2666 return p[i];
2667}
2668static char *f (char * (*g) (char **, int), char **p, ...)
2669{
2670 char *s;
2671 va_list v;
2672 va_start (v,p);
2673 s = g (p, va_arg (v,int));
2674 va_end (v);
2675 return s;
2676}
2677
2678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002681 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002684 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
Reid Spencera773bd52006-08-04 18:18:08 +00002687/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688 inside strings and character constants. */
2689#define FOO(x) 'x'
2690int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692int test (int i, double x);
2693struct s1 {int (*f) (int a);};
2694struct s2 {int (*f) (double a);};
2695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696int argc;
2697char **argv;
2698int
2699main ()
2700{
2701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2702 ;
2703 return 0;
2704}
2705_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002706for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708do
2709 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710 rm -f conftest.$ac_objext
2711if { (ac_try="$ac_compile"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compile") 2>conftest.er1
2718 ac_status=$?
2719 grep -v '^ *+' conftest.er1 >conftest.err
2720 rm -f conftest.er1
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002744 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745else
2746 echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751
Reid Spencera773bd52006-08-04 18:18:08 +00002752rm -f core conftest.err conftest.$ac_objext
2753 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754done
Reid Spencera773bd52006-08-04 18:18:08 +00002755rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756CC=$ac_save_CC
2757
2758fi
Reid Spencera773bd52006-08-04 18:18:08 +00002759# AC_CACHE_VAL
2760case "x$ac_cv_prog_cc_c89" in
2761 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762 { echo "$as_me:$LINENO: result: none needed" >&5
2763echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002764 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002765 { echo "$as_me:$LINENO: result: unsupported" >&5
2766echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002767 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002768 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002771esac
2772
John Criswell0c38eaf2003-09-10 15:17:25 +00002773
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
Eric Christopherffee5722011-09-16 20:36:25 +00002780ac_ext=cpp
2781ac_cpp='$CXXCPP $CPPFLAGS'
2782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785if test -z "$CXX"; then
2786 if test -n "$CCC"; then
2787 CXX=$CCC
2788 else
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang++ llvm-g++ g++
2791 do
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796if test "${ac_cv_prog_CXX+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799 if test -n "$CXX"; then
2800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813done
2814done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819CXX=$ac_cv_prog_CXX
2820if test -n "$CXX"; then
2821 { echo "$as_me:$LINENO: result: $CXX" >&5
2822echo "${ECHO_T}$CXX" >&6; }
2823else
2824 { echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6; }
2826fi
2827
2828
2829 test -n "$CXX" && break
2830 done
2831fi
2832if test -z "$CXX"; then
2833 ac_ct_CXX=$CXX
2834 for ac_prog in clang++ llvm-g++ g++
2835do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 if test -n "$ac_ct_CXX"; then
2844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CXX="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864if test -n "$ac_ct_CXX"; then
2865 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867else
2868 { echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6; }
2870fi
2871
2872
2873 test -n "$ac_ct_CXX" && break
2874done
2875
2876 if test "x$ac_ct_CXX" = x; then
2877 CXX="g++"
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880yes:)
2881{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882whose name does not start with the host triplet. If you think this
2883configuration is useful to you, please write to autoconf@gnu.org." >&5
2884echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885whose name does not start with the host triplet. If you think this
2886configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889 CXX=$ac_ct_CXX
2890 fi
2891fi
2892
2893 fi
2894fi
2895# Provide some information about the compiler.
2896echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897ac_compiler=`set X $ac_compile; echo $2`
2898{ (ac_try="$ac_compiler --version >&5"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (ac_try="$ac_compiler -v >&5"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918{ (ac_try="$ac_compiler -V >&5"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928
2929{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
2940
2941int
2942main ()
2943{
2944#ifndef __GNUC__
2945 choke me
2946#endif
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 ac_compiler_gnu=yes
2987else
2988 echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_compiler_gnu=no
2992fi
2993
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997fi
2998{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000GXX=`test $ac_compiler_gnu = yes && echo yes`
3001ac_test_CXXFLAGS=${CXXFLAGS+set}
3002ac_save_CXXFLAGS=$CXXFLAGS
3003{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005if test "${ac_cv_prog_cxx_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007else
3008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009 ac_cxx_werror_flag=yes
3010 ac_cv_prog_cxx_g=no
3011 CXXFLAGS="-g"
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018
3019int
3020main ()
3021{
3022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext
3028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cxx_g=yes
3062else
3063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 CXXFLAGS=""
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 :
3117else
3118 echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122 CXXFLAGS="-g"
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_prog_cxx_g=yes
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181fi
3182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188fi
3189{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191if test "$ac_test_CXXFLAGS" = set; then
3192 CXXFLAGS=$ac_save_CXXFLAGS
3193elif test $ac_cv_prog_cxx_g = yes; then
3194 if test "$GXX" = yes; then
3195 CXXFLAGS="-g -O2"
3196 else
3197 CXXFLAGS="-g"
3198 fi
3199else
3200 if test "$GXX" = yes; then
3201 CXXFLAGS="-O2"
3202 else
3203 CXXFLAGS=
3204 fi
3205fi
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212ac_ext=c
3213ac_cpp='$CPP $CPPFLAGS'
3214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219# On Suns, sometimes $CPP names a directory.
3220if test -n "$CPP" && test -d "$CPP"; then
3221 CPP=
3222fi
3223if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224 if test "${ac_cv_prog_CPP+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226else
3227 # Double quotes because CPP needs to be expanded
3228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 do
3230 ac_preproc_ok=false
3231for ac_c_preproc_warn_flag in '' yes
3232do
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244/* end confdefs.h. */
3245#ifdef __STDC__
3246# include <limits.h>
3247#else
3248# include <assert.h>
3249#endif
3250 Syntax error
3251_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003252if { (ac_try="$ac_cpp conftest.$ac_ext"
3253case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 else
3269 ac_cpp_err=
3270 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272 ac_cpp_err=yes
3273fi
3274if test -z "$ac_cpp_err"; then
3275 :
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280 # Broken: fails on valid input.
3281continue
3282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284rm -f conftest.err conftest.$ac_ext
3285
Reid Spencera773bd52006-08-04 18:18:08 +00003286 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293/* end confdefs.h. */
3294#include <ac_nonexistent.h>
3295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296if { (ac_try="$ac_cpp conftest.$ac_ext"
3297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 else
3313 ac_cpp_err=
3314 fi
3315else
3316 ac_cpp_err=yes
3317fi
3318if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 # Broken: success on invalid input.
3320continue
3321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325 # Passes both tests.
3326ac_preproc_ok=:
3327break
3328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003329
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330rm -f conftest.err conftest.$ac_ext
3331
3332done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003335if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 break
3337fi
3338
3339 done
3340 ac_cv_prog_CPP=$CPP
3341
3342fi
3343 CPP=$ac_cv_prog_CPP
3344else
3345 ac_cv_prog_CPP=$CPP
3346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003347{ echo "$as_me:$LINENO: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes
3351do
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363/* end confdefs.h. */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
3369 Syntax error
3370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371if { (ac_try="$ac_cpp conftest.$ac_ext"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 else
3388 ac_cpp_err=
3389 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391 ac_cpp_err=yes
3392fi
3393if test -z "$ac_cpp_err"; then
3394 :
3395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399 # Broken: fails on valid input.
3400continue
3401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403rm -f conftest.err conftest.$ac_ext
3404
Reid Spencera773bd52006-08-04 18:18:08 +00003405 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h. */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412/* end confdefs.h. */
3413#include <ac_nonexistent.h>
3414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419esac
3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 else
3432 ac_cpp_err=
3433 fi
3434else
3435 ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438 # Broken: success on invalid input.
3439continue
3440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441 echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444 # Passes both tests.
3445ac_preproc_ok=:
3446break
3447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449rm -f conftest.err conftest.$ac_ext
3450
3451done
3452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003454if $ac_preproc_ok; then
3455 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&5
3459echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462fi
3463
John Criswell7a73b802003-06-30 21:59:07 +00003464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
John Criswell7a73b802003-06-30 21:59:07 +00003470
Eric Christopherffee5722011-09-16 20:36:25 +00003471
3472
3473if test -d ${srcdir}/projects/llvm-gcc ; then
3474 subdirs="$subdirs projects/llvm-gcc"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/test-suite ; then
3479 subdirs="$subdirs projects/test-suite"
3480
3481fi
3482
3483if test -d ${srcdir}/projects/llvm-test ; then
3484 subdirs="$subdirs projects/llvm-test"
3485
3486fi
3487
3488if test -d ${srcdir}/projects/poolalloc ; then
3489 subdirs="$subdirs projects/poolalloc"
3490
3491fi
3492
3493if test -d ${srcdir}/projects/llvm-poolalloc ; then
3494 subdirs="$subdirs projects/llvm-poolalloc"
3495
3496fi
3497
3498for i in `ls ${srcdir}/projects`
3499do
3500 if test -d ${srcdir}/projects/${i} ; then
3501 case ${i} in
3502 sample) subdirs="$subdirs projects/sample"
3503 ;;
3504 privbracket) subdirs="$subdirs projects/privbracket"
3505 ;;
3506 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3507 ;;
3508 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3509;;
3510 llvm-java) subdirs="$subdirs projects/llvm-java"
3511 ;;
3512 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3513 ;;
3514 safecode) subdirs="$subdirs projects/safecode"
3515 ;;
3516 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3517 ;;
3518 llvm-gcc) ;;
3519 test-suite) ;;
3520 llvm-test) ;;
3521 poolalloc) ;;
3522 llvm-poolalloc) ;;
3523 *)
3524 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3525echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3526 ;;
3527 esac
3528 fi
3529done
3530
3531# Check whether --enable-polly was given.
3532if test "${enable_polly+set}" = set; then
3533 enableval=$enable_polly;
3534else
3535 enableval=default
3536fi
3537
3538case "$enableval" in
3539 yes) ENABLE_POLLY=1
3540 ;;
3541 no) ENABLE_POLLY=0
3542 ;;
3543 default) ENABLE_POLLY=1
3544 ;;
3545 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3546echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3547 { (exit 1); exit 1; }; } ;;
3548esac
3549
3550
3551if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3552 LLVM_HAS_POLLY=1
3553
3554 subdirs="$subdirs tools/polly"
3555
3556fi
3557
3558
3559# Make sure we can run config.sub.
3560$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3561 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3562echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3563 { (exit 1); exit 1; }; }
3564
3565{ echo "$as_me:$LINENO: checking build system type" >&5
3566echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3567if test "${ac_cv_build+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570 ac_build_alias=$build_alias
3571test "x$ac_build_alias" = x &&
3572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573test "x$ac_build_alias" = x &&
3574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3575echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3576 { (exit 1); exit 1; }; }
3577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3579echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3580 { (exit 1); exit 1; }; }
3581
3582fi
3583{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3584echo "${ECHO_T}$ac_cv_build" >&6; }
3585case $ac_cv_build in
3586*-*-*) ;;
3587*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3588echo "$as_me: error: invalid value of canonical build" >&2;}
3589 { (exit 1); exit 1; }; };;
3590esac
3591build=$ac_cv_build
3592ac_save_IFS=$IFS; IFS='-'
3593set x $ac_cv_build
3594shift
3595build_cpu=$1
3596build_vendor=$2
3597shift; shift
3598# Remember, the first character of IFS is used to create $*,
3599# except with old shells:
3600build_os=$*
3601IFS=$ac_save_IFS
3602case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603
3604
3605{ echo "$as_me:$LINENO: checking host system type" >&5
3606echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3607if test "${ac_cv_host+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 if test "x$host_alias" = x; then
3611 ac_cv_host=$ac_cv_build
3612else
3613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3615echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3616 { (exit 1); exit 1; }; }
3617fi
3618
3619fi
3620{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3621echo "${ECHO_T}$ac_cv_host" >&6; }
3622case $ac_cv_host in
3623*-*-*) ;;
3624*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3625echo "$as_me: error: invalid value of canonical host" >&2;}
3626 { (exit 1); exit 1; }; };;
3627esac
3628host=$ac_cv_host
3629ac_save_IFS=$IFS; IFS='-'
3630set x $ac_cv_host
3631shift
3632host_cpu=$1
3633host_vendor=$2
3634shift; shift
3635# Remember, the first character of IFS is used to create $*,
3636# except with old shells:
3637host_os=$*
3638IFS=$ac_save_IFS
3639case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3640
3641
3642{ echo "$as_me:$LINENO: checking target system type" >&5
3643echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3644if test "${ac_cv_target+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 if test "x$target_alias" = x; then
3648 ac_cv_target=$ac_cv_host
3649else
3650 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3651 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3652echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3653 { (exit 1); exit 1; }; }
3654fi
3655
3656fi
3657{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3658echo "${ECHO_T}$ac_cv_target" >&6; }
3659case $ac_cv_target in
3660*-*-*) ;;
3661*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3662echo "$as_me: error: invalid value of canonical target" >&2;}
3663 { (exit 1); exit 1; }; };;
3664esac
3665target=$ac_cv_target
3666ac_save_IFS=$IFS; IFS='-'
3667set x $ac_cv_target
3668shift
3669target_cpu=$1
3670target_vendor=$2
3671shift; shift
3672# Remember, the first character of IFS is used to create $*,
3673# except with old shells:
3674target_os=$*
3675IFS=$ac_save_IFS
3676case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3677
3678
3679# The aliases save the names the user supplied, while $host etc.
3680# will get canonicalized.
3681test -n "$target_alias" &&
3682 test "$program_prefix$program_suffix$program_transform_name" = \
3683 NONENONEs,x,x, &&
3684 program_prefix=${target_alias}-
3685
3686{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3687echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3688if test "${llvm_cv_os_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 case $host in
3692 *-*-aix*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="AIX"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-irix*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="IRIX"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-cygwin*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Cygwin"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-darwin*)
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Darwin"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-minix*)
3713 llvm_cv_link_all_option="-Wl,-all_load"
3714 llvm_cv_no_link_all_option="-Wl,-noall_load"
3715 llvm_cv_os_type="Minix"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-freebsd*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="FreeBSD"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-openbsd*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="OpenBSD"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-netbsd*)
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="NetBSD"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-dragonfly*)
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="DragonFly"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-hpux*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="HP-UX"
3741 llvm_cv_platform_type="Unix" ;;
3742 *-*-interix*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="Interix"
3746 llvm_cv_platform_type="Unix" ;;
3747 *-*-linux*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Linux"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-*-solaris*)
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-*-auroraux*)
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3762 *-*-win32*)
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3767 *-*-mingw*)
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3772 *-*-haiku*)
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3777 *-unknown-eabi*)
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3782 *-unknown-elf*)
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3787 *)
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3792esac
3793fi
3794{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802 case $target in
3803 *-*-aix*)
3804 llvm_cv_target_os_type="AIX" ;;
3805 *-*-irix*)
3806 llvm_cv_target_os_type="IRIX" ;;
3807 *-*-cygwin*)
3808 llvm_cv_target_os_type="Cygwin" ;;
3809 *-*-darwin*)
3810 llvm_cv_target_os_type="Darwin" ;;
3811 *-*-minix*)
3812 llvm_cv_target_os_type="Minix" ;;
3813 *-*-freebsd*)
3814 llvm_cv_target_os_type="FreeBSD" ;;
3815 *-*-openbsd*)
3816 llvm_cv_target_os_type="OpenBSD" ;;
3817 *-*-netbsd*)
3818 llvm_cv_target_os_type="NetBSD" ;;
3819 *-*-dragonfly*)
3820 llvm_cv_target_os_type="DragonFly" ;;
3821 *-*-hpux*)
3822 llvm_cv_target_os_type="HP-UX" ;;
3823 *-*-interix*)
3824 llvm_cv_target_os_type="Interix" ;;
3825 *-*-linux*)
3826 llvm_cv_target_os_type="Linux" ;;
3827 *-*-solaris*)
3828 llvm_cv_target_os_type="SunOS" ;;
3829 *-*-auroraux*)
3830 llvm_cv_target_os_type="AuroraUX" ;;
3831 *-*-win32*)
3832 llvm_cv_target_os_type="Win32" ;;
3833 *-*-mingw*)
3834 llvm_cv_target_os_type="MingW" ;;
3835 *-*-haiku*)
3836 llvm_cv_target_os_type="Haiku" ;;
3837 *-*-rtems*)
3838 llvm_cv_target_os_type="RTEMS" ;;
3839 *-*-nacl*)
3840 llvm_cv_target_os_type="NativeClient" ;;
3841 *-unknown-eabi*)
3842 llvm_cv_target_os_type="Freestanding" ;;
3843 *)
3844 llvm_cv_target_os_type="Unknown" ;;
3845esac
3846fi
3847{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3848echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3849
3850if test "$llvm_cv_os_type" = "Unknown" ; then
3851 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3852echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3853 { (exit 1); exit 1; }; }
3854fi
3855
3856OS=$llvm_cv_os_type
3857
3858HOST_OS=$llvm_cv_os_type
3859
3860TARGET_OS=$llvm_cv_target_os_type
3861
3862
3863LINKALL=$llvm_cv_link_all_option
3864
3865NOLINKALL=$llvm_cv_no_link_all_option
3866
3867
3868case $llvm_cv_platform_type in
3869 Unix)
3870
3871cat >>confdefs.h <<\_ACEOF
3872#define LLVM_ON_UNIX 1
3873_ACEOF
3874
3875 LLVM_ON_UNIX=1
3876
3877 LLVM_ON_WIN32=0
3878
3879 ;;
3880 Win32)
3881
3882cat >>confdefs.h <<\_ACEOF
3883#define LLVM_ON_WIN32 1
3884_ACEOF
3885
3886 LLVM_ON_UNIX=0
3887
3888 LLVM_ON_WIN32=1
3889
3890 ;;
3891esac
3892
3893{ echo "$as_me:$LINENO: checking target architecture" >&5
3894echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3895if test "${llvm_cv_target_arch+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898 case $target in
3899 i?86-*) llvm_cv_target_arch="x86" ;;
3900 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3901 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3902 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3903 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
3906 xcore-*) llvm_cv_target_arch="XCore" ;;
3907 msp430-*) llvm_cv_target_arch="MSP430" ;;
3908 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3909 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3911 ptx-*) llvm_cv_target_arch="PTX" ;;
3912 *) llvm_cv_target_arch="Unknown" ;;
3913esac
3914fi
3915{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921fi
3922
3923# Determine the LLVM native architecture for the target
3924case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928esac
3929
3930ARCH=$llvm_cv_target_arch
3931
3932
3933
3934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003935{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937if test "${ac_cv_path_GREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940 # Extract the first word of "grep ggrep" to use in msg output
3941if test -z "$GREP"; then
3942set dummy grep ggrep; ac_prog_name=$2
3943if test "${ac_cv_path_GREP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
Reid Spencera773bd52006-08-04 18:18:08 +00003946 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947# Loop through the user's path and test for each of PROGNAME-LIST
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 for ac_prog in grep ggrep; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3957 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003958 # Check for GNU $ac_path_GREP
3959case `"$ac_path_GREP" --version 2>&1` in
3960*GNU*)
3961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3962*)
3963 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_GREP="$ac_path_GREP"
3977 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003978 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983esac
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
3986 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003987 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988done
3989
3990done
Reid Spencera773bd52006-08-04 18:18:08 +00003991IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992
3993
3994fi
3995
3996GREP="$ac_cv_path_GREP"
3997if test -z "$GREP"; then
3998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000 { (exit 1); exit 1; }; }
4001fi
4002
Reid Spencera773bd52006-08-04 18:18:08 +00004003else
4004 ac_cv_path_GREP=$GREP
4005fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007
Reid Spencera773bd52006-08-04 18:18:08 +00004008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004011 GREP="$ac_cv_path_GREP"
4012
4013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014{ echo "$as_me:$LINENO: checking for egrep" >&5
4015echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016if test "${ac_cv_path_EGREP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004018else
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4021 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022 # Extract the first word of "egrep" to use in msg output
4023if test -z "$EGREP"; then
4024set dummy egrep; ac_prog_name=$2
4025if test "${ac_cv_path_EGREP+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
Reid Spencera773bd52006-08-04 18:18:08 +00004028 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029# Loop through the user's path and test for each of PROGNAME-LIST
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035 for ac_prog in egrep; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4039 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004040 # Check for GNU $ac_path_EGREP
4041case `"$ac_path_EGREP" --version 2>&1` in
4042*GNU*)
4043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044*)
4045 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004047 while :
4048 do
4049 cat "conftest.in" "conftest.in" >"conftest.tmp"
4050 mv "conftest.tmp" "conftest.in"
4051 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057 # Best one so far, save it but keep looking for a better one
4058 ac_cv_path_EGREP="$ac_path_EGREP"
4059 ac_path_EGREP_max=$ac_count
4060 fi
4061 # 10*(2^10) chars as input seems more than enough
4062 test $ac_count -gt 10 && break
4063 done
4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065esac
4066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067
4068 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004069 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070done
4071
4072done
Reid Spencera773bd52006-08-04 18:18:08 +00004073IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074
4075
4076fi
4077
4078EGREP="$ac_cv_path_EGREP"
4079if test -z "$EGREP"; then
4080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082 { (exit 1); exit 1; }; }
4083fi
4084
Reid Spencera773bd52006-08-04 18:18:08 +00004085else
4086 ac_cv_path_EGREP=$EGREP
4087fi
4088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089
Reid Spencera773bd52006-08-04 18:18:08 +00004090 fi
4091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004092{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004094 EGREP="$ac_cv_path_EGREP"
4095
4096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4098echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4099if test "${ac_cv_header_stdc+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102 cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h. */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004108#include <stdlib.h>
4109#include <stdarg.h>
4110#include <string.h>
4111#include <float.h>
4112
John Criswell0c38eaf2003-09-10 15:17:25 +00004113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
John Criswell7a73b802003-06-30 21:59:07 +00004120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121rm -f conftest.$ac_objext
4122if { (ac_try="$ac_compile"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004155 ac_cv_header_stdc=yes
4156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004162
Reid Spencera773bd52006-08-04 18:18:08 +00004163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004164
4165if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004167 cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004173#include <string.h>
4174
4175_ACEOF
4176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004177 $EGREP "memchr" >/dev/null 2>&1; then
4178 :
John Criswell7a73b802003-06-30 21:59:07 +00004179else
4180 ac_cv_header_stdc=no
4181fi
4182rm -f conftest*
4183
4184fi
4185
4186if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004194#include <stdlib.h>
4195
4196_ACEOF
4197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 $EGREP "free" >/dev/null 2>&1; then
4199 :
John Criswell7a73b802003-06-30 21:59:07 +00004200else
4201 ac_cv_header_stdc=no
4202fi
4203rm -f conftest*
4204
4205fi
4206
4207if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004209 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004210 :
4211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004218#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004219#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004220#if ((' ' & 0x0FF) == 0x020)
4221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004224# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004225 (('a' <= (c) && (c) <= 'i') \
4226 || ('j' <= (c) && (c) <= 'r') \
4227 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229#endif
4230
4231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232int
4233main ()
4234{
4235 int i;
4236 for (i = 0; i < 256; i++)
4237 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004238 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004239 return 2;
4240 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004241}
4242_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243rm -f conftest$ac_exeext
4244if { (ac_try="$ac_link"
4245case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_link") 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257esac
4258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_try") 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 :
John Criswell7a73b802003-06-30 21:59:07 +00004264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265 echo "$as_me: program exited with status $ac_status" >&5
4266echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269( exit $ac_status )
4270ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272rm -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 +00004273fi
4274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275
John Criswell7a73b802003-06-30 21:59:07 +00004276fi
4277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004278{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4279echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004280if test $ac_cv_header_stdc = yes; then
4281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282cat >>confdefs.h <<\_ACEOF
4283#define STDC_HEADERS 1
4284_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004285
4286fi
4287
Reid Spencera773bd52006-08-04 18:18:08 +00004288# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
4290
4291
4292
4293
4294
4295
4296
4297
Reid Spencera773bd52006-08-04 18:18:08 +00004298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004300do
4301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313$ac_includes_default
4314
4315#include <$ac_header>
4316_ACEOF
4317rm -f conftest.$ac_objext
4318if { (ac_try="$ac_compile"
4319case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_try") 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 eval "$as_ac_Header=yes"
4352else
4353 echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 eval "$as_ac_Header=no"
4357fi
4358
4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360fi
4361ac_res=`eval echo '${'$as_ac_Header'}'`
4362 { echo "$as_me:$LINENO: result: $ac_res" >&5
4363echo "${ECHO_T}$ac_res" >&6; }
4364if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004365 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004367_ACEOF
4368
4369fi
4370
4371done
4372
4373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4375echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4376if test "${ac_cv_c_bigendian+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379 # See if sys/param.h defines the BYTE_ORDER macro.
4380cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004385/* end confdefs.h. */
4386#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004388
4389int
4390main ()
4391{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4393 bogus endian macros
4394#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004395
4396 ;
4397 return 0;
4398}
4399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400rm -f conftest.$ac_objext
4401if { (ac_try="$ac_compile"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418esac
4419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
4429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_try") 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004434 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004435cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004440/* end confdefs.h. */
4441#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004443
4444int
4445main ()
4446{
4447#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004448 not big endian
4449#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004450
4451 ;
4452 return 0;
4453}
4454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455rm -f conftest.$ac_objext
4456if { (ac_try="$ac_compile"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004489 ac_cv_c_bigendian=yes
4490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004491 echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 ac_cv_c_bigendian=no
4495fi
4496
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498else
4499 echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 # It does not; compile a test program.
4503if test "$cross_compiling" = yes; then
4504 # try to guess the endianness by grepping values into an object file
4505 ac_cv_c_bigendian=unknown
4506 cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518int
4519main ()
4520{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004522 ;
4523 return 0;
4524}
4525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526rm -f conftest.$ac_objext
4527if { (ac_try="$ac_compile"
4528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004561 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562fi
4563if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4564 if test "$ac_cv_c_bigendian" = unknown; then
4565 ac_cv_c_bigendian=no
4566 else
4567 # finding both strings is unlikely to happen, but who knows?
4568 ac_cv_c_bigendian=unknown
4569 fi
4570fi
Reid Spencera773bd52006-08-04 18:18:08 +00004571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004575
Torok Edwin871384f2010-01-26 08:50:50 +00004576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577
Reid Spencera773bd52006-08-04 18:18:08 +00004578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580 cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004585/* end confdefs.h. */
4586$ac_includes_default
4587int
4588main ()
4589{
4590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591 /* Are we little or big endian? From Harbison&Steele. */
4592 union
4593 {
4594 long int l;
4595 char c[sizeof (long int)];
4596 } u;
4597 u.l = 1;
4598 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004599
4600 ;
4601 return 0;
4602}
4603_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604rm -f conftest$ac_exeext
4605if { (ac_try="$ac_link"
4606case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609esac
4610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_link") 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618esac
4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004624 ac_cv_c_bigendian=no
4625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626 echo "$as_me: program exited with status $ac_status" >&5
4627echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630( exit $ac_status )
4631ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004633rm -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 +00004634fi
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636
Reid Spencera773bd52006-08-04 18:18:08 +00004637fi
4638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640fi
4641{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4642echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4643case $ac_cv_c_bigendian in
4644 yes)
4645 ENDIAN=big
4646 ;;
4647 no)
4648 ENDIAN=little
4649 ;;
4650 *)
4651 { { echo "$as_me:$LINENO: error: unknown endianness
4652presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4653echo "$as_me: error: unknown endianness
4654presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4655 { (exit 1); exit 1; }; } ;;
4656esac
Reid Spencera773bd52006-08-04 18:18:08 +00004657
4658
4659if test "$cross_compiling" = yes; then
4660 LLVM_CROSS_COMPILING=1
4661
4662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4664echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4665if test "${ac_cv_build_exeext+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004667else
4668 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4669 ac_cv_build_exeext=.exe
4670else
4671 ac_build_prefix=${build_alias}-
4672
4673 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4674set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004679else
4680 if test -n "$BUILD_CC"; then
4681 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 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 +00004690 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004692 break 2
4693 fi
4694done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695done
Reid Spencera773bd52006-08-04 18:18:08 +00004696IFS=$as_save_IFS
4697
4698fi
4699fi
4700BUILD_CC=$ac_cv_prog_BUILD_CC
4701if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4703echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705 { echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004707fi
4708
4709
4710 if test -z "$BUILD_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004717else
4718 if test -n "$BUILD_CC"; then
4719 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4720else
4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722for as_dir in $PATH
4723do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 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 +00004728 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004730 break 2
4731 fi
4732done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733done
Reid Spencera773bd52006-08-04 18:18:08 +00004734IFS=$as_save_IFS
4735
4736fi
4737fi
4738BUILD_CC=$ac_cv_prog_BUILD_CC
4739if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743 { echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004745fi
4746
4747
4748 if test -z "$BUILD_CC"; then
4749 # Extract the first word of "cc", so it can be a program name with args.
4750set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004755else
4756 if test -n "$BUILD_CC"; then
4757 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4758else
4759 ac_prog_rejected=no
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 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 +00004767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768 ac_prog_rejected=yes
4769 continue
4770 fi
4771 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004773 break 2
4774 fi
4775done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004776done
Reid Spencera773bd52006-08-04 18:18:08 +00004777IFS=$as_save_IFS
4778
4779if test $ac_prog_rejected = yes; then
4780 # We found a bogon in the path, so make sure we never use it.
4781 set dummy $ac_cv_prog_BUILD_CC
4782 shift
4783 if test $# != 0; then
4784 # We chose a different compiler from the bogus one.
4785 # However, it has the same basename, so the bogon will be chosen
4786 # first if we set BUILD_CC to just the basename; use the full file name.
4787 shift
4788 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4789 fi
4790fi
4791fi
4792fi
4793BUILD_CC=$ac_cv_prog_BUILD_CC
4794if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4796echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 { echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800fi
4801
4802
4803 fi
4804 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004805 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4806echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4807 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4809 rm -f conftest*
4810 echo 'int main () { return 0; }' > conftest.$ac_ext
4811 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004813 (eval $ac_build_link) 2>&5
4814 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004817 for file in conftest.*; do
4818 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004819 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004820 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4821 esac
4822 done
4823 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4825echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4826 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004827 fi
4828 rm -f conftest*
4829 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4830fi
4831fi
4832
4833BUILD_EXEEXT=""
4834test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4836echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004837ac_build_exeext=$BUILD_EXEEXT
4838
Jim Grosbach673612e2008-10-02 22:56:44 +00004839 ac_build_prefix=${build_alias}-
4840 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4841set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004846else
4847 if test -n "$BUILD_CXX"; then
4848 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 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 +00004857 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004859 break 2
4860 fi
4861done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862done
Jim Grosbach673612e2008-10-02 22:56:44 +00004863IFS=$as_save_IFS
4864
4865fi
4866fi
4867BUILD_CXX=$ac_cv_prog_BUILD_CXX
4868if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4870echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 { echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004874fi
4875
4876
4877 if test -z "$BUILD_CXX"; then
4878 # Extract the first word of "g++", so it can be a program name with args.
4879set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004884else
4885 if test -n "$BUILD_CXX"; then
4886 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 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 +00004895 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004897 break 2
4898 fi
4899done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900done
Jim Grosbach673612e2008-10-02 22:56:44 +00004901IFS=$as_save_IFS
4902
4903fi
4904fi
4905BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910 { echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004912fi
4913
4914
4915 if test -z "$BUILD_CXX"; then
4916 # Extract the first word of "c++", so it can be a program name with args.
4917set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004922else
4923 if test -n "$BUILD_CXX"; then
4924 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4925else
4926 ac_prog_rejected=no
4927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 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 +00004934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4935 ac_prog_rejected=yes
4936 continue
4937 fi
4938 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004940 break 2
4941 fi
4942done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004943done
Jim Grosbach673612e2008-10-02 22:56:44 +00004944IFS=$as_save_IFS
4945
4946if test $ac_prog_rejected = yes; then
4947 # We found a bogon in the path, so make sure we never use it.
4948 set dummy $ac_cv_prog_BUILD_CXX
4949 shift
4950 if test $# != 0; then
4951 # We chose a different compiler from the bogus one.
4952 # However, it has the same basename, so the bogon will be chosen
4953 # first if we set BUILD_CXX to just the basename; use the full file name.
4954 shift
4955 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4956 fi
4957fi
4958fi
4959fi
4960BUILD_CXX=$ac_cv_prog_BUILD_CXX
4961if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4963echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004965 { echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004967fi
4968
4969
4970 fi
4971 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004972else
4973 LLVM_CROSS_COMPILING=0
4974
4975fi
4976
Dan Gohman56fb5f92010-08-04 16:25:01 +00004977if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004978 cvsbuild="yes"
4979 optimize="no"
4980 CVSBUILD=CVSBUILD=1
4981
4982else
4983 cvsbuild="no"
4984 optimize="yes"
4985fi
4986
4987
4988# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004990 enableval=$enable_optimized;
4991else
4992 enableval=$optimize
4993fi
4994
4995if test ${enableval} = "no" ; then
4996 ENABLE_OPTIMIZED=
4997
4998else
4999 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5000
5001fi
5002
David Greene2a5a12c2009-04-17 14:50:39 +00005003# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005004if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005005 enableval=$enable_profiling;
5006else
5007 enableval="no"
5008fi
5009
5010if test ${enableval} = "no" ; then
5011 ENABLE_PROFILING=
5012
5013else
5014 ENABLE_PROFILING=ENABLE_PROFILING=1
5015
5016fi
5017
Reid Spencera773bd52006-08-04 18:18:08 +00005018# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005019if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005020 enableval=$enable_assertions;
5021else
5022 enableval="yes"
5023fi
5024
5025if test ${enableval} = "yes" ; then
5026 DISABLE_ASSERTIONS=
5027
5028else
5029 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5030
5031fi
5032
David Greenea696d242007-06-28 19:36:08 +00005033# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005035 enableval=$enable_expensive_checks;
5036else
5037 enableval="no"
5038fi
5039
5040if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042
5043 EXPENSIVE_CHECKS=yes
5044
5045else
5046 ENABLE_EXPENSIVE_CHECKS=
5047
5048 EXPENSIVE_CHECKS=no
5049
5050fi
5051
Reid Spencer8b2e1412006-11-17 03:32:33 +00005052# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005053if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005054 enableval=$enable_debug_runtime;
5055else
5056 enableval=no
5057fi
5058
5059if test ${enableval} = "no" ; then
5060 DEBUG_RUNTIME=
5061
5062else
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5064
5065fi
5066
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005067# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005068if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005069 enableval=$enable_debug_symbols;
5070else
5071 enableval=no
5072fi
5073
5074if test ${enableval} = "no" ; then
5075 DEBUG_SYMBOLS=
5076
5077else
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5079
5080fi
5081
Reid Spencera773bd52006-08-04 18:18:08 +00005082# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005083if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005084 enableval=$enable_jit;
5085else
5086 enableval=default
5087fi
5088
5089if test ${enableval} = "no"
5090then
5091 JIT=
5092
5093else
5094 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005095 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005096 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005097 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005098 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005099 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005100 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005101 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005102 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005103 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005104 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005105 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005106 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005107 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005108 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005109 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005110 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005111 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005112 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005113 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00005114 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005115 Blackfin) TARGET_HAS_JIT=0
5116 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005117 MBlaze) TARGET_HAS_JIT=0
5118 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005119 PTX) TARGET_HAS_JIT=0
5120 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005121 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005122 ;;
5123 esac
5124fi
5125
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005126# Check whether --enable-docs was given.
5127if test "${enable_docs+set}" = set; then
5128 enableval=$enable_docs;
5129else
5130 enableval=default
5131fi
5132
5133case "$enableval" in
5134 yes) ENABLE_DOCS=1
5135 ;;
5136 no) ENABLE_DOCS=0
5137 ;;
5138 default) ENABLE_DOCS=1
5139 ;;
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5143esac
5144
Reid Spencera773bd52006-08-04 18:18:08 +00005145# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005146if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005147 enableval=$enable_doxygen;
5148else
5149 enableval=default
5150fi
5151
5152case "$enableval" in
5153 yes) ENABLE_DOXYGEN=1
5154 ;;
5155 no) ENABLE_DOXYGEN=0
5156 ;;
5157 default) ENABLE_DOXYGEN=0
5158 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005159 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005162esac
5163
5164# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005165if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005166 enableval=$enable_threads;
5167else
Reid Spencer65c5d752006-11-05 17:08:18 +00005168 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005169fi
5170
5171case "$enableval" in
5172 yes) ENABLE_THREADS=1
5173 ;;
5174 no) ENABLE_THREADS=0
5175 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005176 default) ENABLE_THREADS=1
5177 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005181esac
5182
Owen Andersona8603702009-05-19 22:18:56 +00005183cat >>confdefs.h <<_ACEOF
5184#define ENABLE_THREADS $ENABLE_THREADS
5185_ACEOF
5186
5187
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005188# Check whether --enable-pthreads was given.
5189if test "${enable_pthreads+set}" = set; then
5190 enableval=$enable_pthreads;
5191else
5192 enableval=default
5193fi
5194
5195case "$enableval" in
5196 yes) ENABLE_PTHREADS=1
5197 ;;
5198 no) ENABLE_PTHREADS=0
5199 ;;
5200 default) ENABLE_PTHREADS=1
5201 ;;
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5205esac
5206
Reid Spencer89b0d992006-12-16 22:07:52 +00005207# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005209 enableval=$enable_pic;
5210else
5211 enableval=default
5212fi
5213
5214case "$enableval" in
5215 yes) ENABLE_PIC=1
5216 ;;
5217 no) ENABLE_PIC=0
5218 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005219 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005220 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005224esac
5225
5226cat >>confdefs.h <<_ACEOF
5227#define ENABLE_PIC $ENABLE_PIC
5228_ACEOF
5229
5230
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005231# Check whether --enable-shared was given.
5232if test "${enable_shared+set}" = set; then
5233 enableval=$enable_shared;
5234else
5235 enableval=default
5236fi
5237
5238case "$enableval" in
5239 yes) ENABLE_SHARED=1
5240 ;;
5241 no) ENABLE_SHARED=0
5242 ;;
5243 default) ENABLE_SHARED=0
5244 ;;
5245 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5248esac
5249
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005250# Check whether --enable-embed-stdcxx was given.
5251if test "${enable_embed_stdcxx+set}" = set; then
5252 enableval=$enable_embed_stdcxx;
5253else
5254 enableval=default
5255fi
5256
5257case "$enableval" in
5258 yes) ENABLE_EMBED_STDCXX=1
5259 ;;
5260 no) ENABLE_EMBED_STDCXX=0
5261 ;;
5262 default) ENABLE_EMBED_STDCXX=1
5263 ;;
5264 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5267esac
5268
Daniel Dunbardd464df2010-05-10 20:11:56 +00005269# Check whether --enable-timestamps was given.
5270if test "${enable_timestamps+set}" = set; then
5271 enableval=$enable_timestamps;
5272else
5273 enableval=default
5274fi
5275
5276case "$enableval" in
5277 yes) ENABLE_TIMESTAMPS=1
5278 ;;
5279 no) ENABLE_TIMESTAMPS=0
5280 ;;
5281 default) ENABLE_TIMESTAMPS=1
5282 ;;
5283 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286esac
5287
5288cat >>confdefs.h <<_ACEOF
5289#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5290_ACEOF
5291
5292
Reid Spencera773bd52006-08-04 18:18:08 +00005293TARGETS_TO_BUILD=""
5294# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005296 enableval=$enable_targets;
5297else
5298 enableval=all
5299fi
5300
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005301if test "$enableval" = host-only ; then
5302 enableval=host
5303fi
Reid Spencera773bd52006-08-04 18:18:08 +00005304case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005305 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 +00005306 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5307 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5319 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5320 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005322 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005323 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005324 host) case "$llvm_cv_target_arch" in
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5330 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005332 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005333 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005334 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005336 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005337 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005338 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340echo "$as_me: error: Can not set target to build" >&2;}
5341 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005342 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005343 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005346 esac
5347 done
5348 ;;
5349esac
Reid Spencera773bd52006-08-04 18:18:08 +00005350TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351
5352
Douglas Gregor0711c302009-06-17 00:43:20 +00005353# Determine whether we are building LLVM support for the native architecture.
5354# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5355for a_target in $TARGETS_TO_BUILD; do
5356 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5357
5358cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005359#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5360_ACEOF
5361
5362 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5363 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005364 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005365 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5367 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5368 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005369
5370cat >>confdefs.h <<_ACEOF
5371#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005372_ACEOF
5373
5374
5375cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005376#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5377_ACEOF
5378
5379
5380cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005381#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005382_ACEOF
5383
5384
5385cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005386#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005387_ACEOF
5388
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005390
5391cat >>confdefs.h <<_ACEOF
5392#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5393_ACEOF
5394
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005395 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005396 fi
5397done
5398
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005399# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005401LLVM_ENUM_TARGETS=""
5402LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005403LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005404LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005405for target_to_build in $TARGETS_TO_BUILD; do
5406 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005407 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005408 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5409 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005410 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5412 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005413 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5415 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005416done
5417
5418
5419
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005420
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005421
Reid Spencer65c5d752006-11-05 17:08:18 +00005422# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005424 enableval=$enable_cbe_printf_a;
5425else
5426 enableval=default
5427fi
5428
5429case "$enableval" in
5430 yes) ENABLE_CBE_PRINTF_A=1
5431 ;;
5432 no) ENABLE_CBE_PRINTF_A=0
5433 ;;
5434 default) ENABLE_CBE_PRINTF_A=1
5435 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5437echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5438 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005439esac
5440
5441cat >>confdefs.h <<_ACEOF
5442#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5443_ACEOF
5444
5445
Reid Spencera773bd52006-08-04 18:18:08 +00005446
5447# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005448if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005449 withval=$with_llvmgccdir;
5450else
5451 withval=default
5452fi
5453
5454case "$withval" in
5455 default) WITH_LLVMGCCDIR=default ;;
5456 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005457 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5458echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5459 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005460esac
5461
5462
Devang Patel5d28b882007-12-04 22:54:47 +00005463# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005464if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005465 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5466 WITH_LLVMGCCDIR=""
5467fi
5468
5469
5470
5471# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005472if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005473 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5474 WITH_LLVMGCCDIR=""
5475fi
5476
Douglas Gregor01746742009-05-11 18:05:52 +00005477
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005478if test -n "$LLVMGCC"; then
5479 LLVMGCCCOMMAND="$LLVMGCC"
5480fi
5481
5482if test -n "$LLVMGXX"; then
5483 LLVMGXXCOMMAND="$LLVMGXX"
5484fi
Devang Patel5d28b882007-12-04 22:54:47 +00005485
5486if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005487 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5488echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5489 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005490fi
5491
5492if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5494echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5495 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005496fi
5497
5498
Daniel Dunbar98515672010-02-23 10:00:49 +00005499# Check whether --with-clang was given.
5500if test "${with_clang+set}" = set; then
5501 withval=$with_clang;
5502else
5503 with_clang=default
5504fi
5505
5506
5507
5508# Check whether --with-built-clang was given.
5509if test "${with_built_clang+set}" = set; then
5510 withval=$with_built_clang;
5511else
5512 with_built_clang=check
5513fi
5514
5515
5516{ echo "$as_me:$LINENO: checking clang compiler" >&5
5517echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5518WITH_CLANGPATH=""
5519WITH_BUILT_CLANG=0
5520if test "$with_clang" != "default"; then
5521 WITH_CLANGPATH="$with_clang"
5522 if ! test -x "$WITH_CLANGPATH"; then
5523 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5524echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5525 { (exit 1); exit 1; }; }
5526 fi
5527elif test "$with_built_clang" = "yes"; then
5528 WITH_BUILT_CLANG=1
5529elif test "$with_built_clang" = "no"; then
5530 WITH_BUILT_CLANG=0
5531else
5532 if test "$with_built_clang" != "check"; then
5533 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5534echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5535 { (exit 1); exit 1; }; }
5536 fi
5537
5538 if test -f ${srcdir}/tools/clang/README.txt; then
5539 WITH_BUILT_CLANG=1
5540 fi
5541fi
5542
5543if ! test -z "$WITH_CLANGPATH"; then
5544 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5545echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5546 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5547elif test "$WITH_BUILT_CLANG" = "1"; then
5548 { echo "$as_me:$LINENO: result: built" >&5
5549echo "${ECHO_T}built" >&6; }
5550else
5551 { echo "$as_me:$LINENO: result: none" >&5
5552echo "${ECHO_T}none" >&6; }
5553fi
5554CLANGPATH=$WITH_CLANGPATH
5555
5556CLANGXXPATH=$WITH_CLANGXXPATH
5557
5558ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5559
5560
5561
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005562# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005564 withval=$with_optimize_option;
5565else
5566 withval=default
5567fi
5568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005569{ echo "$as_me:$LINENO: checking optimization flags" >&5
5570echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005571case "$withval" in
5572 default)
5573 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005574 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005575 MingW) optimize_option=-O2 ;;
5576 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005577 esac ;;
5578 *) optimize_option="$withval" ;;
5579esac
5580OPTIMIZE_OPTION=$optimize_option
5581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5583echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005584
5585
Reid Spencera773bd52006-08-04 18:18:08 +00005586# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005588 withval=$with_extra_options;
5589else
5590 withval=default
5591fi
5592
5593case "$withval" in
5594 default) EXTRA_OPTIONS= ;;
5595 *) EXTRA_OPTIONS=$withval ;;
5596esac
5597EXTRA_OPTIONS=$EXTRA_OPTIONS
5598
5599
Daniel Dunbared344d22011-06-16 22:30:41 +00005600
5601# Check whether --with-extra-ld-options was given.
5602if test "${with_extra_ld_options+set}" = set; then
5603 withval=$with_extra_ld_options;
5604else
5605 withval=default
5606fi
5607
5608case "$withval" in
5609 default) EXTRA_LD_OPTIONS= ;;
5610 *) EXTRA_LD_OPTIONS=$withval ;;
5611esac
5612EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5613
5614
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005615# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005617 enableval=$enable_bindings;
5618else
5619 enableval=default
5620fi
5621
5622BINDINGS_TO_BUILD=""
5623case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005624 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005625 all ) BINDINGS_TO_BUILD="ocaml" ;;
5626 none | no) BINDINGS_TO_BUILD="" ;;
5627 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5628 case "$a_binding" in
5629 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5631echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5632 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005633 esac
5634 done
5635 ;;
5636esac
5637
Reid Spencera773bd52006-08-04 18:18:08 +00005638
Gordon Henriksenf0915682007-10-02 16:42:22 +00005639# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005641 withval=$with_ocaml_libdir;
5642else
5643 withval=auto
5644fi
5645
5646case "$withval" in
5647 auto) with_ocaml_libdir="$withval" ;;
5648 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5650echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5651 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005652esac
5653
5654
Chandler Carruth6b241162010-10-19 08:21:25 +00005655# Check whether --with-clang-resource-dir was given.
5656if test "${with_clang_resource_dir+set}" = set; then
5657 withval=$with_clang_resource_dir;
5658else
5659 withval=""
5660fi
5661
5662
5663cat >>confdefs.h <<_ACEOF
5664#define CLANG_RESOURCE_DIR "$withval"
5665_ACEOF
5666
5667
5668
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005669# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005670if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005671 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005672else
5673 withval=""
5674fi
5675
5676
5677cat >>confdefs.h <<_ACEOF
5678#define C_INCLUDE_DIRS "$withval"
5679_ACEOF
5680
5681
5682
Rafael Espindola420d23c2009-11-16 19:46:55 +00005683# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005685 withval=$with_cxx_include_root;
5686else
5687 withval=""
5688fi
5689
5690
5691cat >>confdefs.h <<_ACEOF
5692#define CXX_INCLUDE_ROOT "$withval"
5693_ACEOF
5694
5695
5696
5697# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005699 withval=$with_cxx_include_arch;
5700else
5701 withval=""
5702fi
5703
5704
5705cat >>confdefs.h <<_ACEOF
5706#define CXX_INCLUDE_ARCH "$withval"
5707_ACEOF
5708
5709
5710
5711# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005713 withval=$with_cxx_include_32bit_dir;
5714else
5715 withval=""
5716fi
5717
5718
5719cat >>confdefs.h <<_ACEOF
5720#define CXX_INCLUDE_32BIT_DIR "$withval"
5721_ACEOF
5722
5723
5724
5725# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005727 withval=$with_cxx_include_64bit_dir;
5728else
5729 withval=""
5730fi
5731
5732
5733cat >>confdefs.h <<_ACEOF
5734#define CXX_INCLUDE_64BIT_DIR "$withval"
5735_ACEOF
5736
5737
5738
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005739# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005741 withval=$with_binutils_include;
5742else
5743 withval=default
5744fi
5745
5746case "$withval" in
5747 default) WITH_BINUTILS_INCDIR=default ;;
5748 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5750echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5751 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005752esac
5753if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5754 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5755
5756 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5757 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5759echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5760 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005761 fi
5762fi
5763
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005764
5765# Check whether --with-bug-report-url was given.
5766if test "${with_bug_report_url+set}" = set; then
5767 withval=$with_bug_report_url;
5768else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005769 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005770fi
5771
5772
5773cat >>confdefs.h <<_ACEOF
5774#define BUG_REPORT_URL "$withval"
5775_ACEOF
5776
5777
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005778# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005780 enableval=$enable_libffi; case "$enableval" in
5781 yes) llvm_cv_enable_libffi="yes" ;;
5782 no) llvm_cv_enable_libffi="no" ;;
5783 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5785 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005786 esac
5787else
5788 llvm_cv_enable_libffi=no
5789fi
5790
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005791
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005793{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5794echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5795if test "${lt_cv_path_NM+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005797else
5798 if test -n "$NM"; then
5799 # Let the user override the test.
5800 lt_cv_path_NM="$NM"
5801else
5802 lt_nm_to_check="${ac_tool_prefix}nm"
5803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5804 lt_nm_to_check="$lt_nm_to_check nm"
5805 fi
5806 for lt_tmp_nm in $lt_nm_to_check; do
5807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5809 IFS="$lt_save_ifs"
5810 test -z "$ac_dir" && ac_dir=.
5811 tmp_nm="$ac_dir/$lt_tmp_nm"
5812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5813 # Check to see if the nm accepts a BSD-compat flag.
5814 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5815 # nm: unknown option "B" ignored
5816 # Tru64's nm complains that /dev/null is an invalid object file
5817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5818 */dev/null* | *'Invalid file or object type'*)
5819 lt_cv_path_NM="$tmp_nm -B"
5820 break
5821 ;;
5822 *)
5823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824 */dev/null*)
5825 lt_cv_path_NM="$tmp_nm -p"
5826 break
5827 ;;
5828 *)
5829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5830 continue # so that we can try to find one that supports BSD flags
5831 ;;
5832 esac
5833 ;;
5834 esac
5835 fi
5836 done
5837 IFS="$lt_save_ifs"
5838 done
5839 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5840fi
5841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5843echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005844NM="$lt_cv_path_NM"
5845
5846
5847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848{ echo "$as_me:$LINENO: checking for GNU make" >&5
5849echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5850if test "${llvm_cv_gnu_make_command+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005852else
5853 llvm_cv_gnu_make_command=''
5854 for a in "$MAKE" make gmake gnumake ; do
5855 if test -z "$a" ; then continue ; fi ;
5856 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5857 then
5858 llvm_cv_gnu_make_command=$a ;
5859 break;
5860 fi
5861 done
5862fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5864echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005865 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5866 ifGNUmake='' ;
5867 else
5868 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5870echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005871 fi
5872
5873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5875echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876LN_S=$as_ln_s
5877if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878 { echo "$as_me:$LINENO: result: yes" >&5
5879echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5882echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005883fi
5884
5885# Extract the first word of "cmp", so it can be a program name with args.
5886set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889if test "${ac_cv_path_CMP+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005891else
5892 case $CMP in
5893 [\\/]* | ?:[\\/]*)
5894 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5895 ;;
5896 *)
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 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 +00005904 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005906 break 2
5907 fi
5908done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909done
Reid Spencera773bd52006-08-04 18:18:08 +00005910IFS=$as_save_IFS
5911
5912 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5913 ;;
5914esac
5915fi
5916CMP=$ac_cv_path_CMP
5917if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 { echo "$as_me:$LINENO: result: $CMP" >&5
5919echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005921 { echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005923fi
5924
5925
5926# Extract the first word of "cp", so it can be a program name with args.
5927set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930if test "${ac_cv_path_CP+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005932else
5933 case $CP in
5934 [\\/]* | ?:[\\/]*)
5935 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5936 ;;
5937 *)
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 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 +00005945 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005947 break 2
5948 fi
5949done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005950done
Reid Spencera773bd52006-08-04 18:18:08 +00005951IFS=$as_save_IFS
5952
5953 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5954 ;;
5955esac
5956fi
5957CP=$ac_cv_path_CP
5958if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959 { echo "$as_me:$LINENO: result: $CP" >&5
5960echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962 { echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005964fi
5965
5966
5967# Extract the first word of "date", so it can be a program name with args.
5968set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971if test "${ac_cv_path_DATE+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005973else
5974 case $DATE in
5975 [\\/]* | ?:[\\/]*)
5976 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5977 ;;
5978 *)
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 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 +00005986 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005988 break 2
5989 fi
5990done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991done
Reid Spencera773bd52006-08-04 18:18:08 +00005992IFS=$as_save_IFS
5993
5994 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5995 ;;
5996esac
5997fi
5998DATE=$ac_cv_path_DATE
5999if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 { echo "$as_me:$LINENO: result: $DATE" >&5
6001echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006003 { echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006005fi
6006
6007
6008# Extract the first word of "find", so it can be a program name with args.
6009set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012if test "${ac_cv_path_FIND+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006014else
6015 case $FIND in
6016 [\\/]* | ?:[\\/]*)
6017 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6018 ;;
6019 *)
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 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 +00006027 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006029 break 2
6030 fi
6031done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032done
Reid Spencera773bd52006-08-04 18:18:08 +00006033IFS=$as_save_IFS
6034
6035 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6036 ;;
6037esac
6038fi
6039FIND=$ac_cv_path_FIND
6040if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041 { echo "$as_me:$LINENO: result: $FIND" >&5
6042echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044 { echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006046fi
6047
6048
6049# Extract the first word of "grep", so it can be a program name with args.
6050set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053if test "${ac_cv_path_GREP+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006055else
6056 case $GREP in
6057 [\\/]* | ?:[\\/]*)
6058 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6059 ;;
6060 *)
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 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 +00006068 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006070 break 2
6071 fi
6072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006073done
Reid Spencera773bd52006-08-04 18:18:08 +00006074IFS=$as_save_IFS
6075
6076 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6077 ;;
6078esac
6079fi
6080GREP=$ac_cv_path_GREP
6081if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082 { echo "$as_me:$LINENO: result: $GREP" >&5
6083echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085 { echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006087fi
6088
6089
6090# Extract the first word of "mkdir", so it can be a program name with args.
6091set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094if test "${ac_cv_path_MKDIR+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006096else
6097 case $MKDIR in
6098 [\\/]* | ?:[\\/]*)
6099 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6100 ;;
6101 *)
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 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 +00006109 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006111 break 2
6112 fi
6113done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006114done
Reid Spencera773bd52006-08-04 18:18:08 +00006115IFS=$as_save_IFS
6116
6117 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6118 ;;
6119esac
6120fi
6121MKDIR=$ac_cv_path_MKDIR
6122if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6124echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126 { echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006128fi
6129
6130
6131# Extract the first word of "mv", so it can be a program name with args.
6132set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135if test "${ac_cv_path_MV+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006137else
6138 case $MV in
6139 [\\/]* | ?:[\\/]*)
6140 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6141 ;;
6142 *)
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 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 +00006150 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006152 break 2
6153 fi
6154done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155done
Reid Spencera773bd52006-08-04 18:18:08 +00006156IFS=$as_save_IFS
6157
6158 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6159 ;;
6160esac
6161fi
6162MV=$ac_cv_path_MV
6163if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: $MV" >&5
6165echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006169fi
6170
6171
6172if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177if test "${ac_cv_prog_RANLIB+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006179else
6180 if test -n "$RANLIB"; then
6181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 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 +00006190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006192 break 2
6193 fi
6194done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195done
Reid Spencera773bd52006-08-04 18:18:08 +00006196IFS=$as_save_IFS
6197
6198fi
6199fi
6200RANLIB=$ac_cv_prog_RANLIB
6201if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6203echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 { echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006207fi
6208
6209
6210fi
6211if test -z "$ac_cv_prog_RANLIB"; then
6212 ac_ct_RANLIB=$RANLIB
6213 # Extract the first word of "ranlib", so it can be a program name with args.
6214set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006219else
6220 if test -n "$ac_ct_RANLIB"; then
6221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 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 +00006230 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006232 break 2
6233 fi
6234done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235done
Reid Spencera773bd52006-08-04 18:18:08 +00006236IFS=$as_save_IFS
6237
6238fi
6239fi
6240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6243echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245 { echo "$as_me:$LINENO: result: no" >&5
6246echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006247fi
6248
6249 if test "x$ac_ct_RANLIB" = x; then
6250 RANLIB=":"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6255whose name does not start with the host triplet. If you think this
6256configuration is useful to you, please write to autoconf@gnu.org." >&5
6257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6258whose name does not start with the host triplet. If you think this
6259configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006260ac_tool_warned=yes ;;
6261esac
6262 RANLIB=$ac_ct_RANLIB
6263 fi
6264else
6265 RANLIB="$ac_cv_prog_RANLIB"
6266fi
6267
Torok Edwin871384f2010-01-26 08:50:50 +00006268if test -n "$ac_tool_prefix"; then
6269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6270set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273if test "${ac_cv_prog_AR+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006275else
6276 if test -n "$AR"; then
6277 ac_cv_prog_AR="$AR" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 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 +00006286 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006288 break 2
6289 fi
6290done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291done
Torok Edwin871384f2010-01-26 08:50:50 +00006292IFS=$as_save_IFS
6293
6294fi
6295fi
6296AR=$ac_cv_prog_AR
6297if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 { echo "$as_me:$LINENO: result: $AR" >&5
6299echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006303fi
6304
6305
6306fi
6307if test -z "$ac_cv_prog_AR"; then
6308 ac_ct_AR=$AR
6309 # Extract the first word of "ar", so it can be a program name with args.
6310set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006315else
6316 if test -n "$ac_ct_AR"; then
6317 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 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 +00006326 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006328 break 2
6329 fi
6330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331done
Torok Edwin871384f2010-01-26 08:50:50 +00006332IFS=$as_save_IFS
6333
6334fi
6335fi
6336ac_ct_AR=$ac_cv_prog_ac_ct_AR
6337if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6339echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341 { echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006343fi
6344
6345 if test "x$ac_ct_AR" = x; then
6346 AR="false"
6347 else
6348 case $cross_compiling:$ac_tool_warned in
6349yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6351whose name does not start with the host triplet. If you think this
6352configuration is useful to you, please write to autoconf@gnu.org." >&5
6353echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6354whose name does not start with the host triplet. If you think this
6355configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006356ac_tool_warned=yes ;;
6357esac
6358 AR=$ac_ct_AR
6359 fi
6360else
6361 AR="$ac_cv_prog_AR"
6362fi
6363
Reid Spencera773bd52006-08-04 18:18:08 +00006364# Extract the first word of "rm", so it can be a program name with args.
6365set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368if test "${ac_cv_path_RM+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006370else
6371 case $RM in
6372 [\\/]* | ?:[\\/]*)
6373 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6374 ;;
6375 *)
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 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 +00006383 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006385 break 2
6386 fi
6387done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388done
Reid Spencera773bd52006-08-04 18:18:08 +00006389IFS=$as_save_IFS
6390
6391 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6392 ;;
6393esac
6394fi
6395RM=$ac_cv_path_RM
6396if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 { echo "$as_me:$LINENO: result: $RM" >&5
6398echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 { echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006402fi
6403
6404
6405# Extract the first word of "sed", so it can be a program name with args.
6406set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409if test "${ac_cv_path_SED+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006411else
6412 case $SED in
6413 [\\/]* | ?:[\\/]*)
6414 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6415 ;;
6416 *)
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 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 +00006424 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006426 break 2
6427 fi
6428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429done
Reid Spencera773bd52006-08-04 18:18:08 +00006430IFS=$as_save_IFS
6431
6432 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6433 ;;
6434esac
6435fi
6436SED=$ac_cv_path_SED
6437if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 { echo "$as_me:$LINENO: result: $SED" >&5
6439echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006443fi
6444
6445
6446# Extract the first word of "tar", so it can be a program name with args.
6447set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450if test "${ac_cv_path_TAR+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006452else
6453 case $TAR in
6454 [\\/]* | ?:[\\/]*)
6455 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6456 ;;
6457 *)
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 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 +00006465 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006467 break 2
6468 fi
6469done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006470done
Reid Spencera773bd52006-08-04 18:18:08 +00006471IFS=$as_save_IFS
6472
6473 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6474 ;;
6475esac
6476fi
6477TAR=$ac_cv_path_TAR
6478if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479 { echo "$as_me:$LINENO: result: $TAR" >&5
6480echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482 { echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006484fi
6485
6486
6487# Extract the first word of "pwd", so it can be a program name with args.
6488set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491if test "${ac_cv_path_BINPWD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006493else
6494 case $BINPWD in
6495 [\\/]* | ?:[\\/]*)
6496 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6497 ;;
6498 *)
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 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 +00006506 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006508 break 2
6509 fi
6510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511done
Reid Spencera773bd52006-08-04 18:18:08 +00006512IFS=$as_save_IFS
6513
6514 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6515 ;;
6516esac
6517fi
6518BINPWD=$ac_cv_path_BINPWD
6519if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6521echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006525fi
6526
6527
6528
6529# Extract the first word of "Graphviz", so it can be a program name with args.
6530set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006535else
6536 case $GRAPHVIZ in
6537 [\\/]* | ?:[\\/]*)
6538 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6539 ;;
6540 *)
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 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 +00006548 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006550 break 2
6551 fi
6552done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553done
Reid Spencera773bd52006-08-04 18:18:08 +00006554IFS=$as_save_IFS
6555
6556 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6557 ;;
6558esac
6559fi
6560GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6561if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006562 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6563echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565 { echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006567fi
6568
6569
6570if test "$GRAPHVIZ" != "echo Graphviz" ; then
6571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572cat >>confdefs.h <<\_ACEOF
6573#define HAVE_GRAPHVIZ 1
6574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006575
Jeff Cohen28783c32007-01-12 18:22:38 +00006576 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006577 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6578 fi
6579
6580cat >>confdefs.h <<_ACEOF
6581#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6582_ACEOF
6583
6584fi
6585# Extract the first word of "dot", so it can be a program name with args.
6586set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589if test "${ac_cv_path_DOT+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006591else
6592 case $DOT in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6595 ;;
6596 *)
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 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 +00006604 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006606 break 2
6607 fi
6608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609done
Reid Spencera773bd52006-08-04 18:18:08 +00006610IFS=$as_save_IFS
6611
6612 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6613 ;;
6614esac
6615fi
6616DOT=$ac_cv_path_DOT
6617if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618 { echo "$as_me:$LINENO: result: $DOT" >&5
6619echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621 { echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006623fi
6624
6625
6626if test "$DOT" != "echo dot" ; then
6627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628cat >>confdefs.h <<\_ACEOF
6629#define HAVE_DOT 1
6630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006631
Jeff Cohen28783c32007-01-12 18:22:38 +00006632 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006633 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6634 fi
6635
6636cat >>confdefs.h <<_ACEOF
6637#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6638_ACEOF
6639
6640fi
David Greenef0b9eff2009-07-09 17:16:26 +00006641# Extract the first word of "fdp", so it can be a program name with args.
6642set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645if test "${ac_cv_path_FDP+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006647else
6648 case $FDP in
6649 [\\/]* | ?:[\\/]*)
6650 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6651 ;;
6652 *)
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 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 +00006660 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006662 break 2
6663 fi
6664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665done
David Greenef0b9eff2009-07-09 17:16:26 +00006666IFS=$as_save_IFS
6667
6668 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6669 ;;
6670esac
6671fi
6672FDP=$ac_cv_path_FDP
6673if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 { echo "$as_me:$LINENO: result: $FDP" >&5
6675echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677 { echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006679fi
6680
6681
6682if test "$FDP" != "echo fdp" ; then
6683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684cat >>confdefs.h <<\_ACEOF
6685#define HAVE_FDP 1
6686_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006687
6688 if test "$llvm_cv_os_type" = "MingW" ; then
6689 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690 fi
6691
6692cat >>confdefs.h <<_ACEOF
6693#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6694_ACEOF
6695
6696fi
6697# Extract the first word of "neato", so it can be a program name with args.
6698set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_path_NEATO+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006703else
6704 case $NEATO in
6705 [\\/]* | ?:[\\/]*)
6706 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6707 ;;
6708 *)
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 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 +00006716 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006718 break 2
6719 fi
6720done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721done
David Greenef0b9eff2009-07-09 17:16:26 +00006722IFS=$as_save_IFS
6723
6724 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6725 ;;
6726esac
6727fi
6728NEATO=$ac_cv_path_NEATO
6729if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730 { echo "$as_me:$LINENO: result: $NEATO" >&5
6731echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 { echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006735fi
6736
6737
6738if test "$NEATO" != "echo neato" ; then
6739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740cat >>confdefs.h <<\_ACEOF
6741#define HAVE_NEATO 1
6742_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006743
6744 if test "$llvm_cv_os_type" = "MingW" ; then
6745 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746 fi
6747
6748cat >>confdefs.h <<_ACEOF
6749#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6750_ACEOF
6751
6752fi
6753# Extract the first word of "twopi", so it can be a program name with args.
6754set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757if test "${ac_cv_path_TWOPI+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006759else
6760 case $TWOPI in
6761 [\\/]* | ?:[\\/]*)
6762 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6763 ;;
6764 *)
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 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 +00006772 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006774 break 2
6775 fi
6776done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777done
David Greenef0b9eff2009-07-09 17:16:26 +00006778IFS=$as_save_IFS
6779
6780 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6781 ;;
6782esac
6783fi
6784TWOPI=$ac_cv_path_TWOPI
6785if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6787echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789 { echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006791fi
6792
6793
6794if test "$TWOPI" != "echo twopi" ; then
6795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796cat >>confdefs.h <<\_ACEOF
6797#define HAVE_TWOPI 1
6798_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006799
6800 if test "$llvm_cv_os_type" = "MingW" ; then
6801 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 fi
6803
6804cat >>confdefs.h <<_ACEOF
6805#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6806_ACEOF
6807
6808fi
6809# Extract the first word of "circo", so it can be a program name with args.
6810set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_path_CIRCO+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006815else
6816 case $CIRCO in
6817 [\\/]* | ?:[\\/]*)
6818 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6819 ;;
6820 *)
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 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 +00006828 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006830 break 2
6831 fi
6832done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006833done
David Greenef0b9eff2009-07-09 17:16:26 +00006834IFS=$as_save_IFS
6835
6836 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6837 ;;
6838esac
6839fi
6840CIRCO=$ac_cv_path_CIRCO
6841if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6843echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845 { echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006847fi
6848
6849
6850if test "$CIRCO" != "echo circo" ; then
6851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006852cat >>confdefs.h <<\_ACEOF
6853#define HAVE_CIRCO 1
6854_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006855
6856 if test "$llvm_cv_os_type" = "MingW" ; then
6857 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858 fi
6859
6860cat >>confdefs.h <<_ACEOF
6861#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6862_ACEOF
6863
6864fi
Reid Spencera773bd52006-08-04 18:18:08 +00006865for ac_prog in gv gsview32
6866do
6867 # Extract the first word of "$ac_prog", so it can be a program name with args.
6868set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871if test "${ac_cv_path_GV+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006873else
6874 case $GV in
6875 [\\/]* | ?:[\\/]*)
6876 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6877 ;;
6878 *)
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 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 +00006886 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006888 break 2
6889 fi
6890done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006891done
Reid Spencera773bd52006-08-04 18:18:08 +00006892IFS=$as_save_IFS
6893
6894 ;;
6895esac
6896fi
6897GV=$ac_cv_path_GV
6898if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899 { echo "$as_me:$LINENO: result: $GV" >&5
6900echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902 { echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006904fi
6905
6906
6907 test -n "$GV" && break
6908done
6909test -n "$GV" || GV="echo gv"
6910
6911if test "$GV" != "echo gv" ; then
6912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913cat >>confdefs.h <<\_ACEOF
6914#define HAVE_GV 1
6915_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006916
Jeff Cohen28783c32007-01-12 18:22:38 +00006917 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006918 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6919 fi
6920
6921cat >>confdefs.h <<_ACEOF
6922#define LLVM_PATH_GV "$GV${EXEEXT}"
6923_ACEOF
6924
6925fi
6926# Extract the first word of "dotty", so it can be a program name with args.
6927set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930if test "${ac_cv_path_DOTTY+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006932else
6933 case $DOTTY in
6934 [\\/]* | ?:[\\/]*)
6935 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6936 ;;
6937 *)
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 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 +00006945 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006947 break 2
6948 fi
6949done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950done
Reid Spencera773bd52006-08-04 18:18:08 +00006951IFS=$as_save_IFS
6952
6953 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6954 ;;
6955esac
6956fi
6957DOTTY=$ac_cv_path_DOTTY
6958if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6960echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 { echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006964fi
6965
6966
6967if test "$DOTTY" != "echo dotty" ; then
6968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969cat >>confdefs.h <<\_ACEOF
6970#define HAVE_DOTTY 1
6971_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006972
Jeff Cohen28783c32007-01-12 18:22:38 +00006973 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006974 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6975 fi
6976
6977cat >>confdefs.h <<_ACEOF
6978#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6979_ACEOF
6980
6981fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006982# Extract the first word of "xdot.py", so it can be a program name with args.
6983set dummy xdot.py; ac_word=$2
6984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986if test "${ac_cv_path_XDOT_PY+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 case $XDOT_PY in
6990 [\\/]* | ?:[\\/]*)
6991 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6992 ;;
6993 *)
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007IFS=$as_save_IFS
7008
7009 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7010 ;;
7011esac
7012fi
7013XDOT_PY=$ac_cv_path_XDOT_PY
7014if test -n "$XDOT_PY"; then
7015 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7016echo "${ECHO_T}$XDOT_PY" >&6; }
7017else
7018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022
7023if test "$XDOT_PY" != "echo xdot.py" ; then
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define HAVE_XDOT_PY 1
7027_ACEOF
7028
7029 if test "$llvm_cv_os_type" = "MingW" ; then
7030 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7031 fi
7032
7033cat >>confdefs.h <<_ACEOF
7034#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7035_ACEOF
7036
7037fi
Reid Spencera773bd52006-08-04 18:18:08 +00007038
7039
7040# Extract the first word of "perl", so it can be a program name with args.
7041set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044if test "${ac_cv_path_PERL+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007046else
7047 case $PERL in
7048 [\\/]* | ?:[\\/]*)
7049 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7050 ;;
7051 *)
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 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 +00007059 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007061 break 2
7062 fi
7063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064done
Reid Spencera773bd52006-08-04 18:18:08 +00007065IFS=$as_save_IFS
7066
7067 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7068 ;;
7069esac
7070fi
7071PERL=$ac_cv_path_PERL
7072if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 { echo "$as_me:$LINENO: result: $PERL" >&5
7074echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 { echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007078fi
7079
7080
7081if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7083echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007084 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007085 { echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007087 else
7088 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: not found" >&5
7090echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007091 fi
7092fi
7093
7094
7095if test x"$PERL" = xnone; then
7096 HAVE_PERL=0
7097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7099echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7100 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007101else
7102 HAVE_PERL=1
7103
7104fi
7105
7106# Find a good install program. We prefer a C program (faster),
7107# so one script is as good as another. But avoid the broken or
7108# incompatible versions:
7109# SysV /etc/install, /usr/sbin/install
7110# SunOS /usr/etc/install
7111# IRIX /sbin/install
7112# AIX /bin/install
7113# AmigaOS /C/install, which installs bootblocks on floppy discs
7114# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7115# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7116# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7117# OS/2's system install, which has a completely different semantic
7118# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7120echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007121if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122if test "${ac_cv_path_install+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007124else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 # Account for people who put trailing slashes in PATH elements.
7131case $as_dir/ in
7132 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007135 /usr/ucb/* ) ;;
7136 *)
7137 # OSF1 and SCO ODT 3.0 have their own names for install.
7138 # Don't use installbsd from OSF since it installs stuff as root
7139 # by default.
7140 for ac_prog in ginstall scoinst install; do
7141 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 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 +00007143 if test $ac_prog = install &&
7144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7145 # AIX install. It has an incompatible calling convention.
7146 :
7147 elif test $ac_prog = install &&
7148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7149 # program-specific install script used by HP pwplus--don't use.
7150 :
7151 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7153 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007154 fi
7155 fi
7156 done
7157 done
7158 ;;
7159esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160done
Reid Spencera773bd52006-08-04 18:18:08 +00007161IFS=$as_save_IFS
7162
7163
7164fi
7165 if test "${ac_cv_path_install+set}" = set; then
7166 INSTALL=$ac_cv_path_install
7167 else
7168 # As a last resort, use the slow shell script. Don't cache a
7169 # value for INSTALL within a source directory, because that will
7170 # break other packages using the cache if that directory is
7171 # removed, or if the value is a relative name.
7172 INSTALL=$ac_install_sh
7173 fi
7174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7176echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007177
7178# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7179# It thinks the first close brace ends the variable substitution.
7180test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7181
7182test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7183
7184test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7185
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007186case "$INSTALL" in
7187 [\\/$]* | ?:[\\/]* ) ;;
7188 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7189esac
Reid Spencera773bd52006-08-04 18:18:08 +00007190
7191# Extract the first word of "bzip2", so it can be a program name with args.
7192set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195if test "${ac_cv_path_BZIP2+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007197else
7198 case $BZIP2 in
7199 [\\/]* | ?:[\\/]*)
7200 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7201 ;;
7202 *)
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 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 +00007210 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007212 break 2
7213 fi
7214done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215done
Reid Spencera773bd52006-08-04 18:18:08 +00007216IFS=$as_save_IFS
7217
Reid Spencera773bd52006-08-04 18:18:08 +00007218 ;;
7219esac
7220fi
7221BZIP2=$ac_cv_path_BZIP2
7222if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7224echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007228fi
7229
7230
mike-m68cb3192010-05-06 23:45:43 +00007231# Extract the first word of "cat", so it can be a program name with args.
7232set dummy cat; ac_word=$2
7233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235if test "${ac_cv_path_CAT+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238 case $CAT in
7239 [\\/]* | ?:[\\/]*)
7240 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7241 ;;
7242 *)
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254done
7255done
7256IFS=$as_save_IFS
7257
7258 ;;
7259esac
7260fi
7261CAT=$ac_cv_path_CAT
7262if test -n "$CAT"; then
7263 { echo "$as_me:$LINENO: result: $CAT" >&5
7264echo "${ECHO_T}$CAT" >&6; }
7265else
7266 { echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6; }
7268fi
7269
7270
Reid Spencera773bd52006-08-04 18:18:08 +00007271# Extract the first word of "doxygen", so it can be a program name with args.
7272set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275if test "${ac_cv_path_DOXYGEN+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007277else
7278 case $DOXYGEN in
7279 [\\/]* | ?:[\\/]*)
7280 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7281 ;;
7282 *)
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 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 +00007290 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007292 break 2
7293 fi
7294done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295done
Reid Spencera773bd52006-08-04 18:18:08 +00007296IFS=$as_save_IFS
7297
Reid Spencera773bd52006-08-04 18:18:08 +00007298 ;;
7299esac
7300fi
7301DOXYGEN=$ac_cv_path_DOXYGEN
7302if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7304echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306 { echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007308fi
7309
7310
Reid Spencera773bd52006-08-04 18:18:08 +00007311# Extract the first word of "groff", so it can be a program name with args.
7312set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315if test "${ac_cv_path_GROFF+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007317else
7318 case $GROFF in
7319 [\\/]* | ?:[\\/]*)
7320 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7321 ;;
7322 *)
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 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 +00007330 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007332 break 2
7333 fi
7334done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335done
Reid Spencera773bd52006-08-04 18:18:08 +00007336IFS=$as_save_IFS
7337
Reid Spencera773bd52006-08-04 18:18:08 +00007338 ;;
7339esac
7340fi
7341GROFF=$ac_cv_path_GROFF
7342if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 { echo "$as_me:$LINENO: result: $GROFF" >&5
7344echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 { echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007348fi
7349
7350
7351# Extract the first word of "gzip", so it can be a program name with args.
7352set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007355if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007357else
Eric Christopher031d3072010-12-10 01:31:51 +00007358 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007359 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007360 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007361 ;;
7362 *)
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 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 +00007370 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007372 break 2
7373 fi
7374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375done
Reid Spencera773bd52006-08-04 18:18:08 +00007376IFS=$as_save_IFS
7377
Reid Spencera773bd52006-08-04 18:18:08 +00007378 ;;
7379esac
7380fi
Eric Christopher031d3072010-12-10 01:31:51 +00007381GZIPBIN=$ac_cv_path_GZIPBIN
7382if test -n "$GZIPBIN"; then
7383 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7384echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386 { echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007388fi
7389
7390
7391# Extract the first word of "pod2html", so it can be a program name with args.
7392set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395if test "${ac_cv_path_POD2HTML+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007397else
7398 case $POD2HTML in
7399 [\\/]* | ?:[\\/]*)
7400 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7401 ;;
7402 *)
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 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 +00007410 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007412 break 2
7413 fi
7414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415done
Reid Spencera773bd52006-08-04 18:18:08 +00007416IFS=$as_save_IFS
7417
Reid Spencera773bd52006-08-04 18:18:08 +00007418 ;;
7419esac
7420fi
7421POD2HTML=$ac_cv_path_POD2HTML
7422if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7424echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007428fi
7429
7430
7431# Extract the first word of "pod2man", so it can be a program name with args.
7432set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_path_POD2MAN+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007437else
7438 case $POD2MAN in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7441 ;;
7442 *)
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 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 +00007450 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007452 break 2
7453 fi
7454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455done
Reid Spencera773bd52006-08-04 18:18:08 +00007456IFS=$as_save_IFS
7457
Reid Spencera773bd52006-08-04 18:18:08 +00007458 ;;
7459esac
7460fi
7461POD2MAN=$ac_cv_path_POD2MAN
7462if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7464echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 { echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007468fi
7469
7470
mike-m68cb3192010-05-06 23:45:43 +00007471# Extract the first word of "pdfroff", so it can be a program name with args.
7472set dummy pdfroff; ac_word=$2
7473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475if test "${ac_cv_path_PDFROFF+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 case $PDFROFF in
7479 [\\/]* | ?:[\\/]*)
7480 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7481 ;;
7482 *)
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494done
7495done
7496IFS=$as_save_IFS
7497
7498 ;;
7499esac
7500fi
7501PDFROFF=$ac_cv_path_PDFROFF
7502if test -n "$PDFROFF"; then
7503 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7504echo "${ECHO_T}$PDFROFF" >&6; }
7505else
7506 { echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6; }
7508fi
7509
7510
Reid Spencera773bd52006-08-04 18:18:08 +00007511# Extract the first word of "runtest", so it can be a program name with args.
7512set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515if test "${ac_cv_path_RUNTEST+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007517else
7518 case $RUNTEST in
7519 [\\/]* | ?:[\\/]*)
7520 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7521 ;;
7522 *)
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 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 +00007530 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007532 break 2
7533 fi
7534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535done
Reid Spencera773bd52006-08-04 18:18:08 +00007536IFS=$as_save_IFS
7537
Reid Spencera773bd52006-08-04 18:18:08 +00007538 ;;
7539esac
7540fi
7541RUNTEST=$ac_cv_path_RUNTEST
7542if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007543 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7544echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546 { echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007548fi
7549
7550
7551
7552no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7554echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007555
7556# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007558 withval=$with_tclinclude; with_tclinclude=${withval}
7559else
7560 with_tclinclude=''
7561fi
7562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563if test "${ac_cv_path_tclsh+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007565else
7566
7567if test x"${with_tclinclude}" != x ; then
7568 if test -f ${with_tclinclude}/tclsh ; then
7569 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7570 elif test -f ${with_tclinclude}/src/tclsh ; then
7571 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7572 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7574echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7575 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007576 fi
7577fi
Torok Edwin871384f2010-01-26 08:50:50 +00007578fi
7579
Reid Spencera773bd52006-08-04 18:18:08 +00007580
7581if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582 { echo "$as_me:$LINENO: result: none" >&5
7583echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007584 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
7585do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_TCLSH+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007592else
7593 case $TCLSH in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 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 +00007605 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007607 break 2
7608 fi
7609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610done
Reid Spencera773bd52006-08-04 18:18:08 +00007611IFS=$as_save_IFS
7612
7613 ;;
7614esac
7615fi
7616TCLSH=$ac_cv_path_TCLSH
7617if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7619echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007623fi
7624
7625
7626 test -n "$TCLSH" && break
7627done
7628
7629 if test x"${TCLSH}" = x ; then
7630 ac_cv_path_tclsh='';
7631 else
7632 ac_cv_path_tclsh="${TCLSH}";
7633 fi
7634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7636echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007637 TCLSH="${ac_cv_path_tclsh}"
7638
7639fi
7640
Reid Spencera773bd52006-08-04 18:18:08 +00007641# Extract the first word of "zip", so it can be a program name with args.
7642set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645if test "${ac_cv_path_ZIP+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007647else
7648 case $ZIP in
7649 [\\/]* | ?:[\\/]*)
7650 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7651 ;;
7652 *)
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 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 +00007660 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007662 break 2
7663 fi
7664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665done
Reid Spencera773bd52006-08-04 18:18:08 +00007666IFS=$as_save_IFS
7667
Reid Spencera773bd52006-08-04 18:18:08 +00007668 ;;
7669esac
7670fi
7671ZIP=$ac_cv_path_ZIP
7672if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 { echo "$as_me:$LINENO: result: $ZIP" >&5
7674echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 { echo "$as_me:$LINENO: result: no" >&5
7677echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007678fi
7679
7680
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007681for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007682do
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687if test "${ac_cv_path_OCAMLC+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007689else
7690 case $OCAMLC in
7691 [\\/]* | ?:[\\/]*)
7692 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7693 ;;
7694 *)
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 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 +00007702 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007704 break 2
7705 fi
7706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007708IFS=$as_save_IFS
7709
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007710 ;;
7711esac
7712fi
7713OCAMLC=$ac_cv_path_OCAMLC
7714if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7716echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 { echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007720fi
7721
7722
Gordon Henriksene7072162008-03-07 18:20:01 +00007723 test -n "$OCAMLC" && break
7724done
7725
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007726for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007727do
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007734else
7735 case $OCAMLOPT in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7738 ;;
7739 *)
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007747 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007749 break 2
7750 fi
7751done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007753IFS=$as_save_IFS
7754
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007755 ;;
7756esac
7757fi
7758OCAMLOPT=$ac_cv_path_OCAMLOPT
7759if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7761echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763 { echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007765fi
7766
7767
Gordon Henriksene7072162008-03-07 18:20:01 +00007768 test -n "$OCAMLOPT" && break
7769done
7770
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007771for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007772do
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007779else
7780 case $OCAMLDEP in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7783 ;;
7784 *)
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 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 +00007792 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007794 break 2
7795 fi
7796done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007798IFS=$as_save_IFS
7799
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007800 ;;
7801esac
7802fi
7803OCAMLDEP=$ac_cv_path_OCAMLDEP
7804if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7806echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007810fi
7811
7812
Gordon Henriksene7072162008-03-07 18:20:01 +00007813 test -n "$OCAMLDEP" && break
7814done
7815
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007816for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007817do
7818 # Extract the first word of "$ac_prog", so it can be a program name with args.
7819set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007824else
7825 case $OCAMLDOC in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7828 ;;
7829 *)
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 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 +00007837 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007839 break 2
7840 fi
7841done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007842done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007843IFS=$as_save_IFS
7844
7845 ;;
7846esac
7847fi
7848OCAMLDOC=$ac_cv_path_OCAMLDOC
7849if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7851echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007853 { echo "$as_me:$LINENO: result: no" >&5
7854echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007855fi
7856
7857
7858 test -n "$OCAMLDOC" && break
7859done
7860
Torok Edwincc499a42008-10-22 09:56:27 +00007861for ac_prog in gas as
7862do
7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
7864set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867if test "${ac_cv_path_GAS+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007869else
7870 case $GAS in
7871 [\\/]* | ?:[\\/]*)
7872 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7873 ;;
7874 *)
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 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 +00007882 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007884 break 2
7885 fi
7886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007887done
Torok Edwincc499a42008-10-22 09:56:27 +00007888IFS=$as_save_IFS
7889
7890 ;;
7891esac
7892fi
7893GAS=$ac_cv_path_GAS
7894if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895 { echo "$as_me:$LINENO: result: $GAS" >&5
7896echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898 { echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007900fi
7901
7902
7903 test -n "$GAS" && break
7904done
7905
Reid Spencera773bd52006-08-04 18:18:08 +00007906
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007907{ echo "$as_me:$LINENO: checking for linker version" >&5
7908echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7909if test "${llvm_cv_link_version+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912
7913 version_string="$(ld -v 2>&1 | head -1)"
7914
7915 # Check for ld64.
7916 if (echo "$version_string" | grep -q "ld64"); then
7917 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7918 else
7919 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7920 fi
7921
7922fi
7923{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7924echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7925
7926cat >>confdefs.h <<_ACEOF
7927#define HOST_LINK_VERSION "$llvm_cv_link_version"
7928_ACEOF
7929
7930
7931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7933echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7934if test "${llvm_cv_link_use_r+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007936else
7937 ac_ext=c
7938ac_cpp='$CPP $CPPFLAGS'
7939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942
7943 oldcflags="$CFLAGS"
7944 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945 cat >conftest.$ac_ext <<_ACEOF
7946/* confdefs.h. */
7947_ACEOF
7948cat confdefs.h >>conftest.$ac_ext
7949cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007950/* end confdefs.h. */
7951
7952int
7953main ()
7954{
Dan Gohman39ed6782010-04-25 00:12:20 +00007955
Reid Spencera773bd52006-08-04 18:18:08 +00007956 ;
7957 return 0;
7958}
7959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960rm -f conftest.$ac_objext conftest$ac_exeext
7961if { (ac_try="$ac_link"
7962case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_link") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978esac
7979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest$ac_exeext'
7985 { (case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988esac
7989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_try") 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007994 llvm_cv_link_use_r=yes
7995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996 echo "$as_me: failed program was:" >&5
7997sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001
Bill Wendlingebcceee2009-04-18 11:20:33 +00008002rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008004 CFLAGS="$oldcflags"
8005 ac_ext=c
8006ac_cpp='$CPP $CPPFLAGS'
8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008013{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8014echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008015if test "$llvm_cv_link_use_r" = yes ; then
8016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008017cat >>confdefs.h <<\_ACEOF
8018#define HAVE_LINK_R 1
8019_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008020
8021 fi
8022
8023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008024{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8025echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8026if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008028else
8029 ac_ext=c
8030ac_cpp='$CPP $CPPFLAGS'
8031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035 oldcflags="$CFLAGS"
8036 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008037 cat >conftest.$ac_ext <<_ACEOF
8038/* confdefs.h. */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008042/* end confdefs.h. */
8043
8044int
8045main ()
8046{
Dan Gohman39ed6782010-04-25 00:12:20 +00008047
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008048 ;
8049 return 0;
8050}
8051_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008052rm -f conftest.$ac_objext conftest$ac_exeext
8053if { (ac_try="$ac_link"
8054case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_link") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070esac
8071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080esac
8081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008086 llvm_cv_link_use_export_dynamic=yes
8087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088 echo "$as_me: failed program was:" >&5
8089sed 's/^/| /' conftest.$ac_ext >&5
8090
8091 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093
Bill Wendlingebcceee2009-04-18 11:20:33 +00008094rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008096 CFLAGS="$oldcflags"
8097 ac_ext=c
8098ac_cpp='$CPP $CPPFLAGS'
8099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103
8104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8106echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008107if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_LINK_EXPORT_DYNAMIC 1
8111_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008112
8113 fi
8114
8115
Dan Gohmanda612d62010-06-01 14:56:56 +00008116{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8117echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8118if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 ac_ext=c
8122ac_cpp='$CPP $CPPFLAGS'
8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127 oldcflags="$CFLAGS"
8128
8129 # The following code is from the autoconf manual,
8130 # "11.13: Limitations of Usual Tools".
8131 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8132 # Use mktemp if possible; otherwise fall back on mkdir,
8133 # with $RANDOM to make collisions less likely.
8134 : ${TMPDIR=/tmp}
8135 {
8136 tmp=`
8137 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8138 ` &&
8139 test -n "$tmp" && test -d "$tmp"
8140 } || {
8141 tmp=$TMPDIR/foo$$-$RANDOM
8142 (umask 077 && mkdir "$tmp")
8143 } || exit $?
8144
Dan Gohmanda612d62010-06-01 14:56:56 +00008145 echo "{" > "$tmp/export.map"
8146 echo " global: main;" >> "$tmp/export.map"
8147 echo " local: *;" >> "$tmp/export.map"
8148 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008149
Dan Gohmanda612d62010-06-01 14:56:56 +00008150 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008151 cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
8157
8158int
8159main ()
8160{
Dan Gohman39ed6782010-04-25 00:12:20 +00008161
Dan Gohman391569c2010-04-16 22:59:06 +00008162 ;
8163 return 0;
8164}
8165_ACEOF
8166rm -f conftest.$ac_objext conftest$ac_exeext
8167if { (ac_try="$ac_link"
8168case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171esac
8172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_link") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
8195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008200 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008201else
8202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
Dan Gohman943005e2010-06-01 16:22:27 +00008205 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008206fi
8207
8208rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008210 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008211 rmdir "$tmp"
8212 CFLAGS="$oldcflags"
8213 ac_ext=c
8214ac_cpp='$CPP $CPPFLAGS'
8215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217ac_compiler_gnu=$ac_cv_c_compiler_gnu
8218
8219
8220fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008221{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8222echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8223if test "$llvm_cv_link_use_version_script" = yes ; then
8224 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008225
8226 fi
8227
8228
Reid Spencera773bd52006-08-04 18:18:08 +00008229
8230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8232echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8233if test "${ac_cv_c_const+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 cat >conftest.$ac_ext <<_ACEOF
8237/* confdefs.h. */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008241/* end confdefs.h. */
8242
8243int
8244main ()
8245{
8246/* FIXME: Include the comments suggested by Paul. */
8247#ifndef __cplusplus
8248 /* Ultrix mips cc rejects this. */
8249 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008251 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252 char const *const *ccp;
8253 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008254 /* NEC SVR4.0.2 mips cc rejects this. */
8255 struct point {int x, y;};
8256 static struct point const zero = {0,0};
8257 /* AIX XL C 1.02.0.0 rejects this.
8258 It does not let you subtract one const X* pointer from another in
8259 an arm of an if-expression whose if-part is not a constant
8260 expression */
8261 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008263 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264 ++ccp;
8265 p = (char**) ccp;
8266 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008267 { /* SCO 3.2v4 cc rejects this. */
8268 char *t;
8269 char const *s = 0 ? (char *) 0 : (char const *) 0;
8270
8271 *t++ = 0;
8272 if (s) return 0;
8273 }
8274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8275 int x[] = {25, 17};
8276 const int *foo = &x[0];
8277 ++foo;
8278 }
8279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8280 typedef const int *iptr;
8281 iptr p = 0;
8282 ++p;
8283 }
8284 { /* AIX XL C 1.02.0.0 rejects this saying
8285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8286 struct s { int j; const int *ap[3]; };
8287 struct s *b; b->j = 5;
8288 }
8289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8290 const int foo = 10;
8291 if (!foo) return 0;
8292 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008293 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008294#endif
8295
8296 ;
8297 return 0;
8298}
8299_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300rm -f conftest.$ac_objext
8301if { (ac_try="$ac_compile"
8302case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318esac
8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest.$ac_objext'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008334 ac_cv_c_const=yes
8335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341
Reid Spencera773bd52006-08-04 18:18:08 +00008342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8345echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008346if test $ac_cv_c_const = no; then
8347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348cat >>confdefs.h <<\_ACEOF
8349#define const
8350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008351
8352fi
8353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354
8355
8356
8357
8358
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008359ac_header_dirent=no
8360for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008361 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8362{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8363echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367 cat >conftest.$ac_ext <<_ACEOF
8368/* confdefs.h. */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008372/* end confdefs.h. */
8373#include <sys/types.h>
8374#include <$ac_hdr>
8375
8376int
8377main ()
8378{
8379if ((DIR *) 0)
8380return 0;
8381 ;
8382 return 0;
8383}
8384_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385rm -f conftest.$ac_objext
8386if { (ac_try="$ac_compile"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008419 eval "$as_ac_Header=yes"
8420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426
Reid Spencera773bd52006-08-04 18:18:08 +00008427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429ac_res=`eval echo '${'$as_ac_Header'}'`
8430 { echo "$as_me:$LINENO: result: $ac_res" >&5
8431echo "${ECHO_T}$ac_res" >&6; }
8432if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008433 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008435_ACEOF
8436
8437ac_header_dirent=$ac_hdr; break
8438fi
8439
8440done
8441# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8442if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445if test "${ac_cv_search_opendir+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008447else
8448 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449cat >conftest.$ac_ext <<_ACEOF
8450/* confdefs.h. */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008454/* end confdefs.h. */
8455
Reid Spencera773bd52006-08-04 18:18:08 +00008456/* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008459#ifdef __cplusplus
8460extern "C"
8461#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008462char opendir ();
8463int
8464main ()
8465{
Reid Spencera773bd52006-08-04 18:18:08 +00008466return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008467 ;
8468 return 0;
8469}
8470_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008471for ac_lib in '' dir; do
8472 if test -z "$ac_lib"; then
8473 ac_res="none required"
8474 else
8475 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008477 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008478 rm -f conftest.$ac_objext conftest$ac_exeext
8479if { (ac_try="$ac_link"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
8484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008512 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519
Bill Wendlingebcceee2009-04-18 11:20:33 +00008520rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521 conftest$ac_exeext
8522 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008523 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008524fi
John Criswell7a73b802003-06-30 21:59:07 +00008525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526if test "${ac_cv_search_opendir+set}" = set; then
8527 :
Reid Spencera773bd52006-08-04 18:18:08 +00008528else
8529 ac_cv_search_opendir=no
8530fi
8531rm conftest.$ac_ext
8532LIBS=$ac_func_search_save_LIBS
8533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008536ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008539
Reid Spencera773bd52006-08-04 18:18:08 +00008540fi
8541
8542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008543 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8544echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8545if test "${ac_cv_search_opendir+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008547else
8548 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008554/* end confdefs.h. */
8555
8556/* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8559#ifdef __cplusplus
8560extern "C"
8561#endif
8562char opendir ();
8563int
8564main ()
8565{
8566return opendir ();
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571for ac_lib in '' x; do
8572 if test -z "$ac_lib"; then
8573 ac_res="none required"
8574 else
8575 ac_res=-l$ac_lib
8576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8577 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008578 rm -f conftest.$ac_objext conftest$ac_exeext
8579if { (ac_try="$ac_link"
8580case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583esac
8584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_link") 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596esac
8597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008612 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613else
8614 echo "$as_me: failed program was:" >&5
8615sed 's/^/| /' conftest.$ac_ext >&5
8616
8617
Reid Spencera773bd52006-08-04 18:18:08 +00008618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619
Bill Wendlingebcceee2009-04-18 11:20:33 +00008620rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621 conftest$ac_exeext
8622 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008623 break
8624fi
8625done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008626if test "${ac_cv_search_opendir+set}" = set; then
8627 :
Reid Spencera773bd52006-08-04 18:18:08 +00008628else
8629 ac_cv_search_opendir=no
8630fi
8631rm conftest.$ac_ext
8632LIBS=$ac_func_search_save_LIBS
8633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008634{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8635echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008636ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008637if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8639
8640fi
8641
8642fi
John Criswell7a73b802003-06-30 21:59:07 +00008643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008644
John Criswell7a73b802003-06-30 21:59:07 +00008645for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008646do
8647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653fi
8654ac_res=`eval echo '${'$as_ac_Header'}'`
8655 { echo "$as_me:$LINENO: result: $ac_res" >&5
8656echo "${ECHO_T}$ac_res" >&6; }
8657else
8658 # Is the header compilable?
8659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8661cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h. */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h. */
8667$ac_includes_default
8668#include <$ac_header>
8669_ACEOF
8670rm -f conftest.$ac_objext
8671if { (ac_try="$ac_compile"
8672case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675esac
8676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688esac
8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_header_compiler=yes
8705else
8706 echo "$as_me: failed program was:" >&5
8707sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 ac_header_compiler=no
8710fi
8711
8712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714echo "${ECHO_T}$ac_header_compiler" >&6; }
8715
8716# Is the header present?
8717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8719cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */
8725#include <$ac_header>
8726_ACEOF
8727if { (ac_try="$ac_cpp conftest.$ac_ext"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev/null; then
8740 if test -s conftest.err; then
8741 ac_cpp_err=$ac_c_preproc_warn_flag
8742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8743 else
8744 ac_cpp_err=
8745 fi
8746else
8747 ac_cpp_err=yes
8748fi
8749if test -z "$ac_cpp_err"; then
8750 ac_header_preproc=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_header_preproc=no
8756fi
8757
8758rm -f conftest.err conftest.$ac_ext
8759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760echo "${ECHO_T}$ac_header_preproc" >&6; }
8761
8762# So? What about this header?
8763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 yes:no: )
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8769 ac_header_preproc=yes
8770 ;;
8771 no:yes:* )
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8784 ( cat <<\_ASBOX
8785## ----------------------------------- ##
8786## Report this to llvmbugs@cs.uiuc.edu ##
8787## ----------------------------------- ##
8788_ASBOX
8789 ) | sed "s/^/$as_me: WARNING: /" >&2
8790 ;;
8791esac
8792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797 eval "$as_ac_Header=\$ac_header_preproc"
8798fi
8799ac_res=`eval echo '${'$as_ac_Header'}'`
8800 { echo "$as_me:$LINENO: result: $ac_res" >&5
8801echo "${ECHO_T}$ac_res" >&6; }
8802
8803fi
8804if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008807_ACEOF
8808
8809fi
8810
8811done
8812
Reid Spencera773bd52006-08-04 18:18:08 +00008813# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008814if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008815 enableval=$enable_ltdl_install;
8816fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008819
8820
8821if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822 INSTALL_LTDL_TRUE=
8823 INSTALL_LTDL_FALSE='#'
8824else
8825 INSTALL_LTDL_TRUE='#'
8826 INSTALL_LTDL_FALSE=
8827fi
8828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008829
8830
8831if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 CONVENIENCE_LTDL_TRUE=
8833 CONVENIENCE_LTDL_FALSE='#'
8834else
8835 CONVENIENCE_LTDL_TRUE='#'
8836 CONVENIENCE_LTDL_FALSE=
8837fi
8838
8839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008840{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8841echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008842library_names_spec=
8843libname_spec='lib$name'
8844soname_spec=
8845shrext_cmds=".so"
8846postinstall_cmds=
8847postuninstall_cmds=
8848finish_cmds=
8849finish_eval=
8850shlibpath_var=
8851shlibpath_overrides_runpath=unknown
8852version_type=none
8853dynamic_linker="$host_os ld.so"
8854sys_lib_dlsearch_path_spec="/lib /usr/lib"
8855if test "$GCC" = yes; then
8856 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8857 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8858 # if the path contains ";" then we assume it to be the separator
8859 # otherwise default to the standard path separator (i.e. ":") - it is
8860 # assumed that no part of a normal pathname contains ";" but that should
8861 # okay in the real world where ";" in dirpaths is itself problematic.
8862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8863 else
8864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8865 fi
8866else
8867 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8868fi
8869need_lib_prefix=unknown
8870hardcode_into_libs=no
8871
8872# when you set need_version to no, make sure it does not cause -set_version
8873# flags to be left without arguments
8874need_version=unknown
8875
8876case $host_os in
8877aix3*)
8878 version_type=linux
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880 shlibpath_var=LIBPATH
8881
8882 # AIX 3 has no versioning support, so we append a major version to the name.
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 ;;
8885
8886aix4* | aix5*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 hardcode_into_libs=yes
8891 if test "$host_cpu" = ia64; then
8892 # AIX 5 supports IA64
8893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 else
8896 # With GCC up to 2.95.x, collect2 would create an import file
8897 # for dependence libraries. The import file would start with
8898 # the line `#! .'. This would cause the generated library to
8899 # depend on `.', always an invalid library. This was fixed in
8900 # development snapshots of GCC prior to 3.0.
8901 case $host_os in
8902 aix4 | aix4.[01] | aix4.[01].*)
8903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904 echo ' yes '
8905 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8906 :
8907 else
8908 can_build_shared=no
8909 fi
8910 ;;
8911 esac
8912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913 # soname into executable. Probably we can add versioning support to
8914 # collect2, so additional links can be useful in future.
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8917 # instead of lib<name>.a to let people know that these are not
8918 # typical AIX shared libraries.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 else
8921 # We preserve .a as extension for shared libraries through AIX4.2
8922 # and later when we are not doing run time linking.
8923 library_names_spec='${libname}${release}.a $libname.a'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 fi
8926 shlibpath_var=LIBPATH
8927 fi
8928 ;;
8929
8930amigaos*)
8931 library_names_spec='$libname.ixlibrary $libname.a'
8932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8933 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'
8934 ;;
8935
8936beos*)
8937 library_names_spec='${libname}${shared_ext}'
8938 dynamic_linker="$host_os ld.so"
8939 shlibpath_var=LIBRARY_PATH
8940 ;;
8941
8942bsdi[45]*)
8943 version_type=linux
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8951 # the default ld.so.conf also contains /usr/contrib/lib and
8952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8953 # libtool to hard-code these into programs
8954 ;;
8955
8956cygwin* | mingw* | pw32*)
8957 version_type=windows
8958 shrext_cmds=".dll"
8959 need_version=no
8960 need_lib_prefix=no
8961
8962 case $GCC,$host_os in
8963 yes,cygwin* | yes,mingw* | yes,pw32*)
8964 library_names_spec='$libname.dll.a'
8965 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8966 postinstall_cmds='base_file=`basename \${file}`~
8967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8968 dldir=$destdir/`dirname \$dlpath`~
8969 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008970 $install_prog $dir/$dlname \$dldir/$dlname~
8971 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8973 dlpath=$dir/\$dldll~
8974 $rm \$dlpath'
8975 shlibpath_overrides_runpath=yes
8976
8977 case $host_os in
8978 cygwin*)
8979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8980 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8981 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8982 ;;
8983 mingw*)
8984 # MinGW DLLs use traditional 'lib' prefix
8985 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8987 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8988 # It is most probably a Windows format PATH printed by
8989 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8990 # path with ; separators, and with drive letters. We can handle the
8991 # drive letters (cygwin fileutils understands them), so leave them,
8992 # especially as we might pass files found there to a mingw objdump,
8993 # which wouldn't understand a cygwinified path. Ahh.
8994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8995 else
8996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8997 fi
8998 ;;
8999 pw32*)
9000 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009001 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 +00009002 ;;
9003 esac
9004 ;;
9005
9006 *)
9007 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9008 ;;
9009 esac
9010 dynamic_linker='Win32 ld.exe'
9011 # FIXME: first we should search . and the directory the executable is in
9012 shlibpath_var=PATH
9013 ;;
9014
9015darwin* | rhapsody*)
9016 dynamic_linker="$host_os dyld"
9017 version_type=darwin
9018 need_lib_prefix=no
9019 need_version=no
9020 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9021 soname_spec='${libname}${release}${major}$shared_ext'
9022 shlibpath_overrides_runpath=yes
9023 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009024 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009025 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9026 if test "$GCC" = yes; then
9027 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"`
9028 else
9029 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9030 fi
9031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9032 ;;
9033
9034dgux*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 ;;
9042
9043freebsd1*)
9044 dynamic_linker=no
9045 ;;
9046
9047kfreebsd*-gnu)
9048 version_type=linux
9049 need_lib_prefix=no
9050 need_version=no
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=no
9055 hardcode_into_libs=yes
9056 dynamic_linker='GNU ld.so'
9057 ;;
9058
Reid Spencera773bd52006-08-04 18:18:08 +00009059freebsd* | dragonfly*)
9060 # DragonFly does not have aout. When/if they implement a new
9061 # versioning mechanism, adjust this.
9062 if test -x /usr/bin/objformat; then
9063 objformat=`/usr/bin/objformat`
9064 else
9065 case $host_os in
9066 freebsd[123]*) objformat=aout ;;
9067 *) objformat=elf ;;
9068 esac
9069 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009070 version_type=freebsd-$objformat
9071 case $version_type in
9072 freebsd-elf*)
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9074 need_version=no
9075 need_lib_prefix=no
9076 ;;
9077 freebsd-*)
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9079 need_version=yes
9080 ;;
9081 esac
9082 shlibpath_var=LD_LIBRARY_PATH
9083 case $host_os in
9084 freebsd2*)
9085 shlibpath_overrides_runpath=yes
9086 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009087 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009093 shlibpath_overrides_runpath=no
9094 hardcode_into_libs=yes
9095 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009096 freebsd*) # from 4.6 on
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9099 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009100 esac
9101 ;;
9102
9103gnu*)
9104 version_type=linux
9105 need_lib_prefix=no
9106 need_version=no
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 hardcode_into_libs=yes
9111 ;;
9112
9113hpux9* | hpux10* | hpux11*)
9114 # Give a soname corresponding to the major version so that dld.sl refuses to
9115 # link against other versions.
9116 version_type=sunos
9117 need_lib_prefix=no
9118 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009119 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009120 ia64*)
9121 shrext_cmds='.so'
9122 hardcode_into_libs=yes
9123 dynamic_linker="$host_os dld.so"
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 if test "X$HPUX_IA64_MODE" = X32; then
9129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9130 else
9131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9132 fi
9133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9134 ;;
9135 hppa*64*)
9136 shrext_cmds='.sl'
9137 hardcode_into_libs=yes
9138 dynamic_linker="$host_os dld.sl"
9139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9145 ;;
9146 *)
9147 shrext_cmds='.sl'
9148 dynamic_linker="$host_os dld.sl"
9149 shlibpath_var=SHLIB_PATH
9150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 ;;
9154 esac
9155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9156 postinstall_cmds='chmod 555 $lib'
9157 ;;
9158
Reid Spencera773bd52006-08-04 18:18:08 +00009159interix3*)
9160 version_type=linux
9161 need_lib_prefix=no
9162 need_version=no
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=no
9168 hardcode_into_libs=yes
9169 ;;
9170
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171irix5* | irix6* | nonstopux*)
9172 case $host_os in
9173 nonstopux*) version_type=nonstopux ;;
9174 *)
9175 if test "$lt_cv_prog_gnu_ld" = yes; then
9176 version_type=linux
9177 else
9178 version_type=irix
9179 fi ;;
9180 esac
9181 need_lib_prefix=no
9182 need_version=no
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9185 case $host_os in
9186 irix5* | nonstopux*)
9187 libsuff= shlibsuff=
9188 ;;
9189 *)
9190 case $LD in # libtool.m4 will add one of these switches to LD
9191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9192 libsuff= shlibsuff= libmagic=32-bit;;
9193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9194 libsuff=32 shlibsuff=N32 libmagic=N32;;
9195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9197 *) libsuff= shlibsuff= libmagic=never-match;;
9198 esac
9199 ;;
9200 esac
9201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9202 shlibpath_overrides_runpath=no
9203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9205 hardcode_into_libs=yes
9206 ;;
9207
9208# No shared lib support for Linux oldld, aout, or coff.
9209linux*oldld* | linux*aout* | linux*coff*)
9210 dynamic_linker=no
9211 ;;
9212
9213# This must be Linux ELF.
9214linux*)
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=no
9223 # This implies no fast_install, which is unacceptable.
9224 # Some rework will be needed to allow for fast_install
9225 # before this can be enabled.
9226 hardcode_into_libs=yes
9227
9228 # Append ld.so.conf contents to the search path
9229 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009230 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 +00009231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9232 fi
9233
9234 # We used to test for /lib/ld.so.1 and disable shared libraries on
9235 # powerpc, because MkLinux only supported shared libraries with the
9236 # GNU dynamic linker. Since this was broken with cross compilers,
9237 # most powerpc-linux boxes support dynamic linking these days and
9238 # people can always --disable-shared, the test was removed, and we
9239 # assume the GNU/Linux dynamic linker is in use.
9240 dynamic_linker='GNU/Linux ld.so'
9241 ;;
9242
9243knetbsd*-gnu)
9244 version_type=linux
9245 need_lib_prefix=no
9246 need_version=no
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=no
9251 hardcode_into_libs=yes
9252 dynamic_linker='GNU ld.so'
9253 ;;
9254
9255netbsd*)
9256 version_type=sunos
9257 need_lib_prefix=no
9258 need_version=no
9259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9262 dynamic_linker='NetBSD (a.out) ld.so'
9263 else
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 dynamic_linker='NetBSD ld.elf_so'
9267 fi
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=yes
9270 hardcode_into_libs=yes
9271 ;;
9272
9273newsos6)
9274 version_type=linux
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 ;;
9279
9280nto-qnx*)
9281 version_type=linux
9282 need_lib_prefix=no
9283 need_version=no
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=yes
9288 ;;
9289
9290openbsd*)
9291 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009292 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9295 case $host_os in
9296 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9297 *) need_version=no ;;
9298 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9303 case $host_os in
9304 openbsd2.[89] | openbsd2.[89].*)
9305 shlibpath_overrides_runpath=no
9306 ;;
9307 *)
9308 shlibpath_overrides_runpath=yes
9309 ;;
9310 esac
9311 else
9312 shlibpath_overrides_runpath=yes
9313 fi
9314 ;;
9315
9316os2*)
9317 libname_spec='$name'
9318 shrext_cmds=".dll"
9319 need_lib_prefix=no
9320 library_names_spec='$libname${shared_ext} $libname.a'
9321 dynamic_linker='OS/2 ld.exe'
9322 shlibpath_var=LIBPATH
9323 ;;
9324
9325osf3* | osf4* | osf5*)
9326 version_type=osf
9327 need_lib_prefix=no
9328 need_version=no
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9334 ;;
9335
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336solaris*)
9337 version_type=linux
9338 need_lib_prefix=no
9339 need_version=no
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341 soname_spec='${libname}${release}${shared_ext}$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=yes
9344 hardcode_into_libs=yes
9345 # ldd complains unless libraries are executable
9346 postinstall_cmds='chmod +x $lib'
9347 ;;
9348
9349sunos4*)
9350 version_type=sunos
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=yes
9355 if test "$with_gnu_ld" = yes; then
9356 need_lib_prefix=no
9357 fi
9358 need_version=yes
9359 ;;
9360
Reid Spencera773bd52006-08-04 18:18:08 +00009361sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362 version_type=linux
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 case $host_vendor in
9367 sni)
9368 shlibpath_overrides_runpath=no
9369 need_lib_prefix=no
9370 export_dynamic_flag_spec='${wl}-Blargedynsym'
9371 runpath_var=LD_RUN_PATH
9372 ;;
9373 siemens)
9374 need_lib_prefix=no
9375 ;;
9376 motorola)
9377 need_lib_prefix=no
9378 need_version=no
9379 shlibpath_overrides_runpath=no
9380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9381 ;;
9382 esac
9383 ;;
9384
9385sysv4*MP*)
9386 if test -d /usr/nec ;then
9387 version_type=linux
9388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9389 soname_spec='$libname${shared_ext}.$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 fi
9392 ;;
9393
Reid Spencera773bd52006-08-04 18:18:08 +00009394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9395 version_type=freebsd-elf
9396 need_lib_prefix=no
9397 need_version=no
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 hardcode_into_libs=yes
9402 if test "$with_gnu_ld" = yes; then
9403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9404 shlibpath_overrides_runpath=no
9405 else
9406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9407 shlibpath_overrides_runpath=yes
9408 case $host_os in
9409 sco3.2v5*)
9410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9411 ;;
9412 esac
9413 fi
9414 sys_lib_dlsearch_path_spec='/usr/lib'
9415 ;;
9416
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417uts4*)
9418 version_type=linux
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 ;;
9423
9424*)
9425 dynamic_linker=no
9426 ;;
9427esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9429echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430test "$dynamic_linker" = no && can_build_shared=no
9431
Reid Spencera773bd52006-08-04 18:18:08 +00009432variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9433if test "$GCC" = yes; then
9434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9435fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436
Reid Spencera773bd52006-08-04 18:18:08 +00009437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9439echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9440if test "${libltdl_cv_shlibext+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442else
9443
9444module=yes
9445eval libltdl_cv_shlibext=$shrext_cmds
9446
9447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009448{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9449echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450if test -n "$libltdl_cv_shlibext"; then
9451
9452cat >>confdefs.h <<_ACEOF
9453#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9454_ACEOF
9455
9456fi
9457
9458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009459{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9460echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9461if test "${libltdl_cv_shlibpath_var+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009463else
9464 libltdl_cv_shlibpath_var="$shlibpath_var"
9465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009466{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9467echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468if test -n "$libltdl_cv_shlibpath_var"; then
9469
9470cat >>confdefs.h <<_ACEOF
9471#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9472_ACEOF
9473
9474fi
9475
9476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009477{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9478echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9479if test "${libltdl_cv_sys_search_path+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009481else
9482 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009484{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9485echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486if test -n "$libltdl_cv_sys_search_path"; then
9487 sys_search_path=
9488 for dir in $libltdl_cv_sys_search_path; do
9489 if test -z "$sys_search_path"; then
9490 sys_search_path="$dir"
9491 else
9492 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9493 fi
9494 done
9495
9496cat >>confdefs.h <<_ACEOF
9497#define LTDL_SYSSEARCHPATH "$sys_search_path"
9498_ACEOF
9499
9500fi
9501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009502{ echo "$as_me:$LINENO: checking for objdir" >&5
9503echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9504if test "${libltdl_cv_objdir+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506else
9507 libltdl_cv_objdir="$objdir"
9508 if test -n "$objdir"; then
9509 :
9510 else
9511 rm -f .libs 2>/dev/null
9512 mkdir .libs 2>/dev/null
9513 if test -d .libs; then
9514 libltdl_cv_objdir=.libs
9515 else
9516 # MS-DOS does not allow filenames that begin with a dot.
9517 libltdl_cv_objdir=_libs
9518 fi
9519 rmdir .libs 2>/dev/null
9520 fi
9521
9522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009523{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9524echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525
9526cat >>confdefs.h <<_ACEOF
9527#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9528_ACEOF
9529
9530
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009531
9532
9533
9534
9535# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9537echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9538if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540else
9541
9542# These are sane defaults that work on at least a few old systems.
9543# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9544
9545# Character class describing NM global symbol codes.
9546symcode='[BCDEGRST]'
9547
9548# Regexp to match symbols that can be accessed directly from C.
9549sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9550
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551# Transform an extracted symbol line into a proper C declaration
9552lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9553
9554# Transform an extracted symbol line into symbol name and symbol address
9555lt_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'"
9556
9557# Define system-specific variables.
9558case $host_os in
9559aix*)
9560 symcode='[BCDT]'
9561 ;;
9562cygwin* | mingw* | pw32*)
9563 symcode='[ABCDGISTW]'
9564 ;;
9565hpux*) # Its linker distinguishes data from code symbols
9566 if test "$host_cpu" = ia64; then
9567 symcode='[ABCDEGRST]'
9568 fi
9569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9570 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'"
9571 ;;
9572linux*)
9573 if test "$host_cpu" = ia64; then
9574 symcode='[ABCDGIRSTW]'
9575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9576 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'"
9577 fi
9578 ;;
9579irix* | nonstopux*)
9580 symcode='[BCDEGRST]'
9581 ;;
9582osf*)
9583 symcode='[BCDEGQRST]'
9584 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009585solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586 symcode='[BDRT]'
9587 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009588sco3.2v5*)
9589 symcode='[DT]'
9590 ;;
9591sysv4.2uw2*)
9592 symcode='[DT]'
9593 ;;
9594sysv5* | sco5v6* | unixware* | OpenUNIX*)
9595 symcode='[ABDT]'
9596 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009597sysv4)
9598 symcode='[DFNSTU]'
9599 ;;
9600esac
9601
9602# Handle CRLF in mingw tool chain
9603opt_cr=
9604case $build_os in
9605mingw*)
9606 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9607 ;;
9608esac
9609
9610# If we're using GNU nm, then use its standard symbol codes.
9611case `$NM -V 2>&1` in
9612*GNU* | *'with BFD'*)
9613 symcode='[ABCDGIRSTW]' ;;
9614esac
9615
9616# Try without a prefix undercore, then with it.
9617for ac_symprfx in "" "_"; do
9618
Reid Spencera773bd52006-08-04 18:18:08 +00009619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9620 symxfrm="\\1 $ac_symprfx\\2 \\2"
9621
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009623 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 +00009624
9625 # Check to see that the pipe works correctly.
9626 pipe_works=no
9627
9628 rm -f conftest*
9629 cat > conftest.$ac_ext <<EOF
9630#ifdef __cplusplus
9631extern "C" {
9632#endif
9633char nm_test_var;
9634void nm_test_func(){}
9635#ifdef __cplusplus
9636}
9637#endif
9638int main(){nm_test_var='a';nm_test_func();return(0);}
9639EOF
9640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009642 (eval $ac_compile) 2>&5
9643 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009646 # Now try to grab the symbols.
9647 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009648 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 +00009649 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9650 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653 # Try sorting and uniquifying the output.
9654 if sort "$nlist" | uniq > "$nlist"T; then
9655 mv -f "$nlist"T "$nlist"
9656 else
9657 rm -f "$nlist"T
9658 fi
9659
9660 # Make sure that we snagged all the symbols we need.
9661 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9662 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9663 cat <<EOF > conftest.$ac_ext
9664#ifdef __cplusplus
9665extern "C" {
9666#endif
9667
9668EOF
9669 # Now generate the symbol file.
9670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9671
9672 cat <<EOF >> conftest.$ac_ext
9673#if defined (__STDC__) && __STDC__
9674# define lt_ptr_t void *
9675#else
9676# define lt_ptr_t char *
9677# define const
9678#endif
9679
9680/* The mapping between symbol names and symbols. */
9681const struct {
9682 const char *name;
9683 lt_ptr_t address;
9684}
9685lt_preloaded_symbols[] =
9686{
9687EOF
9688 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9689 cat <<\EOF >> conftest.$ac_ext
9690 {0, (lt_ptr_t) 0}
9691};
9692
9693#ifdef __cplusplus
9694}
9695#endif
9696EOF
9697 # Now try linking the two files.
9698 mv conftest.$ac_objext conftstm.$ac_objext
9699 lt_save_LIBS="$LIBS"
9700 lt_save_CFLAGS="$CFLAGS"
9701 LIBS="conftstm.$ac_objext"
9702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009704 (eval $ac_link) 2>&5
9705 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708 pipe_works=yes
9709 fi
9710 LIBS="$lt_save_LIBS"
9711 CFLAGS="$lt_save_CFLAGS"
9712 else
9713 echo "cannot find nm_test_func in $nlist" >&5
9714 fi
9715 else
9716 echo "cannot find nm_test_var in $nlist" >&5
9717 fi
9718 else
9719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9720 fi
9721 else
9722 echo "$progname: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9724 fi
9725 rm -f conftest* conftst*
9726
9727 # Do not use the global_symbol_pipe unless it works.
9728 if test "$pipe_works" = yes; then
9729 break
9730 else
9731 lt_cv_sys_global_symbol_pipe=
9732 fi
9733done
9734
9735fi
9736
9737if test -z "$lt_cv_sys_global_symbol_pipe"; then
9738 lt_cv_sys_global_symbol_to_cdecl=
9739fi
9740if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009741 { echo "$as_me:$LINENO: result: failed" >&5
9742echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009744 { echo "$as_me:$LINENO: result: ok" >&5
9745echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746fi
9747
9748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009749{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9750echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9751if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753else
9754 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9755 libltdl_cv_preloaded_symbols=yes
9756 else
9757 libltdl_cv_preloaded_symbols=no
9758 fi
9759
9760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9762echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009765cat >>confdefs.h <<\_ACEOF
9766#define HAVE_PRELOADED_SYMBOLS 1
9767_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768
9769fi
9770
9771LIBADD_DL=
9772
9773ac_ext=c
9774ac_cpp='$CPP $CPPFLAGS'
9775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777ac_compiler_gnu=$ac_cv_c_compiler_gnu
9778
9779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009780{ echo "$as_me:$LINENO: checking for shl_load" >&5
9781echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9782if test "${ac_cv_func_shl_load+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784else
9785 cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h. */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h. */
9791/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9793#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795/* System header to define __stub macros and hopefully few prototypes,
9796 which can conflict with char shl_load (); below.
9797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9798 <limits.h> exists even on freestanding compilers. */
9799
9800#ifdef __STDC__
9801# include <limits.h>
9802#else
9803# include <assert.h>
9804#endif
9805
9806#undef shl_load
9807
9808/* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814char shl_load ();
9815/* The GNU C library defines this for functions which it implements
9816 to always fail with ENOSYS. Some functions are actually named
9817 something starting with __ and the normal name is an alias. */
9818#if defined __stub_shl_load || defined __stub___shl_load
9819choke me
9820#endif
9821
9822int
9823main ()
9824{
9825return shl_load ();
9826 ;
9827 return 0;
9828}
9829_ACEOF
9830rm -f conftest.$ac_objext conftest$ac_exeext
9831if { (ac_try="$ac_link"
9832case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_func_shl_load=yes
9865else
9866 echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_cv_func_shl_load=no
9870fi
9871
9872rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874fi
9875{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9876echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9877if test $ac_cv_func_shl_load = yes; then
9878
9879cat >>confdefs.h <<\_ACEOF
9880#define HAVE_SHL_LOAD 1
9881_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882
9883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009884 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9885echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9886if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888else
9889 ac_check_lib_save_LIBS=$LIBS
9890LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009891cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896/* end confdefs.h. */
9897
Reid Spencera773bd52006-08-04 18:18:08 +00009898/* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901#ifdef __cplusplus
9902extern "C"
9903#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904char shl_load ();
9905int
9906main ()
9907{
Reid Spencera773bd52006-08-04 18:18:08 +00009908return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909 ;
9910 return 0;
9911}
9912_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009913rm -f conftest.$ac_objext conftest$ac_exeext
9914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947 ac_cv_lib_dld_shl_load=yes
9948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009949 echo "$as_me: failed program was:" >&5
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
9952 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009954
Bill Wendlingebcceee2009-04-18 11:20:33 +00009955rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009956 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957LIBS=$ac_check_lib_save_LIBS
9958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009959{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9960echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9961if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009963cat >>confdefs.h <<\_ACEOF
9964#define HAVE_SHL_LOAD 1
9965_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966
9967 LIBADD_DL="$LIBADD_DL -ldld"
9968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009969 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9970echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9971if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973else
9974 ac_check_lib_save_LIBS=$LIBS
9975LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h. */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981/* end confdefs.h. */
9982
Reid Spencera773bd52006-08-04 18:18:08 +00009983/* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986#ifdef __cplusplus
9987extern "C"
9988#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989char dlopen ();
9990int
9991main ()
9992{
Reid Spencera773bd52006-08-04 18:18:08 +00009993return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994 ;
9995 return 0;
9996}
9997_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998rm -f conftest.$ac_objext conftest$ac_exeext
9999if { (ac_try="$ac_link"
10000case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10003esac
10004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_link") 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10013 { (case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10016esac
10017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_try") 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 ac_cv_lib_dl_dlopen=yes
10033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010034 echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010039
Bill Wendlingebcceee2009-04-18 11:20:33 +000010040rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010041 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042LIBS=$ac_check_lib_save_LIBS
10043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010044{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10045echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10046if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010048cat >>confdefs.h <<\_ACEOF
10049#define HAVE_LIBDL 1
10050_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051
10052 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054 cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h. */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059/* end confdefs.h. */
10060#if HAVE_DLFCN_H
10061# include <dlfcn.h>
10062#endif
10063
10064int
10065main ()
10066{
10067dlopen(0, 0);
10068 ;
10069 return 0;
10070}
10071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010072rm -f conftest.$ac_objext conftest$ac_exeext
10073if { (ac_try="$ac_link"
10074case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_link") 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100esac
10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_try") 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010107cat >>confdefs.h <<\_ACEOF
10108#define HAVE_LIBDL 1
10109_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 libltdl_cv_func_dlopen="yes"
10111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010112 echo "$as_me: failed program was:" >&5
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10116echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10117if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119else
10120 ac_check_lib_save_LIBS=$LIBS
10121LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010122cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h. */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127/* end confdefs.h. */
10128
Reid Spencera773bd52006-08-04 18:18:08 +000010129/* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132#ifdef __cplusplus
10133extern "C"
10134#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135char dlopen ();
10136int
10137main ()
10138{
Reid Spencera773bd52006-08-04 18:18:08 +000010139return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140 ;
10141 return 0;
10142}
10143_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_link") 2>conftest.er1
10152 ac_status=$?
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10159 { (case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_try") 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest$ac_exeext'
10169 { (case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172esac
10173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_try") 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178 ac_cv_lib_svld_dlopen=yes
10179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010180 echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010185
Bill Wendlingebcceee2009-04-18 11:20:33 +000010186rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010187 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188LIBS=$ac_check_lib_save_LIBS
10189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010190{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10191echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10192if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010194cat >>confdefs.h <<\_ACEOF
10195#define HAVE_LIBDL 1
10196_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197
10198 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010200 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10201echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10202if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204else
10205 ac_check_lib_save_LIBS=$LIBS
10206LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010207cat >conftest.$ac_ext <<_ACEOF
10208/* confdefs.h. */
10209_ACEOF
10210cat confdefs.h >>conftest.$ac_ext
10211cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212/* end confdefs.h. */
10213
Reid Spencera773bd52006-08-04 18:18:08 +000010214/* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217#ifdef __cplusplus
10218extern "C"
10219#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220char dld_link ();
10221int
10222main ()
10223{
Reid Spencera773bd52006-08-04 18:18:08 +000010224return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ;
10226 return 0;
10227}
10228_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 ac_cv_lib_dld_dld_link=yes
10264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010265 echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010270
Bill Wendlingebcceee2009-04-18 11:20:33 +000010271rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010272 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273LIBS=$ac_check_lib_save_LIBS
10274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010275{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10276echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10277if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010279cat >>confdefs.h <<\_ACEOF
10280#define HAVE_DLD 1
10281_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282
10283 LIBADD_DL="$LIBADD_DL -ldld"
10284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010285 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10286echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10287if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290 cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
10296/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10298#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010300/* System header to define __stub macros and hopefully few prototypes,
10301 which can conflict with char _dyld_func_lookup (); below.
10302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305#ifdef __STDC__
10306# include <limits.h>
10307#else
10308# include <assert.h>
10309#endif
10310
10311#undef _dyld_func_lookup
10312
10313/* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316#ifdef __cplusplus
10317extern "C"
10318#endif
10319char _dyld_func_lookup ();
10320/* The GNU C library defines this for functions which it implements
10321 to always fail with ENOSYS. Some functions are actually named
10322 something starting with __ and the normal name is an alias. */
10323#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10324choke me
10325#endif
10326
10327int
10328main ()
10329{
10330return _dyld_func_lookup ();
10331 ;
10332 return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (ac_try="$ac_link"
10337case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363esac
10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_func__dyld_func_lookup=yes
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375fi
Reid Spencera773bd52006-08-04 18:18:08 +000010376
Bill Wendlingebcceee2009-04-18 11:20:33 +000010377rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010378 conftest$ac_exeext conftest.$ac_ext
10379fi
10380{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10381echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10382if test $ac_cv_func__dyld_func_lookup = yes; then
10383
10384cat >>confdefs.h <<\_ACEOF
10385#define HAVE_DYLD 1
10386_ACEOF
10387
10388fi
10389
10390
10391fi
10392
10393
10394fi
10395
10396
10397fi
10398
10399rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401
10402fi
10403
10404
10405fi
10406
10407
10408fi
10409
10410
10411if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10412then
10413 lt_save_LIBS="$LIBS"
10414 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010415
10416for ac_func in dlerror
10417do
10418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10419{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10421if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424 cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10432#define $ac_func innocuous_$ac_func
10433
10434/* System header to define __stub macros and hopefully few prototypes,
10435 which can conflict with char $ac_func (); below.
10436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437 <limits.h> exists even on freestanding compilers. */
10438
10439#ifdef __STDC__
10440# include <limits.h>
10441#else
10442# include <assert.h>
10443#endif
10444
10445#undef $ac_func
10446
10447/* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450#ifdef __cplusplus
10451extern "C"
10452#endif
10453char $ac_func ();
10454/* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457#if defined __stub_$ac_func || defined __stub___$ac_func
10458choke me
10459#endif
10460
10461int
10462main ()
10463{
10464return $ac_func ();
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext conftest$ac_exeext
10470if { (ac_try="$ac_link"
10471case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474esac
10475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_link") 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487esac
10488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_try") 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497esac
10498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_try") 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 eval "$as_ac_var=yes"
10504else
10505 echo "$as_me: failed program was:" >&5
10506sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 eval "$as_ac_var=no"
10509fi
10510
10511rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513fi
10514ac_res=`eval echo '${'$as_ac_var'}'`
10515 { echo "$as_me:$LINENO: result: $ac_res" >&5
10516echo "${ECHO_T}$ac_res" >&6; }
10517if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520_ACEOF
10521
10522fi
10523done
10524
10525 LIBS="$lt_save_LIBS"
10526fi
10527ac_ext=c
10528ac_cpp='$CPP $CPPFLAGS'
10529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531ac_compiler_gnu=$ac_cv_c_compiler_gnu
10532
10533
10534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010535{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10536echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10537if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539else
10540 ac_cv_sys_symbol_underscore=no
10541 cat > conftest.$ac_ext <<EOF
10542void nm_test_func(){}
10543int main(){nm_test_func;return 0;}
10544EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546 (eval $ac_compile) 2>&5
10547 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 # Now try to grab the symbols.
10551 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010552 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 +000010553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10554 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557 # See whether the symbols have a leading underscore.
10558 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10559 ac_cv_sys_symbol_underscore=yes
10560 else
10561 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10562 :
10563 else
10564 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10565 fi
10566 fi
10567 else
10568 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10569 fi
10570 else
10571 echo "configure: failed program was:" >&5
10572 cat conftest.c >&5
10573 fi
10574 rm -rf conftest*
10575
10576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010577{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10578echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579
10580
10581if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10582 if test x"$libltdl_cv_func_dlopen" = xyes ||
10583 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010584 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10585echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10586if test "${libltdl_cv_need_uscore+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588else
10589 libltdl_cv_need_uscore=unknown
10590 save_LIBS="$LIBS"
10591 LIBS="$LIBS $LIBADD_DL"
10592 if test "$cross_compiling" = yes; then :
10593 libltdl_cv_need_uscore=cross
10594else
10595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10596 lt_status=$lt_dlunknown
10597 cat > conftest.$ac_ext <<EOF
Eric Christopher776d9932011-09-19 20:46:12 +000010598#line 10598 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599#include "confdefs.h"
10600
10601#if HAVE_DLFCN_H
10602#include <dlfcn.h>
10603#endif
10604
10605#include <stdio.h>
10606
10607#ifdef RTLD_GLOBAL
10608# define LT_DLGLOBAL RTLD_GLOBAL
10609#else
10610# ifdef DL_GLOBAL
10611# define LT_DLGLOBAL DL_GLOBAL
10612# else
10613# define LT_DLGLOBAL 0
10614# endif
10615#endif
10616
10617/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10618 find out it does not work in some platform. */
10619#ifndef LT_DLLAZY_OR_NOW
10620# ifdef RTLD_LAZY
10621# define LT_DLLAZY_OR_NOW RTLD_LAZY
10622# else
10623# ifdef DL_LAZY
10624# define LT_DLLAZY_OR_NOW DL_LAZY
10625# else
10626# ifdef RTLD_NOW
10627# define LT_DLLAZY_OR_NOW RTLD_NOW
10628# else
10629# ifdef DL_NOW
10630# define LT_DLLAZY_OR_NOW DL_NOW
10631# else
10632# define LT_DLLAZY_OR_NOW 0
10633# endif
10634# endif
10635# endif
10636# endif
10637#endif
10638
10639#ifdef __cplusplus
10640extern "C" void exit (int);
10641#endif
10642
10643void fnord() { int i=42;}
10644int main ()
10645{
10646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10647 int status = $lt_dlunknown;
10648
10649 if (self)
10650 {
10651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10653 /* dlclose (self); */
10654 }
Reid Spencera773bd52006-08-04 18:18:08 +000010655 else
10656 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657
10658 exit (status);
10659}
10660EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662 (eval $ac_link) 2>&5
10663 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010666 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667 lt_status=$?
10668 case x$lt_status in
10669 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10670 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010671 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672 esac
10673 else :
10674 # compilation failed
10675
10676 fi
10677fi
10678rm -fr conftest*
10679
10680 LIBS="$save_LIBS"
10681
10682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10684echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685 fi
10686fi
10687
10688if test x"$libltdl_cv_need_uscore" = xyes; then
10689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010690cat >>confdefs.h <<\_ACEOF
10691#define NEED_USCORE 1
10692_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693
10694fi
10695
10696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010697{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10698echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10699if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701else
10702 # PORTME does your system automatically load deplibs for dlopen?
10703 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10704 # For now, we just catch OSes we know something about -- in the
10705 # future, we'll try test this programmatically.
10706 libltdl_cv_sys_dlopen_deplibs=unknown
10707 case "$host_os" in
10708 aix3*|aix4.1.*|aix4.2.*)
10709 # Unknown whether this is true for these versions of AIX, but
10710 # we want this `case' here to explicitly catch those versions.
10711 libltdl_cv_sys_dlopen_deplibs=unknown
10712 ;;
10713 aix[45]*)
10714 libltdl_cv_sys_dlopen_deplibs=yes
10715 ;;
10716 darwin*)
10717 # Assuming the user has installed a libdl from somewhere, this is true
10718 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10719 libltdl_cv_sys_dlopen_deplibs=yes
10720 ;;
10721 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10722 # GNU and its variants, using gnu ld.so (Glibc)
10723 libltdl_cv_sys_dlopen_deplibs=yes
10724 ;;
10725 hpux10*|hpux11*)
10726 libltdl_cv_sys_dlopen_deplibs=yes
10727 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010728 interix*)
10729 libltdl_cv_sys_dlopen_deplibs=yes
10730 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731 irix[12345]*|irix6.[01]*)
10732 # Catch all versions of IRIX before 6.2, and indicate that we don't
10733 # know how it worked for any of those versions.
10734 libltdl_cv_sys_dlopen_deplibs=unknown
10735 ;;
10736 irix*)
10737 # The case above catches anything before 6.2, and it's known that
10738 # at 6.2 and later dlopen does load deplibs.
10739 libltdl_cv_sys_dlopen_deplibs=yes
10740 ;;
10741 netbsd*)
10742 libltdl_cv_sys_dlopen_deplibs=yes
10743 ;;
10744 openbsd*)
10745 libltdl_cv_sys_dlopen_deplibs=yes
10746 ;;
10747 osf[1234]*)
10748 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10749 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010750 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751 libltdl_cv_sys_dlopen_deplibs=no
10752 ;;
10753 osf5.0|osf5.0a|osf5.1)
10754 # dlopen *does* load deplibs and with the right loader patch applied
10755 # it even uses RPATH in a shared library to search for shared objects
10756 # that the library depends on, but there's no easy way to know if that
10757 # patch is installed. Since this is the case, all we can really
10758 # say is unknown -- it depends on the patch being installed. If
10759 # it is, this changes to `yes'. Without it, it would be `no'.
10760 libltdl_cv_sys_dlopen_deplibs=unknown
10761 ;;
10762 osf*)
10763 # the two cases above should catch all versions of osf <= 5.1. Read
10764 # the comments above for what we know about them.
10765 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10766 # is used to find them so we can finally say `yes'.
10767 libltdl_cv_sys_dlopen_deplibs=yes
10768 ;;
10769 solaris*)
10770 libltdl_cv_sys_dlopen_deplibs=yes
10771 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10773 libltdl_cv_sys_dlopen_deplibs=yes
10774 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775 esac
10776
10777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010778{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10779echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010782cat >>confdefs.h <<\_ACEOF
10783#define LTDL_DLOPEN_DEPLIBS 1
10784_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785
10786fi
10787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010788
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010790do
10791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10797fi
10798ac_res=`eval echo '${'$as_ac_Header'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800echo "${ECHO_T}$ac_res" >&6; }
10801else
10802 # Is the header compilable?
10803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10805cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811$ac_includes_default
10812#include <$ac_header>
10813_ACEOF
10814rm -f conftest.$ac_objext
10815if { (ac_try="$ac_compile"
10816case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819esac
10820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_compile") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829 { (case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832esac
10833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_try") 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest.$ac_objext'
10839 { (case "(($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_try") 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_header_compiler=yes
10849else
10850 echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_header_compiler=no
10854fi
10855
10856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10858echo "${ECHO_T}$ac_header_compiler" >&6; }
10859
10860# Is the header present?
10861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10863cat >conftest.$ac_ext <<_ACEOF
10864/* confdefs.h. */
10865_ACEOF
10866cat confdefs.h >>conftest.$ac_ext
10867cat >>conftest.$ac_ext <<_ACEOF
10868/* end confdefs.h. */
10869#include <$ac_header>
10870_ACEOF
10871if { (ac_try="$ac_cpp conftest.$ac_ext"
10872case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
10876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10878 ac_status=$?
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } >/dev/null; then
10884 if test -s conftest.err; then
10885 ac_cpp_err=$ac_c_preproc_warn_flag
10886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10887 else
10888 ac_cpp_err=
10889 fi
10890else
10891 ac_cpp_err=yes
10892fi
10893if test -z "$ac_cpp_err"; then
10894 ac_header_preproc=yes
10895else
10896 echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 ac_header_preproc=no
10900fi
10901
10902rm -f conftest.err conftest.$ac_ext
10903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10904echo "${ECHO_T}$ac_header_preproc" >&6; }
10905
10906# So? What about this header?
10907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10908 yes:no: )
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10913 ac_header_preproc=yes
10914 ;;
10915 no:yes:* )
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10928 ( cat <<\_ASBOX
10929## ----------------------------------- ##
10930## Report this to llvmbugs@cs.uiuc.edu ##
10931## ----------------------------------- ##
10932_ASBOX
10933 ) | sed "s/^/$as_me: WARNING: /" >&2
10934 ;;
10935esac
10936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 eval "$as_ac_Header=\$ac_header_preproc"
10942fi
10943ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945echo "${ECHO_T}$ac_res" >&6; }
10946
10947fi
10948if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010951_ACEOF
10952
10953fi
10954
10955done
10956
10957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010958{ echo "$as_me:$LINENO: checking for error_t" >&5
10959echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10960if test "${ac_cv_type_error_t+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962else
10963 cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
10969#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970# include <argz.h>
10971#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010972
10973typedef error_t ac__type_new_;
10974int
10975main ()
10976{
10977if ((ac__type_new_ *) 0)
10978 return 0;
10979if (sizeof (ac__type_new_))
10980 return 0;
10981 ;
10982 return 0;
10983}
10984_ACEOF
10985rm -f conftest.$ac_objext
10986if { (ac_try="$ac_compile"
10987case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_cv_type_error_t=yes
11020else
11021 echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ac_cv_type_error_t=no
11025fi
11026
11027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028fi
11029{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11030echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11031if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032
11033cat >>confdefs.h <<_ACEOF
11034#define HAVE_ERROR_T 1
11035_ACEOF
11036
11037
11038else
11039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011040cat >>confdefs.h <<\_ACEOF
11041#define error_t int
11042_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043
11044fi
11045
11046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047
11048
11049
11050
11051
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011053do
11054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11059else
11060 cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */
11066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11068#define $ac_func innocuous_$ac_func
11069
11070/* System header to define __stub macros and hopefully few prototypes,
11071 which can conflict with char $ac_func (); below.
11072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11073 <limits.h> exists even on freestanding compilers. */
11074
11075#ifdef __STDC__
11076# include <limits.h>
11077#else
11078# include <assert.h>
11079#endif
11080
11081#undef $ac_func
11082
11083/* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11086#ifdef __cplusplus
11087extern "C"
11088#endif
11089char $ac_func ();
11090/* The GNU C library defines this for functions which it implements
11091 to always fail with ENOSYS. Some functions are actually named
11092 something starting with __ and the normal name is an alias. */
11093#if defined __stub_$ac_func || defined __stub___$ac_func
11094choke me
11095#endif
11096
11097int
11098main ()
11099{
11100return $ac_func ();
11101 ;
11102 return 0;
11103}
11104_ACEOF
11105rm -f conftest.$ac_objext conftest$ac_exeext
11106if { (ac_try="$ac_link"
11107case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110esac
11111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_link") 2>conftest.er1
11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest$ac_exeext'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133esac
11134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_try") 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 eval "$as_ac_var=yes"
11140else
11141 echo "$as_me: failed program was:" >&5
11142sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 eval "$as_ac_var=no"
11145fi
11146
11147rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149fi
11150ac_res=`eval echo '${'$as_ac_var'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152echo "${ECHO_T}$ac_res" >&6; }
11153if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156_ACEOF
11157
11158fi
11159done
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011180
11181
11182
11183
11184
11185
11186
11187
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11189 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011190do
11191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197fi
11198ac_res=`eval echo '${'$as_ac_Header'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200echo "${ECHO_T}$ac_res" >&6; }
11201else
11202 # Is the header compilable?
11203{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11205cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211$ac_includes_default
11212#include <$ac_header>
11213_ACEOF
11214rm -f conftest.$ac_objext
11215if { (ac_try="$ac_compile"
11216case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219esac
11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_compile") 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232esac
11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_try") 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest.$ac_objext'
11239 { (case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242esac
11243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_header_compiler=yes
11249else
11250 echo "$as_me: failed program was:" >&5
11251sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 ac_header_compiler=no
11254fi
11255
11256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11257{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11258echo "${ECHO_T}$ac_header_compiler" >&6; }
11259
11260# Is the header present?
11261{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11263cat >conftest.$ac_ext <<_ACEOF
11264/* confdefs.h. */
11265_ACEOF
11266cat confdefs.h >>conftest.$ac_ext
11267cat >>conftest.$ac_ext <<_ACEOF
11268/* end confdefs.h. */
11269#include <$ac_header>
11270_ACEOF
11271if { (ac_try="$ac_cpp conftest.$ac_ext"
11272case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275esac
11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } >/dev/null; then
11284 if test -s conftest.err; then
11285 ac_cpp_err=$ac_c_preproc_warn_flag
11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11287 else
11288 ac_cpp_err=
11289 fi
11290else
11291 ac_cpp_err=yes
11292fi
11293if test -z "$ac_cpp_err"; then
11294 ac_header_preproc=yes
11295else
11296 echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_header_preproc=no
11300fi
11301
11302rm -f conftest.err conftest.$ac_ext
11303{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11304echo "${ECHO_T}$ac_header_preproc" >&6; }
11305
11306# So? What about this header?
11307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308 yes:no: )
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11313 ac_header_preproc=yes
11314 ;;
11315 no:yes:* )
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11323echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11328 ( cat <<\_ASBOX
11329## ----------------------------------- ##
11330## Report this to llvmbugs@cs.uiuc.edu ##
11331## ----------------------------------- ##
11332_ASBOX
11333 ) | sed "s/^/$as_me: WARNING: /" >&2
11334 ;;
11335esac
11336{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341 eval "$as_ac_Header=\$ac_header_preproc"
11342fi
11343ac_res=`eval echo '${'$as_ac_Header'}'`
11344 { echo "$as_me:$LINENO: result: $ac_res" >&5
11345echo "${ECHO_T}$ac_res" >&6; }
11346
11347fi
11348if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351_ACEOF
11352
11353fi
11354
11355done
11356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011357
11358
11359
11360
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011362do
11363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369fi
11370ac_res=`eval echo '${'$as_ac_Header'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372echo "${ECHO_T}$ac_res" >&6; }
11373else
11374 # Is the header compilable?
11375{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11377cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383$ac_includes_default
11384#include <$ac_header>
11385_ACEOF
11386rm -f conftest.$ac_objext
11387if { (ac_try="$ac_compile"
11388case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391esac
11392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_compile") 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11401 { (case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404esac
11405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_try") 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest.$ac_objext'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414esac
11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_header_compiler=yes
11421else
11422 echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425 ac_header_compiler=no
11426fi
11427
11428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11430echo "${ECHO_T}$ac_header_compiler" >&6; }
11431
11432# Is the header present?
11433{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11435cat >conftest.$ac_ext <<_ACEOF
11436/* confdefs.h. */
11437_ACEOF
11438cat confdefs.h >>conftest.$ac_ext
11439cat >>conftest.$ac_ext <<_ACEOF
11440/* end confdefs.h. */
11441#include <$ac_header>
11442_ACEOF
11443if { (ac_try="$ac_cpp conftest.$ac_ext"
11444case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447esac
11448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } >/dev/null; then
11456 if test -s conftest.err; then
11457 ac_cpp_err=$ac_c_preproc_warn_flag
11458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11459 else
11460 ac_cpp_err=
11461 fi
11462else
11463 ac_cpp_err=yes
11464fi
11465if test -z "$ac_cpp_err"; then
11466 ac_header_preproc=yes
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 ac_header_preproc=no
11472fi
11473
11474rm -f conftest.err conftest.$ac_ext
11475{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11476echo "${ECHO_T}$ac_header_preproc" >&6; }
11477
11478# So? What about this header?
11479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11480 yes:no: )
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11485 ac_header_preproc=yes
11486 ;;
11487 no:yes:* )
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11495echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11500 ( cat <<\_ASBOX
11501## ----------------------------------- ##
11502## Report this to llvmbugs@cs.uiuc.edu ##
11503## ----------------------------------- ##
11504_ASBOX
11505 ) | sed "s/^/$as_me: WARNING: /" >&2
11506 ;;
11507esac
11508{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513 eval "$as_ac_Header=\$ac_header_preproc"
11514fi
11515ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517echo "${ECHO_T}$ac_res" >&6; }
11518
11519fi
11520if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523_ACEOF
11524
11525fi
11526
11527done
11528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011529
11530
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011531for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011532do
11533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539fi
11540ac_res=`eval echo '${'$as_ac_Header'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542echo "${ECHO_T}$ac_res" >&6; }
11543else
11544 # Is the header compilable?
11545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11547cat >conftest.$ac_ext <<_ACEOF
11548/* confdefs.h. */
11549_ACEOF
11550cat confdefs.h >>conftest.$ac_ext
11551cat >>conftest.$ac_ext <<_ACEOF
11552/* end confdefs.h. */
11553$ac_includes_default
11554#include <$ac_header>
11555_ACEOF
11556rm -f conftest.$ac_objext
11557if { (ac_try="$ac_compile"
11558case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11561esac
11562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_compile") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574esac
11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584esac
11585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 (eval "$ac_try") 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_header_compiler=yes
11591else
11592 echo "$as_me: failed program was:" >&5
11593sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 ac_header_compiler=no
11596fi
11597
11598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600echo "${ECHO_T}$ac_header_compiler" >&6; }
11601
11602# Is the header present?
11603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11605cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611#include <$ac_header>
11612_ACEOF
11613if { (ac_try="$ac_cpp conftest.$ac_ext"
11614case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11617esac
11618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } >/dev/null; then
11626 if test -s conftest.err; then
11627 ac_cpp_err=$ac_c_preproc_warn_flag
11628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11629 else
11630 ac_cpp_err=
11631 fi
11632else
11633 ac_cpp_err=yes
11634fi
11635if test -z "$ac_cpp_err"; then
11636 ac_header_preproc=yes
11637else
11638 echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 ac_header_preproc=no
11642fi
11643
11644rm -f conftest.err conftest.$ac_ext
11645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11646echo "${ECHO_T}$ac_header_preproc" >&6; }
11647
11648# So? What about this header?
11649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11650 yes:no: )
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11655 ac_header_preproc=yes
11656 ;;
11657 no:yes:* )
11658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11670 ( cat <<\_ASBOX
11671## ----------------------------------- ##
11672## Report this to llvmbugs@cs.uiuc.edu ##
11673## ----------------------------------- ##
11674_ASBOX
11675 ) | sed "s/^/$as_me: WARNING: /" >&2
11676 ;;
11677esac
11678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682else
11683 eval "$as_ac_Header=\$ac_header_preproc"
11684fi
11685ac_res=`eval echo '${'$as_ac_Header'}'`
11686 { echo "$as_me:$LINENO: result: $ac_res" >&5
11687echo "${ECHO_T}$ac_res" >&6; }
11688
11689fi
11690if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693_ACEOF
11694 break
11695fi
11696
11697done
11698
11699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011700
11701
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011703do
11704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11707if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709else
11710 cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
11716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718#define $ac_func innocuous_$ac_func
11719
11720/* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11724
11725#ifdef __STDC__
11726# include <limits.h>
11727#else
11728# include <assert.h>
11729#endif
11730
11731#undef $ac_func
11732
11733/* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736#ifdef __cplusplus
11737extern "C"
11738#endif
11739char $ac_func ();
11740/* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743#if defined __stub_$ac_func || defined __stub___$ac_func
11744choke me
11745#endif
11746
11747int
11748main ()
11749{
11750return $ac_func ();
11751 ;
11752 return 0;
11753}
11754_ACEOF
11755rm -f conftest.$ac_objext conftest$ac_exeext
11756if { (ac_try="$ac_link"
11757case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_link") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770 { (case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_try") 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 eval "$as_ac_var=yes"
11790else
11791 echo "$as_me: failed program was:" >&5
11792sed 's/^/| /' conftest.$ac_ext >&5
11793
11794 eval "$as_ac_var=no"
11795fi
11796
11797rm -f core conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11799fi
11800ac_res=`eval echo '${'$as_ac_var'}'`
11801 { echo "$as_me:$LINENO: result: $ac_res" >&5
11802echo "${ECHO_T}$ac_res" >&6; }
11803if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806_ACEOF
11807 break
11808fi
11809done
11810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011811
11812
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011814do
11815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11816{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11818if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
11827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11829#define $ac_func innocuous_$ac_func
11830
11831/* System header to define __stub macros and hopefully few prototypes,
11832 which can conflict with char $ac_func (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
11835
11836#ifdef __STDC__
11837# include <limits.h>
11838#else
11839# include <assert.h>
11840#endif
11841
11842#undef $ac_func
11843
11844/* Override any GCC internal prototype to avoid an error.
11845 Use char because int might match the return type of a GCC
11846 builtin and then its argument prototype would still apply. */
11847#ifdef __cplusplus
11848extern "C"
11849#endif
11850char $ac_func ();
11851/* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854#if defined __stub_$ac_func || defined __stub___$ac_func
11855choke me
11856#endif
11857
11858int
11859main ()
11860{
11861return $ac_func ();
11862 ;
11863 return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext conftest$ac_exeext
11867if { (ac_try="$ac_link"
11868case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871esac
11872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_link") 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11881 { (case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_try") 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11894esac
11895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_try") 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 eval "$as_ac_var=yes"
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 eval "$as_ac_var=no"
11906fi
11907
11908rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910fi
11911ac_res=`eval echo '${'$as_ac_var'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913echo "${ECHO_T}$ac_res" >&6; }
11914if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917_ACEOF
11918 break
11919fi
11920done
11921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011922
11923
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011925do
11926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931else
11932 cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
11938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11940#define $ac_func innocuous_$ac_func
11941
11942/* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func (); below.
11944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 <limits.h> exists even on freestanding compilers. */
11946
11947#ifdef __STDC__
11948# include <limits.h>
11949#else
11950# include <assert.h>
11951#endif
11952
11953#undef $ac_func
11954
11955/* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961char $ac_func ();
11962/* The GNU C library defines this for functions which it implements
11963 to always fail with ENOSYS. Some functions are actually named
11964 something starting with __ and the normal name is an alias. */
11965#if defined __stub_$ac_func || defined __stub___$ac_func
11966choke me
11967#endif
11968
11969int
11970main ()
11971{
11972return $ac_func ();
11973 ;
11974 return 0;
11975}
11976_ACEOF
11977rm -f conftest.$ac_objext conftest$ac_exeext
11978if { (ac_try="$ac_link"
11979case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995esac
11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 eval "$as_ac_var=yes"
12012else
12013 echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 eval "$as_ac_var=no"
12017fi
12018
12019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021fi
12022ac_res=`eval echo '${'$as_ac_var'}'`
12023 { echo "$as_me:$LINENO: result: $ac_res" >&5
12024echo "${ECHO_T}$ac_res" >&6; }
12025if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028_ACEOF
12029 break
12030fi
12031done
12032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012033
12034
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012036do
12037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
12043 cat >conftest.$ac_ext <<_ACEOF
12044/* confdefs.h. */
12045_ACEOF
12046cat confdefs.h >>conftest.$ac_ext
12047cat >>conftest.$ac_ext <<_ACEOF
12048/* end confdefs.h. */
12049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12051#define $ac_func innocuous_$ac_func
12052
12053/* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char $ac_func (); below.
12055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 <limits.h> exists even on freestanding compilers. */
12057
12058#ifdef __STDC__
12059# include <limits.h>
12060#else
12061# include <assert.h>
12062#endif
12063
12064#undef $ac_func
12065
12066/* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069#ifdef __cplusplus
12070extern "C"
12071#endif
12072char $ac_func ();
12073/* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076#if defined __stub_$ac_func || defined __stub___$ac_func
12077choke me
12078#endif
12079
12080int
12081main ()
12082{
12083return $ac_func ();
12084 ;
12085 return 0;
12086}
12087_ACEOF
12088rm -f conftest.$ac_objext conftest$ac_exeext
12089if { (ac_try="$ac_link"
12090case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_link") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106esac
12107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 eval "$as_ac_var=yes"
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 eval "$as_ac_var=no"
12128fi
12129
12130rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132fi
12133ac_res=`eval echo '${'$as_ac_var'}'`
12134 { echo "$as_me:$LINENO: result: $ac_res" >&5
12135echo "${ECHO_T}$ac_res" >&6; }
12136if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139_ACEOF
12140
12141fi
12142done
12143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012144
12145
12146
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148do
12149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155 cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
12161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163#define $ac_func innocuous_$ac_func
12164
12165/* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12169
12170#ifdef __STDC__
12171# include <limits.h>
12172#else
12173# include <assert.h>
12174#endif
12175
12176#undef $ac_func
12177
12178/* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181#ifdef __cplusplus
12182extern "C"
12183#endif
12184char $ac_func ();
12185/* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188#if defined __stub_$ac_func || defined __stub___$ac_func
12189choke me
12190#endif
12191
12192int
12193main ()
12194{
12195return $ac_func ();
12196 ;
12197 return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext conftest$ac_exeext
12201if { (ac_try="$ac_link"
12202case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205esac
12206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 eval "$as_ac_var=no"
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244fi
12245ac_res=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247echo "${ECHO_T}$ac_res" >&6; }
12248if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251_ACEOF
12252
12253fi
12254done
12255
12256
Douglas Gregor01746742009-05-11 18:05:52 +000012257
Reid Spencer7931a782004-12-27 06:15:02 +000012258if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012259 LLVMGCC="llvm-gcc${EXEEXT}"
12260 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012261 LLVMGCCCOMMAND="$LLVMGCC"
12262 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012263 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12264
12265 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12266
Reid Spencerc84492c2005-06-02 22:34:49 +000012267 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12268set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12271if test "${ac_cv_path_LLVMGCC+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012273else
12274 case $LLVMGCC in
12275 [\\/]* | ?:[\\/]*)
12276 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12277 ;;
12278 *)
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 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 +000012286 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012288 break 2
12289 fi
12290done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012291done
Reid Spencera773bd52006-08-04 18:18:08 +000012292IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012293
Reid Spencer59473af2004-12-25 07:31:29 +000012294 ;;
12295esac
12296fi
12297LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012298if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012299 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12300echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012302 { echo "$as_me:$LINENO: result: no" >&5
12303echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012304fi
12305
Reid Spencera773bd52006-08-04 18:18:08 +000012306
Reid Spencerc84492c2005-06-02 22:34:49 +000012307 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12308set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12311if test "${ac_cv_path_LLVMGXX+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012313else
12314 case $LLVMGXX in
12315 [\\/]* | ?:[\\/]*)
12316 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12317 ;;
12318 *)
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 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 +000012326 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012328 break 2
12329 fi
12330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331done
Reid Spencera773bd52006-08-04 18:18:08 +000012332IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012333
Reid Spencer59473af2004-12-25 07:31:29 +000012334 ;;
12335esac
12336fi
12337LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012338if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12340echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012342 { echo "$as_me:$LINENO: result: no" >&5
12343echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012344fi
12345
Reid Spencera773bd52006-08-04 18:18:08 +000012346
Reid Spencer59473af2004-12-25 07:31:29 +000012347else
Devang Patel5d28b882007-12-04 22:54:47 +000012348 if test -z "$LLVMGCC"; then
12349 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012350 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012351 fi
12352 if test -z "$LLVMGXX"; then
12353 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012354 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012355 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012356
Reid Spencer59473af2004-12-25 07:31:29 +000012357 LLVMGCC=$LLVMGCC
12358
12359 LLVMGXX=$LLVMGXX
12360
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012361 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12362
12363 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12364
Reid Spencer59473af2004-12-25 07:31:29 +000012365fi
12366
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012367
Daniel Dunbar98515672010-02-23 10:00:49 +000012368# Check whether --with-llvmcc was given.
12369if test "${with_llvmcc+set}" = set; then
12370 withval=$with_llvmcc;
12371else
12372 with_llvmcc=check
12373fi
12374
12375{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12376echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12377if test "$with_llvmcc" != "check"; then
12378 if (test "$with_llvmcc" != "llvm-gcc" &&
12379 test "$with_llvmcc" != "clang" &&
12380 test "$with_llvmcc" != "none"); then
12381 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12382echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12383 { (exit 1); exit 1; }; }
12384 fi
12385 WITH_LLVMCC="$with_llvmcc"
12386elif test -n "$LLVMGCC"; then
12387 WITH_LLVMCC=llvm-gcc
12388elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12389 WITH_LLVMCC=clang
12390else
12391 WITH_LLVMCC=none
12392fi
12393{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12394echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12395LLVMCC_OPTION=$WITH_LLVMCC
12396
12397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012398{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12399echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012400
Reid Spencer86901802004-12-08 23:07:27 +000012401ICC=no
12402IXX=no
12403case $CC in
12404 icc*|icpc*)
12405 ICC=yes
12406 IXX=yes
12407 ;;
12408 *)
12409 ;;
12410esac
12411
Duraid Madina937c60a2006-02-15 07:57:42 +000012412if test "$GCC" != "yes" && test "$ICC" != "yes"
12413then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12415echo "$as_me: error: gcc|icc required but not found" >&2;}
12416 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012417fi
12418
12419if test "$GXX" != "yes" && test "$IXX" != "yes"
12420then
Eric Christopher73e36da2010-12-08 02:02:14 +000012421 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12422echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012423 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012424fi
12425
Reid Spencer86901802004-12-08 23:07:27 +000012426if test "$GCC" = "yes"
12427then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012428 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012429#if !defined(__GNUC__) || __GNUC__ < 3
12430#error Unsupported GCC version
12431#endif
12432
12433_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012434rm -f conftest.$ac_objext
12435if { (ac_try="$ac_compile"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_compile") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12474echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12475 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477
Chris Lattner399c7c72008-02-05 19:43:53 +000012478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012479fi
12480
12481if test -z "$llvm_cv_gnu_make_command"
12482then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12484echo "$as_me: error: GNU Make required but not found" >&2;}
12485 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012486fi
12487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012488{ echo "$as_me:$LINENO: result: ok" >&5
12489echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12492echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012493NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12494
12495NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12498echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012499
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012501
12502{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12503echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12504if test "${ac_cv_lib_m_sin+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012506else
12507 ac_check_lib_save_LIBS=$LIBS
12508LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012509cat >conftest.$ac_ext <<_ACEOF
12510/* confdefs.h. */
12511_ACEOF
12512cat confdefs.h >>conftest.$ac_ext
12513cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012514/* end confdefs.h. */
12515
Reid Spencera773bd52006-08-04 18:18:08 +000012516/* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012519#ifdef __cplusplus
12520extern "C"
12521#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012522char sin ();
12523int
12524main ()
12525{
Reid Spencera773bd52006-08-04 18:18:08 +000012526return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012527 ;
12528 return 0;
12529}
12530_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012531rm -f conftest.$ac_objext conftest$ac_exeext
12532if { (ac_try="$ac_link"
12533case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536esac
12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_link") 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12546 { (case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549esac
12550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_try") 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559esac
12560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012565 ac_cv_lib_m_sin=yes
12566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572
Bill Wendlingebcceee2009-04-18 11:20:33 +000012573rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012574 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012575LIBS=$ac_check_lib_save_LIBS
12576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012577{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12578echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12579if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012580 cat >>confdefs.h <<_ACEOF
12581#define HAVE_LIBM 1
12582_ACEOF
12583
12584 LIBS="-lm $LIBS"
12585
12586fi
12587
Jeff Cohen28783c32007-01-12 18:22:38 +000012588if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012589
12590{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12591echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12592if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012594else
12595 ac_check_lib_save_LIBS=$LIBS
12596LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012602/* end confdefs.h. */
12603
Reid Spencer48fdf912006-06-01 19:03:21 +000012604
Reid Spencer484fc8e2006-06-01 16:55:59 +000012605int
12606main ()
12607{
Reid Spencera773bd52006-08-04 18:18:08 +000012608return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012609 ;
12610 return 0;
12611}
12612_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012613rm -f conftest.$ac_objext conftest$ac_exeext
12614if { (ac_try="$ac_link"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_try") 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012647 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649 echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
12652 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012654
Bill Wendlingebcceee2009-04-18 11:20:33 +000012655rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012657LIBS=$ac_check_lib_save_LIBS
12658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012659{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12660echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12661if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012662 cat >>confdefs.h <<_ACEOF
12663#define HAVE_LIBIMAGEHLP 1
12664_ACEOF
12665
12666 LIBS="-limagehlp $LIBS"
12667
12668fi
12669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670
12671{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12672echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12673if test "${ac_cv_lib_psapi_main+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012675else
12676 ac_check_lib_save_LIBS=$LIBS
12677LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012678cat >conftest.$ac_ext <<_ACEOF
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012683/* end confdefs.h. */
12684
Reid Spencer48fdf912006-06-01 19:03:21 +000012685
Reid Spencer484fc8e2006-06-01 16:55:59 +000012686int
12687main ()
12688{
Reid Spencera773bd52006-08-04 18:18:08 +000012689return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012690 ;
12691 return 0;
12692}
12693_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012694rm -f conftest.$ac_objext conftest$ac_exeext
12695if { (ac_try="$ac_link"
12696case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699esac
12700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_link") 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712esac
12713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest$ac_exeext'
12719 { (case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12722esac
12723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_try") 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012728 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012729else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730 echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012735
Bill Wendlingebcceee2009-04-18 11:20:33 +000012736rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012738LIBS=$ac_check_lib_save_LIBS
12739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012740{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12741echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12742if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012743 cat >>confdefs.h <<_ACEOF
12744#define HAVE_LIBPSAPI 1
12745_ACEOF
12746
12747 LIBS="-lpsapi $LIBS"
12748
12749fi
12750
12751fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012753{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12754echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12755if test "${ac_cv_search_dlopen+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012757else
12758 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012759cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012765
Reid Spencera773bd52006-08-04 18:18:08 +000012766/* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012769#ifdef __cplusplus
12770extern "C"
12771#endif
John Criswell7a73b802003-06-30 21:59:07 +000012772char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012773int
12774main ()
12775{
Reid Spencera773bd52006-08-04 18:18:08 +000012776return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012777 ;
12778 return 0;
12779}
12780_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012781for ac_lib in '' dl; do
12782 if test -z "$ac_lib"; then
12783 ac_res="none required"
12784 else
12785 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012788 rm -f conftest.$ac_objext conftest$ac_exeext
12789if { (ac_try="$ac_link"
12790case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793esac
12794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_link") 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest$ac_exeext'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816esac
12817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012822 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827
John Criswell7a73b802003-06-30 21:59:07 +000012828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829
Bill Wendlingebcceee2009-04-18 11:20:33 +000012830rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831 conftest$ac_exeext
12832 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012833 break
John Criswell7a73b802003-06-30 21:59:07 +000012834fi
Reid Spencera773bd52006-08-04 18:18:08 +000012835done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836if test "${ac_cv_search_dlopen+set}" = set; then
12837 :
Reid Spencera773bd52006-08-04 18:18:08 +000012838else
12839 ac_cv_search_dlopen=no
12840fi
12841rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012842LIBS=$ac_func_search_save_LIBS
12843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012844{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12845echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012846ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012847if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850cat >>confdefs.h <<\_ACEOF
12851#define HAVE_DLOPEN 1
12852_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012853
12854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012855 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12856echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012857fi
12858
12859
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012860if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012861 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12862echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12863if test "${ac_cv_search_ffi_call+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012865else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012866 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012867cat >conftest.$ac_ext <<_ACEOF
12868/* confdefs.h. */
12869_ACEOF
12870cat confdefs.h >>conftest.$ac_ext
12871cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012872/* end confdefs.h. */
12873
12874/* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877#ifdef __cplusplus
12878extern "C"
12879#endif
12880char ffi_call ();
12881int
12882main ()
12883{
12884return ffi_call ();
12885 ;
12886 return 0;
12887}
12888_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012889for ac_lib in '' ffi; do
12890 if test -z "$ac_lib"; then
12891 ac_res="none required"
12892 else
12893 ac_res=-l$ac_lib
12894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12895 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012896 rm -f conftest.$ac_objext conftest$ac_exeext
12897if { (ac_try="$ac_link"
12898case "(($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_link") 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914esac
12915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_try") 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12924esac
12925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_try") 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012930 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012931else
12932 echo "$as_me: failed program was:" >&5
12933sed 's/^/| /' conftest.$ac_ext >&5
12934
12935
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012937
Bill Wendlingebcceee2009-04-18 11:20:33 +000012938rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939 conftest$ac_exeext
12940 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012941 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012942fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012943done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012944if test "${ac_cv_search_ffi_call+set}" = set; then
12945 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012946else
12947 ac_cv_search_ffi_call=no
12948fi
12949rm conftest.$ac_ext
12950LIBS=$ac_func_search_save_LIBS
12951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12953echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012954ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012955if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958cat >>confdefs.h <<\_ACEOF
12959#define HAVE_FFI_CALL 1
12960_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012961
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012962else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012963 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12964echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12965 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012966fi
12967
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012968fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012970{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12971echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12972if test "${ac_cv_search_mallinfo+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012974else
12975 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012976cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012982
Reid Spencera773bd52006-08-04 18:18:08 +000012983/* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012986#ifdef __cplusplus
12987extern "C"
12988#endif
John Criswell7a73b802003-06-30 21:59:07 +000012989char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012990int
12991main ()
12992{
Reid Spencera773bd52006-08-04 18:18:08 +000012993return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012994 ;
12995 return 0;
12996}
12997_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012998for ac_lib in '' malloc; do
12999 if test -z "$ac_lib"; then
13000 ac_res="none required"
13001 else
13002 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013004 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005 rm -f conftest.$ac_objext conftest$ac_exeext
13006if { (ac_try="$ac_link"
13007case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010esac
13011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_link") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023esac
13024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033esac
13034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_try") 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013039 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013040else
13041 echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044
John Criswell7a73b802003-06-30 21:59:07 +000013045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046
Bill Wendlingebcceee2009-04-18 11:20:33 +000013047rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013048 conftest$ac_exeext
13049 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013050 break
John Criswell7a73b802003-06-30 21:59:07 +000013051fi
Reid Spencera773bd52006-08-04 18:18:08 +000013052done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013053if test "${ac_cv_search_mallinfo+set}" = set; then
13054 :
Reid Spencera773bd52006-08-04 18:18:08 +000013055else
13056 ac_cv_search_mallinfo=no
13057fi
13058rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013059LIBS=$ac_func_search_save_LIBS
13060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13062echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013063ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013064if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067cat >>confdefs.h <<\_ACEOF
13068#define HAVE_MALLINFO 1
13069_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013070
13071fi
13072
13073
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000013074if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075
13076{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13077echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13078if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013080else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013081 ac_check_lib_save_LIBS=$LIBS
13082LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013083cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013088/* end confdefs.h. */
13089
Reid Spencera773bd52006-08-04 18:18:08 +000013090/* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013093#ifdef __cplusplus
13094extern "C"
13095#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013096char pthread_mutex_init ();
13097int
13098main ()
13099{
Reid Spencera773bd52006-08-04 18:18:08 +000013100return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013101 ;
13102 return 0;
13103}
13104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105rm -f conftest.$ac_objext conftest$ac_exeext
13106if { (ac_try="$ac_link"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013139 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013146
Bill Wendlingebcceee2009-04-18 11:20:33 +000013147rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013148 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013149LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013151{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13152echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13153if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013154 cat >>confdefs.h <<_ACEOF
13155#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013156_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013157
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013158 LIBS="-lpthread $LIBS"
13159
Reid Spencer22177fe2005-07-12 15:24:20 +000013160fi
13161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013162 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13163echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13164if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013166else
13167 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013168cat >conftest.$ac_ext <<_ACEOF
13169/* confdefs.h. */
13170_ACEOF
13171cat confdefs.h >>conftest.$ac_ext
13172cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013173/* end confdefs.h. */
13174
Reid Spencera773bd52006-08-04 18:18:08 +000013175/* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013178#ifdef __cplusplus
13179extern "C"
13180#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013181char pthread_mutex_lock ();
13182int
13183main ()
13184{
Reid Spencera773bd52006-08-04 18:18:08 +000013185return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013186 ;
13187 return 0;
13188}
13189_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013190for ac_lib in '' pthread; do
13191 if test -z "$ac_lib"; then
13192 ac_res="none required"
13193 else
13194 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013196 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197 rm -f conftest.$ac_objext conftest$ac_exeext
13198if { (ac_try="$ac_link"
13199case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013231 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232else
13233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
13236
Brian Gaeke5f268f72003-12-05 19:29:01 +000013237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238
Bill Wendlingebcceee2009-04-18 11:20:33 +000013239rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013240 conftest$ac_exeext
13241 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013242 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013243fi
Reid Spencera773bd52006-08-04 18:18:08 +000013244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13246 :
Reid Spencera773bd52006-08-04 18:18:08 +000013247else
13248 ac_cv_search_pthread_mutex_lock=no
13249fi
13250rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013251LIBS=$ac_func_search_save_LIBS
13252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13254echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013255ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259cat >>confdefs.h <<\_ACEOF
13260#define HAVE_PTHREAD_MUTEX_LOCK 1
13261_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013262
13263fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13266echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13267if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013269else
13270 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013276/* end confdefs.h. */
13277
13278/* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281#ifdef __cplusplus
13282extern "C"
13283#endif
13284char pthread_rwlock_init ();
13285int
13286main ()
13287{
13288return pthread_rwlock_init ();
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293for ac_lib in '' pthread; do
13294 if test -z "$ac_lib"; then
13295 ac_res="none required"
13296 else
13297 ac_res=-l$ac_lib
13298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13299 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300 rm -f conftest.$ac_objext conftest$ac_exeext
13301if { (ac_try="$ac_link"
13302case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305esac
13306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest$ac_exeext'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013334 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335else
13336 echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
Owen Andersonde8aed22009-06-16 18:20:20 +000013340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341
Owen Andersonde8aed22009-06-16 18:20:20 +000013342rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343 conftest$ac_exeext
13344 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013345 break
13346fi
13347done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013348if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13349 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013350else
13351 ac_cv_search_pthread_rwlock_init=no
13352fi
13353rm conftest.$ac_ext
13354LIBS=$ac_func_search_save_LIBS
13355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13357echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013358ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362cat >>confdefs.h <<\_ACEOF
13363#define HAVE_PTHREAD_RWLOCK_INIT 1
13364_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013365
13366fi
13367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13369echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13370if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013372else
13373 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013379/* end confdefs.h. */
13380
13381/* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13384#ifdef __cplusplus
13385extern "C"
13386#endif
13387char pthread_getspecific ();
13388int
13389main ()
13390{
13391return pthread_getspecific ();
13392 ;
13393 return 0;
13394}
13395_ACEOF
13396for ac_lib in '' pthread; do
13397 if test -z "$ac_lib"; then
13398 ac_res="none required"
13399 else
13400 ac_res=-l$ac_lib
13401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13402 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013403 rm -f conftest.$ac_objext conftest$ac_exeext
13404if { (ac_try="$ac_link"
13405case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408esac
13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } &&
13427 { ac_try='test -s conftest$ac_exeext'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013437 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438else
13439 echo "$as_me: failed program was:" >&5
13440sed 's/^/| /' conftest.$ac_ext >&5
13441
13442
Owen Anderson27fcfe12009-06-25 23:10:26 +000013443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013444
Owen Anderson27fcfe12009-06-25 23:10:26 +000013445rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446 conftest$ac_exeext
13447 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013448 break
13449fi
13450done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13452 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013453else
13454 ac_cv_search_pthread_getspecific=no
13455fi
13456rm conftest.$ac_ext
13457LIBS=$ac_func_search_save_LIBS
13458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013459{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13460echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013461ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013465cat >>confdefs.h <<\_ACEOF
13466#define HAVE_PTHREAD_GETSPECIFIC 1
13467_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013468
13469fi
13470
Reid Spencer0a262ba2005-08-24 10:07:20 +000013471fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013472
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013473
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013474# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013476 withval=$with_udis86;
13477 USE_UDIS86=1
13478
13479 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013480 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013481 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13482 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013483
13484{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13485echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13486if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013488else
13489 ac_check_lib_save_LIBS=$LIBS
13490LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013496/* end confdefs.h. */
13497
13498/* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13501#ifdef __cplusplus
13502extern "C"
13503#endif
13504char ud_init ();
13505int
13506main ()
13507{
13508return ud_init ();
13509 ;
13510 return 0;
13511}
13512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513rm -f conftest.$ac_objext conftest$ac_exeext
13514if { (ac_try="$ac_link"
13515case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518esac
13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13541esac
13542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013547 ac_cv_lib_udis86_ud_init=yes
13548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013549 echo "$as_me: failed program was:" >&5
13550sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013554
Bill Wendlingebcceee2009-04-18 11:20:33 +000013555rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013556 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013557LIBS=$ac_check_lib_save_LIBS
13558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013559{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13560echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13561if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013562 cat >>confdefs.h <<_ACEOF
13563#define HAVE_LIBUDIS86 1
13564_ACEOF
13565
13566 LIBS="-ludis86 $LIBS"
13567
13568else
13569
13570 echo "Error! You need to have libudis86 around."
13571 exit -1
13572
13573fi
13574
13575
13576else
13577 USE_UDIS86=0
13578
13579fi
13580
13581
13582cat >>confdefs.h <<_ACEOF
13583#define USE_UDIS86 $USE_UDIS86
13584_ACEOF
13585
13586
13587
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013588# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013589if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013590 withval=$with_oprofile;
13591 USE_OPROFILE=1
13592
13593 case "$withval" in
13594 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013595 no) llvm_cv_oppath=
13596 USE_OPROFILE=0
13597 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013598 *) llvm_cv_oppath="${withval}/lib/oprofile"
13599 CPPFLAGS="-I${withval}/include";;
13600 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013601 if test -n "$llvm_cv_oppath" ; then
13602 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013603 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13604echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13605if test "${ac_cv_search_bfd_init+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013607else
13608 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013609cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013614/* end confdefs.h. */
13615
13616/* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619#ifdef __cplusplus
13620extern "C"
13621#endif
13622char bfd_init ();
13623int
13624main ()
13625{
13626return bfd_init ();
13627 ;
13628 return 0;
13629}
13630_ACEOF
13631for ac_lib in '' bfd; do
13632 if test -z "$ac_lib"; then
13633 ac_res="none required"
13634 else
13635 ac_res=-l$ac_lib
13636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13637 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638 rm -f conftest.$ac_objext conftest$ac_exeext
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_link") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653 { (case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_try") 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest$ac_exeext'
13663 { (case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666esac
13667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_try") 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013672 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013673else
13674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
13677
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013680rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013681 conftest$ac_exeext
13682 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013683 break
13684fi
13685done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013686if test "${ac_cv_search_bfd_init+set}" = set; then
13687 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013688else
13689 ac_cv_search_bfd_init=no
13690fi
13691rm conftest.$ac_ext
13692LIBS=$ac_func_search_save_LIBS
13693fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013694{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13695echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013696ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013697if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13699
13700fi
13701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013702 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13703echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13704if test "${ac_cv_search_op_open_agent+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013706else
13707 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013708cat >conftest.$ac_ext <<_ACEOF
13709/* confdefs.h. */
13710_ACEOF
13711cat confdefs.h >>conftest.$ac_ext
13712cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013713/* end confdefs.h. */
13714
13715/* Override any GCC internal prototype to avoid an error.
13716 Use char because int might match the return type of a GCC
13717 builtin and then its argument prototype would still apply. */
13718#ifdef __cplusplus
13719extern "C"
13720#endif
13721char op_open_agent ();
13722int
13723main ()
13724{
13725return op_open_agent ();
13726 ;
13727 return 0;
13728}
13729_ACEOF
13730for ac_lib in '' opagent; do
13731 if test -z "$ac_lib"; then
13732 ac_res="none required"
13733 else
13734 ac_res=-l$ac_lib
13735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13736 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013737 rm -f conftest.$ac_objext conftest$ac_exeext
13738if { (ac_try="$ac_link"
13739case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_link") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765esac
13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013771 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013772else
13773 echo "$as_me: failed program was:" >&5
13774sed 's/^/| /' conftest.$ac_ext >&5
13775
13776
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013779rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013780 conftest$ac_exeext
13781 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013782 break
13783fi
13784done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013785if test "${ac_cv_search_op_open_agent+set}" = set; then
13786 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013787else
13788 ac_cv_search_op_open_agent=no
13789fi
13790rm conftest.$ac_ext
13791LIBS=$ac_func_search_save_LIBS
13792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013793{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13794echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013795ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013796if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13798
13799else
13800
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013801 echo "Error! You need to have libopagent around."
13802 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013803
13804fi
13805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806 if test "${ac_cv_header_opagent_h+set}" = set; then
13807 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13808echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13809if test "${ac_cv_header_opagent_h+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811fi
13812{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13813echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13814else
13815 # Is the header compilable?
13816{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13817echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13818cat >conftest.$ac_ext <<_ACEOF
13819/* confdefs.h. */
13820_ACEOF
13821cat confdefs.h >>conftest.$ac_ext
13822cat >>conftest.$ac_ext <<_ACEOF
13823/* end confdefs.h. */
13824$ac_includes_default
13825#include <opagent.h>
13826_ACEOF
13827rm -f conftest.$ac_objext
13828if { (ac_try="$ac_compile"
13829case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_compile") 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest.$ac_objext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_header_compiler=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866 ac_header_compiler=no
13867fi
13868
13869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13871echo "${ECHO_T}$ac_header_compiler" >&6; }
13872
13873# Is the header present?
13874{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13875echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13876cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882#include <opagent.h>
13883_ACEOF
13884if { (ac_try="$ac_cpp conftest.$ac_ext"
13885case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13888esac
13889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13891 ac_status=$?
13892 grep -v '^ *+' conftest.er1 >conftest.err
13893 rm -f conftest.er1
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } >/dev/null; then
13897 if test -s conftest.err; then
13898 ac_cpp_err=$ac_c_preproc_warn_flag
13899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13900 else
13901 ac_cpp_err=
13902 fi
13903else
13904 ac_cpp_err=yes
13905fi
13906if test -z "$ac_cpp_err"; then
13907 ac_header_preproc=yes
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_header_preproc=no
13913fi
13914
13915rm -f conftest.err conftest.$ac_ext
13916{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13917echo "${ECHO_T}$ac_header_preproc" >&6; }
13918
13919# So? What about this header?
13920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13921 yes:no: )
13922 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13923echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13925echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13926 ac_header_preproc=yes
13927 ;;
13928 no:yes:* )
13929 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13930echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13932echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13934echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13936echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13938echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13940echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13941 ( cat <<\_ASBOX
13942## ----------------------------------- ##
13943## Report this to llvmbugs@cs.uiuc.edu ##
13944## ----------------------------------- ##
13945_ASBOX
13946 ) | sed "s/^/$as_me: WARNING: /" >&2
13947 ;;
13948esac
13949{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13950echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13951if test "${ac_cv_header_opagent_h+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 ac_cv_header_opagent_h=$ac_header_preproc
13955fi
13956{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13957echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13958
13959fi
13960if test $ac_cv_header_opagent_h = yes; then
13961 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013962else
13963
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013964 echo "Error! You need to have opagent.h around."
13965 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013966
13967fi
13968
13969
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013970 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013971
13972else
13973
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013974 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013975
13976
13977fi
13978
13979
13980cat >>confdefs.h <<_ACEOF
13981#define USE_OPROFILE $USE_OPROFILE
13982_ACEOF
13983
13984
13985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986
13987
13988
13989
13990
Reid Spencer59473af2004-12-25 07:31:29 +000013991ac_header_dirent=no
13992for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13994{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13995echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999 cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014004/* end confdefs.h. */
14005#include <sys/types.h>
14006#include <$ac_hdr>
14007
14008int
14009main ()
14010{
14011if ((DIR *) 0)
14012return 0;
14013 ;
14014 return 0;
14015}
14016_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017rm -f conftest.$ac_objext
14018if { (ac_try="$ac_compile"
14019case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14022esac
14023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_compile") 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014051 eval "$as_ac_Header=yes"
14052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014053 echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058
Reid Spencera773bd52006-08-04 18:18:08 +000014059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014061ac_res=`eval echo '${'$as_ac_Header'}'`
14062 { echo "$as_me:$LINENO: result: $ac_res" >&5
14063echo "${ECHO_T}$ac_res" >&6; }
14064if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014065 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014066#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014067_ACEOF
14068
14069ac_header_dirent=$ac_hdr; break
14070fi
14071
14072done
14073# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14074if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14076echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14077if test "${ac_cv_search_opendir+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014079else
14080 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081cat >conftest.$ac_ext <<_ACEOF
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014086/* end confdefs.h. */
14087
Reid Spencera773bd52006-08-04 18:18:08 +000014088/* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014091#ifdef __cplusplus
14092extern "C"
14093#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014094char opendir ();
14095int
14096main ()
14097{
Reid Spencera773bd52006-08-04 18:18:08 +000014098return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014099 ;
14100 return 0;
14101}
14102_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014103for ac_lib in '' dir; do
14104 if test -z "$ac_lib"; then
14105 ac_res="none required"
14106 else
14107 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014109 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110 rm -f conftest.$ac_objext conftest$ac_exeext
14111if { (ac_try="$ac_link"
14112case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115esac
14116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_link") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
14139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014144 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145else
14146 echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149
Reid Spencer59473af2004-12-25 07:31:29 +000014150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151
Bill Wendlingebcceee2009-04-18 11:20:33 +000014152rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153 conftest$ac_exeext
14154 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014155 break
Reid Spencer59473af2004-12-25 07:31:29 +000014156fi
Reid Spencera773bd52006-08-04 18:18:08 +000014157done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158if test "${ac_cv_search_opendir+set}" = set; then
14159 :
Reid Spencera773bd52006-08-04 18:18:08 +000014160else
14161 ac_cv_search_opendir=no
14162fi
14163rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014164LIBS=$ac_func_search_save_LIBS
14165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014166{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14167echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014168ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014171
14172fi
14173
14174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14176echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14177if test "${ac_cv_search_opendir+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014179else
14180 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181cat >conftest.$ac_ext <<_ACEOF
14182/* confdefs.h. */
14183_ACEOF
14184cat confdefs.h >>conftest.$ac_ext
14185cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014186/* end confdefs.h. */
14187
Reid Spencera773bd52006-08-04 18:18:08 +000014188/* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014191#ifdef __cplusplus
14192extern "C"
14193#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014194char opendir ();
14195int
14196main ()
14197{
Reid Spencera773bd52006-08-04 18:18:08 +000014198return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014199 ;
14200 return 0;
14201}
14202_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014203for ac_lib in '' x; do
14204 if test -z "$ac_lib"; then
14205 ac_res="none required"
14206 else
14207 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014209 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210 rm -f conftest.$ac_objext conftest$ac_exeext
14211if { (ac_try="$ac_link"
14212case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14215esac
14216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_link") 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228esac
14229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238esac
14239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014244 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245else
14246 echo "$as_me: failed program was:" >&5
14247sed 's/^/| /' conftest.$ac_ext >&5
14248
14249
Reid Spencer59473af2004-12-25 07:31:29 +000014250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251
Bill Wendlingebcceee2009-04-18 11:20:33 +000014252rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253 conftest$ac_exeext
14254 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014255 break
Reid Spencer59473af2004-12-25 07:31:29 +000014256fi
Reid Spencera773bd52006-08-04 18:18:08 +000014257done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258if test "${ac_cv_search_opendir+set}" = set; then
14259 :
Reid Spencera773bd52006-08-04 18:18:08 +000014260else
14261 ac_cv_search_opendir=no
14262fi
14263rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014264LIBS=$ac_func_search_save_LIBS
14265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14267echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014268ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014271
14272fi
14273
14274fi
14275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14277echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14278if test "${ac_cv_header_mmap_anon+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014280else
14281 ac_ext=c
14282ac_cpp='$CPP $CPPFLAGS'
14283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014292/* end confdefs.h. */
14293#include <sys/mman.h>
14294#include <unistd.h>
14295#include <fcntl.h>
14296int
14297main ()
14298{
14299mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14300 ;
14301 return 0;
14302}
14303_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014304rm -f conftest.$ac_objext
14305if { (ac_try="$ac_compile"
14306case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309esac
14310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322esac
14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332esac
14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014338 ac_cv_header_mmap_anon=yes
14339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340 echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014345
Reid Spencera773bd52006-08-04 18:18:08 +000014346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014347 ac_ext=c
14348ac_cpp='$CPP $CPPFLAGS'
14349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351ac_compiler_gnu=$ac_cv_c_compiler_gnu
14352
14353
14354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14356echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014357if test "$ac_cv_header_mmap_anon" = yes; then
14358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359cat >>confdefs.h <<\_ACEOF
14360#define HAVE_MMAP_ANONYMOUS 1
14361_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014362
14363fi
14364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14366echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14367if test "${ac_cv_header_stat_broken+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014370 cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h. */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014375/* end confdefs.h. */
14376#include <sys/types.h>
14377#include <sys/stat.h>
14378
Reid Spencera773bd52006-08-04 18:18:08 +000014379#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014380# if S_ISBLK (S_IFDIR)
14381You lose.
14382# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014383#endif
14384
Reid Spencera773bd52006-08-04 18:18:08 +000014385#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386# if S_ISBLK (S_IFCHR)
14387You lose.
14388# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014389#endif
14390
Reid Spencera773bd52006-08-04 18:18:08 +000014391#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392# if S_ISLNK (S_IFREG)
14393You lose.
14394# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014395#endif
14396
Reid Spencera773bd52006-08-04 18:18:08 +000014397#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014398# if S_ISSOCK (S_IFREG)
14399You lose.
14400# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014401#endif
14402
14403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014406 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407else
14408 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410rm -f conftest*
14411
Reid Spencer59473af2004-12-25 07:31:29 +000014412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014413{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14414echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014415if test $ac_cv_header_stat_broken = yes; then
14416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417cat >>confdefs.h <<\_ACEOF
14418#define STAT_MACROS_BROKEN 1
14419_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014420
14421fi
14422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014423{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14424echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14425if test "${ac_cv_header_stdc+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428 cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014434#include <stdlib.h>
14435#include <stdarg.h>
14436#include <string.h>
14437#include <float.h>
14438
John Criswell0c38eaf2003-09-10 15:17:25 +000014439int
14440main ()
14441{
14442
14443 ;
14444 return 0;
14445}
John Criswell7a73b802003-06-30 21:59:07 +000014446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014447rm -f conftest.$ac_objext
14448if { (ac_try="$ac_compile"
14449case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452esac
14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465esac
14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; } &&
14471 { ac_try='test -s conftest.$ac_objext'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475esac
14476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014481 ac_cv_header_stdc=yes
14482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014483 echo "$as_me: failed program was:" >&5
14484sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488
Reid Spencera773bd52006-08-04 18:18:08 +000014489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014490
14491if test $ac_cv_header_stdc = yes; then
14492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493 cat >conftest.$ac_ext <<_ACEOF
14494/* confdefs.h. */
14495_ACEOF
14496cat confdefs.h >>conftest.$ac_ext
14497cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014498/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014499#include <string.h>
14500
14501_ACEOF
14502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014503 $EGREP "memchr" >/dev/null 2>&1; then
14504 :
John Criswell7a73b802003-06-30 21:59:07 +000014505else
14506 ac_cv_header_stdc=no
14507fi
14508rm -f conftest*
14509
14510fi
14511
14512if test $ac_cv_header_stdc = yes; then
14513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514 cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014520#include <stdlib.h>
14521
14522_ACEOF
14523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014524 $EGREP "free" >/dev/null 2>&1; then
14525 :
John Criswell7a73b802003-06-30 21:59:07 +000014526else
14527 ac_cv_header_stdc=no
14528fi
14529rm -f conftest*
14530
14531fi
14532
14533if test $ac_cv_header_stdc = yes; then
14534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014535 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014536 :
14537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014538 cat >conftest.$ac_ext <<_ACEOF
14539/* confdefs.h. */
14540_ACEOF
14541cat confdefs.h >>conftest.$ac_ext
14542cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014544#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014545#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014546#if ((' ' & 0x0FF) == 0x020)
14547# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14548# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14549#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014550# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014551 (('a' <= (c) && (c) <= 'i') \
14552 || ('j' <= (c) && (c) <= 'r') \
14553 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014554# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14555#endif
14556
14557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14558int
14559main ()
14560{
14561 int i;
14562 for (i = 0; i < 256; i++)
14563 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014564 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014565 return 2;
14566 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014567}
14568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569rm -f conftest$ac_exeext
14570if { (ac_try="$ac_link"
14571case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574esac
14575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_link") 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 :
John Criswell7a73b802003-06-30 21:59:07 +000014590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014591 echo "$as_me: program exited with status $ac_status" >&5
14592echo "$as_me: failed program was:" >&5
14593sed 's/^/| /' conftest.$ac_ext >&5
14594
14595( exit $ac_status )
14596ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014598rm -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 +000014599fi
14600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014601
John Criswell7a73b802003-06-30 21:59:07 +000014602fi
14603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14605echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014606if test $ac_cv_header_stdc = yes; then
14607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014608cat >>confdefs.h <<\_ACEOF
14609#define STDC_HEADERS 1
14610_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014611
14612fi
14613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014614{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14615echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14616if test "${ac_cv_header_sys_wait_h+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014619 cat >conftest.$ac_ext <<_ACEOF
14620/* confdefs.h. */
14621_ACEOF
14622cat confdefs.h >>conftest.$ac_ext
14623cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014625#include <sys/types.h>
14626#include <sys/wait.h>
14627#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014628# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014629#endif
14630#ifndef WIFEXITED
14631# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14632#endif
14633
John Criswell7a73b802003-06-30 21:59:07 +000014634int
14635main ()
14636{
14637 int s;
14638 wait (&s);
14639 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14640 ;
14641 return 0;
14642}
14643_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014644rm -f conftest.$ac_objext
14645if { (ac_try="$ac_compile"
14646case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_compile") 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14659 { (case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662esac
14663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_try") 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672esac
14673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_try") 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014678 ac_cv_header_sys_wait_h=yes
14679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014680 echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014685
Reid Spencera773bd52006-08-04 18:18:08 +000014686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014688{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14689echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014690if test $ac_cv_header_sys_wait_h = yes; then
14691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014692cat >>confdefs.h <<\_ACEOF
14693#define HAVE_SYS_WAIT_H 1
14694_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014695
14696fi
14697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014698{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14699echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14700if test "${ac_cv_header_time+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703 cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014708/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014709#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014710#include <sys/time.h>
14711#include <time.h>
14712
14713int
14714main ()
14715{
14716if ((struct tm *) 0)
14717return 0;
14718 ;
14719 return 0;
14720}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014721_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014722rm -f conftest.$ac_objext
14723if { (ac_try="$ac_compile"
14724case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727esac
14728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_compile") 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014756 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014758 echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
14761 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014763
Reid Spencera773bd52006-08-04 18:18:08 +000014764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14767echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014768if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014770cat >>confdefs.h <<\_ACEOF
14771#define TIME_WITH_SYS_TIME 1
14772_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014773
14774fi
14775
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014777
14778
14779
14780
14781
14782
Reid Spencer59473af2004-12-25 07:31:29 +000014783for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014784do
14785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791fi
14792ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794echo "${ECHO_T}$ac_res" >&6; }
14795else
14796 # Is the header compilable?
14797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14799cat >conftest.$ac_ext <<_ACEOF
14800/* confdefs.h. */
14801_ACEOF
14802cat confdefs.h >>conftest.$ac_ext
14803cat >>conftest.$ac_ext <<_ACEOF
14804/* end confdefs.h. */
14805$ac_includes_default
14806#include <$ac_header>
14807_ACEOF
14808rm -f conftest.$ac_objext
14809if { (ac_try="$ac_compile"
14810case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813esac
14814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826esac
14827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836esac
14837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_header_compiler=yes
14843else
14844 echo "$as_me: failed program was:" >&5
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_header_compiler=no
14848fi
14849
14850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852echo "${ECHO_T}$ac_header_compiler" >&6; }
14853
14854# Is the header present?
14855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863#include <$ac_header>
14864_ACEOF
14865if { (ac_try="$ac_cpp conftest.$ac_ext"
14866case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869esac
14870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14872 ac_status=$?
14873 grep -v '^ *+' conftest.er1 >conftest.err
14874 rm -f conftest.er1
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } >/dev/null; then
14878 if test -s conftest.err; then
14879 ac_cpp_err=$ac_c_preproc_warn_flag
14880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14881 else
14882 ac_cpp_err=
14883 fi
14884else
14885 ac_cpp_err=yes
14886fi
14887if test -z "$ac_cpp_err"; then
14888 ac_header_preproc=yes
14889else
14890 echo "$as_me: failed program was:" >&5
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_header_preproc=no
14894fi
14895
14896rm -f conftest.err conftest.$ac_ext
14897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898echo "${ECHO_T}$ac_header_preproc" >&6; }
14899
14900# So? What about this header?
14901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14902 yes:no: )
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14907 ac_header_preproc=yes
14908 ;;
14909 no:yes:* )
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14922 ( cat <<\_ASBOX
14923## ----------------------------------- ##
14924## Report this to llvmbugs@cs.uiuc.edu ##
14925## ----------------------------------- ##
14926_ASBOX
14927 ) | sed "s/^/$as_me: WARNING: /" >&2
14928 ;;
14929esac
14930{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935 eval "$as_ac_Header=\$ac_header_preproc"
14936fi
14937ac_res=`eval echo '${'$as_ac_Header'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939echo "${ECHO_T}$ac_res" >&6; }
14940
14941fi
14942if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014943 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014945_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014946
14947fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014948
Reid Spencer59473af2004-12-25 07:31:29 +000014949done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014951
14952
14953
14954
14955
14956
Douglas Gregor071d73d2009-05-18 17:21:34 +000014957for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014958do
14959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965fi
14966ac_res=`eval echo '${'$as_ac_Header'}'`
14967 { echo "$as_me:$LINENO: result: $ac_res" >&5
14968echo "${ECHO_T}$ac_res" >&6; }
14969else
14970 # Is the header compilable?
14971{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14973cat >conftest.$ac_ext <<_ACEOF
14974/* confdefs.h. */
14975_ACEOF
14976cat confdefs.h >>conftest.$ac_ext
14977cat >>conftest.$ac_ext <<_ACEOF
14978/* end confdefs.h. */
14979$ac_includes_default
14980#include <$ac_header>
14981_ACEOF
14982rm -f conftest.$ac_objext
14983if { (ac_try="$ac_compile"
14984case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987esac
14988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_compile") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010esac
15011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016 ac_header_compiler=yes
15017else
15018 echo "$as_me: failed program was:" >&5
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
15021 ac_header_compiler=no
15022fi
15023
15024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15026echo "${ECHO_T}$ac_header_compiler" >&6; }
15027
15028# Is the header present?
15029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15031cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037#include <$ac_header>
15038_ACEOF
15039if { (ac_try="$ac_cpp conftest.$ac_ext"
15040case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043esac
15044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } >/dev/null; then
15052 if test -s conftest.err; then
15053 ac_cpp_err=$ac_c_preproc_warn_flag
15054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15055 else
15056 ac_cpp_err=
15057 fi
15058else
15059 ac_cpp_err=yes
15060fi
15061if test -z "$ac_cpp_err"; then
15062 ac_header_preproc=yes
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_header_preproc=no
15068fi
15069
15070rm -f conftest.err conftest.$ac_ext
15071{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15072echo "${ECHO_T}$ac_header_preproc" >&6; }
15073
15074# So? What about this header?
15075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15076 yes:no: )
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15081 ac_header_preproc=yes
15082 ;;
15083 no:yes:* )
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15096 ( cat <<\_ASBOX
15097## ----------------------------------- ##
15098## Report this to llvmbugs@cs.uiuc.edu ##
15099## ----------------------------------- ##
15100_ASBOX
15101 ) | sed "s/^/$as_me: WARNING: /" >&2
15102 ;;
15103esac
15104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108else
15109 eval "$as_ac_Header=\$ac_header_preproc"
15110fi
15111ac_res=`eval echo '${'$as_ac_Header'}'`
15112 { echo "$as_me:$LINENO: result: $ac_res" >&5
15113echo "${ECHO_T}$ac_res" >&6; }
15114
15115fi
15116if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015117 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015119_ACEOF
15120
15121fi
15122
15123done
15124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125
15126
Douglas Gregor071d73d2009-05-18 17:21:34 +000015127for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015128do
15129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15135fi
15136ac_res=`eval echo '${'$as_ac_Header'}'`
15137 { echo "$as_me:$LINENO: result: $ac_res" >&5
15138echo "${ECHO_T}$ac_res" >&6; }
15139else
15140 # Is the header compilable?
15141{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15143cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
15149$ac_includes_default
15150#include <$ac_header>
15151_ACEOF
15152rm -f conftest.$ac_objext
15153if { (ac_try="$ac_compile"
15154case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157esac
15158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15167 { (case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15170esac
15171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_try") 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest.$ac_objext'
15177 { (case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15180esac
15181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_try") 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_header_compiler=yes
15187else
15188 echo "$as_me: failed program was:" >&5
15189sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 ac_header_compiler=no
15192fi
15193
15194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196echo "${ECHO_T}$ac_header_compiler" >&6; }
15197
15198# Is the header present?
15199{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15201cat >conftest.$ac_ext <<_ACEOF
15202/* confdefs.h. */
15203_ACEOF
15204cat confdefs.h >>conftest.$ac_ext
15205cat >>conftest.$ac_ext <<_ACEOF
15206/* end confdefs.h. */
15207#include <$ac_header>
15208_ACEOF
15209if { (ac_try="$ac_cpp conftest.$ac_ext"
15210case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } >/dev/null; then
15222 if test -s conftest.err; then
15223 ac_cpp_err=$ac_c_preproc_warn_flag
15224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15225 else
15226 ac_cpp_err=
15227 fi
15228else
15229 ac_cpp_err=yes
15230fi
15231if test -z "$ac_cpp_err"; then
15232 ac_header_preproc=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ac_header_preproc=no
15238fi
15239
15240rm -f conftest.err conftest.$ac_ext
15241{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15242echo "${ECHO_T}$ac_header_preproc" >&6; }
15243
15244# So? What about this header?
15245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15246 yes:no: )
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15248echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15250echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15251 ac_header_preproc=yes
15252 ;;
15253 no:yes:* )
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15259echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15261echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15265echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15266 ( cat <<\_ASBOX
15267## ----------------------------------- ##
15268## Report this to llvmbugs@cs.uiuc.edu ##
15269## ----------------------------------- ##
15270_ASBOX
15271 ) | sed "s/^/$as_me: WARNING: /" >&2
15272 ;;
15273esac
15274{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 eval "$as_ac_Header=\$ac_header_preproc"
15280fi
15281ac_res=`eval echo '${'$as_ac_Header'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283echo "${ECHO_T}$ac_res" >&6; }
15284
15285fi
15286if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015287 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015289_ACEOF
15290
15291fi
15292
15293done
Reid Spencer59473af2004-12-25 07:31:29 +000015294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015295
15296
15297
15298
Daniel Dunbar3e462932011-02-03 02:40:02 +000015299
15300for 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 +000015301do
15302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308fi
15309ac_res=`eval echo '${'$as_ac_Header'}'`
15310 { echo "$as_me:$LINENO: result: $ac_res" >&5
15311echo "${ECHO_T}$ac_res" >&6; }
15312else
15313 # Is the header compilable?
15314{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15316cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322$ac_includes_default
15323#include <$ac_header>
15324_ACEOF
15325rm -f conftest.$ac_objext
15326if { (ac_try="$ac_compile"
15327case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330esac
15331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_compile") 2>conftest.er1
15333 ac_status=$?
15334 grep -v '^ *+' conftest.er1 >conftest.err
15335 rm -f conftest.er1
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15343esac
15344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest.$ac_objext'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353esac
15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15360else
15361 echo "$as_me: failed program was:" >&5
15362sed 's/^/| /' conftest.$ac_ext >&5
15363
15364 ac_header_compiler=no
15365fi
15366
15367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369echo "${ECHO_T}$ac_header_compiler" >&6; }
15370
15371# Is the header present?
15372{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15374cat >conftest.$ac_ext <<_ACEOF
15375/* confdefs.h. */
15376_ACEOF
15377cat confdefs.h >>conftest.$ac_ext
15378cat >>conftest.$ac_ext <<_ACEOF
15379/* end confdefs.h. */
15380#include <$ac_header>
15381_ACEOF
15382if { (ac_try="$ac_cpp conftest.$ac_ext"
15383case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386esac
15387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } >/dev/null; then
15395 if test -s conftest.err; then
15396 ac_cpp_err=$ac_c_preproc_warn_flag
15397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15398 else
15399 ac_cpp_err=
15400 fi
15401else
15402 ac_cpp_err=yes
15403fi
15404if test -z "$ac_cpp_err"; then
15405 ac_header_preproc=yes
15406else
15407 echo "$as_me: failed program was:" >&5
15408sed 's/^/| /' conftest.$ac_ext >&5
15409
15410 ac_header_preproc=no
15411fi
15412
15413rm -f conftest.err conftest.$ac_ext
15414{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415echo "${ECHO_T}$ac_header_preproc" >&6; }
15416
15417# So? What about this header?
15418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15419 yes:no: )
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15424 ac_header_preproc=yes
15425 ;;
15426 no:yes:* )
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15430echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15434echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15439 ( cat <<\_ASBOX
15440## ----------------------------------- ##
15441## Report this to llvmbugs@cs.uiuc.edu ##
15442## ----------------------------------- ##
15443_ASBOX
15444 ) | sed "s/^/$as_me: WARNING: /" >&2
15445 ;;
15446esac
15447{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451else
15452 eval "$as_ac_Header=\$ac_header_preproc"
15453fi
15454ac_res=`eval echo '${'$as_ac_Header'}'`
15455 { echo "$as_me:$LINENO: result: $ac_res" >&5
15456echo "${ECHO_T}$ac_res" >&6; }
15457
15458fi
15459if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015460 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015462_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015463
15464fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015465
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015466done
15467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015468
15469
15470
15471
Douglas Gregor01746742009-05-11 18:05:52 +000015472for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015473do
15474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15480fi
15481ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483echo "${ECHO_T}$ac_res" >&6; }
15484else
15485 # Is the header compilable?
15486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495#include <$ac_header>
15496_ACEOF
15497rm -f conftest.$ac_objext
15498if { (ac_try="$ac_compile"
15499case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502esac
15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515esac
15516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525esac
15526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15532else
15533 echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
15536 ac_header_compiler=no
15537fi
15538
15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541echo "${ECHO_T}$ac_header_compiler" >&6; }
15542
15543# Is the header present?
15544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552#include <$ac_header>
15553_ACEOF
15554if { (ac_try="$ac_cpp conftest.$ac_ext"
15555case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15570 else
15571 ac_cpp_err=
15572 fi
15573else
15574 ac_cpp_err=yes
15575fi
15576if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_preproc=no
15583fi
15584
15585rm -f conftest.err conftest.$ac_ext
15586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589# So? What about this header?
15590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 yes:no: )
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15597 ;;
15598 no:yes:* )
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611 ( cat <<\_ASBOX
15612## ----------------------------------- ##
15613## Report this to llvmbugs@cs.uiuc.edu ##
15614## ----------------------------------- ##
15615_ASBOX
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15617 ;;
15618esac
15619{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623else
15624 eval "$as_ac_Header=\$ac_header_preproc"
15625fi
15626ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628echo "${ECHO_T}$ac_res" >&6; }
15629
15630fi
15631if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015634_ACEOF
15635
15636fi
15637
15638done
15639
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015640
15641for ac_header in valgrind/valgrind.h
15642do
15643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649fi
15650ac_res=`eval echo '${'$as_ac_Header'}'`
15651 { echo "$as_me:$LINENO: result: $ac_res" >&5
15652echo "${ECHO_T}$ac_res" >&6; }
15653else
15654 # Is the header compilable?
15655{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15657cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663$ac_includes_default
15664#include <$ac_header>
15665_ACEOF
15666rm -f conftest.$ac_objext
15667if { (ac_try="$ac_compile"
15668case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15694esac
15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler=yes
15701else
15702 echo "$as_me: failed program was:" >&5
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 ac_header_compiler=no
15706fi
15707
15708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710echo "${ECHO_T}$ac_header_compiler" >&6; }
15711
15712# Is the header present?
15713{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15715cat >conftest.$ac_ext <<_ACEOF
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721#include <$ac_header>
15722_ACEOF
15723if { (ac_try="$ac_cpp conftest.$ac_ext"
15724case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15727esac
15728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } >/dev/null; then
15736 if test -s conftest.err; then
15737 ac_cpp_err=$ac_c_preproc_warn_flag
15738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15739 else
15740 ac_cpp_err=
15741 fi
15742else
15743 ac_cpp_err=yes
15744fi
15745if test -z "$ac_cpp_err"; then
15746 ac_header_preproc=yes
15747else
15748 echo "$as_me: failed program was:" >&5
15749sed 's/^/| /' conftest.$ac_ext >&5
15750
15751 ac_header_preproc=no
15752fi
15753
15754rm -f conftest.err conftest.$ac_ext
15755{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756echo "${ECHO_T}$ac_header_preproc" >&6; }
15757
15758# So? What about this header?
15759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15760 yes:no: )
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15765 ac_header_preproc=yes
15766 ;;
15767 no:yes:* )
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15780 ( cat <<\_ASBOX
15781## ----------------------------------- ##
15782## Report this to llvmbugs@cs.uiuc.edu ##
15783## ----------------------------------- ##
15784_ASBOX
15785 ) | sed "s/^/$as_me: WARNING: /" >&2
15786 ;;
15787esac
15788{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792else
15793 eval "$as_ac_Header=\$ac_header_preproc"
15794fi
15795ac_res=`eval echo '${'$as_ac_Header'}'`
15796 { echo "$as_me:$LINENO: result: $ac_res" >&5
15797echo "${ECHO_T}$ac_res" >&6; }
15798
15799fi
15800if test `eval echo '${'$as_ac_Header'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15803_ACEOF
15804
15805fi
15806
15807done
15808
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015809
15810for ac_header in fenv.h
15811do
15812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818fi
15819ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821echo "${ECHO_T}$ac_res" >&6; }
15822else
15823 # Is the header compilable?
15824{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832$ac_includes_default
15833#include <$ac_header>
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (ac_try="$ac_compile"
15837case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840esac
15841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853esac
15854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863esac
15864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_header_compiler=yes
15870else
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 ac_header_compiler=no
15875fi
15876
15877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879echo "${ECHO_T}$ac_header_compiler" >&6; }
15880
15881# Is the header present?
15882{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890#include <$ac_header>
15891_ACEOF
15892if { (ac_try="$ac_cpp conftest.$ac_ext"
15893case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896esac
15897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null; then
15905 if test -s conftest.err; then
15906 ac_cpp_err=$ac_c_preproc_warn_flag
15907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15908 else
15909 ac_cpp_err=
15910 fi
15911else
15912 ac_cpp_err=yes
15913fi
15914if test -z "$ac_cpp_err"; then
15915 ac_header_preproc=yes
15916else
15917 echo "$as_me: failed program was:" >&5
15918sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_header_preproc=no
15921fi
15922
15923rm -f conftest.err conftest.$ac_ext
15924{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925echo "${ECHO_T}$ac_header_preproc" >&6; }
15926
15927# So? What about this header?
15928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 yes:no: )
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15935 ;;
15936 no:yes:* )
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949 ( cat <<\_ASBOX
15950## ----------------------------------- ##
15951## Report this to llvmbugs@cs.uiuc.edu ##
15952## ----------------------------------- ##
15953_ASBOX
15954 ) | sed "s/^/$as_me: WARNING: /" >&2
15955 ;;
15956esac
15957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15961else
15962 eval "$as_ac_Header=\$ac_header_preproc"
15963fi
15964ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966echo "${ECHO_T}$ac_res" >&6; }
15967
15968fi
15969if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15972_ACEOF
15973
15974fi
15975
15976done
15977
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015978if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015979
15980for ac_header in pthread.h
15981do
15982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988fi
15989ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991echo "${ECHO_T}$ac_res" >&6; }
15992else
15993 # Is the header compilable?
15994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996cat >conftest.$ac_ext <<_ACEOF
15997/* confdefs.h. */
15998_ACEOF
15999cat confdefs.h >>conftest.$ac_ext
16000cat >>conftest.$ac_ext <<_ACEOF
16001/* end confdefs.h. */
16002$ac_includes_default
16003#include <$ac_header>
16004_ACEOF
16005rm -f conftest.$ac_objext
16006if { (ac_try="$ac_compile"
16007case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010esac
16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16013 ac_status=$?
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023esac
16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033esac
16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler=yes
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 ac_header_compiler=no
16045fi
16046
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049echo "${ECHO_T}$ac_header_compiler" >&6; }
16050
16051# Is the header present?
16052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060#include <$ac_header>
16061_ACEOF
16062if { (ac_try="$ac_cpp conftest.$ac_ext"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
16067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16078 else
16079 ac_cpp_err=
16080 fi
16081else
16082 ac_cpp_err=yes
16083fi
16084if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_header_preproc=no
16091fi
16092
16093rm -f conftest.err conftest.$ac_ext
16094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095echo "${ECHO_T}$ac_header_preproc" >&6; }
16096
16097# So? What about this header?
16098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 yes:no: )
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16105 ;;
16106 no:yes:* )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119 ( cat <<\_ASBOX
16120## ----------------------------------- ##
16121## Report this to llvmbugs@cs.uiuc.edu ##
16122## ----------------------------------- ##
16123_ASBOX
16124 ) | sed "s/^/$as_me: WARNING: /" >&2
16125 ;;
16126esac
16127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131else
16132 eval "$as_ac_Header=\$ac_header_preproc"
16133fi
16134ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136echo "${ECHO_T}$ac_res" >&6; }
16137
16138fi
16139if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016140 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016142_ACEOF
16143 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016144
16145else
16146 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016147
16148fi
16149
Reid Spencerbe3e4192007-08-17 05:45:26 +000016150done
Reid Spencer1000b732006-12-01 00:37:14 +000016151
16152else
16153 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016154
16155fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016156
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016157if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016158
16159
16160for ac_header in ffi.h ffi/ffi.h
16161do
16162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168fi
16169ac_res=`eval echo '${'$as_ac_Header'}'`
16170 { echo "$as_me:$LINENO: result: $ac_res" >&5
16171echo "${ECHO_T}$ac_res" >&6; }
16172else
16173 # Is the header compilable?
16174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16176cat >conftest.$ac_ext <<_ACEOF
16177/* confdefs.h. */
16178_ACEOF
16179cat confdefs.h >>conftest.$ac_ext
16180cat >>conftest.$ac_ext <<_ACEOF
16181/* end confdefs.h. */
16182$ac_includes_default
16183#include <$ac_header>
16184_ACEOF
16185rm -f conftest.$ac_objext
16186if { (ac_try="$ac_compile"
16187case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_compile") 2>conftest.er1
16193 ac_status=$?
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203esac
16204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213esac
16214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_header_compiler=yes
16220else
16221 echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224 ac_header_compiler=no
16225fi
16226
16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16229echo "${ECHO_T}$ac_header_compiler" >&6; }
16230
16231# Is the header present?
16232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16234cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240#include <$ac_header>
16241_ACEOF
16242if { (ac_try="$ac_cpp conftest.$ac_ext"
16243case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } >/dev/null; then
16255 if test -s conftest.err; then
16256 ac_cpp_err=$ac_c_preproc_warn_flag
16257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16258 else
16259 ac_cpp_err=
16260 fi
16261else
16262 ac_cpp_err=yes
16263fi
16264if test -z "$ac_cpp_err"; then
16265 ac_header_preproc=yes
16266else
16267 echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 ac_header_preproc=no
16271fi
16272
16273rm -f conftest.err conftest.$ac_ext
16274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275echo "${ECHO_T}$ac_header_preproc" >&6; }
16276
16277# So? What about this header?
16278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16279 yes:no: )
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16284 ac_header_preproc=yes
16285 ;;
16286 no:yes:* )
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16299 ( cat <<\_ASBOX
16300## ----------------------------------- ##
16301## Report this to llvmbugs@cs.uiuc.edu ##
16302## ----------------------------------- ##
16303_ASBOX
16304 ) | sed "s/^/$as_me: WARNING: /" >&2
16305 ;;
16306esac
16307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311else
16312 eval "$as_ac_Header=\$ac_header_preproc"
16313fi
16314ac_res=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316echo "${ECHO_T}$ac_res" >&6; }
16317
16318fi
16319if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016322_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016323
16324fi
16325
16326done
16327
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016328fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016329
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016330
Eric Christopher654dee42010-06-22 21:01:04 +000016331for ac_header in CrashReporterClient.h
16332do
16333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16339fi
16340ac_res=`eval echo '${'$as_ac_Header'}'`
16341 { echo "$as_me:$LINENO: result: $ac_res" >&5
16342echo "${ECHO_T}$ac_res" >&6; }
16343else
16344 # Is the header compilable?
16345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16347cat >conftest.$ac_ext <<_ACEOF
16348/* confdefs.h. */
16349_ACEOF
16350cat confdefs.h >>conftest.$ac_ext
16351cat >>conftest.$ac_ext <<_ACEOF
16352/* end confdefs.h. */
16353$ac_includes_default
16354#include <$ac_header>
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (ac_try="$ac_compile"
16358case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361esac
16362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_compile") 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371 { (case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374esac
16375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_try") 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_header_compiler=yes
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 ac_header_compiler=no
16396fi
16397
16398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400echo "${ECHO_T}$ac_header_compiler" >&6; }
16401
16402# Is the header present?
16403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16405cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
16411#include <$ac_header>
16412_ACEOF
16413if { (ac_try="$ac_cpp conftest.$ac_ext"
16414case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } >/dev/null; then
16426 if test -s conftest.err; then
16427 ac_cpp_err=$ac_c_preproc_warn_flag
16428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16429 else
16430 ac_cpp_err=
16431 fi
16432else
16433 ac_cpp_err=yes
16434fi
16435if test -z "$ac_cpp_err"; then
16436 ac_header_preproc=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_header_preproc=no
16442fi
16443
16444rm -f conftest.err conftest.$ac_ext
16445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446echo "${ECHO_T}$ac_header_preproc" >&6; }
16447
16448# So? What about this header?
16449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450 yes:no: )
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16456 ;;
16457 no:yes:* )
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16470 ( cat <<\_ASBOX
16471## ----------------------------------- ##
16472## Report this to llvmbugs@cs.uiuc.edu ##
16473## ----------------------------------- ##
16474_ASBOX
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16476 ;;
16477esac
16478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 eval "$as_ac_Header=\$ac_header_preproc"
16484fi
16485ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487echo "${ECHO_T}$ac_res" >&6; }
16488
16489fi
16490if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16493_ACEOF
16494
16495fi
16496
16497done
16498
16499
Eric Christopher51e57132010-12-07 02:05:42 +000016500{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16501echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016502cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016508extern const char *__crashreporter_info__;
16509 int main() {
16510 __crashreporter_info__ = "test";
16511 return 0;
16512 }
Eric Christopher481d4022010-12-03 07:45:22 +000016513
Eric Christopher481d4022010-12-03 07:45:22 +000016514_ACEOF
16515rm -f conftest.$ac_objext conftest$ac_exeext
16516if { (ac_try="$ac_link"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
16534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest$ac_exeext'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543esac
16544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016549 { echo "$as_me:$LINENO: result: yes" >&5
16550echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016551
16552cat >>confdefs.h <<\_ACEOF
16553#define HAVE_CRASHREPORTER_INFO 1
16554_ACEOF
16555
Eric Christopher51e57132010-12-07 02:05:42 +000016556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 { echo "$as_me:$LINENO: result: no" >&5
16561echo "${ECHO_T}no" >&6; }
16562
16563cat >>confdefs.h <<\_ACEOF
16564#define HAVE_CRASHREPORTER_INFO 0
16565_ACEOF
16566
Eric Christopher481d4022010-12-03 07:45:22 +000016567fi
Eric Christopher654dee42010-06-22 21:01:04 +000016568
Eric Christopher51e57132010-12-07 02:05:42 +000016569rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16571
16572
Reid Spencer8085cff2005-01-16 02:58:39 +000016573
Torok Edwin871384f2010-01-26 08:50:50 +000016574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016575 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16576echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16577if test "${ac_cv_huge_val_sanity+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016579else
16580
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016581 ac_ext=cpp
16582ac_cpp='$CXXCPP $CPPFLAGS'
16583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016586
Eric Christopherc7718502010-03-02 05:06:54 +000016587 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016588 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016589 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016590 ac_cv_huge_val_sanity=yes
16591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016592 cat >conftest.$ac_ext <<_ACEOF
16593/* confdefs.h. */
16594_ACEOF
16595cat confdefs.h >>conftest.$ac_ext
16596cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016597/* end confdefs.h. */
16598#include <math.h>
16599int
16600main ()
16601{
16602double x = HUGE_VAL; return x != x;
16603 ;
16604 return 0;
16605}
16606_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016607rm -f conftest$ac_exeext
16608if { (ac_try="$ac_link"
16609case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_link") 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618 { (case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16621esac
16622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_try") 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016627 ac_cv_huge_val_sanity=yes
16628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016629 echo "$as_me: program exited with status $ac_status" >&5
16630echo "$as_me: failed program was:" >&5
16631sed 's/^/| /' conftest.$ac_ext >&5
16632
16633( exit $ac_status )
16634ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016636rm -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 +000016637fi
16638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016639
Eric Christopherc7718502010-03-02 05:06:54 +000016640 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016641 ac_ext=c
16642ac_cpp='$CPP $CPPFLAGS'
16643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16645ac_compiler_gnu=$ac_cv_c_compiler_gnu
16646
16647
16648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016649{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16650echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016651 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16652
16653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016654{ echo "$as_me:$LINENO: checking for pid_t" >&5
16655echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16656if test "${ac_cv_type_pid_t+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16658else
16659 cat >conftest.$ac_ext <<_ACEOF
16660/* confdefs.h. */
16661_ACEOF
16662cat confdefs.h >>conftest.$ac_ext
16663cat >>conftest.$ac_ext <<_ACEOF
16664/* end confdefs.h. */
16665$ac_includes_default
16666typedef pid_t ac__type_new_;
16667int
16668main ()
16669{
16670if ((ac__type_new_ *) 0)
16671 return 0;
16672if (sizeof (ac__type_new_))
16673 return 0;
16674 ;
16675 return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext
16679if { (ac_try="$ac_compile"
16680case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
16703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_type_pid_t=yes
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016717 ac_cv_type_pid_t=no
16718fi
16719
16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721fi
16722{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16723echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16724if test $ac_cv_type_pid_t = yes; then
16725 :
John Criswell7a73b802003-06-30 21:59:07 +000016726else
16727
16728cat >>confdefs.h <<_ACEOF
16729#define pid_t int
16730_ACEOF
16731
16732fi
16733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016734{ echo "$as_me:$LINENO: checking for size_t" >&5
16735echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16736if test "${ac_cv_type_size_t+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738else
16739 cat >conftest.$ac_ext <<_ACEOF
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745$ac_includes_default
16746typedef size_t ac__type_new_;
16747int
16748main ()
16749{
16750if ((ac__type_new_ *) 0)
16751 return 0;
16752if (sizeof (ac__type_new_))
16753 return 0;
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (ac_try="$ac_compile"
16760case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_cv_type_size_t=yes
16793else
16794 echo "$as_me: failed program was:" >&5
16795sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016797 ac_cv_type_size_t=no
16798fi
16799
16800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801fi
16802{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16803echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16804if test $ac_cv_type_size_t = yes; then
16805 :
John Criswell7a73b802003-06-30 21:59:07 +000016806else
16807
16808cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016809#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016810_ACEOF
16811
16812fi
16813
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016814
16815cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016816#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016817_ACEOF
16818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016819{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16820echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16821if test "${ac_cv_struct_tm+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016829/* end confdefs.h. */
16830#include <sys/types.h>
16831#include <time.h>
16832
16833int
16834main ()
16835{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016836struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016837 ;
16838 return 0;
16839}
16840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016841rm -f conftest.$ac_objext
16842if { (ac_try="$ac_compile"
16843case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_compile") 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest.$ac_objext'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869esac
16870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016875 ac_cv_struct_tm=time.h
16876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016877 echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
16879
16880 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016882
Reid Spencera773bd52006-08-04 18:18:08 +000016883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016885{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16886echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016887if test $ac_cv_struct_tm = sys/time.h; then
16888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016889cat >>confdefs.h <<\_ACEOF
16890#define TM_IN_SYS_TIME 1
16891_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016892
16893fi
16894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016895{ echo "$as_me:$LINENO: checking for int64_t" >&5
16896echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16897if test "${ac_cv_type_int64_t+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899else
16900 cat >conftest.$ac_ext <<_ACEOF
16901/* confdefs.h. */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h. */
16906$ac_includes_default
16907typedef int64_t ac__type_new_;
16908int
16909main ()
16910{
16911if ((ac__type_new_ *) 0)
16912 return 0;
16913if (sizeof (ac__type_new_))
16914 return 0;
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919rm -f conftest.$ac_objext
16920if { (ac_try="$ac_compile"
16921case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_compile") 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937esac
16938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947esac
16948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_type_int64_t=yes
16954else
16955 echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 ac_cv_type_int64_t=no
16959fi
16960
16961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962fi
16963{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16964echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16965if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016966
16967cat >>confdefs.h <<_ACEOF
16968#define HAVE_INT64_T 1
16969_ACEOF
16970
16971
16972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016973 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16974echo "$as_me: error: Type int64_t required but not found" >&2;}
16975 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016976fi
16977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016978{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16979echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16980if test "${ac_cv_type_uint64_t+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982else
16983 cat >conftest.$ac_ext <<_ACEOF
16984/* confdefs.h. */
16985_ACEOF
16986cat confdefs.h >>conftest.$ac_ext
16987cat >>conftest.$ac_ext <<_ACEOF
16988/* end confdefs.h. */
16989$ac_includes_default
16990typedef uint64_t ac__type_new_;
16991int
16992main ()
16993{
16994if ((ac__type_new_ *) 0)
16995 return 0;
16996if (sizeof (ac__type_new_))
16997 return 0;
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002rm -f conftest.$ac_objext
17003if { (ac_try="$ac_compile"
17004case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_compile") 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020esac
17021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17036 ac_cv_type_uint64_t=yes
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 ac_cv_type_uint64_t=no
17042fi
17043
17044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045fi
17046{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17047echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17048if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017049
17050cat >>confdefs.h <<_ACEOF
17051#define HAVE_UINT64_T 1
17052_ACEOF
17053
17054
17055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017056 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17057echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17058if test "${ac_cv_type_u_int64_t+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060else
17061 cat >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$ac_includes_default
17068typedef u_int64_t ac__type_new_;
17069int
17070main ()
17071{
17072if ((ac__type_new_ *) 0)
17073 return 0;
17074if (sizeof (ac__type_new_))
17075 return 0;
17076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext
17081if { (ac_try="$ac_compile"
17082case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_compile") 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest.$ac_objext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_type_u_int64_t=yes
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119 ac_cv_type_u_int64_t=no
17120fi
17121
17122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123fi
17124{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17125echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17126if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017127
17128cat >>confdefs.h <<_ACEOF
17129#define HAVE_U_INT64_T 1
17130_ACEOF
17131
17132
Misha Brukmanceca9042004-09-02 23:02:30 +000017133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017134 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17135echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17136 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017137fi
17138
John Criswell679ff312004-09-02 18:44:44 +000017139fi
17140
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017141
17142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017143
17144
17145
17146
17147
17148
17149
Reid Spencerdf3be822006-01-23 08:15:53 +000017150for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017151do
17152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17155if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157else
17158 cat >conftest.$ac_ext <<_ACEOF
17159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
17164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166#define $ac_func innocuous_$ac_func
17167
17168/* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17172
17173#ifdef __STDC__
17174# include <limits.h>
17175#else
17176# include <assert.h>
17177#endif
17178
17179#undef $ac_func
17180
17181/* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17184#ifdef __cplusplus
17185extern "C"
17186#endif
17187char $ac_func ();
17188/* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191#if defined __stub_$ac_func || defined __stub___$ac_func
17192choke me
17193#endif
17194
17195int
17196main ()
17197{
17198return $ac_func ();
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext conftest$ac_exeext
17204if { (ac_try="$ac_link"
17205case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_link") 2>conftest.er1
17211 ac_status=$?
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest$ac_exeext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231esac
17232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 eval "$as_ac_var=yes"
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 eval "$as_ac_var=no"
17243fi
17244
17245rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247fi
17248ac_res=`eval echo '${'$as_ac_var'}'`
17249 { echo "$as_me:$LINENO: result: $ac_res" >&5
17250echo "${ECHO_T}$ac_res" >&6; }
17251if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017252 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017254_ACEOF
17255
17256fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017257done
John Criswell7a73b802003-06-30 21:59:07 +000017258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017259
17260
17261
17262
Reid Spencer96cf5872007-07-13 10:05:30 +000017263for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017264do
17265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17266{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17268if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270else
17271 cat >conftest.$ac_ext <<_ACEOF
17272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
17277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17279#define $ac_func innocuous_$ac_func
17280
17281/* System header to define __stub macros and hopefully few prototypes,
17282 which can conflict with char $ac_func (); below.
17283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284 <limits.h> exists even on freestanding compilers. */
17285
17286#ifdef __STDC__
17287# include <limits.h>
17288#else
17289# include <assert.h>
17290#endif
17291
17292#undef $ac_func
17293
17294/* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17297#ifdef __cplusplus
17298extern "C"
17299#endif
17300char $ac_func ();
17301/* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304#if defined __stub_$ac_func || defined __stub___$ac_func
17305choke me
17306#endif
17307
17308int
17309main ()
17310{
17311return $ac_func ();
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316rm -f conftest.$ac_objext conftest$ac_exeext
17317if { (ac_try="$ac_link"
17318case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334esac
17335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344esac
17345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 eval "$as_ac_var=yes"
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 eval "$as_ac_var=no"
17356fi
17357
17358rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360fi
17361ac_res=`eval echo '${'$as_ac_var'}'`
17362 { echo "$as_me:$LINENO: result: $ac_res" >&5
17363echo "${ECHO_T}$ac_res" >&6; }
17364if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017365 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017367_ACEOF
17368
17369fi
17370done
17371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017372
17373
17374
17375
17376
Reid Spencerb90645c2007-02-16 19:17:20 +000017377for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017378do
17379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17382if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384else
17385 cat >conftest.$ac_ext <<_ACEOF
17386/* confdefs.h. */
17387_ACEOF
17388cat confdefs.h >>conftest.$ac_ext
17389cat >>conftest.$ac_ext <<_ACEOF
17390/* end confdefs.h. */
17391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17393#define $ac_func innocuous_$ac_func
17394
17395/* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func (); below.
17397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398 <limits.h> exists even on freestanding compilers. */
17399
17400#ifdef __STDC__
17401# include <limits.h>
17402#else
17403# include <assert.h>
17404#endif
17405
17406#undef $ac_func
17407
17408/* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17411#ifdef __cplusplus
17412extern "C"
17413#endif
17414char $ac_func ();
17415/* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
17418#if defined __stub_$ac_func || defined __stub___$ac_func
17419choke me
17420#endif
17421
17422int
17423main ()
17424{
17425return $ac_func ();
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext conftest$ac_exeext
17431if { (ac_try="$ac_link"
17432case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435esac
17436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_link") 2>conftest.er1
17438 ac_status=$?
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448esac
17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest$ac_exeext'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 eval "$as_ac_var=no"
17470fi
17471
17472rm -f core conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17474fi
17475ac_res=`eval echo '${'$as_ac_var'}'`
17476 { echo "$as_me:$LINENO: result: $ac_res" >&5
17477echo "${ECHO_T}$ac_res" >&6; }
17478if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017479 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017481_ACEOF
17482
17483fi
17484done
17485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017486
17487
17488
Reid Spencerb90645c2007-02-16 19:17:20 +000017489for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017490do
17491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17492{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496else
17497 cat >conftest.$ac_ext <<_ACEOF
17498/* confdefs.h. */
17499_ACEOF
17500cat confdefs.h >>conftest.$ac_ext
17501cat >>conftest.$ac_ext <<_ACEOF
17502/* end confdefs.h. */
17503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17505#define $ac_func innocuous_$ac_func
17506
17507/* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char $ac_func (); below.
17509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 <limits.h> exists even on freestanding compilers. */
17511
17512#ifdef __STDC__
17513# include <limits.h>
17514#else
17515# include <assert.h>
17516#endif
17517
17518#undef $ac_func
17519
17520/* Override any GCC internal prototype to avoid an error.
17521 Use char because int might match the return type of a GCC
17522 builtin and then its argument prototype would still apply. */
17523#ifdef __cplusplus
17524extern "C"
17525#endif
17526char $ac_func ();
17527/* The GNU C library defines this for functions which it implements
17528 to always fail with ENOSYS. Some functions are actually named
17529 something starting with __ and the normal name is an alias. */
17530#if defined __stub_$ac_func || defined __stub___$ac_func
17531choke me
17532#endif
17533
17534int
17535main ()
17536{
17537return $ac_func ();
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext conftest$ac_exeext
17543if { (ac_try="$ac_link"
17544case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
17567 { (case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570esac
17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_try") 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 eval "$as_ac_var=yes"
17577else
17578 echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 eval "$as_ac_var=no"
17582fi
17583
17584rm -f core conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586fi
17587ac_res=`eval echo '${'$as_ac_var'}'`
17588 { echo "$as_me:$LINENO: result: $ac_res" >&5
17589echo "${ECHO_T}$ac_res" >&6; }
17590if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017591 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017593_ACEOF
17594
17595fi
17596done
17597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017598
17599
17600
17601
17602
Eric Christophere4291822010-04-16 05:14:21 +000017603
17604for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017605do
17606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611else
17612 cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
17618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17620#define $ac_func innocuous_$ac_func
17621
17622/* System header to define __stub macros and hopefully few prototypes,
17623 which can conflict with char $ac_func (); below.
17624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17625 <limits.h> exists even on freestanding compilers. */
17626
17627#ifdef __STDC__
17628# include <limits.h>
17629#else
17630# include <assert.h>
17631#endif
17632
17633#undef $ac_func
17634
17635/* Override any GCC internal prototype to avoid an error.
17636 Use char because int might match the return type of a GCC
17637 builtin and then its argument prototype would still apply. */
17638#ifdef __cplusplus
17639extern "C"
17640#endif
17641char $ac_func ();
17642/* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645#if defined __stub_$ac_func || defined __stub___$ac_func
17646choke me
17647#endif
17648
17649int
17650main ()
17651{
17652return $ac_func ();
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext conftest$ac_exeext
17658if { (ac_try="$ac_link"
17659case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662esac
17663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_link") 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest$ac_exeext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17685esac
17686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 eval "$as_ac_var=yes"
17692else
17693 echo "$as_me: failed program was:" >&5
17694sed 's/^/| /' conftest.$ac_ext >&5
17695
17696 eval "$as_ac_var=no"
17697fi
17698
17699rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17701fi
17702ac_res=`eval echo '${'$as_ac_var'}'`
17703 { echo "$as_me:$LINENO: result: $ac_res" >&5
17704echo "${ECHO_T}$ac_res" >&6; }
17705if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017706 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017708_ACEOF
17709
17710fi
17711done
Reid Spencerdf3be822006-01-23 08:15:53 +000017712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017713
17714
17715
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017716for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017717do
17718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724 cat >conftest.$ac_ext <<_ACEOF
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17732#define $ac_func innocuous_$ac_func
17733
17734/* System header to define __stub macros and hopefully few prototypes,
17735 which can conflict with char $ac_func (); below.
17736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17737 <limits.h> exists even on freestanding compilers. */
17738
17739#ifdef __STDC__
17740# include <limits.h>
17741#else
17742# include <assert.h>
17743#endif
17744
17745#undef $ac_func
17746
17747/* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17750#ifdef __cplusplus
17751extern "C"
17752#endif
17753char $ac_func ();
17754/* The GNU C library defines this for functions which it implements
17755 to always fail with ENOSYS. Some functions are actually named
17756 something starting with __ and the normal name is an alias. */
17757#if defined __stub_$ac_func || defined __stub___$ac_func
17758choke me
17759#endif
17760
17761int
17762main ()
17763{
17764return $ac_func ();
17765 ;
17766 return 0;
17767}
17768_ACEOF
17769rm -f conftest.$ac_objext conftest$ac_exeext
17770if { (ac_try="$ac_link"
17771case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774esac
17775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17784 { (case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787esac
17788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_try") 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17797esac
17798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_try") 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 eval "$as_ac_var=yes"
17804else
17805 echo "$as_me: failed program was:" >&5
17806sed 's/^/| /' conftest.$ac_ext >&5
17807
17808 eval "$as_ac_var=no"
17809fi
17810
17811rm -f core conftest.err conftest.$ac_objext \
17812 conftest$ac_exeext conftest.$ac_ext
17813fi
17814ac_res=`eval echo '${'$as_ac_var'}'`
17815 { echo "$as_me:$LINENO: result: $ac_res" >&5
17816echo "${ECHO_T}$ac_res" >&6; }
17817if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017818 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017820_ACEOF
17821
17822fi
17823done
17824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017825
17826
17827
17828
Chris Lattner511f11d2005-11-14 07:25:50 +000017829for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017830do
17831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836else
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17845#define $ac_func innocuous_$ac_func
17846
17847/* System header to define __stub macros and hopefully few prototypes,
17848 which can conflict with char $ac_func (); below.
17849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 <limits.h> exists even on freestanding compilers. */
17851
17852#ifdef __STDC__
17853# include <limits.h>
17854#else
17855# include <assert.h>
17856#endif
17857
17858#undef $ac_func
17859
17860/* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17863#ifdef __cplusplus
17864extern "C"
17865#endif
17866char $ac_func ();
17867/* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870#if defined __stub_$ac_func || defined __stub___$ac_func
17871choke me
17872#endif
17873
17874int
17875main ()
17876{
17877return $ac_func ();
17878 ;
17879 return 0;
17880}
17881_ACEOF
17882rm -f conftest.$ac_objext conftest$ac_exeext
17883if { (ac_try="$ac_link"
17884case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887esac
17888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17890 ac_status=$?
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900esac
17901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910esac
17911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 eval "$as_ac_var=yes"
17917else
17918 echo "$as_me: failed program was:" >&5
17919sed 's/^/| /' conftest.$ac_ext >&5
17920
17921 eval "$as_ac_var=no"
17922fi
17923
17924rm -f core conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17926fi
17927ac_res=`eval echo '${'$as_ac_var'}'`
17928 { echo "$as_me:$LINENO: result: $ac_res" >&5
17929echo "${ECHO_T}$ac_res" >&6; }
17930if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017931 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017933_ACEOF
17934
17935fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017936done
John Criswell7a73b802003-06-30 21:59:07 +000017937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017938
17939
17940
17941
Daniel Dunbar3e462932011-02-03 02:40:02 +000017942
17943for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017944do
17945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951 cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
17957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17959#define $ac_func innocuous_$ac_func
17960
17961/* System header to define __stub macros and hopefully few prototypes,
17962 which can conflict with char $ac_func (); below.
17963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17964 <limits.h> exists even on freestanding compilers. */
17965
17966#ifdef __STDC__
17967# include <limits.h>
17968#else
17969# include <assert.h>
17970#endif
17971
17972#undef $ac_func
17973
17974/* Override any GCC internal prototype to avoid an error.
17975 Use char because int might match the return type of a GCC
17976 builtin and then its argument prototype would still apply. */
17977#ifdef __cplusplus
17978extern "C"
17979#endif
17980char $ac_func ();
17981/* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984#if defined __stub_$ac_func || defined __stub___$ac_func
17985choke me
17986#endif
17987
17988int
17989main ()
17990{
17991return $ac_func ();
17992 ;
17993 return 0;
17994}
17995_ACEOF
17996rm -f conftest.$ac_objext conftest$ac_exeext
17997if { (ac_try="$ac_link"
17998case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($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_try") 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 eval "$as_ac_var=yes"
18031else
18032 echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 eval "$as_ac_var=no"
18036fi
18037
18038rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040fi
18041ac_res=`eval echo '${'$as_ac_var'}'`
18042 { echo "$as_me:$LINENO: result: $ac_res" >&5
18043echo "${ECHO_T}$ac_res" >&6; }
18044if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018047_ACEOF
18048
18049fi
18050done
18051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018052{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18053echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18054if test "${llvm_cv_c_printf_a+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018056else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018057 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018058ac_cpp='$CPP $CPPFLAGS'
18059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018063 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018064 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018066 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018068 /* confdefs.h. */
18069_ACEOF
18070cat confdefs.h >>conftest.$ac_ext
18071cat >>conftest.$ac_ext <<_ACEOF
18072/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018073
John Criswella0137d32003-10-13 16:22:01 +000018074#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018075#include <stdlib.h>
18076
John Criswella0137d32003-10-13 16:22:01 +000018077int
18078main ()
18079{
18080
Reid Spencer2706f8c2004-09-19 23:53:36 +000018081volatile double A, B;
18082char Buffer[100];
18083A = 1;
18084A /= 10.0;
18085sprintf(Buffer, "%a", A);
18086B = atof(Buffer);
18087if (A != B)
18088 return (1);
18089if (A != 0x1.999999999999ap-4)
18090 return (1);
18091return (0);
John Criswella0137d32003-10-13 16:22:01 +000018092 ;
18093 return 0;
18094}
18095_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018096rm -f conftest$ac_exeext
18097if { (ac_try="$ac_link"
18098case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101esac
18102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018116 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018118 echo "$as_me: program exited with status $ac_status" >&5
18119echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122( exit $ac_status )
18123llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018125rm -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 +000018126fi
Reid Spencera773bd52006-08-04 18:18:08 +000018127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018128
Reid Spencer2706f8c2004-09-19 23:53:36 +000018129 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018130ac_cpp='$CPP $CPPFLAGS'
18131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018136{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18137echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018138 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018140cat >>confdefs.h <<\_ACEOF
18141#define HAVE_PRINTF_A 1
18142_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018143
Reid Spencer2706f8c2004-09-19 23:53:36 +000018144 fi
John Criswella0137d32003-10-13 16:22:01 +000018145
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018147{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18148echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18149if test "${ac_cv_func_rand48+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018151else
Reid Spencera773bd52006-08-04 18:18:08 +000018152 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018153ac_cpp='$CXXCPP $CPPFLAGS'
18154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018158 cat >conftest.$ac_ext <<_ACEOF
18159/* confdefs.h. */
18160_ACEOF
18161cat confdefs.h >>conftest.$ac_ext
18162cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018163/* end confdefs.h. */
18164#include <stdlib.h>
18165int
18166main ()
18167{
18168srand48(0);lrand48();drand48();
18169 ;
18170 return 0;
18171}
18172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018173rm -f conftest.$ac_objext
18174if { (ac_try="$ac_compile"
18175case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18178esac
18179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_compile") 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191esac
18192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201esac
18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018207 ac_cv_func_rand48=yes
18208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018214
Reid Spencera773bd52006-08-04 18:18:08 +000018215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018216 ac_ext=c
18217ac_cpp='$CPP $CPPFLAGS'
18218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220ac_compiler_gnu=$ac_cv_c_compiler_gnu
18221
18222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018223{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18224echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018225
18226if test "$ac_cv_func_rand48" = "yes" ; then
18227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018228cat >>confdefs.h <<\_ACEOF
18229#define HAVE_RAND48 1
18230_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018231
18232fi
John Criswell0021c312004-02-13 21:57:29 +000018233
18234
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018235{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18236echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18237if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239else
18240 cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246$ac_includes_default
18247int
18248main ()
18249{
18250#ifndef strerror_s
18251 char *p = (char *) strerror_s;
18252 return !p;
18253#endif
18254
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext
18260if { (ac_try="$ac_compile"
18261case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264esac
18265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_compile") 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287esac
18288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_cv_have_decl_strerror_s=yes
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298 ac_cv_have_decl_strerror_s=no
18299fi
18300
18301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302fi
18303{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18304echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18305if test $ac_cv_have_decl_strerror_s = yes; then
18306
18307cat >>confdefs.h <<_ACEOF
18308#define HAVE_DECL_STRERROR_S 1
18309_ACEOF
18310
18311
18312else
18313 cat >>confdefs.h <<_ACEOF
18314#define HAVE_DECL_STRERROR_S 0
18315_ACEOF
18316
18317
18318fi
18319
18320
18321
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018322if test "$llvm_cv_os_type" = "MingW" ; then
18323 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18324echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18325if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327else
18328 ac_check_lib_save_LIBS=$LIBS
18329LIBS="-lgcc $LIBS"
18330cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
18336
18337/* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18340#ifdef __cplusplus
18341extern "C"
18342#endif
18343char _alloca ();
18344int
18345main ()
18346{
18347return _alloca ();
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext conftest$ac_exeext
18353if { (ac_try="$ac_link"
18354case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_lib_gcc__alloca=yes
18387else
18388 echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 ac_cv_lib_gcc__alloca=no
18392fi
18393
18394rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396LIBS=$ac_check_lib_save_LIBS
18397fi
18398{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18399echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18400if test $ac_cv_lib_gcc__alloca = yes; then
18401
18402cat >>confdefs.h <<\_ACEOF
18403#define HAVE__ALLOCA 1
18404_ACEOF
18405
18406fi
18407
18408 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18409echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18410if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18412else
18413 ac_check_lib_save_LIBS=$LIBS
18414LIBS="-lgcc $LIBS"
18415cat >conftest.$ac_ext <<_ACEOF
18416/* confdefs.h. */
18417_ACEOF
18418cat confdefs.h >>conftest.$ac_ext
18419cat >>conftest.$ac_ext <<_ACEOF
18420/* end confdefs.h. */
18421
18422/* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18425#ifdef __cplusplus
18426extern "C"
18427#endif
18428char __alloca ();
18429int
18430main ()
18431{
18432return __alloca ();
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 ac_cv_lib_gcc___alloca=yes
18472else
18473 echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 ac_cv_lib_gcc___alloca=no
18477fi
18478
18479rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18481LIBS=$ac_check_lib_save_LIBS
18482fi
18483{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18484echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18485if test $ac_cv_lib_gcc___alloca = yes; then
18486
18487cat >>confdefs.h <<\_ACEOF
18488#define HAVE___ALLOCA 1
18489_ACEOF
18490
18491fi
18492
18493 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18494echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18495if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 ac_check_lib_save_LIBS=$LIBS
18499LIBS="-lgcc $LIBS"
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506
18507/* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18510#ifdef __cplusplus
18511extern "C"
18512#endif
18513char __chkstk ();
18514int
18515main ()
18516{
18517return __chkstk ();
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext conftest$ac_exeext
18523if { (ac_try="$ac_link"
18524case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18550esac
18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_lib_gcc___chkstk=yes
18557else
18558 echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561 ac_cv_lib_gcc___chkstk=no
18562fi
18563
18564rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566LIBS=$ac_check_lib_save_LIBS
18567fi
18568{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18569echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18570if test $ac_cv_lib_gcc___chkstk = yes; then
18571
18572cat >>confdefs.h <<\_ACEOF
18573#define HAVE___CHKSTK 1
18574_ACEOF
18575
18576fi
18577
18578 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18579echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18580if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582else
18583 ac_check_lib_save_LIBS=$LIBS
18584LIBS="-lgcc $LIBS"
18585cat >conftest.$ac_ext <<_ACEOF
18586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
18591
18592/* Override any GCC internal prototype to avoid an error.
18593 Use char because int might match the return type of a GCC
18594 builtin and then its argument prototype would still apply. */
18595#ifdef __cplusplus
18596extern "C"
18597#endif
18598char ___chkstk ();
18599int
18600main ()
18601{
18602return ___chkstk ();
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext conftest$ac_exeext
18608if { (ac_try="$ac_link"
18609case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612esac
18613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_cv_lib_gcc____chkstk=yes
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_cv_lib_gcc____chkstk=no
18647fi
18648
18649rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651LIBS=$ac_check_lib_save_LIBS
18652fi
18653{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18654echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18655if test $ac_cv_lib_gcc____chkstk = yes; then
18656
18657cat >>confdefs.h <<\_ACEOF
18658#define HAVE____CHKSTK 1
18659_ACEOF
18660
18661fi
18662
18663
18664 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18665echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18666if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668else
18669 ac_check_lib_save_LIBS=$LIBS
18670LIBS="-lgcc $LIBS"
18671cat >conftest.$ac_ext <<_ACEOF
18672/* confdefs.h. */
18673_ACEOF
18674cat confdefs.h >>conftest.$ac_ext
18675cat >>conftest.$ac_ext <<_ACEOF
18676/* end confdefs.h. */
18677
18678/* Override any GCC internal prototype to avoid an error.
18679 Use char because int might match the return type of a GCC
18680 builtin and then its argument prototype would still apply. */
18681#ifdef __cplusplus
18682extern "C"
18683#endif
18684char __ashldi3 ();
18685int
18686main ()
18687{
18688return __ashldi3 ();
18689 ;
18690 return 0;
18691}
18692_ACEOF
18693rm -f conftest.$ac_objext conftest$ac_exeext
18694if { (ac_try="$ac_link"
18695case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698esac
18699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18711esac
18712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest$ac_exeext'
18718 { (case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18721esac
18722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_try") 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_lib_gcc___ashldi3=yes
18728else
18729 echo "$as_me: failed program was:" >&5
18730sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ac_cv_lib_gcc___ashldi3=no
18733fi
18734
18735rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737LIBS=$ac_check_lib_save_LIBS
18738fi
18739{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18740echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18741if test $ac_cv_lib_gcc___ashldi3 = yes; then
18742
18743cat >>confdefs.h <<\_ACEOF
18744#define HAVE___ASHLDI3 1
18745_ACEOF
18746
18747fi
18748
18749 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18750echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18751if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753else
18754 ac_check_lib_save_LIBS=$LIBS
18755LIBS="-lgcc $LIBS"
18756cat >conftest.$ac_ext <<_ACEOF
18757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
18762
18763/* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766#ifdef __cplusplus
18767extern "C"
18768#endif
18769char __ashrdi3 ();
18770int
18771main ()
18772{
18773return __ashrdi3 ();
18774 ;
18775 return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext conftest$ac_exeext
18779if { (ac_try="$ac_link"
18780case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783esac
18784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_gcc___ashrdi3=yes
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 ac_cv_lib_gcc___ashrdi3=no
18818fi
18819
18820rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822LIBS=$ac_check_lib_save_LIBS
18823fi
18824{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18825echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18826if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18827
18828cat >>confdefs.h <<\_ACEOF
18829#define HAVE___ASHRDI3 1
18830_ACEOF
18831
18832fi
18833
18834 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18835echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18836if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839 ac_check_lib_save_LIBS=$LIBS
18840LIBS="-lgcc $LIBS"
18841cat >conftest.$ac_ext <<_ACEOF
18842/* confdefs.h. */
18843_ACEOF
18844cat confdefs.h >>conftest.$ac_ext
18845cat >>conftest.$ac_ext <<_ACEOF
18846/* end confdefs.h. */
18847
18848/* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18851#ifdef __cplusplus
18852extern "C"
18853#endif
18854char __divdi3 ();
18855int
18856main ()
18857{
18858return __divdi3 ();
18859 ;
18860 return 0;
18861}
18862_ACEOF
18863rm -f conftest.$ac_objext conftest$ac_exeext
18864if { (ac_try="$ac_link"
18865case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868esac
18869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_link") 2>conftest.er1
18871 ac_status=$?
18872 grep -v '^ *+' conftest.er1 >conftest.err
18873 rm -f conftest.er1
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } &&
18877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18881esac
18882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest$ac_exeext'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891esac
18892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_cv_lib_gcc___divdi3=yes
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902 ac_cv_lib_gcc___divdi3=no
18903fi
18904
18905rm -f core conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18907LIBS=$ac_check_lib_save_LIBS
18908fi
18909{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18910echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18911if test $ac_cv_lib_gcc___divdi3 = yes; then
18912
18913cat >>confdefs.h <<\_ACEOF
18914#define HAVE___DIVDI3 1
18915_ACEOF
18916
18917fi
18918
18919 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18920echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18921if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923else
18924 ac_check_lib_save_LIBS=$LIBS
18925LIBS="-lgcc $LIBS"
18926cat >conftest.$ac_ext <<_ACEOF
18927/* confdefs.h. */
18928_ACEOF
18929cat confdefs.h >>conftest.$ac_ext
18930cat >>conftest.$ac_ext <<_ACEOF
18931/* end confdefs.h. */
18932
18933/* Override any GCC internal prototype to avoid an error.
18934 Use char because int might match the return type of a GCC
18935 builtin and then its argument prototype would still apply. */
18936#ifdef __cplusplus
18937extern "C"
18938#endif
18939char __fixdfdi ();
18940int
18941main ()
18942{
18943return __fixdfdi ();
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948rm -f conftest.$ac_objext conftest$ac_exeext
18949if { (ac_try="$ac_link"
18950case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18953esac
18954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955 (eval "$ac_link") 2>conftest.er1
18956 ac_status=$?
18957 grep -v '^ *+' conftest.er1 >conftest.err
18958 rm -f conftest.er1
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966esac
18967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18976esac
18977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_lib_gcc___fixdfdi=yes
18983else
18984 echo "$as_me: failed program was:" >&5
18985sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 ac_cv_lib_gcc___fixdfdi=no
18988fi
18989
18990rm -f core conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18992LIBS=$ac_check_lib_save_LIBS
18993fi
18994{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18995echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18996if test $ac_cv_lib_gcc___fixdfdi = yes; then
18997
18998cat >>confdefs.h <<\_ACEOF
18999#define HAVE___FIXDFDI 1
19000_ACEOF
19001
19002fi
19003
19004 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19005echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19006if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 ac_check_lib_save_LIBS=$LIBS
19010LIBS="-lgcc $LIBS"
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017
19018/* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021#ifdef __cplusplus
19022extern "C"
19023#endif
19024char __fixsfdi ();
19025int
19026main ()
19027{
19028return __fixsfdi ();
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (ac_try="$ac_link"
19035case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061esac
19062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_gcc___fixsfdi=yes
19068else
19069 echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_cv_lib_gcc___fixsfdi=no
19073fi
19074
19075rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077LIBS=$ac_check_lib_save_LIBS
19078fi
19079{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19080echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19081if test $ac_cv_lib_gcc___fixsfdi = yes; then
19082
19083cat >>confdefs.h <<\_ACEOF
19084#define HAVE___FIXSFDI 1
19085_ACEOF
19086
19087fi
19088
19089 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19090echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19091if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093else
19094 ac_check_lib_save_LIBS=$LIBS
19095LIBS="-lgcc $LIBS"
19096cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
19102
19103/* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19106#ifdef __cplusplus
19107extern "C"
19108#endif
19109char __floatdidf ();
19110int
19111main ()
19112{
19113return __floatdidf ();
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext conftest$ac_exeext
19119if { (ac_try="$ac_link"
19120case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19146esac
19147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_try") 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_lib_gcc___floatdidf=yes
19153else
19154 echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
19156
19157 ac_cv_lib_gcc___floatdidf=no
19158fi
19159
19160rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162LIBS=$ac_check_lib_save_LIBS
19163fi
19164{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19165echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19166if test $ac_cv_lib_gcc___floatdidf = yes; then
19167
19168cat >>confdefs.h <<\_ACEOF
19169#define HAVE___FLOATDIDF 1
19170_ACEOF
19171
19172fi
19173
19174 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19175echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19176if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178else
19179 ac_check_lib_save_LIBS=$LIBS
19180LIBS="-lgcc $LIBS"
19181cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h. */
19187
19188/* Override any GCC internal prototype to avoid an error.
19189 Use char because int might match the return type of a GCC
19190 builtin and then its argument prototype would still apply. */
19191#ifdef __cplusplus
19192extern "C"
19193#endif
19194char __lshrdi3 ();
19195int
19196main ()
19197{
19198return __lshrdi3 ();
19199 ;
19200 return 0;
19201}
19202_ACEOF
19203rm -f conftest.$ac_objext conftest$ac_exeext
19204if { (ac_try="$ac_link"
19205case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221esac
19222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231esac
19232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_try") 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_lib_gcc___lshrdi3=yes
19238else
19239 echo "$as_me: failed program was:" >&5
19240sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 ac_cv_lib_gcc___lshrdi3=no
19243fi
19244
19245rm -f core conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19247LIBS=$ac_check_lib_save_LIBS
19248fi
19249{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19250echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19251if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19252
19253cat >>confdefs.h <<\_ACEOF
19254#define HAVE___LSHRDI3 1
19255_ACEOF
19256
19257fi
19258
19259 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19260echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19261if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19263else
19264 ac_check_lib_save_LIBS=$LIBS
19265LIBS="-lgcc $LIBS"
19266cat >conftest.$ac_ext <<_ACEOF
19267/* confdefs.h. */
19268_ACEOF
19269cat confdefs.h >>conftest.$ac_ext
19270cat >>conftest.$ac_ext <<_ACEOF
19271/* end confdefs.h. */
19272
19273/* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19276#ifdef __cplusplus
19277extern "C"
19278#endif
19279char __moddi3 ();
19280int
19281main ()
19282{
19283return __moddi3 ();
19284 ;
19285 return 0;
19286}
19287_ACEOF
19288rm -f conftest.$ac_objext conftest$ac_exeext
19289if { (ac_try="$ac_link"
19290case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293esac
19294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_link") 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest$ac_exeext'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19316esac
19317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_lib_gcc___moddi3=yes
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327 ac_cv_lib_gcc___moddi3=no
19328fi
19329
19330rm -f core conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332LIBS=$ac_check_lib_save_LIBS
19333fi
19334{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19335echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19336if test $ac_cv_lib_gcc___moddi3 = yes; then
19337
19338cat >>confdefs.h <<\_ACEOF
19339#define HAVE___MODDI3 1
19340_ACEOF
19341
19342fi
19343
19344 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19345echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19346if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348else
19349 ac_check_lib_save_LIBS=$LIBS
19350LIBS="-lgcc $LIBS"
19351cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357
19358/* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19361#ifdef __cplusplus
19362extern "C"
19363#endif
19364char __udivdi3 ();
19365int
19366main ()
19367{
19368return __udivdi3 ();
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373rm -f conftest.$ac_objext conftest$ac_exeext
19374if { (ac_try="$ac_link"
19375case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19378esac
19379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391esac
19392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } &&
19397 { ac_try='test -s conftest$ac_exeext'
19398 { (case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19401esac
19402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_try") 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 ac_cv_lib_gcc___udivdi3=yes
19408else
19409 echo "$as_me: failed program was:" >&5
19410sed 's/^/| /' conftest.$ac_ext >&5
19411
19412 ac_cv_lib_gcc___udivdi3=no
19413fi
19414
19415rm -f core conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
19417LIBS=$ac_check_lib_save_LIBS
19418fi
19419{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19420echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19421if test $ac_cv_lib_gcc___udivdi3 = yes; then
19422
19423cat >>confdefs.h <<\_ACEOF
19424#define HAVE___UDIVDI3 1
19425_ACEOF
19426
19427fi
19428
19429 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19430echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19431if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434 ac_check_lib_save_LIBS=$LIBS
19435LIBS="-lgcc $LIBS"
19436cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
19442
19443/* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19446#ifdef __cplusplus
19447extern "C"
19448#endif
19449char __umoddi3 ();
19450int
19451main ()
19452{
19453return __umoddi3 ();
19454 ;
19455 return 0;
19456}
19457_ACEOF
19458rm -f conftest.$ac_objext conftest$ac_exeext
19459if { (ac_try="$ac_link"
19460case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19463esac
19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_link") 2>conftest.er1
19466 ac_status=$?
19467 grep -v '^ *+' conftest.er1 >conftest.err
19468 rm -f conftest.er1
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19473 { (case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19476esac
19477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_try") 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest$ac_exeext'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486esac
19487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_lib_gcc___umoddi3=yes
19493else
19494 echo "$as_me: failed program was:" >&5
19495sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_cv_lib_gcc___umoddi3=no
19498fi
19499
19500rm -f core conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502LIBS=$ac_check_lib_save_LIBS
19503fi
19504{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19505echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19506if test $ac_cv_lib_gcc___umoddi3 = yes; then
19507
19508cat >>confdefs.h <<\_ACEOF
19509#define HAVE___UMODDI3 1
19510_ACEOF
19511
19512fi
19513
19514
19515 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19516echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19517if test "${ac_cv_lib_gcc___main+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19519else
19520 ac_check_lib_save_LIBS=$LIBS
19521LIBS="-lgcc $LIBS"
19522cat >conftest.$ac_ext <<_ACEOF
19523/* confdefs.h. */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h. */
19528
19529/* Override any GCC internal prototype to avoid an error.
19530 Use char because int might match the return type of a GCC
19531 builtin and then its argument prototype would still apply. */
19532#ifdef __cplusplus
19533extern "C"
19534#endif
19535char __main ();
19536int
19537main ()
19538{
19539return __main ();
19540 ;
19541 return 0;
19542}
19543_ACEOF
19544rm -f conftest.$ac_objext conftest$ac_exeext
19545if { (ac_try="$ac_link"
19546case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19549esac
19550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_link") 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562esac
19563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; } &&
19568 { ac_try='test -s conftest$ac_exeext'
19569 { (case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19572esac
19573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_try") 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_lib_gcc___main=yes
19579else
19580 echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583 ac_cv_lib_gcc___main=no
19584fi
19585
19586rm -f core conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
19588LIBS=$ac_check_lib_save_LIBS
19589fi
19590{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19591echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19592if test $ac_cv_lib_gcc___main = yes; then
19593
19594cat >>confdefs.h <<\_ACEOF
19595#define HAVE___MAIN 1
19596_ACEOF
19597
19598fi
19599
19600 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19601echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19602if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604else
19605 ac_check_lib_save_LIBS=$LIBS
19606LIBS="-lgcc $LIBS"
19607cat >conftest.$ac_ext <<_ACEOF
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
19613
19614/* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19617#ifdef __cplusplus
19618extern "C"
19619#endif
19620char __cmpdi2 ();
19621int
19622main ()
19623{
19624return __cmpdi2 ();
19625 ;
19626 return 0;
19627}
19628_ACEOF
19629rm -f conftest.$ac_objext conftest$ac_exeext
19630if { (ac_try="$ac_link"
19631case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } &&
19643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647esac
19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest$ac_exeext'
19654 { (case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657esac
19658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_try") 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_cv_lib_gcc___cmpdi2=yes
19664else
19665 echo "$as_me: failed program was:" >&5
19666sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 ac_cv_lib_gcc___cmpdi2=no
19669fi
19670
19671rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673LIBS=$ac_check_lib_save_LIBS
19674fi
19675{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19676echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19677if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19678
19679cat >>confdefs.h <<\_ACEOF
19680#define HAVE___CMPDI2 1
19681_ACEOF
19682
19683fi
19684
19685fi
19686
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019687if test "$llvm_cv_os_type" = "MingW" ; then
19688 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19689echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19690 cat >conftest.$ac_ext <<_ACEOF
19691#include <windows.h>
19692#include <imagehlp.h>
19693extern void foo(PENUMLOADED_MODULES_CALLBACK);
19694extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19695_ACEOF
19696rm -f conftest.$ac_objext
19697if { (ac_try="$ac_compile"
19698case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701esac
19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714esac
19715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19724esac
19725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730
19731 { echo "$as_me:$LINENO: result: yes" >&5
19732echo "${ECHO_T}yes" >&6; }
19733 llvm_cv_win32_elmcb_pcstr="PCSTR"
19734
19735else
19736 echo "$as_me: failed program was:" >&5
19737sed 's/^/| /' conftest.$ac_ext >&5
19738
19739
19740 { echo "$as_me:$LINENO: result: no" >&5
19741echo "${ECHO_T}no" >&6; }
19742 llvm_cv_win32_elmcb_pcstr="PSTR"
19743
19744fi
19745
19746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747
19748cat >>confdefs.h <<_ACEOF
19749#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19750_ACEOF
19751
19752fi
19753
Torok Edwin871384f2010-01-26 08:50:50 +000019754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019755{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019759else
Reid Spencera773bd52006-08-04 18:18:08 +000019760 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019761ac_cpp='$CXXCPP $CPPFLAGS'
19762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019766 cat >conftest.$ac_ext <<_ACEOF
19767/* confdefs.h. */
19768_ACEOF
19769cat confdefs.h >>conftest.$ac_ext
19770cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019771/* end confdefs.h. */
19772#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019773int
19774main ()
19775{
19776float f; isnan(f);
19777 ;
19778 return 0;
19779}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019780_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019781rm -f conftest.$ac_objext
19782if { (ac_try="$ac_compile"
19783case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786esac
19787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_compile") 2>conftest.er1
19789 ac_status=$?
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19796 { (case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799esac
19800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_try") 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809esac
19810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_try") 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019815 ac_cv_func_isnan_in_math_h=yes
19816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019822
Reid Spencera773bd52006-08-04 18:18:08 +000019823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019824 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019825ac_cpp='$CPP $CPPFLAGS'
19826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829
19830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19832echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019833
19834
19835if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019837cat >>confdefs.h <<\_ACEOF
19838#define HAVE_ISNAN_IN_MATH_H 1
19839_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019840
Reid Spencerabec8f92004-10-27 23:03:44 +000019841fi
19842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19844echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19845if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019847else
Reid Spencera773bd52006-08-04 18:18:08 +000019848 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019849ac_cpp='$CXXCPP $CPPFLAGS'
19850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019859/* end confdefs.h. */
19860#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019861int
19862main ()
19863{
19864float f; isnan(f);
19865 ;
19866 return 0;
19867}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019869rm -f conftest.$ac_objext
19870if { (ac_try="$ac_compile"
19871case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019903 ac_cv_func_isnan_in_cmath=yes
19904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905 echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019910
Reid Spencera773bd52006-08-04 18:18:08 +000019911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019912 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019913ac_cpp='$CPP $CPPFLAGS'
19914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916ac_compiler_gnu=$ac_cv_c_compiler_gnu
19917
19918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019919{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19920echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019921
19922if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019924cat >>confdefs.h <<\_ACEOF
19925#define HAVE_ISNAN_IN_CMATH 1
19926_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019927
Reid Spencerabec8f92004-10-27 23:03:44 +000019928fi
19929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019930{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19931echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19932if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019934else
Reid Spencera773bd52006-08-04 18:18:08 +000019935 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019936ac_cpp='$CXXCPP $CPPFLAGS'
19937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019941 cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019946/* end confdefs.h. */
19947#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019948int
19949main ()
19950{
19951float f; std::isnan(f);
19952 ;
19953 return 0;
19954}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019955_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956rm -f conftest.$ac_objext
19957if { (ac_try="$ac_compile"
19958case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961esac
19962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_compile") 2>conftest.er1
19964 ac_status=$?
19965 grep -v '^ *+' conftest.er1 >conftest.err
19966 rm -f conftest.er1
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } &&
19970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974esac
19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984esac
19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019990 ac_cv_func_std_isnan_in_cmath=yes
19991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019992 echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019997
Reid Spencera773bd52006-08-04 18:18:08 +000019998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019999 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020000ac_cpp='$CPP $CPPFLAGS'
20001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003ac_compiler_gnu=$ac_cv_c_compiler_gnu
20004
20005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20007echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020008
20009if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020011cat >>confdefs.h <<\_ACEOF
20012#define HAVE_STD_ISNAN_IN_CMATH 1
20013_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020014
Reid Spencerabec8f92004-10-27 23:03:44 +000020015fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020016
20017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020018{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20019echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20020if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020022else
Reid Spencera773bd52006-08-04 18:18:08 +000020023 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020024ac_cpp='$CXXCPP $CPPFLAGS'
20025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020029 cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020034/* end confdefs.h. */
20035#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020036int
20037main ()
20038{
20039float f; isinf(f);
20040 ;
20041 return 0;
20042}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020044rm -f conftest.$ac_objext
20045if { (ac_try="$ac_compile"
20046case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20049esac
20050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_compile") 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062esac
20063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20072esac
20073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_try") 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020078 ac_cv_func_isinf_in_math_h=yes
20079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080 echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085
Reid Spencera773bd52006-08-04 18:18:08 +000020086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020087 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020088ac_cpp='$CPP $CPPFLAGS'
20089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20091ac_compiler_gnu=$ac_cv_c_compiler_gnu
20092
20093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20095echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020096
20097if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099cat >>confdefs.h <<\_ACEOF
20100#define HAVE_ISINF_IN_MATH_H 1
20101_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020102
Reid Spencerabec8f92004-10-27 23:03:44 +000020103fi
20104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020105{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20106echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20107if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020109else
Reid Spencera773bd52006-08-04 18:18:08 +000020110 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020111ac_cpp='$CXXCPP $CPPFLAGS'
20112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020116 cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020121/* end confdefs.h. */
20122#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020123int
20124main ()
20125{
20126float f; isinf(f);
20127 ;
20128 return 0;
20129}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020130_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131rm -f conftest.$ac_objext
20132if { (ac_try="$ac_compile"
20133case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20136esac
20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_compile") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest.$ac_objext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020165 ac_cv_func_isinf_in_cmath=yes
20166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172
Reid Spencera773bd52006-08-04 18:18:08 +000020173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020174 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020175ac_cpp='$CPP $CPPFLAGS'
20176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20178ac_compiler_gnu=$ac_cv_c_compiler_gnu
20179
20180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20182echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020183
20184if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020186cat >>confdefs.h <<\_ACEOF
20187#define HAVE_ISINF_IN_CMATH 1
20188_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020189
Reid Spencerabec8f92004-10-27 23:03:44 +000020190fi
20191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020192{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20193echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20194if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020196else
Reid Spencera773bd52006-08-04 18:18:08 +000020197 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020198ac_cpp='$CXXCPP $CPPFLAGS'
20199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020203 cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020208/* end confdefs.h. */
20209#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020210int
20211main ()
20212{
20213float f; std::isinf(f)}
20214 ;
20215 return 0;
20216}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020217_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020218rm -f conftest.$ac_objext
20219if { (ac_try="$ac_compile"
20220case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_compile") 2>conftest.er1
20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
20232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20233 { (case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236esac
20237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_try") 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest.$ac_objext'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020252 ac_cv_func_std_isinf_in_cmath=yes
20253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020259
Reid Spencera773bd52006-08-04 18:18:08 +000020260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020261 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020262ac_cpp='$CPP $CPPFLAGS'
20263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20265ac_compiler_gnu=$ac_cv_c_compiler_gnu
20266
20267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020268{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20269echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020270
20271if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273cat >>confdefs.h <<\_ACEOF
20274#define HAVE_STD_ISINF_IN_CMATH 1
20275_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020276
Reid Spencerabec8f92004-10-27 23:03:44 +000020277fi
20278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020279{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20280echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20281if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020283else
Reid Spencera773bd52006-08-04 18:18:08 +000020284 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020285ac_cpp='$CXXCPP $CPPFLAGS'
20286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020290 cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020295/* end confdefs.h. */
20296#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020297int
20298main ()
20299{
20300float f; finite(f);
20301 ;
20302 return 0;
20303}
Brian Gaeked59a6472004-07-21 03:33:58 +000020304_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020305rm -f conftest.$ac_objext
20306if { (ac_try="$ac_compile"
20307case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310esac
20311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20329 { ac_try='test -s conftest.$ac_objext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020339 ac_cv_func_finite_in_ieeefp_h=yes
20340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341 echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346
Reid Spencera773bd52006-08-04 18:18:08 +000020347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020348 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020349ac_cpp='$CPP $CPPFLAGS'
20350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20352ac_compiler_gnu=$ac_cv_c_compiler_gnu
20353
20354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020355{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20356echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020357
Brian Gaeke6802b552004-10-28 05:06:45 +000020358if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360cat >>confdefs.h <<\_ACEOF
20361#define HAVE_FINITE_IN_IEEEFP_H 1
20362_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020363
Reid Spencerabec8f92004-10-27 23:03:44 +000020364fi
20365
20366
20367
Reid Spencer30fe5262007-01-20 07:48:49 +000020368if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020369
20370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371for ac_header in stdlib.h unistd.h
20372do
20373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379fi
20380ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result: $ac_res" >&5
20382echo "${ECHO_T}$ac_res" >&6; }
20383else
20384 # Is the header compilable?
20385{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20387cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h. */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
20392/* end confdefs.h. */
20393$ac_includes_default
20394#include <$ac_header>
20395_ACEOF
20396rm -f conftest.$ac_objext
20397if { (ac_try="$ac_compile"
20398case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401esac
20402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_compile") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414esac
20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_try") 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424esac
20425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_header_compiler=yes
20431else
20432 echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020435 ac_header_compiler=no
20436fi
20437
20438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20440echo "${ECHO_T}$ac_header_compiler" >&6; }
20441
20442# Is the header present?
20443{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20445cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
20451#include <$ac_header>
20452_ACEOF
20453if { (ac_try="$ac_cpp conftest.$ac_ext"
20454case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457esac
20458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } >/dev/null; then
20466 if test -s conftest.err; then
20467 ac_cpp_err=$ac_c_preproc_warn_flag
20468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20469 else
20470 ac_cpp_err=
20471 fi
20472else
20473 ac_cpp_err=yes
20474fi
20475if test -z "$ac_cpp_err"; then
20476 ac_header_preproc=yes
20477else
20478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ac_header_preproc=no
20482fi
20483
20484rm -f conftest.err conftest.$ac_ext
20485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20486echo "${ECHO_T}$ac_header_preproc" >&6; }
20487
20488# So? What about this header?
20489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20490 yes:no: )
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20495 ac_header_preproc=yes
20496 ;;
20497 no:yes:* )
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20510 ( cat <<\_ASBOX
20511## ----------------------------------- ##
20512## Report this to llvmbugs@cs.uiuc.edu ##
20513## ----------------------------------- ##
20514_ASBOX
20515 ) | sed "s/^/$as_me: WARNING: /" >&2
20516 ;;
20517esac
20518{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20522else
20523 eval "$as_ac_Header=\$ac_header_preproc"
20524fi
20525ac_res=`eval echo '${'$as_ac_Header'}'`
20526 { echo "$as_me:$LINENO: result: $ac_res" >&5
20527echo "${ECHO_T}$ac_res" >&6; }
20528
20529fi
20530if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020531 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020533_ACEOF
20534
20535fi
20536
20537done
20538
20539
20540for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541do
20542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547else
20548 cat >conftest.$ac_ext <<_ACEOF
20549/* confdefs.h. */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h. */
20554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20556#define $ac_func innocuous_$ac_func
20557
20558/* System header to define __stub macros and hopefully few prototypes,
20559 which can conflict with char $ac_func (); below.
20560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561 <limits.h> exists even on freestanding compilers. */
20562
20563#ifdef __STDC__
20564# include <limits.h>
20565#else
20566# include <assert.h>
20567#endif
20568
20569#undef $ac_func
20570
20571/* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20574#ifdef __cplusplus
20575extern "C"
20576#endif
20577char $ac_func ();
20578/* The GNU C library defines this for functions which it implements
20579 to always fail with ENOSYS. Some functions are actually named
20580 something starting with __ and the normal name is an alias. */
20581#if defined __stub_$ac_func || defined __stub___$ac_func
20582choke me
20583#endif
20584
20585int
20586main ()
20587{
20588return $ac_func ();
20589 ;
20590 return 0;
20591}
20592_ACEOF
20593rm -f conftest.$ac_objext conftest$ac_exeext
20594if { (ac_try="$ac_link"
20595case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20598esac
20599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_link") 2>conftest.er1
20601 ac_status=$?
20602 grep -v '^ *+' conftest.er1 >conftest.err
20603 rm -f conftest.er1
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20608 { (case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611esac
20612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_try") 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest$ac_exeext'
20618 { (case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621esac
20622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_try") 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 eval "$as_ac_var=yes"
20628else
20629 echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 eval "$as_ac_var=no"
20633fi
20634
20635rm -f core conftest.err conftest.$ac_objext \
20636 conftest$ac_exeext conftest.$ac_ext
20637fi
20638ac_res=`eval echo '${'$as_ac_var'}'`
20639 { echo "$as_me:$LINENO: result: $ac_res" >&5
20640echo "${ECHO_T}$ac_res" >&6; }
20641if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020642 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020644_ACEOF
20645
20646fi
20647done
20648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020649{ echo "$as_me:$LINENO: checking for working mmap" >&5
20650echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20651if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020654 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020655 ac_cv_func_mmap_fixed_mapped=no
20656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657 cat >conftest.$ac_ext <<_ACEOF
20658/* confdefs.h. */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020663$ac_includes_default
20664/* malloc might have been renamed as rpl_malloc. */
20665#undef malloc
20666
20667/* Thanks to Mike Haertel and Jim Avera for this test.
20668 Here is a matrix of mmap possibilities:
20669 mmap private not fixed
20670 mmap private fixed at somewhere currently unmapped
20671 mmap private fixed at somewhere already mapped
20672 mmap shared not fixed
20673 mmap shared fixed at somewhere currently unmapped
20674 mmap shared fixed at somewhere already mapped
20675 For private mappings, we should verify that changes cannot be read()
20676 back from the file, nor mmap's back from the file at a different
20677 address. (There have been systems where private was not correctly
20678 implemented like the infamous i386 svr4.0, and systems where the
20679 VM page cache was not coherent with the file system buffer cache
20680 like early versions of FreeBSD and possibly contemporary NetBSD.)
20681 For shared mappings, we should conversely verify that changes get
20682 propagated back to all the places they're supposed to be.
20683
20684 Grep wants private fixed already mapped.
20685 The main things grep needs to know about mmap are:
20686 * does it exist and is it safe to write into the mmap'd area
20687 * how to use it (BSD variants) */
20688
20689#include <fcntl.h>
20690#include <sys/mman.h>
20691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020693char *malloc ();
20694#endif
20695
20696/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697#if !HAVE_GETPAGESIZE
20698/* Assume that all systems that can run configure have sys/param.h. */
20699# if !HAVE_SYS_PARAM_H
20700# define HAVE_SYS_PARAM_H 1
20701# endif
20702
John Criswell7a73b802003-06-30 21:59:07 +000020703# ifdef _SC_PAGESIZE
20704# define getpagesize() sysconf(_SC_PAGESIZE)
20705# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020706# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020707# include <sys/param.h>
20708# ifdef EXEC_PAGESIZE
20709# define getpagesize() EXEC_PAGESIZE
20710# else /* no EXEC_PAGESIZE */
20711# ifdef NBPG
20712# define getpagesize() NBPG * CLSIZE
20713# ifndef CLSIZE
20714# define CLSIZE 1
20715# endif /* no CLSIZE */
20716# else /* no NBPG */
20717# ifdef NBPC
20718# define getpagesize() NBPC
20719# else /* no NBPC */
20720# ifdef PAGESIZE
20721# define getpagesize() PAGESIZE
20722# endif /* PAGESIZE */
20723# endif /* no NBPC */
20724# endif /* no NBPG */
20725# endif /* no EXEC_PAGESIZE */
20726# else /* no HAVE_SYS_PARAM_H */
20727# define getpagesize() 8192 /* punt totally */
20728# endif /* no HAVE_SYS_PARAM_H */
20729# endif /* no _SC_PAGESIZE */
20730
20731#endif /* no HAVE_GETPAGESIZE */
20732
20733int
20734main ()
20735{
20736 char *data, *data2, *data3;
20737 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020738 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020739
20740 pagesize = getpagesize ();
20741
20742 /* First, make a file with some known garbage in it. */
20743 data = (char *) malloc (pagesize);
20744 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020745 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020746 for (i = 0; i < pagesize; ++i)
20747 *(data + i) = rand ();
20748 umask (0);
20749 fd = creat ("conftest.mmap", 0600);
20750 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020751 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020752 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020754 close (fd);
20755
20756 /* Next, try to mmap the file at a fixed address which already has
20757 something else allocated at it. If we can, also make sure that
20758 we see the same garbage. */
20759 fd = open ("conftest.mmap", O_RDWR);
20760 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761 return 1;
20762 data2 = (char *) malloc (2 * pagesize);
20763 if (!data2)
20764 return 1;
20765 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020766 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020767 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020768 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020769 for (i = 0; i < pagesize; ++i)
20770 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020771 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020772
20773 /* Finally, make sure that changes to the mapped area do not
20774 percolate back to the file as seen by read(). (This is a bug on
20775 some variants of i386 svr4.0.) */
20776 for (i = 0; i < pagesize; ++i)
20777 *(data2 + i) = *(data2 + i) + 1;
20778 data3 = (char *) malloc (pagesize);
20779 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020781 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020782 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020783 for (i = 0; i < pagesize; ++i)
20784 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020786 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020787 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020788}
20789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020790rm -f conftest$ac_exeext
20791if { (ac_try="$ac_link"
20792case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20795esac
20796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_link") 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804esac
20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020810 ac_cv_func_mmap_fixed_mapped=yes
20811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020812 echo "$as_me: program exited with status $ac_status" >&5
20813echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
20815
20816( exit $ac_status )
20817ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020819rm -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 +000020820fi
Reid Spencera773bd52006-08-04 18:18:08 +000020821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020822
John Criswell7a73b802003-06-30 21:59:07 +000020823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20825echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020826if test $ac_cv_func_mmap_fixed_mapped = yes; then
20827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828cat >>confdefs.h <<\_ACEOF
20829#define HAVE_MMAP 1
20830_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020831
20832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020833rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20836echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20837if test "${ac_cv_func_mmap_file+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020839else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020840 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020841ac_cpp='$CPP $CPPFLAGS'
20842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020847 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020851 /* confdefs.h. */
20852_ACEOF
20853cat confdefs.h >>conftest.$ac_ext
20854cat >>conftest.$ac_ext <<_ACEOF
20855/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020856
John Criswell7a73b802003-06-30 21:59:07 +000020857#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020858#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020859#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020860
20861int
20862main ()
20863{
John Criswell7a73b802003-06-30 21:59:07 +000020864
20865 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020866 fd = creat ("foo",0777);
20867 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20868 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020869 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020870 ;
20871 return 0;
20872}
John Criswell7a73b802003-06-30 21:59:07 +000020873_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020874rm -f conftest$ac_exeext
20875if { (ac_try="$ac_link"
20876case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879esac
20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_link") 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020894 ac_cv_func_mmap_file=yes
20895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020896 echo "$as_me: program exited with status $ac_status" >&5
20897echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
20900( exit $ac_status )
20901ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903rm -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 +000020904fi
Reid Spencera773bd52006-08-04 18:18:08 +000020905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906
John Criswell7a73b802003-06-30 21:59:07 +000020907 ac_ext=c
20908ac_cpp='$CPP $CPPFLAGS'
20909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912
20913
20914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020915{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20916echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020917if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919cat >>confdefs.h <<\_ACEOF
20920#define HAVE_MMAP_FILE
20921_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020922
20923 MMAP_FILE=yes
20924
20925fi
20926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020927 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20928echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20929if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020931else
Reid Spencer582a23c2004-12-29 07:07:57 +000020932 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020933 ac_cv_need_dev_zero_for_mmap=yes
20934 else
20935 ac_cv_need_dev_zero_for_mmap=no
20936 fi
20937
20938fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020939{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20940echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020941if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943cat >>confdefs.h <<\_ACEOF
20944#define NEED_DEV_ZERO_FOR_MMAP 1
20945_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020946
20947fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020948
Reid Spencer30fe5262007-01-20 07:48:49 +000020949 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20950 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20952echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020953 fi
20954 if test "$ac_cv_func_mmap_file" = "no"
20955 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020956 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20957echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020958 fi
John Criswellb13092b2003-07-22 21:00:24 +000020959fi
John Criswell7a73b802003-06-30 21:59:07 +000020960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20962echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020963ac_ext=cpp
20964ac_cpp='$CXXCPP $CPPFLAGS'
20965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020969cat >conftest.$ac_ext <<_ACEOF
20970/* confdefs.h. */
20971_ACEOF
20972cat confdefs.h >>conftest.$ac_ext
20973cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020974/* end confdefs.h. */
20975int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020976 volatile unsigned long val = 1;
20977 __sync_synchronize();
20978 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020979 __sync_add_and_fetch(&val, 1);
20980 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020981 return 0;
20982 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020983
20984_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985rm -f conftest.$ac_objext conftest$ac_exeext
20986if { (ac_try="$ac_link"
20987case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990esac
20991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_link") 2>conftest.er1
20993 ac_status=$?
20994 grep -v '^ *+' conftest.er1 >conftest.err
20995 rm -f conftest.er1
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } &&
20999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003esac
21004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest$ac_exeext'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013esac
21014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000021019 ac_ext=c
21020ac_cpp='$CPP $CPPFLAGS'
21021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023ac_compiler_gnu=$ac_cv_c_compiler_gnu
21024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025 { echo "$as_me:$LINENO: result: yes" >&5
21026echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000021027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000021029#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000021031
Owen Andersond4b272b2009-05-18 23:58:51 +000021032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033 echo "$as_me: failed program was:" >&5
21034sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036 { echo "$as_me:$LINENO: result: no" >&5
21037echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000021038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021039cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000021040#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041_ACEOF
21042
21043 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21044echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000021045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046
Owen Andersond4b272b2009-05-18 23:58:51 +000021047rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021048 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000021049
John Criswell7a73b802003-06-30 21:59:07 +000021050
Nick Lewycky4372e692009-09-29 06:18:23 +000021051if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21053echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21054if test "${llvm_cv_linux_mixed+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000021056else
21057 ac_ext=c
21058ac_cpp='$CPP $CPPFLAGS'
21059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021063 cat >conftest.$ac_ext <<_ACEOF
21064/* confdefs.h. */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000021068/* end confdefs.h. */
21069#ifndef __x86_64__
21070 error: Not x86-64 even if uname says so!
21071 #endif
21072
21073int
21074main ()
21075{
21076
21077 ;
21078 return 0;
21079}
21080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081rm -f conftest.$ac_objext
21082if { (ac_try="$ac_compile"
21083case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086esac
21087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21096 { (case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21099esac
21100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_try") 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109esac
21110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_try") 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000021115 llvm_cv_linux_mixed=no
21116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117 echo "$as_me: failed program was:" >&5
21118sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000021121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021122
Nick Lewycky4372e692009-09-29 06:18:23 +000021123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 ac_ext=c
21125ac_cpp='$CPP $CPPFLAGS'
21126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129
21130
21131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021132{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21133echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000021134
21135 if test "$llvm_cv_linux_mixed" = "yes"; then
21136 llvm_cv_target_arch="x86"
21137 ARCH="x86"
21138 fi
21139fi
21140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021141
Reid Spencer9372f152007-07-30 20:13:24 +000021142for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021143do
21144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 cat >conftest.$ac_ext <<_ACEOF
21151/* confdefs.h. */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h. */
21156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21158#define $ac_func innocuous_$ac_func
21159
21160/* System header to define __stub macros and hopefully few prototypes,
21161 which can conflict with char $ac_func (); below.
21162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21163 <limits.h> exists even on freestanding compilers. */
21164
21165#ifdef __STDC__
21166# include <limits.h>
21167#else
21168# include <assert.h>
21169#endif
21170
21171#undef $ac_func
21172
21173/* Override any GCC internal prototype to avoid an error.
21174 Use char because int might match the return type of a GCC
21175 builtin and then its argument prototype would still apply. */
21176#ifdef __cplusplus
21177extern "C"
21178#endif
21179char $ac_func ();
21180/* The GNU C library defines this for functions which it implements
21181 to always fail with ENOSYS. Some functions are actually named
21182 something starting with __ and the normal name is an alias. */
21183#if defined __stub_$ac_func || defined __stub___$ac_func
21184choke me
21185#endif
21186
21187int
21188main ()
21189{
21190return $ac_func ();
21191 ;
21192 return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext conftest$ac_exeext
21196if { (ac_try="$ac_link"
21197case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21200esac
21201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_link") 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21210 { (case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21213esac
21214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215 (eval "$ac_try") 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest$ac_exeext'
21220 { (case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223esac
21224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_try") 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 eval "$as_ac_var=yes"
21230else
21231 echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 eval "$as_ac_var=no"
21235fi
21236
21237rm -f core conftest.err conftest.$ac_objext \
21238 conftest$ac_exeext conftest.$ac_ext
21239fi
21240ac_res=`eval echo '${'$as_ac_var'}'`
21241 { echo "$as_me:$LINENO: result: $ac_res" >&5
21242echo "${ECHO_T}$ac_res" >&6; }
21243if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021246_ACEOF
21247
21248fi
21249done
21250
21251
Tobias Grossera84b5672010-11-10 16:31:34 +000021252{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
21253echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
21254if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256else
21257 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000021258if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000021259 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000021260 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000021261 if test $? -eq 0 ; then
21262 llvm_cv_llvmgcc_dragonegg="yes"
21263 fi
21264 rm conftest.c
21265fi
21266fi
21267{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
21268echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
21269
21270if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
21271 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000021272 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000021273else
21274 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000021275 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000021276fi
21277
21278
21279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21281echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
21282if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021284else
21285 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000021286if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021287 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000021288 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000021289 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021290 if test $? -eq 0 ; then
21291 llvm_cv_llvmgcc_sanity="yes"
21292 fi
21293 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000021294fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
21297echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021298
21299if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
21301echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000021302 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021303 LLVMCC1=$llvmcc1path
21304
Duncan Sands1526b192010-11-25 17:47:42 +000021305 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021306 LLVMCC1PLUS=$llvmcc1pluspath
21307
Reid Spencer502935f2004-12-22 05:56:56 +000021308 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
21309 LLVMGCCDIR=$llvmgccdir
21310
Duncan Sands1526b192010-11-25 17:47:42 +000021311 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000021312 LLVMGCC_LANGS=$llvmgcclangs
21313
Tobias Grossera84b5672010-11-10 16:31:34 +000021314 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
21315
21316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317 { echo "$as_me:$LINENO: result: ok" >&5
21318echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000021319fi
21320
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021321SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021322
21323
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021324SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21325
21326
Reid Spencere9de0912004-08-20 09:03:57 +000021327# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021328# information into substitutions that will end up in Makefile.config.in
21329# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000021330if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021331 prefix="/usr/local"
21332fi
Reid Spencere9de0912004-08-20 09:03:57 +000021333eval LLVM_PREFIX="${prefix}";
21334eval LLVM_BINDIR="${prefix}/bin";
21335eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021336eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021337eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021338eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021339eval LLVM_INCLUDEDIR="${prefix}/include";
21340eval LLVM_INFODIR="${prefix}/info";
21341eval LLVM_MANDIR="${prefix}/man";
21342LLVM_CONFIGTIME=`date`
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021354# Place the various directores into the config.h file as #defines so that we
21355# can know about the installation paths within LLVM.
21356
Reid Spencere9de0912004-08-20 09:03:57 +000021357cat >>confdefs.h <<_ACEOF
21358#define LLVM_PREFIX "$LLVM_PREFIX"
21359_ACEOF
21360
21361
21362cat >>confdefs.h <<_ACEOF
21363#define LLVM_BINDIR "$LLVM_BINDIR"
21364_ACEOF
21365
21366
21367cat >>confdefs.h <<_ACEOF
21368#define LLVM_LIBDIR "$LLVM_LIBDIR"
21369_ACEOF
21370
21371
21372cat >>confdefs.h <<_ACEOF
21373#define LLVM_DATADIR "$LLVM_DATADIR"
21374_ACEOF
21375
21376
21377cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021378#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021379_ACEOF
21380
21381
21382cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021383#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021384_ACEOF
21385
21386
21387cat >>confdefs.h <<_ACEOF
21388#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21389_ACEOF
21390
21391
21392cat >>confdefs.h <<_ACEOF
21393#define LLVM_INFODIR "$LLVM_INFODIR"
21394_ACEOF
21395
21396
21397cat >>confdefs.h <<_ACEOF
21398#define LLVM_MANDIR "$LLVM_MANDIR"
21399_ACEOF
21400
21401
21402cat >>confdefs.h <<_ACEOF
21403#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21404_ACEOF
21405
21406
Eric Christopher790e11c2007-12-01 00:34:39 +000021407cat >>confdefs.h <<_ACEOF
21408#define LLVM_HOSTTRIPLE "$host"
21409_ACEOF
21410
21411
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021412# Determine which bindings to build.
21413if test "$BINDINGS_TO_BUILD" = auto ; then
21414 BINDINGS_TO_BUILD=""
21415 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21416 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21417 fi
21418fi
21419BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21420
21421
21422# This isn't really configurey, but it avoids having to repeat the list in
21423# other files.
21424ALL_BINDINGS=ocaml
21425
21426
Gordon Henriksenf0915682007-10-02 16:42:22 +000021427# Do any work necessary to ensure that bindings have what they need.
21428binding_prereqs_failed=0
21429for a_binding in $BINDINGS_TO_BUILD ; do
21430 case "$a_binding" in
21431 ocaml)
21432 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21434echo "$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 +000021435 binding_prereqs_failed=1
21436 fi
21437 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021438 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21439echo "$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 +000021440 binding_prereqs_failed=1
21441 fi
21442 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21444echo "$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 +000021445 fi
21446 if test "x$with_ocaml_libdir" != xauto ; then
21447 OCAML_LIBDIR=$with_ocaml_libdir
21448
21449 else
21450 ocaml_stdlib="`"$OCAMLC" -where`"
21451 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21452 then
21453 # ocaml stdlib is beneath our prefix; use stdlib
21454 OCAML_LIBDIR=$ocaml_stdlib
21455
21456 else
21457 # ocaml stdlib is outside our prefix; use libdir/ocaml
21458 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21459
21460 fi
21461 fi
21462 ;;
21463 esac
21464done
21465if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021466 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21467echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21468 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021469fi
21470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21472echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21473if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021475else
21476 ac_ext=cpp
21477ac_cpp='$CXXCPP $CPPFLAGS'
21478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21481
21482 oldcxxflags="$CXXFLAGS"
21483 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021489/* end confdefs.h. */
21490
21491int
21492main ()
21493{
21494
21495 ;
21496 return 0;
21497}
21498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499rm -f conftest.$ac_objext
21500if { (ac_try="$ac_compile"
21501case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21504esac
21505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_compile") 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21514 { (case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517esac
21518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_try") 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
21524 { (case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527esac
21528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_try") 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021533 llvm_cv_cxx_visibility_inlines_hidden=yes
21534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 CXXFLAGS="$oldcxxflags"
21543 ac_ext=c
21544ac_cpp='$CPP $CPPFLAGS'
21545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21547ac_compiler_gnu=$ac_cv_c_compiler_gnu
21548
21549
21550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21552echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021553if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21554 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21555
21556else
21557 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21558
21559fi
21560
Gordon Henriksenf0915682007-10-02 16:42:22 +000021561
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021562if test "$llvm_cv_link_use_r" = "yes" ; then
21563 RPATH="-Wl,-R"
21564else
21565 RPATH="-Wl,-rpath"
21566fi
21567
21568
21569if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21570 RDYNAMIC="-Wl,-export-dynamic"
21571else
21572 RDYNAMIC=""
21573fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021574
21575
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021576
Eric Christophera1cba682010-08-08 02:44:25 +000021577ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021578
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021579
21580
21581
21582
21583
Douglas Gregor1555a232009-06-16 20:12:29 +000021584ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21585
21586ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21587
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021588ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21589
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021590ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21591
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021592ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021593
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021594
Reid Spencera773bd52006-08-04 18:18:08 +000021595ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021596
21597
Reid Spencerea949cf2006-08-16 00:45:38 +000021598ac_config_files="$ac_config_files llvm.spec"
21599
21600
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021601ac_config_files="$ac_config_files docs/doxygen.cfg"
21602
21603if test -f ${srcdir}/tools/clang/README.txt; then
21604 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21605
21606fi
21607
Reid Spencera773bd52006-08-04 18:18:08 +000021608ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021609
21610
Reid Spencera773bd52006-08-04 18:18:08 +000021611ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021612
Reid Spencera773bd52006-08-04 18:18:08 +000021613ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021614
21615
Reid Spencera773bd52006-08-04 18:18:08 +000021616ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021617
21618
Reid Spencera773bd52006-08-04 18:18:08 +000021619ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021620
21621
Reid Spencera773bd52006-08-04 18:18:08 +000021622ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021623
21624
Reid Spencer8b2e1412006-11-17 03:32:33 +000021625ac_config_commands="$ac_config_commands runtime/Makefile"
21626
21627
Reid Spencera773bd52006-08-04 18:18:08 +000021628ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021629
21630
Reid Spencera773bd52006-08-04 18:18:08 +000021631ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021632
21633
Bill Wendlingf24eb392009-01-04 23:12:30 +000021634ac_config_commands="$ac_config_commands unittests/Makefile"
21635
21636
Reid Spencera773bd52006-08-04 18:18:08 +000021637ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021638
21639
Reid Spencera773bd52006-08-04 18:18:08 +000021640ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021641
21642
Reid Spencera773bd52006-08-04 18:18:08 +000021643ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021644
21645
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021646ac_config_commands="$ac_config_commands bindings/Makefile"
21647
21648
21649ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21650
21651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021652
John Criswell7a73b802003-06-30 21:59:07 +000021653cat >confcache <<\_ACEOF
21654# This file is a shell script that caches the results of configure
21655# tests run on this system so they can be shared between configure
21656# scripts and configure runs, see configure's option --config-cache.
21657# It is not useful on other systems. If it contains results you don't
21658# want to keep, you may remove or edit it.
21659#
21660# config.status only pays attention to the cache file if you give it
21661# the --recheck option to rerun configure.
21662#
John Criswell0c38eaf2003-09-10 15:17:25 +000021663# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021664# loading this file, other *unset* `ac_cv_foo' will be assigned the
21665# following values.
21666
21667_ACEOF
21668
21669# The following way of writing the cache mishandles newlines in values,
21670# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021671# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021672# Ultrix sh set writes to stderr and can't be redirected directly,
21673# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021674(
21675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21676 eval ac_val=\$$ac_var
21677 case $ac_val in #(
21678 *${as_nl}*)
21679 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21681echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021682 esac
21683 case $ac_var in #(
21684 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021686 esac ;;
21687 esac
21688 done
21689
John Criswell7a73b802003-06-30 21:59:07 +000021690 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021691 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21692 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693 # `set' does not quote correctly, so add quotes (double-quote
21694 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021695 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021696 "s/'/'\\\\''/g;
21697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021698 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021699 *)
21700 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 esac |
21704 sort
21705) |
John Criswell7a73b802003-06-30 21:59:07 +000021706 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021707 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021708 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021709 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21711 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021712 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21713 :end' >>confcache
21714if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21715 if test -w "$cache_file"; then
21716 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21718echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021719 cat confcache >$cache_file
21720 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21722echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021723 fi
21724fi
21725rm -f confcache
21726
21727test "x$prefix" = xNONE && prefix=$ac_default_prefix
21728# Let make expand exec_prefix.
21729test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21730
John Criswell7a73b802003-06-30 21:59:07 +000021731DEFS=-DHAVE_CONFIG_H
21732
John Criswell0c38eaf2003-09-10 15:17:25 +000021733ac_libobjs=
21734ac_ltlibobjs=
21735for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21736 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021737 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021738 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021739 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21740 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21742 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021743done
21744LIBOBJS=$ac_libobjs
21745
21746LTLIBOBJS=$ac_ltlibobjs
21747
21748
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021749if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21751Usually this means the macro was only invoked conditionally." >&5
21752echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21753Usually this means the macro was only invoked conditionally." >&2;}
21754 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021755fi
21756if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021757 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21758Usually this means the macro was only invoked conditionally." >&5
21759echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21760Usually this means the macro was only invoked conditionally." >&2;}
21761 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021762fi
John Criswell7a73b802003-06-30 21:59:07 +000021763
21764: ${CONFIG_STATUS=./config.status}
21765ac_clean_files_save=$ac_clean_files
21766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21768echo "$as_me: creating $CONFIG_STATUS" >&6;}
21769cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021770#! $SHELL
21771# Generated by $as_me.
21772# Run this file to recreate the current configuration.
21773# Compiler output produced by configure, useful for debugging
21774# configure, is in config.log if it exists.
21775
21776debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021777ac_cs_recheck=false
21778ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021779SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782cat >>$CONFIG_STATUS <<\_ACEOF
21783## --------------------- ##
21784## M4sh Initialization. ##
21785## --------------------- ##
21786
21787# Be Bourne compatible
21788if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021789 emulate sh
21790 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021792 # is contrary to our usage. Disable this feature.
21793 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021794 setopt NO_GLOB_SUBST
21795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021796 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798BIN_SH=xpg4; export BIN_SH # for Tru64
21799DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021800
John Criswell7a73b802003-06-30 21:59:07 +000021801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802# PATH needs CR
21803# Avoid depending upon Character Ranges.
21804as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21806as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21807as_cr_digits='0123456789'
21808as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021809
21810# The user is always right.
21811if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812 echo "#! /bin/sh" >conf$$.sh
21813 echo "exit 0" >>conf$$.sh
21814 chmod +x conf$$.sh
21815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21816 PATH_SEPARATOR=';'
21817 else
21818 PATH_SEPARATOR=:
21819 fi
21820 rm -f conf$$.sh
21821fi
21822
21823# Support unset when possible.
21824if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21825 as_unset=unset
21826else
21827 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021828fi
John Criswell7a73b802003-06-30 21:59:07 +000021829
Reid Spencera773bd52006-08-04 18:18:08 +000021830
21831# IFS
21832# We need space, tab and new line, in precisely that order. Quoting is
21833# there to prevent editors from complaining about space-tab.
21834# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21835# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021836as_nl='
21837'
Reid Spencera773bd52006-08-04 18:18:08 +000021838IFS=" "" $as_nl"
21839
21840# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021842 *[\\/]* ) as_myself=$0 ;;
21843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021844for as_dir in $PATH
21845do
21846 IFS=$as_save_IFS
21847 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21849done
Reid Spencera773bd52006-08-04 18:18:08 +000021850IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021851
Reid Spencera773bd52006-08-04 18:18:08 +000021852 ;;
21853esac
21854# We did not find ourselves, most probably we were run as `sh COMMAND'
21855# in which case we are not to be found in the path.
21856if test "x$as_myself" = x; then
21857 as_myself=$0
21858fi
21859if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21861 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021862fi
21863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864# Work around bugs in pre-3.0 UWIN ksh.
21865for as_var in ENV MAIL MAILPATH
21866do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021867done
21868PS1='$ '
21869PS2='> '
21870PS4='+ '
21871
21872# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873for as_var in \
21874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21876 LC_TELEPHONE LC_TIME
21877do
21878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21879 eval $as_var=C; export $as_var
21880 else
21881 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021882 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883done
Torok Edwin871384f2010-01-26 08:50:50 +000021884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021886if expr a : '\(a\)' >/dev/null 2>&1 &&
21887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21888 as_expr=expr
21889else
21890 as_expr=false
21891fi
21892
21893if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21894 as_basename=basename
21895else
21896 as_basename=false
21897fi
21898
21899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021900# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021901as_me=`$as_basename -- "$0" ||
21902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21903 X"$0" : 'X\(//\)$' \| \
21904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021906 sed '/^.*\/\([^/][^/]*\)\/*$/{
21907 s//\1/
21908 q
21909 }
21910 /^X\/\(\/\/\)$/{
21911 s//\1/
21912 q
21913 }
21914 /^X\/\(\/\).*/{
21915 s//\1/
21916 q
21917 }
21918 s/.*/./; q'`
21919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920# CDPATH.
21921$as_unset CDPATH
21922
21923
21924
21925 as_lineno_1=$LINENO
21926 as_lineno_2=$LINENO
21927 test "x$as_lineno_1" != "x$as_lineno_2" &&
21928 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21929
21930 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21931 # uniformly replaced by the line number. The first 'sed' inserts a
21932 # line-number line after each line using $LINENO; the second 'sed'
21933 # does the real work. The second script uses 'N' to pair each
21934 # line-number line with the line containing $LINENO, and appends
21935 # trailing '-' during substitution so that $LINENO is not a special
21936 # case at line end.
21937 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21938 # scripts with optimization help from Paolo Bonzini. Blame Lee
21939 # E. McMahon (1931-1989) for sed's syntax. :-)
21940 sed -n '
21941 p
21942 /[$]LINENO/=
21943 ' <$as_myself |
21944 sed '
21945 s/[$]LINENO.*/&-/
21946 t lineno
21947 b
21948 :lineno
21949 N
21950 :loop
21951 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21952 t loop
21953 s/-\n.*//
21954 ' >$as_me.lineno &&
21955 chmod +x "$as_me.lineno" ||
21956 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21957 { (exit 1); exit 1; }; }
21958
21959 # Don't try to exec as it changes $[0], causing all sort of problems
21960 # (the dirname of $[0] is not the place where we might find the
21961 # original and so on. Autoconf is especially sensitive to this).
21962 . "./$as_me.lineno"
21963 # Exit status is that of the last command.
21964 exit
21965}
21966
21967
21968if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21969 as_dirname=dirname
21970else
21971 as_dirname=false
21972fi
Reid Spencera773bd52006-08-04 18:18:08 +000021973
21974ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021976-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021977 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021979 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021980 esac;;
21981*)
21982 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021983esac
21984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985if expr a : '\(a\)' >/dev/null 2>&1 &&
21986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21987 as_expr=expr
21988else
21989 as_expr=false
21990fi
21991
John Criswell7a73b802003-06-30 21:59:07 +000021992rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021993if test -d conf$$.dir; then
21994 rm -f conf$$.dir/conf$$.file
21995else
21996 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021999echo >conf$$.file
22000if ln -s conf$$.file conf$$ 2>/dev/null; then
22001 as_ln_s='ln -s'
22002 # ... but there are two gotchas:
22003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22005 # In both cases, we have to default to `cp -p'.
22006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000022007 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022008elif ln conf$$.file conf$$ 2>/dev/null; then
22009 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000022010else
22011 as_ln_s='cp -p'
22012fi
Reid Spencera773bd52006-08-04 18:18:08 +000022013rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22014rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000022015
John Criswell0c38eaf2003-09-10 15:17:25 +000022016if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022017 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022018else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022019 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000022020 as_mkdir_p=false
22021fi
22022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22024# systems may use methods other than mode bits to determine executability.
22025cat >conf$$.file <<_ASEOF
22026#! /bin/sh
22027exit 0
22028_ASEOF
22029chmod +x conf$$.file
22030if test -x conf$$.file >/dev/null 2>&1; then
22031 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000022032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000022034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000022036
22037# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022038as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022039
22040# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022041as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022042
22043
John Criswell7a73b802003-06-30 21:59:07 +000022044exec 6>&1
22045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000022047# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000022048# values after options handling.
22049ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000022050This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022051generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022052
22053 CONFIG_FILES = $CONFIG_FILES
22054 CONFIG_HEADERS = $CONFIG_HEADERS
22055 CONFIG_LINKS = $CONFIG_LINKS
22056 CONFIG_COMMANDS = $CONFIG_COMMANDS
22057 $ $0 $@
22058
Reid Spencera773bd52006-08-04 18:18:08 +000022059on `(hostname || uname -n) 2>/dev/null | sed 1q`
22060"
22061
John Criswell7a73b802003-06-30 21:59:07 +000022062_ACEOF
22063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022065# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000022066config_files="$ac_config_files"
22067config_headers="$ac_config_headers"
22068config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000022069
Reid Spencera773bd52006-08-04 18:18:08 +000022070_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022072cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022073ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022074\`$as_me' instantiates files from templates according to the
22075current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000022076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022077Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000022078
22079 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022080 -V, --version print version number, then exit
22081 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022082 -d, --debug don't remove temporary files
22083 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022084 --file=FILE[:TEMPLATE]
22085 instantiate the configuration file FILE
22086 --header=FILE[:TEMPLATE]
22087 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000022088
22089Configuration files:
22090$config_files
22091
22092Configuration headers:
22093$config_headers
22094
John Criswellc764fbc2003-09-06 15:17:13 +000022095Configuration commands:
22096$config_commands
22097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000022099
Reid Spencera773bd52006-08-04 18:18:08 +000022100_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022102ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000022103llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022104configured by $0, generated by GNU Autoconf 2.60,
22105 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000022106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000022108This config.status script is free software; the Free Software Foundation
22109gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000022110
22111ac_pwd='$ac_pwd'
22112srcdir='$srcdir'
22113INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000022114_ACEOF
22115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022116cat >>$CONFIG_STATUS <<\_ACEOF
22117# If no file are specified by the user, then we need to provide default
22118# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000022119ac_need_defaults=:
22120while test $# != 0
22121do
22122 case $1 in
22123 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000022124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22125 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022126 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022128 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000022129 ac_option=$1
22130 ac_optarg=$2
22131 ac_shift=shift
22132 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022133 esac
22134
John Criswell0c38eaf2003-09-10 15:17:25 +000022135 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022136 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000022137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22138 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022139 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022141 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000022142 debug=: ;;
22143 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022144 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022146 ac_need_defaults=false;;
22147 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022148 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022150 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000022151 --he | --h)
22152 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022153 { echo "$as_me: error: ambiguous option: $1
22154Try \`$0 --help' for more information." >&2
22155 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022156 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22160 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022161
22162 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022163 -*) { echo "$as_me: error: unrecognized option: $1
22164Try \`$0 --help' for more information." >&2
22165 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000022166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022167 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000022168 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000022169
22170 esac
22171 shift
22172done
22173
John Criswell0c38eaf2003-09-10 15:17:25 +000022174ac_configure_extra_args=
22175
22176if $ac_cs_silent; then
22177 exec 6>/dev/null
22178 ac_configure_extra_args="$ac_configure_extra_args --silent"
22179fi
22180
22181_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022183if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022184 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22185 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000022186 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022187 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000022188fi
22189
John Criswell7a73b802003-06-30 21:59:07 +000022190_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022191cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022192exec 5>>config.log
22193{
22194 echo
22195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22196## Running $as_me. ##
22197_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000022199} >&5
John Criswell7a73b802003-06-30 21:59:07 +000022200
Reid Spencera773bd52006-08-04 18:18:08 +000022201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022203#
Reid Spencera773bd52006-08-04 18:18:08 +000022204# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022205#
Reid Spencerc0682832005-02-24 19:05:19 +000022206llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022207
22208_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022210cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022211
22212# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022213for ac_config_target in $ac_config_targets
22214do
Reid Spencera773bd52006-08-04 18:18:08 +000022215 case $ac_config_target in
22216 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022217 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022218 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22219 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022220 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022221 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022222 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022223 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022224 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022225 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22226 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
22228 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22229 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22230 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22231 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22232 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022233 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022234 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22235 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022236 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022237 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22238 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22239 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022240 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22241 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022243 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22244echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22245 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022246 esac
22247done
22248
Reid Spencera773bd52006-08-04 18:18:08 +000022249
John Criswell7a73b802003-06-30 21:59:07 +000022250# If the user did not use the arguments to specify the items to instantiate,
22251# then the envvar interface is used. Set only those that are not.
22252# We use the long form for the default assignment because of an extremely
22253# bizarre bug on SunOS 4.1.3.
22254if $ac_need_defaults; then
22255 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22256 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022257 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022258fi
22259
John Criswell0c38eaf2003-09-10 15:17:25 +000022260# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022261# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022262# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022263# Hook for its removal unless debugging.
22264# Note that there is a small window in which the directory will not be cleaned:
22265# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022266$debug ||
22267{
Reid Spencera773bd52006-08-04 18:18:08 +000022268 tmp=
22269 trap 'exit_status=$?
22270 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22271' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022273}
John Criswell7a73b802003-06-30 21:59:07 +000022274# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022275
John Criswell7a73b802003-06-30 21:59:07 +000022276{
Reid Spencera773bd52006-08-04 18:18:08 +000022277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022278 test -n "$tmp" && test -d "$tmp"
22279} ||
22280{
Reid Spencera773bd52006-08-04 18:18:08 +000022281 tmp=./conf$$-$RANDOM
22282 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022283} ||
22284{
22285 echo "$me: cannot create a temporary directory in ." >&2
22286 { (exit 1); exit 1; }
22287}
John Criswell7a73b802003-06-30 21:59:07 +000022288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289#
22290# Set up the sed scripts for CONFIG_FILES section.
22291#
22292
22293# No need to generate the scripts if there are no CONFIG_FILES.
22294# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022295if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022296
22297_ACEOF
22298
Reid Spencera773bd52006-08-04 18:18:08 +000022299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022300
Reid Spencera773bd52006-08-04 18:18:08 +000022301ac_delim='%!_!# '
22302for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303 cat >conf$$subs.sed <<_ACEOF
22304SHELL!$SHELL$ac_delim
22305PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22306PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22307PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22308PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22309PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22310PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22311exec_prefix!$exec_prefix$ac_delim
22312prefix!$prefix$ac_delim
22313program_transform_name!$program_transform_name$ac_delim
22314bindir!$bindir$ac_delim
22315sbindir!$sbindir$ac_delim
22316libexecdir!$libexecdir$ac_delim
22317datarootdir!$datarootdir$ac_delim
22318datadir!$datadir$ac_delim
22319sysconfdir!$sysconfdir$ac_delim
22320sharedstatedir!$sharedstatedir$ac_delim
22321localstatedir!$localstatedir$ac_delim
22322includedir!$includedir$ac_delim
22323oldincludedir!$oldincludedir$ac_delim
22324docdir!$docdir$ac_delim
22325infodir!$infodir$ac_delim
22326htmldir!$htmldir$ac_delim
22327dvidir!$dvidir$ac_delim
22328pdfdir!$pdfdir$ac_delim
22329psdir!$psdir$ac_delim
22330libdir!$libdir$ac_delim
22331localedir!$localedir$ac_delim
22332mandir!$mandir$ac_delim
22333DEFS!$DEFS$ac_delim
22334ECHO_C!$ECHO_C$ac_delim
22335ECHO_N!$ECHO_N$ac_delim
22336ECHO_T!$ECHO_T$ac_delim
22337LIBS!$LIBS$ac_delim
22338build_alias!$build_alias$ac_delim
22339host_alias!$host_alias$ac_delim
22340target_alias!$target_alias$ac_delim
22341LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022342CC!$CC$ac_delim
22343CFLAGS!$CFLAGS$ac_delim
22344LDFLAGS!$LDFLAGS$ac_delim
22345CPPFLAGS!$CPPFLAGS$ac_delim
22346ac_ct_CC!$ac_ct_CC$ac_delim
22347EXEEXT!$EXEEXT$ac_delim
22348OBJEXT!$OBJEXT$ac_delim
22349CXX!$CXX$ac_delim
22350CXXFLAGS!$CXXFLAGS$ac_delim
22351ac_ct_CXX!$ac_ct_CXX$ac_delim
22352CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022353subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022354ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22355LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022356build!$build$ac_delim
22357build_cpu!$build_cpu$ac_delim
22358build_vendor!$build_vendor$ac_delim
22359build_os!$build_os$ac_delim
22360host!$host$ac_delim
22361host_cpu!$host_cpu$ac_delim
22362host_vendor!$host_vendor$ac_delim
22363host_os!$host_os$ac_delim
22364target!$target$ac_delim
22365target_cpu!$target_cpu$ac_delim
22366target_vendor!$target_vendor$ac_delim
22367target_os!$target_os$ac_delim
22368OS!$OS$ac_delim
22369HOST_OS!$HOST_OS$ac_delim
22370TARGET_OS!$TARGET_OS$ac_delim
22371LINKALL!$LINKALL$ac_delim
22372NOLINKALL!$NOLINKALL$ac_delim
22373LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22374LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22375ARCH!$ARCH$ac_delim
22376ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022377GREP!$GREP$ac_delim
22378EGREP!$EGREP$ac_delim
22379LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22380BUILD_CC!$BUILD_CC$ac_delim
22381BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22382BUILD_CXX!$BUILD_CXX$ac_delim
22383CVSBUILD!$CVSBUILD$ac_delim
22384ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22385ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22386DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22387ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22388EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22389DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22390DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22391JIT!$JIT$ac_delim
22392TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022393ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22395ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022396ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022397ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022398ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022399ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022400ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022403 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022404 break
22405 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022406 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22407echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22408 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022409 else
22410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022411 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022412done
22413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022414ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22415if test -n "$ac_eof"; then
22416 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22417 ac_eof=`expr $ac_eof + 1`
22418fi
22419
22420cat >>$CONFIG_STATUS <<_ACEOF
22421cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22422/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022424sed '
22425s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22426s/^/s,@/; s/!/@,|#_!!_#|/
22427:n
22428t n
22429s/'"$ac_delim"'$/,g/; t
22430s/$/\\/; p
22431N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22432' >>$CONFIG_STATUS <conf$$subs.sed
22433rm -f conf$$subs.sed
22434cat >>$CONFIG_STATUS <<_ACEOF
22435CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437
22438
22439ac_delim='%!_!# '
22440for ac_last_try in false false false false false :; do
22441 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000022442TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22443LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22444LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022445LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022446LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022447ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022448CLANGPATH!$CLANGPATH$ac_delim
22449CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000022450ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022451OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022452EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022453EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022454BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022455NM!$NM$ac_delim
22456ifGNUmake!$ifGNUmake$ac_delim
22457LN_S!$LN_S$ac_delim
22458CMP!$CMP$ac_delim
22459CP!$CP$ac_delim
22460DATE!$DATE$ac_delim
22461FIND!$FIND$ac_delim
22462MKDIR!$MKDIR$ac_delim
22463MV!$MV$ac_delim
22464RANLIB!$RANLIB$ac_delim
22465AR!$AR$ac_delim
22466RM!$RM$ac_delim
22467SED!$SED$ac_delim
22468TAR!$TAR$ac_delim
22469BINPWD!$BINPWD$ac_delim
22470GRAPHVIZ!$GRAPHVIZ$ac_delim
22471DOT!$DOT$ac_delim
22472FDP!$FDP$ac_delim
22473NEATO!$NEATO$ac_delim
22474TWOPI!$TWOPI$ac_delim
22475CIRCO!$CIRCO$ac_delim
22476GV!$GV$ac_delim
22477DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022478XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022479PERL!$PERL$ac_delim
22480HAVE_PERL!$HAVE_PERL$ac_delim
22481INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22482INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22483INSTALL_DATA!$INSTALL_DATA$ac_delim
22484BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022485CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486DOXYGEN!$DOXYGEN$ac_delim
22487GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022488GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022489POD2HTML!$POD2HTML$ac_delim
22490POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022491PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022492RUNTEST!$RUNTEST$ac_delim
22493TCLSH!$TCLSH$ac_delim
22494ZIP!$ZIP$ac_delim
22495OCAMLC!$OCAMLC$ac_delim
22496OCAMLOPT!$OCAMLOPT$ac_delim
22497OCAMLDEP!$OCAMLDEP$ac_delim
22498OCAMLDOC!$OCAMLDOC$ac_delim
22499GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022500HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22502INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22503CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22504CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22505LIBADD_DL!$LIBADD_DL$ac_delim
22506LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
22507LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
22508LLVMGCC!$LLVMGCC$ac_delim
22509LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022510LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22512NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22513USE_UDIS86!$USE_UDIS86$ac_delim
22514USE_OPROFILE!$USE_OPROFILE$ac_delim
22515HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22516HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22517MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022518LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022519LLVMCC1!$LLVMCC1$ac_delim
22520LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
22521LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022522LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022523LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000022524LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022525SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022526SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22528LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22529LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22530LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22531LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22532LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22533LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22534LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22535LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22536LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22537BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22538ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022539_ACEOF
22540
Tobias Grossera84b5672010-11-10 16:31:34 +000022541 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022542 break
22543 elif $ac_last_try; then
22544 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22545echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22546 { (exit 1); exit 1; }; }
22547 else
22548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22549 fi
22550done
22551
22552ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22553if test -n "$ac_eof"; then
22554 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22555 ac_eof=`expr $ac_eof + 1`
22556fi
22557
22558cat >>$CONFIG_STATUS <<_ACEOF
22559cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022560/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022561_ACEOF
22562sed '
22563s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22564s/^/s,@/; s/!/@,|#_!!_#|/
22565:n
22566t n
22567s/'"$ac_delim"'$/,g/; t
22568s/$/\\/; p
22569N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22570' >>$CONFIG_STATUS <conf$$subs.sed
22571rm -f conf$$subs.sed
22572cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022573CEOF$ac_eof
22574_ACEOF
22575
22576
Tobias Grossera84b5672010-11-10 16:31:34 +000022577ac_delim='%!_!# '
22578for ac_last_try in false false false false false :; do
22579 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000022580OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022581ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022582RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022583RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022584LIBOBJS!$LIBOBJS$ac_delim
22585LTLIBOBJS!$LTLIBOBJS$ac_delim
22586_ACEOF
22587
Daniel Dunbared344d22011-06-16 22:30:41 +000022588 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022589 break
22590 elif $ac_last_try; then
22591 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22592echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22593 { (exit 1); exit 1; }; }
22594 else
22595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22596 fi
22597done
22598
22599ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22600if test -n "$ac_eof"; then
22601 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22602 ac_eof=`expr $ac_eof + 1`
22603fi
22604
22605cat >>$CONFIG_STATUS <<_ACEOF
22606cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22607/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22608_ACEOF
22609sed '
22610s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22611s/^/s,@/; s/!/@,|#_!!_#|/
22612:n
22613t n
22614s/'"$ac_delim"'$/,g/; t
22615s/$/\\/; p
22616N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22617' >>$CONFIG_STATUS <conf$$subs.sed
22618rm -f conf$$subs.sed
22619cat >>$CONFIG_STATUS <<_ACEOF
22620:end
22621s/|#_!!_#|//g
22622CEOF$ac_eof
22623_ACEOF
22624
22625
Reid Spencera773bd52006-08-04 18:18:08 +000022626# VPATH may cause trouble with some makes, so we remove $(srcdir),
22627# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22628# trailing colons and then remove the whole line if VPATH becomes empty
22629# (actually we leave an empty line to preserve line numbers).
22630if test "x$srcdir" = x.; then
22631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22632s/:*\$(srcdir):*/:/
22633s/:*\${srcdir}:*/:/
22634s/:*@srcdir@:*/:/
22635s/^\([^=]*=[ ]*\):*/\1/
22636s/:*$//
22637s/^[^=]*=[ ]*$//
22638}'
22639fi
22640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022641cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022642fi # test -n "$CONFIG_FILES"
22643
Reid Spencera773bd52006-08-04 18:18:08 +000022644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022645for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022646do
22647 case $ac_tag in
22648 :[FHLC]) ac_mode=$ac_tag; continue;;
22649 esac
22650 case $ac_mode$ac_tag in
22651 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022652 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22653echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22654 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022655 :[FH]-) ac_tag=-:-;;
22656 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22657 esac
22658 ac_save_IFS=$IFS
22659 IFS=:
22660 set x $ac_tag
22661 IFS=$ac_save_IFS
22662 shift
22663 ac_file=$1
22664 shift
22665
22666 case $ac_mode in
22667 :L) ac_source=$1;;
22668 :[FH])
22669 ac_file_inputs=
22670 for ac_f
22671 do
22672 case $ac_f in
22673 -) ac_f="$tmp/stdin";;
22674 *) # Look for the file first in the build tree, then in the source tree
22675 # (if the path is not absolute). The absolute path cannot be DOS-style,
22676 # because $ac_f cannot contain `:'.
22677 test -f "$ac_f" ||
22678 case $ac_f in
22679 [\\/$]*) false;;
22680 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22681 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022682 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22683echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22684 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022685 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022686 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022687 done
22688
22689 # Let's still pretend it is `configure' which instantiates (i.e., don't
22690 # use $as_me), people would be surprised to read:
22691 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022692 configure_input="Generated from "`IFS=:
22693 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022694 if test x"$ac_file" != x-; then
22695 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022696 { echo "$as_me:$LINENO: creating $ac_file" >&5
22697echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022698 fi
22699
22700 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022701 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022702 esac
22703 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022704 esac
22705
Reid Spencera773bd52006-08-04 18:18:08 +000022706 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022707$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022708 X"$ac_file" : 'X\(//\)[^/]' \| \
22709 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022711echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22713 s//\1/
22714 q
22715 }
22716 /^X\(\/\/\)[^/].*/{
22717 s//\1/
22718 q
22719 }
22720 /^X\(\/\/\)$/{
22721 s//\1/
22722 q
22723 }
22724 /^X\(\/\).*/{
22725 s//\1/
22726 q
22727 }
22728 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022729 { as_dir="$ac_dir"
22730 case $as_dir in #(
22731 -*) as_dir=./$as_dir;;
22732 esac
22733 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22734 as_dirs=
22735 while :; do
22736 case $as_dir in #(
22737 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22738 *) as_qdir=$as_dir;;
22739 esac
22740 as_dirs="'$as_qdir' $as_dirs"
22741 as_dir=`$as_dirname -- "$as_dir" ||
22742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22743 X"$as_dir" : 'X\(//\)[^/]' \| \
22744 X"$as_dir" : 'X\(//\)$' \| \
22745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22746echo X"$as_dir" |
22747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22748 s//\1/
22749 q
22750 }
22751 /^X\(\/\/\)[^/].*/{
22752 s//\1/
22753 q
22754 }
22755 /^X\(\/\/\)$/{
22756 s//\1/
22757 q
22758 }
22759 /^X\(\/\).*/{
22760 s//\1/
22761 q
22762 }
22763 s/.*/./; q'`
22764 test -d "$as_dir" && break
22765 done
22766 test -z "$as_dirs" || eval "mkdir $as_dirs"
22767 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22768echo "$as_me: error: cannot create directory $as_dir" >&2;}
22769 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022770 ac_builddir=.
22771
Reid Spencera773bd52006-08-04 18:18:08 +000022772case "$ac_dir" in
22773.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22774*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022776 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022777 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022778 case $ac_top_builddir_sub in
22779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22781 esac ;;
22782esac
22783ac_abs_top_builddir=$ac_pwd
22784ac_abs_builddir=$ac_pwd$ac_dir_suffix
22785# for backward compatibility:
22786ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022787
22788case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022789 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022790 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022791 ac_top_srcdir=$ac_top_builddir_sub
22792 ac_abs_top_srcdir=$ac_pwd ;;
22793 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022794 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022795 ac_top_srcdir=$srcdir
22796 ac_abs_top_srcdir=$srcdir ;;
22797 *) # Relative name.
22798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22799 ac_top_srcdir=$ac_top_build_prefix$srcdir
22800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022801esac
Reid Spencera773bd52006-08-04 18:18:08 +000022802ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022803
John Criswell7a73b802003-06-30 21:59:07 +000022804
Reid Spencera773bd52006-08-04 18:18:08 +000022805 case $ac_mode in
22806 :F)
22807 #
22808 # CONFIG_FILE
22809 #
John Criswell7a73b802003-06-30 21:59:07 +000022810
22811 case $INSTALL in
22812 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022813 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022814 esac
John Criswell7a73b802003-06-30 21:59:07 +000022815_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022817cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022818# If the template does not know about datarootdir, expand it.
22819# FIXME: This hack should be removed a few years after 2.60.
22820ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022821
22822case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022823 p
22824 q
22825}
22826/@datadir@/p
22827/@docdir@/p
22828/@infodir@/p
22829/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022830/@mandir@/p
22831' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022832*datarootdir*) ac_datarootdir_seen=yes;;
22833*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022834 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22835echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022836_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022837cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022838 ac_datarootdir_hack='
22839 s&@datadir@&$datadir&g
22840 s&@docdir@&$docdir&g
22841 s&@infodir@&$infodir&g
22842 s&@localedir@&$localedir&g
22843 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022844 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022845esac
22846_ACEOF
22847
22848# Neutralize VPATH when `$srcdir' = `.'.
22849# Shell code in configure.ac might set extrasub.
22850# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022851cat >>$CONFIG_STATUS <<_ACEOF
22852 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022853$extrasub
22854_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022855cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022856:t
22857/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022858s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022859s&@top_builddir@&$ac_top_builddir_sub&;t t
22860s&@srcdir@&$ac_srcdir&;t t
22861s&@abs_srcdir@&$ac_abs_srcdir&;t t
22862s&@top_srcdir@&$ac_top_srcdir&;t t
22863s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22864s&@builddir@&$ac_builddir&;t t
22865s&@abs_builddir@&$ac_abs_builddir&;t t
22866s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22867s&@INSTALL@&$ac_INSTALL&;t t
22868$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022869" $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 +000022870
Reid Spencera773bd52006-08-04 18:18:08 +000022871test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22872 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022874 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022875which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022876echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022877which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022878
Reid Spencera773bd52006-08-04 18:18:08 +000022879 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022880 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022881 -) cat "$tmp/out"; rm -f "$tmp/out";;
22882 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22883 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022884 ;;
22885 :H)
22886 #
22887 # CONFIG_HEADER
22888 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022889_ACEOF
22890
22891# Transform confdefs.h into a sed script `conftest.defines', that
22892# substitutes the proper values into config.h.in to produce config.h.
22893rm -f conftest.defines conftest.tail
22894# First, append a space to every undef/define line, to ease matching.
22895echo 's/$/ /' >conftest.defines
22896# Then, protect against being on the right side of a sed subst, or in
22897# an unquoted here document, in config.status. If some macros were
22898# called several times there might be several #defines for the same
22899# symbol, which is useless. But do not sort them, since the last
22900# AC_DEFINE must be honored.
22901ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22902# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22903# NAME is the cpp macro being defined, VALUE is the value it is being given.
22904# PARAMS is the parameter list in the macro definition--in most cases, it's
22905# just an empty string.
22906ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22907ac_dB='\\)[ (].*,\\1define\\2'
22908ac_dC=' '
22909ac_dD=' ,'
22910
22911uniq confdefs.h |
22912 sed -n '
22913 t rset
22914 :rset
22915 s/^[ ]*#[ ]*define[ ][ ]*//
22916 t ok
22917 d
22918 :ok
22919 s/[\\&,]/\\&/g
22920 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22921 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22922 ' >>conftest.defines
22923
22924# Remove the space that was appended to ease matching.
22925# Then replace #undef with comments. This is necessary, for
22926# example, in the case of _POSIX_SOURCE, which is predefined and required
22927# on some systems where configure will not decide to define it.
22928# (The regexp can be short, since the line contains either #define or #undef.)
22929echo 's/ $//
22930s,^[ #]*u.*,/* & */,' >>conftest.defines
22931
22932# Break up conftest.defines:
22933ac_max_sed_lines=50
22934
22935# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22936# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22937# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22938# et cetera.
22939ac_in='$ac_file_inputs'
22940ac_out='"$tmp/out1"'
22941ac_nxt='"$tmp/out2"'
22942
22943while :
22944do
22945 # Write a here document:
22946 cat >>$CONFIG_STATUS <<_ACEOF
22947 # First, check the format of the line:
22948 cat >"\$tmp/defines.sed" <<\\CEOF
22949/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22950/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22951b
22952:def
22953_ACEOF
22954 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22955 echo 'CEOF
22956 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22957 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22958 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22959 grep . conftest.tail >/dev/null || break
22960 rm -f conftest.defines
22961 mv conftest.tail conftest.defines
22962done
22963rm -f conftest.defines conftest.tail
22964
22965echo "ac_result=$ac_in" >>$CONFIG_STATUS
22966cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022967 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022968 echo "/* $configure_input */" >"$tmp/config.h"
22969 cat "$ac_result" >>"$tmp/config.h"
22970 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22971 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22972echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022973 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022974 rm -f $ac_file
22975 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022976 fi
22977 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022978 echo "/* $configure_input */"
22979 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022980 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022981 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022982 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022984 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22985echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022986 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022987 esac
John Criswell7a73b802003-06-30 21:59:07 +000022988
Reid Spencera773bd52006-08-04 18:18:08 +000022989
22990 case $ac_file$ac_mode in
22991 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022992 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022993 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022994 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022995 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022996 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022997 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022998 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022999 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023000 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023001 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023002 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023003 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000023004 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023005 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023006 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023007 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023008 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023009 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023010 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023011 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023012 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023013 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023014 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023015 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000023016 ${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 +000023017
23018 esac
23019done # for ac_tag
23020
John Criswell7a73b802003-06-30 21:59:07 +000023021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023022{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000023023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023024chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023025ac_clean_files=$ac_clean_files_save
23026
23027
23028# configure is writing to config.log, and then calls config.status.
23029# config.status does its own redirection, appending to config.log.
23030# Unfortunately, on DOS this fails, as config.log is still kept open
23031# by configure, so config.status won't be able to write to it; its
23032# output is simply discarded. So we exec the FD to /dev/null,
23033# effectively closing config.log, so it can be properly (re)opened and
23034# appended to by config.status. When coming back to configure, we
23035# need to make the FD available again.
23036if test "$no_create" != yes; then
23037 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023038 ac_config_status_args=
23039 test "$silent" = yes &&
23040 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023041 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023043 exec 5>>config.log
23044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23045 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023046 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000023047fi
23048
John Criswell12399a12003-09-30 15:55:44 +000023049#
23050# CONFIG_SUBDIRS section.
23051#
23052if test "$no_recursion" != yes; then
23053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023054 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000023055 ac_sub_configure_args=
23056 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000023057 eval "set x $ac_configure_args"
23058 shift
23059 for ac_arg
23060 do
John Criswell12399a12003-09-30 15:55:44 +000023061 if test -n "$ac_prev"; then
23062 ac_prev=
23063 continue
23064 fi
23065 case $ac_arg in
23066 -cache-file | --cache-file | --cache-fil | --cache-fi \
23067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23068 ac_prev=cache_file ;;
23069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23071 | --c=*)
23072 ;;
23073 --config-cache | -C)
23074 ;;
23075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23076 ac_prev=srcdir ;;
23077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23078 ;;
23079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23080 ac_prev=prefix ;;
23081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23082 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023083 *)
23084 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023085 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023086 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023087 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000023088 esac
23089 done
23090
23091 # Always prepend --prefix to ensure using the same prefix
23092 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000023093 ac_arg="--prefix=$prefix"
23094 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023095 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023096 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023097 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000023098
23099 ac_popdir=`pwd`
23100 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23101
23102 # Do not complain, so a configure script can configure whichever
23103 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000023104 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000023105
Reid Spencera773bd52006-08-04 18:18:08 +000023106 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023107 echo "$as_me:$LINENO: $ac_msg" >&5
23108 echo "$ac_msg" >&6
23109 { as_dir="$ac_dir"
23110 case $as_dir in #(
23111 -*) as_dir=./$as_dir;;
23112 esac
23113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23114 as_dirs=
23115 while :; do
23116 case $as_dir in #(
23117 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23118 *) as_qdir=$as_dir;;
23119 esac
23120 as_dirs="'$as_qdir' $as_dirs"
23121 as_dir=`$as_dirname -- "$as_dir" ||
23122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123 X"$as_dir" : 'X\(//\)[^/]' \| \
23124 X"$as_dir" : 'X\(//\)$' \| \
23125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23126echo X"$as_dir" |
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23128 s//\1/
23129 q
23130 }
23131 /^X\(\/\/\)[^/].*/{
23132 s//\1/
23133 q
23134 }
23135 /^X\(\/\/\)$/{
23136 s//\1/
23137 q
23138 }
23139 /^X\(\/\).*/{
23140 s//\1/
23141 q
23142 }
23143 s/.*/./; q'`
23144 test -d "$as_dir" && break
23145 done
23146 test -z "$as_dirs" || eval "mkdir $as_dirs"
23147 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23148echo "$as_me: error: cannot create directory $as_dir" >&2;}
23149 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000023150 ac_builddir=.
23151
Reid Spencera773bd52006-08-04 18:18:08 +000023152case "$ac_dir" in
23153.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23154*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023156 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023157 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023158 case $ac_top_builddir_sub in
23159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23161 esac ;;
23162esac
23163ac_abs_top_builddir=$ac_pwd
23164ac_abs_builddir=$ac_pwd$ac_dir_suffix
23165# for backward compatibility:
23166ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000023167
23168case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023169 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000023170 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023171 ac_top_srcdir=$ac_top_builddir_sub
23172 ac_abs_top_srcdir=$ac_pwd ;;
23173 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000023174 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023175 ac_top_srcdir=$srcdir
23176 ac_abs_top_srcdir=$srcdir ;;
23177 *) # Relative name.
23178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23179 ac_top_srcdir=$ac_top_build_prefix$srcdir
23180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000023181esac
Reid Spencera773bd52006-08-04 18:18:08 +000023182ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000023183
23184
Reid Spencera773bd52006-08-04 18:18:08 +000023185 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000023186
23187 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000023188 if test -f "$ac_srcdir/configure.gnu"; then
23189 ac_sub_configure=$ac_srcdir/configure.gnu
23190 elif test -f "$ac_srcdir/configure"; then
23191 ac_sub_configure=$ac_srcdir/configure
23192 elif test -f "$ac_srcdir/configure.in"; then
23193 # This should be Cygnus configure.
23194 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000023195 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023196 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23197echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000023198 ac_sub_configure=
23199 fi
23200
23201 # The recursion is here.
23202 if test -n "$ac_sub_configure"; then
23203 # Make the cache file name correct relative to the subdirectory.
23204 case $cache_file in
23205 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023206 *) # Relative name.
23207 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000023208 esac
23209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023210 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23211echo "$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 +000023212 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000023213 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23214 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023215 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23216echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23217 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000023218 fi
23219
Reid Spencera773bd52006-08-04 18:18:08 +000023220 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000023221 done
23222fi
23223